dev.warn
chentaisen 2024-09-23 09:56:59 +08:00
parent e63bc9db11
commit c60c027cd9
2 changed files with 143 additions and 113 deletions

View File

@ -72,7 +72,8 @@
size="mini"
@click="handleAdd"
v-hasPermi="['platform:rule:add']"
>新增</el-button>
>新增
</el-button>
</el-col>
<el-col :span="1.5">
<el-button
@ -83,7 +84,8 @@
:disabled="single"
@click="handleUpdate"
v-hasPermi="['platform:rule:edit']"
>修改</el-button>
>修改
</el-button>
</el-col>
<el-col :span="1.5">
<el-button
@ -94,7 +96,8 @@
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['platform:rule:remove']"
>删除</el-button>
>删除
</el-button>
</el-col>
<el-col :span="1.5">
<el-button
@ -104,7 +107,8 @@
size="mini"
@click="handleExport"
v-hasPermi="['platform:rule:export']"
>导出</el-button>
>导出
</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
@ -127,14 +131,16 @@
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['platform:rule:edit']"
>修改</el-button>
>修改
</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['platform:rule:remove']"
>删除</el-button>
>删除
</el-button>
</template>
</el-table-column>
</el-table>
@ -220,11 +226,13 @@ export default {
//
form: {},
//
rules: {
}
rules: {},
rule: {}
};
},
created() {
this.queryParams.strategyId = this.$route.query.id
this.getList();
},
methods: {
@ -316,7 +324,8 @@ export default {
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => {});
}).catch(() => {
});
},
/** 导出按钮操作 */
handleExport() {

View File

@ -40,7 +40,8 @@
size="mini"
@click="handleAdd"
v-hasPermi="['platform:strategy:add']"
>新增</el-button>
>新增
</el-button>
</el-col>
<el-col :span="1.5">
<el-button
@ -51,7 +52,8 @@
:disabled="single"
@click="handleUpdate"
v-hasPermi="['platform:strategy:edit']"
>修改</el-button>
>修改
</el-button>
</el-col>
<el-col :span="1.5">
<el-button
@ -62,7 +64,8 @@
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['platform:strategy:remove']"
>删除</el-button>
>删除
</el-button>
</el-col>
<el-col :span="1.5">
<el-button
@ -72,7 +75,8 @@
size="mini"
@click="handleExport"
v-hasPermi="['platform:strategy:export']"
>导出</el-button>
>导出
</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
@ -91,14 +95,24 @@
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['platform:strategy:edit']"
>修改</el-button>
>修改
</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['platform:strategy:remove']"
>删除</el-button>
>删除
</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleAddRule(scope.row)"
v-hasPermi="['platform:strategy:remove']"
>配置规则
</el-button>
</template>
</el-table-column>
</el-table>
@ -168,8 +182,7 @@ export default {
//
form: {},
//
rules: {
}
rules: {}
};
},
created() {
@ -252,7 +265,14 @@ export default {
}
});
},
/** 删除按钮操作 */
/** 配置规则按钮操作 */
handleAddRule(row) {
this.$router.push({
path:'rule',
query:{id:row.id}
})
}, /** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$modal.confirm('是否确认删除预警策略编号为"' + ids + '"的数据项?').then(function () {
@ -260,7 +280,8 @@ export default {
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => {});
}).catch(() => {
});
},
/** 导出按钮操作 */
handleExport() {