linwenxin vor 3 Monaten
Ursprung
Commit
4af9d1272f

+ 5 - 1
src/components/template/template-page-1.vue

@@ -168,6 +168,10 @@ export default {
     // 数据钩子
     recordsHook: {
       type: Function
+    },
+    expName: {
+      type: String,
+      default: ''
     }
   },
   data() {
@@ -588,7 +592,7 @@ export default {
               pageSize: -1,
               exportFields: data
             },
-            `${this.moduleName}.xlsx`
+            `${this.expName || this.moduleName}.xlsx`
           )
             .then(res => {
               this.$message({

+ 8 - 1
src/views/workOrder/qualityFeedback/index.vue

@@ -9,6 +9,7 @@
     :tableEvents="tableEvents"
     :operation="operation()"
     :moreParameters="moreParameters"
+    :expName="expName"
   >
     <div class="cartographer_big">
       <el-dialog title="配置" width="100%" :modal="false" :visible.sync="formBool" :before-close="handleClose">
@@ -158,7 +159,8 @@ export default {
       classifyList: [],
       classifyListLv2: [],
       createWebsitList: [],
-      statusTypeList: []
+      statusTypeList: [],
+      expName: ''
     }
   },
   computed: {
@@ -1134,6 +1136,11 @@ export default {
       try {
         if (pam.status) {
           pam.params.push({ param: 'a.status', compare: '=', value: pam.status })
+          this.expName = `${this.$route.meta.title}-${
+            { SAVE: '保存', WAIT: '待中心审核', OK: '通过', REJECT: '驳回可修改', FAIL: '驳回不可修改' }[pam.status]
+          }`
+        } else {
+          this.expName = ''
         }
         cb && cb(pam)
         return qualityFeedbackList(pam)