Changes
parent
dd418eed6d
commit
3fc4cf655a
|
@ -87,6 +87,13 @@
|
|||
<el-table-column label="规则代码" align="center" prop="ruleCode" />
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleMaintain(scope.row)"
|
||||
v-hasPermi="['rule:rule:remove']"
|
||||
>规则维护</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
|
@ -238,6 +245,16 @@ export default {
|
|||
this.open = true;
|
||||
this.title = "添加规则";
|
||||
},
|
||||
/** 规则维护按钮操作 */
|
||||
handleMaintain(row) {
|
||||
this.reset();
|
||||
const id = row.id || this.ids
|
||||
getRule(id).then(response => {
|
||||
this.form = response.data;
|
||||
this.open = true;
|
||||
this.title = "规则维护";
|
||||
});
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
|
|
Loading…
Reference in New Issue