| | |
| | | @search-reset="handleReset" |
| | | @row-click="rowClickHandler"> |
| | | <template slot="menuLeft"> |
| | | <el-button v-if="permissionList.addBtn" icon="el-icon-plus" size="small" type="primary" @click="addHandler"> |
| | | <el-button v-if="permissionList.addBtn" class="button-custom-icon" size="small" type="primary" |
| | | @click="addHandler"> |
| | | <icon-show :name="permissionList.addBtn.source"></icon-show> |
| | | 创建 |
| | | </el-button> |
| | | <!--<el-button icon="el-icon-edit" plain size="small" type="primary" @click="editHandler">修改</el-button> |
| | | <el-button icon="el-icon-delete" plain size="small" type="danger" @click="delHandler">删除</el-button>--> |
| | | <el-button v-if="!permissionList.importBtn" icon="el-icon-upload2" plain size="small" type="primary" |
| | | @click="upLoadClickHandler">导入 |
| | | <el-button v-if="permissionList.importBtn" class="button-custom-icon" plain size="small" type="primary" |
| | | @click="upLoadClickHandler"> |
| | | <icon-show :name="permissionList.importBtn.source"></icon-show> |
| | | 导入 |
| | | </el-button> |
| | | <el-button v-if="permissionList.exportBtn" icon="el-icon-download" plain size="small" type="primary" |
| | | @click="exportClickHandler">导出 |
| | | <el-button v-if="permissionList.exportBtn" class="button-custom-icon" plain size="small" type="primary" |
| | | @click="exportClickHandler"> |
| | | <icon-show :name="permissionList.exportBtn.source"></icon-show> |
| | | 导出 |
| | | </el-button> |
| | | <el-button v-if="permissionList.RIGHTBtn" icon="el-icon-place" plain size="small" type="primary" |
| | | @click="uiAuthorHandler">授权 |
| | | <el-button v-if="permissionList.RIGHTBtn" class="button-custom-icon" plain size="small" type="primary" |
| | | @click="uiAuthorHandler"> |
| | | <icon-show :name="permissionList.RIGHTBtn.source"></icon-show> |
| | | 授权 |
| | | </el-button> |
| | | </template> |
| | | <template slot="menu" slot-scope="scope"> |
| | | <el-button v-if="permissionList.editBtn" icon="el-icon-edit" size="small" type="text" |
| | | @click="rowEditBtnClick(scope.row)">编辑 |
| | | <el-button v-if="permissionList.editBtn" size="small" type="text" |
| | | @click="rowEditBtnClick(scope.row)"> |
| | | <icon-show :name="permissionList.editBtn.source"></icon-show> |
| | | 编辑 |
| | | </el-button> |
| | | <el-button v-if="permissionList.delBtn" icon="el-icon-delete" size="small" type="text" |
| | | @click="rowDeleteHandler(scope.row)">删除 |
| | | <el-button v-if="permissionList.delBtn" size="small" type="text" |
| | | @click="rowDeleteHandler(scope.row)"> |
| | | <icon-show :name="permissionList.delBtn.source"></icon-show> |
| | | 删除 |
| | | </el-button> |
| | | <el-button v-if="permissionList.cloneBtn" icon="el-icon-document-copy" size="small" type="text" |
| | | @click="rowCloneHandler(scope.row)">克隆 |
| | | <el-button v-if="permissionList.cloneBtn" size="small" type="text" |
| | | @click="rowCloneHandler(scope.row)"> |
| | | <icon-show :name="permissionList.cloneBtn.source"></icon-show> |
| | | 克隆 |
| | | </el-button> |
| | | </template> |
| | | <template slot="plName" slot-scope="{row}"> |
| | |
| | | column: [{ |
| | | label: '名称', |
| | | prop: 'plName', |
| | | search: true |
| | | search: true, |
| | | overHidden:true |
| | | }, { |
| | | label: 'UI上下文', |
| | | prop: 'plCode', |
| | | search: true, |
| | | sortable: true, |
| | | overHidden:true |
| | | }, { |
| | | label: '导航区', |
| | | prop: 'plIsShowNavigator', |
| | |
| | | editBtn: this.vaildData(this.permission[this.$route.query.id].EDIT, false), |
| | | exportBtn: this.vaildData(this.permission[this.$route.query.id].EXPORT, false), |
| | | importBtn: this.vaildData(this.permission[this.$route.query.id].IMPORT, false), |
| | | cloneBtn: this.vaildData(this.permission[this.$route.query.id].clone, false), |
| | | cloneBtn: this.vaildData(this.permission[this.$route.query.id].CLONE, false), |
| | | RIGHTBtn: this.vaildData(this.permission[this.$route.query.id].RIGHT, false), |
| | | }; |
| | | }, |