ZaiZai 10 mesiacov pred
rodič
commit
0d7a5b9b64

+ 22 - 13
src/views/manager/projectinfo/archivetreeRule.vue

@@ -498,16 +498,16 @@
               </el-form-item>
             </template>
             <template v-if="form.associationType==2">
-              <el-form-item label="文件类型" prop="expDataType">
-                <el-checkbox-group v-model="form.expDataType">
-                  <el-checkbox v-for="item in fileTypeList" :key="item.value" :label="item.label">{{item.label}}</el-checkbox>
+              <el-form-item label="文件类型" prop="expDataTypes">
+                <el-checkbox-group v-model="form.expDataTypes">
+                  <el-checkbox v-for="item in contractTrialTypes" :key="item.dictKey" :label="item.dictKey">{{item.dictValue}}</el-checkbox>
                 </el-checkbox-group>
               </el-form-item>
             </template>
             <template v-if="form.associationType==6">
               <el-form-item label="业内资料类型" prop="contractLogTypes">
                 <el-checkbox-group v-model="form.contractLogTypes">
-                  <el-checkbox v-for="item in contractLogTypes" :label="item.dictKey">{{item.dictValue}}</el-checkbox>
+                  <el-checkbox v-for="item in contractLogTypes" :key="item.dictKey" :label="item.dictKey">{{item.dictValue}}</el-checkbox>
                 </el-checkbox-group>
               </el-form-item>
             </template>
@@ -730,7 +730,7 @@ export default {
 
         projectType:'',//工程类型
         storageType:'',//储存类型
-        expDataType:[],//文件类型
+        expDataTypes:[],//文件类型
         contractLogTypes: []
       },
       rules: {
@@ -746,7 +746,7 @@ export default {
         displayHierarchy: [{ required: true, message: '请选择显示层级', trigger: 'change' }],
         projectType: [{ required: true, message: '请选择工程类型', trigger: 'change' }],
         storageType: [{ required: true, message: '请选择储存类型', trigger: 'change' }],
-        expDataType: [{ required: true, message: '请选择文件类型', trigger: 'change' }],
+        expDataTypes: [{ required: true, message: '请选择文件类型', trigger: 'change' }],
         contractLogType: [{ required: true, message: '请选择业内资料类型', trigger: 'change' }],
       },
       JobTypeList: [],//岗位类型枚举
@@ -968,6 +968,7 @@ export default {
       curreenttid:'',
       curreenttid1:'',
       contractLogTypes: [],
+      contractTrialTypes: []
     }
   },
   computed:{
@@ -1252,6 +1253,7 @@ export default {
         this.defaultExpanded = [data.id]
       }
       this.form.contractLogTypes = []
+      this.form.expDataTypes = []
       this.treeTap = true
     },
     async edittree (data,node) {//编辑树
@@ -1321,9 +1323,9 @@ export default {
         this.form.storageType = res.data.storageType   //储存类型
 
         if(res.data.expDataType){
-          this.form.expDataType = res.data.expDataType.split(',')   //文件类型
+          this.form.expDataTypes = res.data.expDataType.split(',')   //文件类型
         }else{
-          this.form.expDataType = [];
+          this.form.expDataTypes = [];
         }
         if(res.data.majorDataType){
           this.form.majorDataType = res.data.majorDataType.split(',')   //文件类型
@@ -1388,7 +1390,7 @@ export default {
 
         projectType:'',//工程类型
         storageType:'',//储存类型
-        expDataType:[],//文件类型
+        expDataTypes:[],//文件类型
         contractLogTypes: []
       }
       this.$refs.form.resetFields();
@@ -1499,8 +1501,7 @@ export default {
                   nodeType: this.form.nodeType,  // 节点类型
                   postType: this.form.postType,  //岗位类型
                   associationType: this.form.associationType,  //关联类型
-
-                  expDataType:this.form.expDataType.join(','),//文件类型
+                  expDataType:this.form.expDataTypes.join(','),//文件类型
                   projectType:this.form.projectType, //工程类型
                   storageType:this.form.storageType, //储存类型
                   projectId:this.projectId,//项目id
@@ -1514,7 +1515,6 @@ export default {
                   nodeType: this.form.nodeType,  // 节点类型
                   postType: this.form.postType,  //岗位类型
                   associationType: this.form.associationType,  //关联类型
-
                   projectType:this.form.projectType, //工程类型
                   storageType:this.form.storageType, //储存类型
                   projectId:this.projectId,//项目id
@@ -1871,7 +1871,15 @@ export default {
         } else {
           this.contractLogTypes = []
         }
-        console.log(data.data)
+      })
+    },
+    getContractTrialType() {
+      getDictionaryBiz({code: 'contract_trial_type'}).then(({data}) => {
+        if (data.code===200) {
+          this.contractTrialTypes = data.data
+        } else {
+          this.contractTrialTypes = []
+        }
       })
     },
   },
@@ -1902,6 +1910,7 @@ export default {
     this.getWbsList();
 
     this.getContractLogType()
+    this.getContractTrialType()
   },
   mounted () {
     this.heights = this.$refs.container.$el.offsetHeight;