工序查看 回显错误 +修改按钮没判断是否为空

yangwl
A0010407 1 year ago
parent 7e80cdd0fa
commit c3918482ac

@ -707,9 +707,15 @@ export default {
// //
handleView(row) { handleView(row) {
this.reset(); this.reset();
this.selectMaterielListtag = [];
const processId = row.processId || this.ids; const processId = row.processId || this.ids;
getProcess(processId).then((response) => { getProcess(processId).then((response) => {
this.form = response.data; this.form = response.data;
if (this.form.equipment != "" && this.form.equipment != null) {
this.selectMaterielListtag = JSON.parse(
JSON.stringify(this.form.equipment.split(","))
);
}
this.open = true; this.open = true;
this.title = "查看工序信息"; this.title = "查看工序信息";
this.optType = "view"; this.optType = "view";
@ -727,7 +733,7 @@ export default {
getProcess(processId).then((response) => { getProcess(processId).then((response) => {
this.form = response.data; this.form = response.data;
console.log(this.form); console.log(this.form);
if (this.form.equipment != "") { if (this.form.equipment != "" && this.form.equipment != null) {
this.selectMaterielListtag = JSON.parse( this.selectMaterielListtag = JSON.parse(
JSON.stringify(this.form.equipment.split(",")) JSON.stringify(this.form.equipment.split(","))
); );

Loading…
Cancel
Save