| | |
| | | @on-load="onLoad"> |
| | | <template slot="menuLeft"> |
| | | <el-button type="danger" |
| | | size="small" |
| | | icon="el-icon-delete" |
| | | plain |
| | | v-if="permission.post_delete" |
| | | @click="handleDelete">删 除 |
| | | size="small" |
| | | icon="el-icon-delete" |
| | | plain |
| | | v-if="permissionList.delBtn" |
| | | @click="handleDelete">删 除 |
| | | </el-button> |
| | | </template> |
| | | <template slot-scope="{row}" |
| | |
| | | ...mapGetters(["permission"]), |
| | | permissionList() { |
| | | return { |
| | | addBtn: this.vaildData(this.permission.post_add, false), |
| | | viewBtn: this.vaildData(this.permission.post_view, false), |
| | | delBtn: this.vaildData(this.permission.post_delete, false), |
| | | editBtn: this.vaildData(this.permission.post_edit, false) |
| | | addBtn: this.vaildData(this.permission.post.post_add, false), |
| | | viewBtn: this.vaildData(this.permission.post.post_view, false), |
| | | delBtn: this.vaildData(this.permission.post.post_delete, false), |
| | | editBtn: this.vaildData(this.permission.post.post_edit, false) |
| | | }; |
| | | }, |
| | | ids() { |