|
|
@@ -391,7 +391,7 @@ export default {
|
|
|
slot: 'action',
|
|
|
fixed: 'right',
|
|
|
showOverflowTooltip: true,
|
|
|
- show: this.type != 'edit'
|
|
|
+ show: this.type != 'view'
|
|
|
}
|
|
|
];
|
|
|
},
|
|
|
@@ -410,8 +410,9 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
|
|
|
- // 按钮显示权限
|
|
|
+ // 添加 按钮显示权限
|
|
|
buttonJud() {
|
|
|
+ console.log(this.type,'type')
|
|
|
if (this.source == '派单进来') {
|
|
|
return true;
|
|
|
}
|
|
|
@@ -421,14 +422,15 @@ export default {
|
|
|
// 故障列表删除权限
|
|
|
schemeOperate() {
|
|
|
return (row) => {
|
|
|
+ console.log(row,'row ----')
|
|
|
if (this.source == '配件回收') {
|
|
|
return true;
|
|
|
}
|
|
|
- let flag =
|
|
|
- this.type != 'view' && row.isApply != 1 && this.source != '报工信息';
|
|
|
if (row.id && this.state == '可操作') {
|
|
|
return false;
|
|
|
}
|
|
|
+ let flag =
|
|
|
+ this.type != 'view' && row.isApply != 1 && this.source != '报工信息';
|
|
|
return flag;
|
|
|
};
|
|
|
}
|
|
|
@@ -451,7 +453,6 @@ export default {
|
|
|
}
|
|
|
];
|
|
|
}
|
|
|
- console.log(this.detailList, 'this.detailList');
|
|
|
if (this.detailList.length > 0) {
|
|
|
this.form.tableList = this.detailList;
|
|
|
}
|