Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
super_liu
2022-06-09 17:36:34 +08:00
6 changed files with 24 additions and 11 deletions
@@ -48,6 +48,7 @@ export default {
const attId = this.answer.appendixId const attId = this.answer.appendixId
this.$preview(attId) this.$preview(attId)
}, },
answerChang(){}
}, },
watch:{ watch:{
answer: { answer: {
@@ -11,7 +11,7 @@
</div> </div>
<div class="row"> <div class="row">
<div class="item"> <div class="item">
<div>{{userName}} <div>{{question.questioner}}
<span>{{question.questionTime}}</span> <span>{{question.questionTime}}</span>
</div> </div>
</div> </div>
@@ -36,6 +36,7 @@ export default {
immediate: true, immediate: true,
deep: true, deep: true,
handler(val){ handler(val){
console.log(val);
} }
} }
} }
@@ -2119,6 +2119,17 @@ export default {
this.getFormFieldList(mes.form) this.getFormFieldList(mes.form)
}) })
}, },
assemble(ids,names){
let list= new Array();
if(ids && ids !== '' && names && names !== ''){
let idArray=ids.split(',');
let nameArray=names.split(',');
for(let i=0; i<idArray.length; i++){
list.push({id:idArray[i],name:nameArray[i]});
}
}
return list;
},
/** /**
* @description: 动态表单读取 * @description: 动态表单读取
*/ */
@@ -2135,12 +2146,15 @@ export default {
} }
this.form.standType = this.form.standInData === "0" ? 'INLAND' : 'FOREIGN' this.form.standType = this.form.standInData === "0" ? 'INLAND' : 'FOREIGN'
this.form.standYear = this.form.standYear ? this.form.standYear : '' this.form.standYear = this.form.standYear ? this.form.standYear : ''
if (this.form.country) { if (this.form.country && this.form.country.indexOf(",") !== -1) {
this.form.country = this.form.country.split(","); this.form.country = this.form.country.split(",");
} }
this.form.prcNum = this.prcNum this.form.prcNum = this.prcNum
this.form.prcName = this.prcName this.form.prcName = this.prcName
this.form['id'] = item.id this.form['id'] = item.id
// zbjbdFileList: {},
console.log(this.form); console.log(this.form);
// 遍历对象初始化文件信息 // 遍历对象初始化文件信息
@@ -2381,8 +2381,10 @@ export default {
case 'ca': case 'ca':
this.caFileList = fileList; this.caFileList = fileList;
break; break;
case 'glwj':
this.glwjFileList = fileList
break;
default : default :
;
} }
// console.log("caNmae",this.form.caName); // console.log("caNmae",this.form.caName);
this.$message({ this.$message({
@@ -3647,6 +3647,7 @@ export default {
this.$set(this.sarBussionessStandEO, key, item.attrInfoMap[key]) this.$set(this.sarBussionessStandEO, key, item.attrInfoMap[key])
} }
}) })
this.filterData(this.sarBussionessStandEO["QCDW"]);
this.sarBussionessStandEO['id'] = item.id this.sarBussionessStandEO['id'] = item.id
if (state === 'show') { if (state === 'show') {
this.formdisableflag = true this.formdisableflag = true
@@ -5167,13 +5168,7 @@ export default {
}, },
watch: { watch: {
'sarBussionessStandEO.QCDW'(val) { 'sarBussionessStandEO.QCDW'(val) {
let arr = val.split(',') this.filterData(val);
arr.forEach((item, index) => {
if (item === undefined || item === 'undefined' || item === '') {
arr.splice(index, 1)
}
})
return arr.toString()
}, },
filterText(val) { filterText(val) {
this.$refs.tree.filter(val); this.$refs.tree.filter(val);
@@ -14,7 +14,7 @@
</div> </div>
<div class="row"> <div class="row">
<div class="item"> <div class="item">
<div>{{userName}} <div>{{answer.answerer}}
<span>{{question.questionTime}}</span> <span>{{question.questionTime}}</span>
</div> </div>
</div> </div>