|
|
@@ -163,7 +163,7 @@
|
|
|
></el-table-column>
|
|
|
<el-table-column prop="status" label="状态" v-if="columns[5].visible">
|
|
|
<template slot-scope="r">
|
|
|
- <span>{{ getLabel(dict.type.plan_status,r.row.status) }}</span>
|
|
|
+ <span>{{ getLabel(dict.type.plan_status, r.row.status) }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
@@ -181,15 +181,12 @@
|
|
|
v-hasPermi="['resumption:rule:edit']"
|
|
|
>修改</el-button
|
|
|
>
|
|
|
- <el-button
|
|
|
- size="mini"
|
|
|
- type="text"
|
|
|
- icon="el-icon-delete"
|
|
|
- @click="onDel(r.row.id)"
|
|
|
- v-hasPermi="['resumption:rule:remove']"
|
|
|
- class="red-btn"
|
|
|
- >删除</el-button
|
|
|
+ <el-popconfirm
|
|
|
+ title="确定删除履职内容库定义?"
|
|
|
+ @confirm="onDel(r.row.id)"
|
|
|
>
|
|
|
+ <el-button type="text" size="small" slot="reference" icon="el-icon-delete" v-hasPermi="['resumption:rule:remove']">删除</el-button>
|
|
|
+ </el-popconfirm>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -222,7 +219,7 @@ import { getLabel } from "./../../commonOption";
|
|
|
|
|
|
export default {
|
|
|
name: "ruletype",
|
|
|
- dicts: ["sys_org_type", "rule_type","plan_status"],
|
|
|
+ dicts: ["sys_org_type", "rule_type", "plan_status"],
|
|
|
components: {
|
|
|
DialogEdit,
|
|
|
OrgTree,
|
|
|
@@ -299,7 +296,8 @@ export default {
|
|
|
this.$refs.editDialog.show(id, other);
|
|
|
},
|
|
|
async onDel(id) {
|
|
|
- await api.delRule(id);
|
|
|
+ await api.remove(id);
|
|
|
+ this.$message.info("删除成功");
|
|
|
this.getList();
|
|
|
},
|
|
|
// 多选框选中数据
|
|
|
@@ -324,7 +322,7 @@ export default {
|
|
|
clickTreeNode(data) {
|
|
|
this.queryParams.orgId = data.id;
|
|
|
this.getList();
|
|
|
- }
|
|
|
+ },
|
|
|
//apimark//
|
|
|
},
|
|
|
mounted() {},
|