|
@@ -1109,11 +1109,15 @@ export default {
|
|
|
xfaqglrzjhm: this.form.xfaqglrzjhm.includes('✱') ? this.decodeStr.frzjhm : this.form.xfaqglrzjhm,
|
|
|
xfaqglrdh: this.form.xfaqglrdh.includes('✱') ? this.decodeStr.frlxfs : this.form.xfaqglrdh,
|
|
|
}
|
|
|
+ let yljgJcxmxxListTemp = formList.yljgJcxmxxList;
|
|
|
if (this.form.id != null) {
|
|
|
let formData = this.comparisonObject(formList, this.copyForm)
|
|
|
if (formData) {
|
|
|
+ // 这个替换方法不符合业务需求,yljgJcxmxxList里需要固定传id值的
|
|
|
+ // 思路是,formList的yljgJcxmxxList值记一下,在替换前存到temp里,替换的时候不替换他.之后如果更改了检查子项,就传整个值
|
|
|
if (formData.yljgJcxmxxList) {
|
|
|
- formData.yljgJcxmxxList = Object.values(formData.yljgJcxmxxList)
|
|
|
+ formData.yljgJcxmxxList = yljgJcxmxxListTemp;
|
|
|
+ // formData.yljgJcxmxxList = Object.values(formData.yljgJcxmxxList)
|
|
|
}
|
|
|
updateXfaqzcxx({ ...formData, id: this.form.id, zt: zt }).then(response => {
|
|
|
this.$modal.msgSuccess('修改成功')
|