Prechádzať zdrojové kódy

零部件DVP计划-点击弹窗取消后再次点击不进行初始化问题修改

xuhaowei 1 mesiac pred
rodič
commit
d9d7b105a0

+ 3 - 0
src/views/componentsDVP/dvpPlan/edit.vue

@@ -1069,18 +1069,21 @@ export default {
      */
     addComponentDvp() {
       this.isEditDVP = true;
+      this.$refs.editDvp.initSelectData();
     },
     /**
      * 表格上方按钮-模板添加
      */
     addTemplateDvP() {
       this.isEditTemplate = true;
+      this.$refs.templateEdit.getDefaultData();
     },
     /**
      * 表格上方按钮-历史项目添加
      */
     addHistoryDvp() {
       this.isEditHistory = true;
+      this.$refs.historyDvpEdit.initData();
     },
 
     /**

+ 2 - 2
src/views/componentsDVP/dvpPlan/editModal/historyDvpEdit.vue

@@ -66,11 +66,11 @@
         <span>{{ (pagination.current - 1) * pagination.pageSize + index + 1 }}</span>
       </template>
       <!-- 试验来源 -->
-      <template slot='testSource' slot-scope='text, record, index'>
+      <template slot='testSource' slot-scope='text, record'>
         <span>{{ testSourceMap[record.testSource] || '-' }}</span>
       </template>
       <!-- 试验类型 -->
-      <template slot='testType' slot-scope='text, record, index'>
+      <template slot='testType' slot-scope='text, record'>
         <span>{{ testTypeMap[record.testType] || '-' }}</span>
       </template>
     </a-table>