修改bug

This commit is contained in:
宋伟佳
2021-08-06 17:58:37 +08:00
parent d984bf72d3
commit 43f5a92ba7
3 changed files with 13 additions and 9 deletions
@@ -533,9 +533,14 @@ export default {
}).then(res => {
let mes = JSON.parse(res.mes);
this.listForm = mes.form;
this.dataList = mes.form.dataList;
this.roleForm = mes.roleForm;
this.commentText = mes.commentText;
this.dataList = mes.form.dataList;
this.dataList.forEach(item => {
if(!item.projectLine){
this.dataList = null
}
})
});
},
checkedRole(data) {
@@ -866,12 +871,12 @@ export default {
},
computed: {},
watch: {
dataList: {
deep: true,
handler (val) {
console.log('dataList update', val)
}
}
// dataList: {
// deep: true,
// handler (val) {
// console.log('dataList update', val)
// }
// }
},
mounted() {
//从数据库中查询下拉框数据
@@ -662,7 +662,6 @@ export default {
saveTaskFirst(_formData).then(res => {
this.saveLoading = false;
this.$message.success("保存成功");
this.$router.push("/processCenter");
}).catch(e => {
this.saveLoading = false;
});
@@ -315,7 +315,7 @@ export default {
taskIds: this.taskIds,
pId: this.pId
}).then(res => {
console.log(res.mesg)
console.log(res.mesg);
if (res) {
const processForm = JSON.parse(res.mesg);
this.getFormFieldList(processForm);