emq管理的权限控制调整

This commit is contained in:
kerwincui
2022-05-13 13:43:50 +08:00
parent 881bc88f5c
commit 747eac3879
4 changed files with 5 additions and 5 deletions

View File

@@ -14,10 +14,10 @@
<el-table-column label="描述" align="left" prop="description" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="150">
<template slot-scope="scope">
<el-button size="small" type="success" style="padding:5px;" @click="loadMqttPlugin(scope.row.name)" v-if="!scope.row.active" v-hasPermi="['monitor:online:edit']">
<el-button size="small" type="success" style="padding:5px;" @click="loadMqttPlugin(scope.row.name)" v-if="!scope.row.active" v-hasPermi="['iot:product:remove']">
<svg-icon icon-class="start" /> 启动
</el-button>
<el-button size="small" type="danger" style="padding:5px;" @click="unloadMqttPlugin(scope.row.name)" v-else v-hasPermi="['monitor:online:edit']">
<el-button size="small" type="danger" style="padding:5px;" @click="unloadMqttPlugin(scope.row.name)" v-else v-hasPermi="['iot:product:remove']">
<svg-icon icon-class="stop" /> 停止
</el-button>
</template>