Pārlūkot izejas kodu

优化后台列表

lex-xin 4 gadi atpakaļ
vecāks
revīzija
98420af0e4

+ 3 - 3
src/components/remote-search/index.vue

@@ -27,13 +27,13 @@
 <script>
 const placeholder = {
   setTeachers: "请选择老师",
-  setEducations: "请选乐团主管",
+  setEducations: "请选乐团主管"
 };
 import { throttle, slice, uniqBy } from "lodash";
 import selects from "@/store/modules/selects";
 export default {
   name: "remote-search",
-  props: ["commit", "number", "value", "width", "multiple"],
+  props: ["commit", "number", "value", "width", "multiple", "ariaPlaceholder"],
   data() {
     return {
       options: [],
@@ -41,7 +41,7 @@ export default {
       listById: {},
       loading: false,
       constant: this.number || 50,
-      placeholder: placeholder[this.commit],
+      placeholder: this.ariaPlaceholder || placeholder[this.commit],
       selectWidt: this.width || 180,
       isFirst: true,
     };

+ 9 - 4
src/views/businessManager/shopManager/purchase-llist.vue

@@ -147,6 +147,14 @@ export default {
   },
   methods: {
     init () {
+      this.getNow()
+
+      let query = this.$route.query
+      this.goodsId = query.goodsId
+      this.goodsName = query.name
+      this.getList()
+    },
+    getNow() {
       const searchForm = this.searchForm
       // 判断是否在默认值
       if(!searchForm.enterStorageStartTime) {
@@ -162,10 +170,6 @@ export default {
           searchForm.enterStorageEndTime
         ]
       }
-      let query = this.$route.query
-      this.goodsId = query.goodsId
-      this.goodsName = query.name
-      this.getList()
     },
     searchOrderDate (val) {
       this.searchForm.enterStorageStartTime = (val ? val[0] : '')
@@ -199,6 +203,7 @@ export default {
       this.searchForm = {
         ...initSearchForm,
       }
+      this.getNow()
       this.getList()
     },
     edit (row) {

+ 9 - 9
src/views/contentManager/index.vue

@@ -11,49 +11,49 @@
                      v-if="permissionList.activity"
                      lazy
                      name="0">
-          <activity />
+          <activity v-if="activeName == 0" />
         </el-tab-pane>
         <el-tab-pane label="热门资讯"
                      v-if="permissionList.information"
                      lazy
                      name="1">
-          <information  />
+          <information v-if="activeName == 1" />
         </el-tab-pane>
         <el-tab-pane label="专项训练"
                      v-if="permissionList.training"
                      lazy
                      name="2">
-          <training  />
+          <training v-if="activeName == 2" />
         </el-tab-pane>
         <el-tab-pane label="闪页管理"
                      v-if="permissionList.flashPage"
                      lazy
                      name="3">
-          <flashPage />
+          <flashPage v-if="activeName == 3" />
         </el-tab-pane>
         <el-tab-pane label="BANNER管理"
                      v-if="permissionList.banner"
                      lazy
                      name="4">
-          <banner  />
+          <banner  v-if="activeName == 4" />
         </el-tab-pane>
         <el-tab-pane label="APP按钮管理"
                      v-if="permissionList.appPage"
                      lazy
                      name="5">
-          <appPage  />
+          <appPage v-if="activeName == 5" />
         </el-tab-pane>
         <el-tab-pane label="知识库管理"
                      v-if="permissionList.knowledge"
                      lazy
                      name="6">
-          <knowledge  />
+          <knowledge  v-if="activeName == 6" />
         </el-tab-pane>
         <el-tab-pane label="广告管理"
                      v-if="permissionList.advert"
                      lazy
                      name="7">
-          <advert  />
+          <advert v-if="activeName == 7" />
         </el-tab-pane>
       </tab-router>
     </div>
@@ -104,7 +104,7 @@ export default {
   },
   methods: {
     handleClick (val, event) {
-      console.log(val.name)
+      // console.log(val.name)
       this.activeName = val.name
       // this.activeStatus[val.name] = true
     }

+ 1 - 1
src/views/evaluateManager/evaluateList.vue

@@ -44,7 +44,7 @@
         </el-select>
       </el-form-item>
       <el-form-item>
-        <remote-search :commit="'setTeachers'" v-model="searchForm.teacherId" />
+        <remote-search :commit="'setTeachers'" aria-placeholder="请选择指导老师" v-model="searchForm.teacherId" />
       </el-form-item>
       <el-form-item>
         <el-select

+ 4 - 7
src/views/evaluateManager/networkList.vue

@@ -14,6 +14,7 @@
         <el-input
           v-model.trim="searchForm.search"
           @keyup.enter.native="search"
+          clearable
           placeholder="请输入课程组名称 ID"
         ></el-input>
       </el-form-item>
@@ -33,7 +34,7 @@
         </el-select>
       </el-form-item>
       <el-form-item>
-        <remote-search :commit="'setTeachers'" v-model.trim="searchForm.teacherId" />
+        <remote-search :commit="'setTeachers'" aria-placeholder="请选择指导老师" v-model.trim="searchForm.teacherId" />
       </el-form-item>
       <el-form-item>
         <remote-search
@@ -191,9 +192,7 @@
           label="指导老师"
         >
             <template slot-scope="scope">
-            <copy-text>
-              {{ scope.row.teacherName }}
-            </copy-text>
+            <copy-text>{{ scope.row.teacherName }}</copy-text>
           </template>
         </el-table-column>
         <el-table-column
@@ -202,9 +201,7 @@
           label="乐团主管"
         >
               <template slot-scope="scope">
-            <copy-text>
-              {{ scope.row.eduTeacherName }}
-            </copy-text>
+            <copy-text>{{ scope.row.eduTeacherName }}</copy-text>
           </template>
         </el-table-column>
         <el-table-column

+ 3 - 7
src/views/evaluateManager/vipEvaluateList.vue

@@ -46,7 +46,7 @@
             :key="index"
           ></el-option>
         </el-select> -->
-           <remote-search :commit='"setTeachers"' v-model='searchForm.teacherId' />
+           <remote-search :commit='"setTeachers"' aria-placeholder="请选择指导老师" v-model='searchForm.teacherId' />
       </el-form-item>
       <el-form-item>
         <el-select
@@ -158,9 +158,7 @@
           label="指导老师"
         >
              <template slot-scope="scope">
-            <copy-text>
-              {{ scope.row.teacherName }}
-            </copy-text>
+            <copy-text>{{ scope.row.teacherName }}</copy-text>
           </template>
         </el-table-column>
         <el-table-column
@@ -169,9 +167,7 @@
           label="乐团主管"
         >
               <template slot-scope="scope">
-            <copy-text>
-              {{ scope.row.eduTeacherName }}
-            </copy-text>
+            <copy-text>{{ scope.row.eduTeacherName }}</copy-text>
           </template>
 
         </el-table-column>

+ 1 - 1
src/views/operateManager/serverIndexList.vue

@@ -487,7 +487,7 @@ export default {
         obj.monday = this.searchForm.timer[0];
         obj.sunday = this.searchForm.timer[1];
       } else {
-        this.$message.error("请选择时间段");
+        this.$message.error("请选择周次");
         return false;
       }
       if (this.searchForm.workTimer && this.searchForm.workTimer.length > 0) {

+ 1 - 1
src/views/operationalEarly/operationalList.vue

@@ -234,7 +234,7 @@ export default {
     onReSet() {
       this.searchForm = {
         organId: null,
-        monthStr: null,
+        monthStr: nowMonth,
         userId: null,
         maxSalary: null,
         lowSalary: null,

+ 1 - 2
src/views/sporadicManager/sporadicList.vue

@@ -121,8 +121,7 @@
           </el-table-column>
                <el-table-column align="center" label="学生姓名" prop="userName">
             <template slot-scope="scope">
-               <copy-text>  {{ scope.row.userName || "-" }}</copy-text>
-
+               <copy-text>{{ scope.row.userName }}</copy-text>
             </template>
           </el-table-column>
           <el-table-column align="center" label="收费状态">