zhangjie před 2 roky
rodič
revize
27614ca82a

+ 5 - 1
src/components/ImportFileDialog.vue

@@ -192,8 +192,12 @@ export default {
       this.loading = false;
       this.res = {
         success: false,
-        message: error.message,
+        message: error.response.data.desc,
       };
+      this.uploadDataDict = {};
+      this.filename = "";
+      this.fileValid = false;
+      this.$refs.UploadComp.clearFiles();
     },
     handleSuccess(res) {
       this.loading = false;

+ 1 - 1
src/modules/card/elements/card-head/CardHead.vue

@@ -1,7 +1,7 @@
 <template>
   <div :class="classes">
     <div class="card-head-title">
-      <h1>{{ data.cardTitle }}</h1>
+      <h1>{{ data.title }}</h1>
     </div>
     <div class="card-head-info">
       <div v-for="(info, index) in fields" :key="index" class="info-item">

+ 1 - 1
src/modules/card/elements/card-head/model.js

@@ -6,7 +6,7 @@ const MODEL = {
   y: 0,
   w: 0,
   h: 0,
-  cardTitle: "测试题卡规则1-题卡标题",
+  title: "测试题卡规则1-题卡标题",
   attention: "测试题卡规则1-注意事项",
   objectiveAttention: "测试题卡规则1-客观题-注意事项",
   subjectiveAttention: "测试题卡规则1-主观题-注意事项",

+ 3 - 7
src/modules/card/views/CardManage.vue

@@ -502,13 +502,9 @@ export default {
       window.open(href);
     },
     async toDelete(row) {
-      const confirm = await this.$confirm(
-        `确定要删除题卡【${row.name}】吗?`,
-        "提示",
-        {
-          type: "warning",
-        }
-      ).catch(() => {});
+      const confirm = await this.$confirm(`确定要删除题卡吗?`, "提示", {
+        type: "warning",
+      }).catch(() => {});
       if (confirm !== "confirm") return;
 
       await cardDeleteApi([row.id]);