Explorar o código

fiex:报考数据-批量导入-添加字段

Tang %!s(int64=3) %!d(string=hai) anos
pai
achega
208a667e66

+ 25 - 2
src/views/education/examManagement/applicationData/bulkImportPlan/newRegister.vue

@@ -118,6 +118,15 @@
               <div>{{ scope.row[item.prop1] }}</div>
               <div>{{ scope.row[item.prop2] }} {{ scope.row[item.prop3] }}</div>
             </div>
+            <div v-else-if="item.scope === 'StudentType'">
+              {{
+                scope.row[item.prop] == 1
+                  ? "非补考学员"
+                  : scope.row[item.prop] == 2
+                  ? "补考学员"
+                  : ""
+              }}
+            </div>
             <span v-else>{{ scope.row[item.prop] }}</span>
           </template>
         </af-table-column>
@@ -159,6 +168,15 @@
             <span v-if="item.scope === 'time'">
               {{ changeDatas(scope.row[item.prop]) }}
             </span>
+            <div v-else-if="item.scope === 'StudentType'">
+              {{
+                scope.row[item.prop] == 1
+                  ? "非补考学员"
+                  : scope.row[item.prop] == 2
+                  ? "补考学员"
+                  : ""
+              }}
+            </div>
             <span v-else>{{ scope.row[item.prop] }}</span>
           </template>
         </af-table-column>
@@ -243,6 +261,11 @@ export default {
           label: "学员身份证",
           prop: "idCard",
         },
+        {
+          label: "学员报名类型",
+          prop: "studentTypeName",
+          scope: "StudentType",
+        },
         {
           label: "考试标题",
           prop: "applyName",
@@ -292,7 +315,7 @@ export default {
           label: "出错原因",
           prop: "cause",
           hidden: true,
-          width:"260px"
+          width: "260px",
         },
       ],
     };
@@ -336,7 +359,7 @@ export default {
         .then((res) => {
           this.tableDataSuccess = res.data.successList;
           this.tableDataError = res.data.errorList;
-          this.$message.info("导入操作执行成功")
+          this.$message.info("导入操作执行成功");
         })
         .finally(() => {
           e.target.value = "";

+ 11 - 0
src/views/education/examManagement/applicationData/bulkImportPlan/newYY.vue

@@ -142,6 +142,9 @@
               <div>{{ scope.row[item.prop1] }}</div>
               <div>{{ scope.row[item.prop2] }} {{ scope.row[item.prop3] }}</div>
             </div>
+            <div v-else-if="item.scope === 'StudentType'">
+              {{scope.row[item.prop] == 1 ? '非补考学员':scope.row[item.prop] == 2 ? '补考学员':''}}
+            </div>
             <span v-else>{{ scope.row[item.prop] }}</span>
           </template>
         </af-table-column>
@@ -187,6 +190,9 @@
                 {{ scope.row[item.prop3] }}
               </div>
             </div>
+            <div v-else-if="item.scope === 'StudentType'">
+              {{scope.row[item.prop] == 1 ? '非补考学员':scope.row[item.prop] == 2 ? '补考学员':''}}
+            </div>
             <span v-else>{{ scope.row[item.prop] }}</span>
           </template>
         </af-table-column>
@@ -221,6 +227,11 @@ export default {
           label: "学员身份证",
           prop: "idCard",
         },
+        {
+          label: "学员报名类型",
+          prop: "studentTypeName",
+          scope: "StudentType",
+        },
         {
           label: "商品编码",
           prop: "code",