Commit 56bdc90e by caoyanzhi

update: 添加按钮权限控制

parent e124f8e8
...@@ -74,12 +74,12 @@ ...@@ -74,12 +74,12 @@
<span :class="['state-point', syncStatusClass[row.syncFlag]]">{{ syncStatusOpt[row.syncFlag] }}</span> <span :class="['state-point', syncStatusClass[row.syncFlag]]">{{ syncStatusOpt[row.syncFlag] }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作"> <el-table-column label="操作" v-if="$getButtonLimit($buttonCode.breakSyncTag)">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
<p v-if="row.syncFlag == 2 && canSync"> <p v-if="row.syncFlag == 2 && canSync && $getButtonLimit($buttonCode.breakSyncTag)">
<el-button type="text" @click="changeSync(row)">关闭同步</el-button> <el-button :limit-code="$buttonCode.breakSyncTag" type="text" @click="changeSync(row)">关闭同步</el-button>
</p> </p>
<p v-else></p> <p v-else>--</p>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column type="expand" width="1"> <el-table-column type="expand" width="1">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment