|
|
@@ -176,7 +176,7 @@
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-edit-outline"
|
|
|
- @click="onManageContent(r.row.id)"
|
|
|
+ @click="onManageContent(r.row.id,'edit')"
|
|
|
v-if="r.row.status == 0 && orgId == r.row.orgId"
|
|
|
v-hasPermi="['safetycheck:rule:contentmanage']"
|
|
|
>管理检查内容</el-button
|
|
|
@@ -185,7 +185,7 @@
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-view"
|
|
|
- @click="onManageContent(r.row.id)"
|
|
|
+ @click="onManageContent(r.row.id,'view')"
|
|
|
v-if="r.row.status != 0 || orgId != r.row.orgId"
|
|
|
v-hasPermi="['safetycheck:rule:contentmanage']"
|
|
|
>查看检查内容</el-button
|
|
|
@@ -313,9 +313,11 @@ export default {
|
|
|
onEdit(id, other = {}) {
|
|
|
this.$refs.editDialog.show(id, other);
|
|
|
},
|
|
|
- onManageContent(id) {
|
|
|
+ onManageContent(id,type) {
|
|
|
let path = `/core/safetycheck/rule/content/${id}`;
|
|
|
- this.$router.push(path);
|
|
|
+ //路由名称:safetycheckRuleManager
|
|
|
+ this.$router.push({ name:"safetycheckRuleManager",params:{id:id,showType:type}});
|
|
|
+ //this.$router.push(path);
|
|
|
},
|
|
|
onDel(id) {
|
|
|
this.$modal
|