|
@@ -139,6 +139,7 @@
|
|
|
type="text"
|
|
|
icon="el-icon-edit"
|
|
|
@click="handleUpdate(scope.row)"
|
|
|
+ v-if="scope.row.auditResult != '绿区'"
|
|
|
v-hasPermi="['rc:audit:edit']"
|
|
|
>修改</el-button>
|
|
|
<el-button
|
|
@@ -146,6 +147,7 @@
|
|
|
type="text"
|
|
|
icon="el-icon-delete"
|
|
|
@click="handleDelete(scope.row)"
|
|
|
+ v-if="scope.row.auditResult != '绿区'"
|
|
|
v-hasPermi="['rc:audit:remove']"
|
|
|
>删除</el-button>
|
|
|
<el-button
|
|
@@ -428,7 +430,8 @@ export default {
|
|
|
this.$router.push({
|
|
|
path: "/rc/auditinfo",
|
|
|
query: {
|
|
|
- auditId: row.id
|
|
|
+ auditId: row.id,
|
|
|
+ auditResult: row.auditResult,
|
|
|
}
|
|
|
});
|
|
|
},
|
|
@@ -437,7 +440,8 @@ export default {
|
|
|
this.$router.push({
|
|
|
path: "/rc/progress",
|
|
|
query: {
|
|
|
- auditId: row.id
|
|
|
+ auditId: row.id,
|
|
|
+ auditResult: row.auditResult,
|
|
|
}
|
|
|
});
|
|
|
},
|
|
@@ -511,15 +515,19 @@ export default {
|
|
|
this.reset();
|
|
|
const id = row.id || this.ids
|
|
|
getAudit(id).then(response => {
|
|
|
- // 字符串转数组
|
|
|
- if (response.data.deptId != null && response.data.deptId != "") {
|
|
|
- response.data.deptId = response.data.deptId.split(",").map(Number);
|
|
|
+ if (response.data.auditResult == '绿区') {
|
|
|
+ this.$modal.msgWarning("该项数据不允许修改!");
|
|
|
} else {
|
|
|
- response.data.deptId = [];
|
|
|
+ // 字符串转数组
|
|
|
+ if (response.data.deptId != null && response.data.deptId != "") {
|
|
|
+ response.data.deptId = response.data.deptId.split(",").map(Number);
|
|
|
+ } else {
|
|
|
+ response.data.deptId = [];
|
|
|
+ }
|
|
|
+ this.form = response.data;
|
|
|
+ this.open = true;
|
|
|
+ this.title = "修改审计记录";
|
|
|
}
|
|
|
- this.form = response.data;
|
|
|
- this.open = true;
|
|
|
- this.title = "修改审计记录";
|
|
|
});
|
|
|
},
|
|
|
/** 提交按钮 */
|