|
|
@ -100,7 +100,7 @@ |
|
|
|
<el-table-column prop="parts" label="工程部位" width="320"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-cascader |
|
|
|
:disabled="!canEdit" |
|
|
|
:disabled="!canEdit || !formData.category" |
|
|
|
class="w-full" |
|
|
|
v-model="scope.row.parts" |
|
|
|
@change="(val) => handleChangeCascader(val, scope.row)" |
|
|
@ -118,7 +118,7 @@ |
|
|
|
<el-table-column prop="content" label="检查内容"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input |
|
|
|
:disabled="!canEdit" |
|
|
|
:disabled="!canEdit || !formData.category" |
|
|
|
v-model="scope.row.content" |
|
|
|
placeholder="请输入" |
|
|
|
></el-input> |
|
|
@ -127,13 +127,13 @@ |
|
|
|
<el-table-column label="操作" width="180"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button |
|
|
|
:disabled="!canEdit" |
|
|
|
:disabled="!canEdit || !formData.category" |
|
|
|
type="text" |
|
|
|
@click="handleAddNew(scope.$index)" |
|
|
|
>新增</el-button |
|
|
|
> |
|
|
|
<el-button |
|
|
|
:disabled="!canEdit" |
|
|
|
:disabled="!canEdit || !formData.category" |
|
|
|
type="text" |
|
|
|
@click="handleDelRow(scope.$index)" |
|
|
|
>删除</el-button |
|
|
@ -142,7 +142,7 @@ |
|
|
|
</el-table-column> |
|
|
|
<template #empty> |
|
|
|
<el-button |
|
|
|
:disabled="!canEdit" |
|
|
|
:disabled="!canEdit || !formData.category" |
|
|
|
type="primary" |
|
|
|
@click="handleAddNew(null)" |
|
|
|
>新增</el-button |
|
|
|