فهرست منبع

增加总人数字段

谢杰标 2 سال پیش
والد
کامیت
e180320ca3

+ 18 - 10
src/components/tableList.vue

@@ -176,9 +176,17 @@
               @change="blurBackData(scope.row)"
             ></el-input-number>
           </div>
-          <div v-else-if="item.scope === 'copyTime' && scope.row[item.prop] != null" v-for="(item, index) in scope.row['copyTime']" :key="index">
-            <span >{{item}}</span>
-          </div>
+          <template
+            v-else-if="
+              item.scope === 'copyTime' &&
+              scope.row[item.prop] != null
+            "
+          >
+            <div v-for="(item, index) in scope.row['copyTime']" :key="index">
+              <span>{{ item }}</span>
+            </div>
+          </template>
+
           <span
             v-else-if="item.scope === 'status' && scope.row[item.prop] != null"
             >{{
@@ -289,7 +297,7 @@
             style="color: blue; cursor: pointer"
             @click="openSpec(scope.row['goodsId'])"
           >
-            {{ scope.row[item.prop]?'已关联':'未关联' }}
+            {{ scope.row[item.prop] ? "已关联" : "未关联" }}
           </span>
           <span
             v-else-if="item.scope === 'aboutClassNum'"
@@ -972,8 +980,10 @@
             }}</span
           >
           <span v-else-if="item.scope === 'layered'">
-            <div>{{scope.row[item.prop1]}}</div>
-            <div v-if="scope.row[item.prop2]">({{scope.row[item.prop2]}})</div>
+            <div>{{ scope.row[item.prop1] }}</div>
+            <div v-if="scope.row[item.prop2]">
+              ({{ scope.row[item.prop2] }})
+            </div>
           </span>
           <span v-else-if="item.scope === 'aTimeList'">{{
             scope.row[item.prop] === null
@@ -1599,9 +1609,7 @@
         v-if="navText.xssbStatus"
       >
         <template slot-scope="scope">
-          {{
-           scope.row.periodPlush?'已上报':'未上报'
-          }}
+          {{ scope.row.periodPlush ? "已上报" : "未上报" }}
         </template>
       </el-table-column>
       <el-table-column
@@ -2107,7 +2115,7 @@ export default {
       }
       this.$emit("openClassNum", id);
     },
-    openSpec(id){
+    openSpec(id) {
       this.$emit("openClassNum", id);
     },
     /**

+ 1 - 1
src/views/Marketing/goods/commodityManageMent/index.vue

@@ -398,7 +398,7 @@ export default {
         {
           label: "同步时间",
           prop: "copyTime",
-          hidden: true,
+          hidden: sessionStorage.TenantId == 867735392558919680,
           scope: "copyTime",
         },
       ],

+ 7 - 0
src/views/education/classManageMent/classList/index.vue

@@ -201,6 +201,13 @@ export default {
           hidden: true,
           scope: "peopleNums",
         },
+        {
+          label: "班级总人数",
+          prop1: "studentNumAll",
+          prop2: "studentUpper",
+          hidden: true,
+          scope: "peopleNums",
+        },
         {
           label: "开放学习时间",
           prop: "learningStatus",