From 2a4ce4b3f7a455251b6e72e0c1f907f650aecd17 Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@iotlink.com> Date: 星期四, 15 十月 2020 19:32:08 +0800 Subject: [PATCH] 添加底库权限控制 --- src/pages/library/components/carList.vue | 15 +++++++-------- 1 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/pages/library/components/carList.vue b/src/pages/library/components/carList.vue index 0b4f134..c502700 100644 --- a/src/pages/library/components/carList.vue +++ b/src/pages/library/components/carList.vue @@ -40,13 +40,13 @@ <el-button size="small" type="primary" @click="handleSearch">鎼滅储</el-button> </el-col> <el-col :offset="8" :span="3"> - <fTemplate authority="videoTable:edit"> + <fTemplate authority="library:set"> <el-button size="small" class="ml10" type="danger" @click="deleteBatch" - v-if="isShow('videoTable:edit')" + v-if="isShow('library:set')" >鎵归噺鍒犻櫎</el-button> </fTemplate> </el-col> @@ -196,7 +196,6 @@ tooltip-effect="dark" style="width: 100%;" :fit="true" - :default-sort="{prop: 'createTime', order: 'descending'}" @selection-change="handleSelectionChange" :header-cell-style="{background:'#f8f8f8',color:'#222222'}" @@ -272,7 +271,7 @@ <el-switch v-model="scope.row.enable" :active-value="1" - :disabled="!isShow('videoTable:edit')" + :disabled="!isShow('library:set')" :inactive-value="0" @change="enable(scope.row)" ></el-switch> @@ -280,7 +279,7 @@ </el-table-column> <el-table-column label="鎿嶄綔" min-width="200" align="center"> <template slot-scope="scope"> - <fTemplate authority="videoTable:edit"> + <fTemplate authority="library:set"> <el-tooltip content="缂栬緫" placement="top" popper-class="atooltip"> <span class="iconfont iconbianji iconStyle1" @@ -292,7 +291,7 @@ <el-tooltip content="鏌ユ壘姝や汉" placement="top" popper-class="atooltip"> <span class="iconfont iconsousuoren iconStyle1" @click="tosearch(scope.row)"></span> </el-tooltip> - <fTemplate authority="videoTable:edit"> + <fTemplate authority="library:set"> <el-tooltip content="澶嶅埗" placement="top" popper-class="atooltip"> <span class="iconfont iconfuzhi iconStyle1" @@ -301,7 +300,7 @@ ></span> </el-tooltip> </fTemplate> - <fTemplate authority="videoTable:edit"> + <fTemplate authority="library:set"> <el-tooltip content="绉诲姩" placement="top" popper-class="atooltip"> <span class="iconfont iconyidongzhi iconStyle1" @@ -311,7 +310,7 @@ ></span> </el-tooltip> </fTemplate> - <fTemplate authority="videoTable:edit"> + <fTemplate authority="library:set"> <el-tooltip content="鍒犻櫎" placement="top" popper-class="atooltip"> <span class="iconfont iconshanchu iconStyle1" -- Gitblit v1.8.0