Răsfoiți Sursa

bug fix: 1.用户批量创建完成后回到列表;2.准考证号显示不全

Liu.Yang5 2 ani în urmă
părinte
comite
a320fb7988

+ 2 - 0
.gitignore

@@ -23,3 +23,5 @@ release
 *.njsproj
 *.sln
 *.sw?
+
+package-lock.json

+ 1 - 1
src/modules/admin-data/export/index.vue

@@ -69,7 +69,7 @@ const requestModel = reactive<ExtractMultipleApiParams<'getCetScoreList'>>({ ...
 const { pagination, currentPage, loading, data } = useTable('getCetScoreList', requestModel, true, 'post', false)
 
 const columns: EpTableColumn[] = [
-  { label: '准考证号', prop: 'examNumber' },
+  { label: '准考证号', prop: 'examNumber', minWidth: '160' },
   { label: '科目代码', prop: 'subjectCode' },
   { label: '作文分', prop: 'compositionScore' },
   { label: '主观分', prop: 'subjectScore' },

+ 1 - 0
src/modules/admin-user/bulk-add-user/index.vue

@@ -208,6 +208,7 @@ async function onSubmit() {
       message: `创建用户成功`,
       duration: 1000,
     })
+    back()
   } catch (error) {
     console.log(error)
   }

+ 8 - 7
src/modules/admin-user/edit-user/index.vue

@@ -176,14 +176,15 @@ async function onSubmit() {
     ElMessage.success({
       message: `${isEdit ? '修改' : '创建'}用户成功`,
       duration: 1000,
-      onClose() {
-        if (isEdit) {
-          back()
-        } else {
-          Object.assign(model, initModel)
-        }
-      },
+      // onClose() {
+      //   if (isEdit) {
+      //     back()
+      //   } else {
+      //     Object.assign(model, initModel)
+      //   }
+      // },
     })
+    back()
   } catch (error) {
     console.log(error)
   }