|
@@ -1,7 +1,8 @@
|
|
|
<template>
|
|
|
<div class="sandList-container">
|
|
|
<div class="main-top">
|
|
|
- <el-button type="primary" @click="addSand">添加沙盘</el-button>
|
|
|
+ <el-button v-permission="permissionBtn.sandboxPermission.sandbox_saveView"
|
|
|
+ type="primary" @click="addSand">添加沙盘</el-button>
|
|
|
<div>
|
|
|
<el-input
|
|
|
v-model="search_txt"
|
|
@@ -11,6 +12,7 @@
|
|
|
<i slot="prefix" class="el-input__icon el-icon-search"></i>
|
|
|
</el-input>
|
|
|
<el-cascader
|
|
|
+ v-permission="permissionBtn.sandboxPermission.sandbox_variety"
|
|
|
:options="classifyArr"
|
|
|
:props="classifyProps"
|
|
|
v-model="classify"
|
|
@@ -62,29 +64,34 @@
|
|
|
<template slot-scope="scope">
|
|
|
<template v-if="scope.row.key !== 'more'">
|
|
|
<el-button
|
|
|
+ v-permission="permissionBtn.sandboxPermission.sandbox_saveView"
|
|
|
type="text"
|
|
|
@click="handleSand(scope.row, 'edit')"
|
|
|
v-if="scope.row.CanEdit"
|
|
|
>编辑</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
+ v-permission="permissionBtn.sandboxPermission.sandbox_saveView"
|
|
|
type="text"
|
|
|
@click="handleSand(scope.row, 'edit')"
|
|
|
v-if="!scope.row.CanEdit"
|
|
|
>{{scope.row.Editor||''}}编辑中...</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
+ v-permission="permissionBtn.sandboxPermission.sandbox_del"
|
|
|
type="text"
|
|
|
style="color: #f00"
|
|
|
@click="handleSand(scope.row, 'del')"
|
|
|
>删除</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
+ v-permission="permissionBtn.sandboxPermission.sandbox_saveView"
|
|
|
type="text"
|
|
|
@click="handleSand(scope.row, 'view')"
|
|
|
>查看</el-button
|
|
|
>
|
|
|
- <el-button type="text" @click="copyImg(scope.row)"
|
|
|
+ <el-button v-permission="permissionBtn.sandboxPermission.sandbox_addMy"
|
|
|
+ type="text" @click="copyImg(scope.row)"
|
|
|
>复制图片</el-button
|
|
|
>
|
|
|
</template>
|
|
@@ -585,6 +592,10 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
mounted() {
|
|
|
+ //如果没有品种权限,表格就不展示这一列
|
|
|
+ if(!this.permissionBtn.checkPermissionBtn(this.permissionBtn.sandboxPermission.sandbox_variety)){
|
|
|
+ this.tableColums = this.tableColums.filter(i=>i.key!=='ChartPermissionName')
|
|
|
+ }
|
|
|
this.getTableData();
|
|
|
this.getClassify();
|
|
|
this.tableBody = this.$refs.table.bodyWrapper
|