|
|
@@ -58,12 +58,19 @@
|
|
|
<el-button class="mb-20" type="success" icon="el-icon-circle-plus-outline" @click="add(2)">添加合同可替换变量词</el-button>
|
|
|
|
|
|
<div class="align-items-center mb-20" v-for="(item,i) in textList" :key="i">
|
|
|
- <div class="fs-16">合同可替换变量词:</div>
|
|
|
+ <el-input
|
|
|
+ class="input-w-264 mr-10"
|
|
|
+ placeholder="请输入变量词标题"
|
|
|
+ prefix-icon="el-icon-edit"
|
|
|
+ v-model="item.name"
|
|
|
+ >
|
|
|
+ </el-input>
|
|
|
+ <div class="fs-16">:</div>
|
|
|
<el-input
|
|
|
class="input-w-264 mr-10"
|
|
|
placeholder="请输入合同可替换变量词"
|
|
|
prefix-icon="el-icon-edit"
|
|
|
- v-model="item.val"
|
|
|
+ v-model="item.key"
|
|
|
>
|
|
|
</el-input>
|
|
|
<el-button type="danger" icon="el-icon-delete" @click="del(2,item,i)">删除</el-button>
|
|
|
@@ -145,10 +152,11 @@
|
|
|
})
|
|
|
}
|
|
|
if(this.fromData.texts.length > 0){
|
|
|
- this.fromData.texts.forEach((v)=>{
|
|
|
- let obj = {val:v};
|
|
|
- this.textList.push(obj)
|
|
|
- })
|
|
|
+ // this.fromData.texts.forEach((v)=>{
|
|
|
+ // let obj = {val:v};
|
|
|
+ // this.textList.push(obj)
|
|
|
+ // })
|
|
|
+ this.textList = this.fromData.texts
|
|
|
}
|
|
|
this.fileList = [];
|
|
|
let obj = {
|
|
|
@@ -175,11 +183,10 @@
|
|
|
this.signList.forEach((v)=>{
|
|
|
this.fromData.sign_party.push(v.val)
|
|
|
})
|
|
|
- this.textList.forEach((v)=>{
|
|
|
- this.fromData.texts.push(v.val)
|
|
|
- })
|
|
|
-
|
|
|
-
|
|
|
+ // this.textList.forEach((v)=>{
|
|
|
+ // this.fromData.texts.push(v.val)
|
|
|
+ // })
|
|
|
+ this.fromData.texts = this.textList;
|
|
|
|
|
|
contractSave(this.fromData).then((res)=>{
|
|
|
this.isAJAX = false
|
|
|
@@ -197,7 +204,7 @@
|
|
|
let obj = {val:""};
|
|
|
this.signList.push(obj);
|
|
|
}else{
|
|
|
- let obj = {val:""};
|
|
|
+ let obj = {name:"",key:""};
|
|
|
this.textList.push(obj);
|
|
|
}
|
|
|
},
|