zhangyuewww vor 3 Jahren
Ursprung
Commit
32b72c1673
1 geänderte Dateien mit 13 neuen und 12 gelöschten Zeilen
  1. 13 12
      src/views/platformaudit/grainpulseenterprisereview.vue

+ 13 - 12
src/views/platformaudit/grainpulseenterprisereview.vue

@@ -281,7 +281,9 @@
               v-if="inputVisible"
               v-model="label"
               ref="saveTagInput"
-              size="small"
+              maxlength="6"
+              placeholder="请输入标签内容,不超过6个字符"
+              size="medium"
               @keyup.enter.native="handleInputConfirm"
               @blur="handleInputConfirm"
               >
@@ -304,15 +306,13 @@
           </el-form-item>
           <h3 style="margin-left: 30px">联系方式</h3>
           
-          <div :key="index" v-for="(item, index) in freightspace">
-            <div v-for="(item, index) in companyList1.settledCompanyContacts" :key="index">
+          <div :key="index" v-for="(item, index) in companyList1.settledCompanyContacts">
             <el-form-item label="联系人" :label-width="formLabelWidth" prop="contacts">
               <el-input v-model="item.contacts" placeholder="请输入联系人姓名"></el-input>
             </el-form-item>
             <el-form-item label="电话" :label-width="formLabelWidth" prop="createPhone">
               <el-input v-model="item.contactsPhone" placeholder="请输入联系人电话"></el-input>
             </el-form-item>
-            </div>
             <img
               width="22"
               height="22"
@@ -330,7 +330,6 @@
               alt=""
             />
           </div>
-          
           <el-form-item label="邮箱" :label-width="formLabelWidth" prop="email">
             <el-input v-model="companyList1.email" placeholder="请输入电子邮箱"></el-input>
           </el-form-item>
@@ -471,11 +470,11 @@ export default {
     },
     //联系人
     add() {
-      this.freightspace.push({})
+      this.companyList1.settledCompanyContacts.push({})
     },
     del(index) {
-      if (this.freightspace.length > 1) {
-        this.freightspace.splice(index, 1)
+      if (this.companyList1.settledCompanyContacts.length > 1) {
+        this.companyList1.settledCompanyContacts.splice(index, 1)
       }
     },
     //列表
@@ -534,6 +533,7 @@ export default {
         .toPromise()
         .then((response) => {
           this.companyList1 = response
+          console.log(this.companyList1,211)
           this.id=response.id
           if(response.mainBusinessType!=null){
           this.companyList1.mainBusinessType=response.mainBusinessType.split(',')
@@ -544,9 +544,9 @@ export default {
           else{
              this.companyList1.label=[]
           }
-          // if(response.sitePhotoAddress!=null){
-          // this.companyList1.sitePhotoAddress=response.sitePhotoAddress.split(',')
-          // }
+          if(response.sitePhotoAddress!=null){
+          this.companyList1.sitePhotoAddress=response.sitePhotoAddress.split(',')
+          }
           this.dialogFormVisible2 = true
         })
     },
@@ -673,6 +673,7 @@ export default {
       this.companyList1.id = id
       this.companyList1.mainBusinessType=this.companyList1.mainBusinessType.toString()
       this.companyList1.label=this.companyList1.label.toString()
+      this.companyList1.sitePhotoAddress=this.companyList1.sitePhotoAddress.toString()
       this.$confirm(`确定提交企业信息?`, {
         cancelButtonText: '取消',
         confirmButtonText: '确定',
@@ -972,7 +973,7 @@ export default {
   padding-bottom: 0;
 }
 .input-new-tag {
-  width: 90px;
+  width: 240px;
   margin-left: 10px;
   vertical-align: bottom;
 }