Browse Source

14问题修改

zishan-an 11 months ago
parent
commit
a3d0aa423e
2 changed files with 6 additions and 1 deletions
  1. 1 1
      src/views/system/cooperatorAdd.vue
  2. 5 0
      src/views/system/cooperatorEdit.vue

+ 1 - 1
src/views/system/cooperatorAdd.vue

@@ -45,7 +45,7 @@
               <el-form-item label="证件类型" width="200px">
                 <el-select name="art-cate" v-model="corp_certificate_type_name" placeholder="选择证件类型" style="height:35px">
                     <el-option v-for='item in type_list' :key="item.key" :label="item.label"
-                               :value="item.key"
+                               :value="item.label"
                     />
                 </el-select>
               </el-form-item>

+ 5 - 0
src/views/system/cooperatorEdit.vue

@@ -152,6 +152,8 @@ export default {
       res=>
       {
         this.fieldTemplateList=res.data.field_template_list;
+        console.log("asfafs的")
+
         console.log(this.fieldTemplateList)
       }
     )
@@ -279,6 +281,9 @@ export default {
         message: '编辑成功',
         type: 'success'
       });
+      if(this.templateName==this.fieldTemplateId){
+        this.fieldTemplateId = this.templateId
+      }
         cooperatorEdit(this.cooperatorId, this.cooperator_name, this.corp_certificate_num, this.corp_certificate_type,this.fieldTemplateId).then(
           res=>
           {