浏览代码

蓝图修改

zhangjie 2 年之前
父节点
当前提交
be45d2ef50
共有 1 个文件被更改,包括 4 次插入10 次删除
  1. 4 10
      src/modules/analysis/components/baseConfig/BlueprintConfig.vue

+ 4 - 10
src/modules/analysis/components/baseConfig/BlueprintConfig.vue

@@ -3,7 +3,7 @@
     <div class="mb-4 box-justify">
       <el-button type="success" @click="toImport">导入</el-button>
       <el-button
-        v-if="baseInfo.useExamCloudStruct"
+        v-if="baseInfo.structureChange"
         type="primary"
         :loading="updating"
         @click="toUpdateExamCloudStruct"
@@ -168,8 +168,8 @@ export default {
 
         return nitem;
       });
-      if (this.baseInfo.useExamCloudStruct) {
-        this.uploadData = { useExamCloudStruct: true };
+      if (this.baseInfo.structureChange) {
+        this.uploadData = { structureChange: true };
       } else {
         this.uploadData = {};
       }
@@ -187,7 +187,7 @@ export default {
       this.updating = false;
       if (!res) return;
 
-      this.setBaseInfo({ ...this.baseInfo, useExamCloudStruct: false });
+      this.setBaseInfo({ ...this.baseInfo, structureChange: false });
       await this.fetchStructList();
       this.initData();
     },
@@ -200,9 +200,6 @@ export default {
           paperNumber: this.baseInfo.paperNumber,
           paperType: this.baseInfo.paperType
         };
-        if (this.baseInfo.useExamCloudStruct) {
-          datas.useExamCloudStruct = true;
-        }
         return paperStructExport(datas);
       }).catch(e => {
         this.$message.error(e || "下载失败,请重新尝试!");
@@ -261,9 +258,6 @@ export default {
         paperName: this.baseInfo.paperName,
         paperType: this.baseInfo.paperType
       };
-      if (this.baseInfo.useExamCloudStruct) {
-        datas.useExamCloudStruct = true;
-      }
       const data = await updatePaperStruct(datas).catch(() => {});
       this.loading = false;
       if (!data) return;