| | |
| | | size="small" |
| | | >{{ $t('common.empty') }}</el-button |
| | | > |
| | | <el-button |
| | | <el-button v-if="menuStatus.insert" |
| | | @click="InsertFormdialog = true" |
| | | icon="el-icon-edit" |
| | | type="success" |
| | | size="small" |
| | | >{{ $t('common.append') }}</el-button |
| | | > |
| | | <el-button |
| | | <el-button v-if="menuStatus.delete" |
| | | @click="DelFromData" |
| | | icon="el-icon-delete" |
| | | type="danger" |
| | |
| | | size="small" |
| | | >{{ $t('common.see') }}</el-button |
| | | > |
| | | <el-button |
| | | <el-button v-if="menuStatus.update" |
| | | @click="handleEdit(scope.$index, scope.row)" |
| | | type="warning" |
| | | size="small" |
| | |
| | | style="margin-left: 10px" |
| | | ><i class="el-icon-plus"></i |
| | | ></el-link> |
| | | <el-link |
| | | <el-link v-if="menuStatus.upload" |
| | | :title="$t('common.upload')" |
| | | :underline="false" |
| | | @click="setUploadFile(1)" |
| | |
| | | components: { MyBread, styleDirTree, styleDepTree }, |
| | | data() { |
| | | return { |
| | | menuStatus: { |
| | | delete: false, |
| | | insert: false, |
| | | update: false, |
| | | upload:false, |
| | | }, |
| | | formLabelWidth: '130px', |
| | | ruleForm: {}, |
| | | isTransfer: false, |
| | |
| | | label: 'label', |
| | | }, |
| | | created() { |
| | | this.getRoleTabelData(); |
| | | var val = this.$store.state.currentPerms; |
| | | var permsEntity = this.$store.state.permsEntity; |
| | | for (var i = 0; i < permsEntity.length; i++) { |
| | | if (permsEntity[i].perms == val) { |
| | | this.showPermsMenu(permsEntity[i]); |
| | | } |
| | | } |
| | | this.getRoleTabelData(); |
| | | }, |
| | | methods: { |
| | | showPermsMenu(res) { |
| | | switch (res.tag) { |
| | | case '/delete': |
| | | this.menuStatus.delete = true; |
| | | break; |
| | | case '/insert': |
| | | this.menuStatus.insert = true; |
| | | break; |
| | | case '/update': |
| | | this.menuStatus.update = true; |
| | | break; |
| | | case '/upload': |
| | | this.menuStatus.upload = true; |
| | | break; |
| | | } |
| | | }, |
| | | getIsertFile() { |
| | | $('#imageFile').click(); |
| | | }, |
| | |
| | | } |
| | | this.listData.name = this.ruleForm.name; |
| | | const data = await select_Res_ByPageAndCount(this.listData); |
| | | console.log(data) |
| | | |
| | | if (data.code != 200) { |
| | | this.$message.error('列表调用失败'); |
| | | } |
| | | console.log(data.result); |
| | | |
| | | this.tableData = data.result; |
| | | this.count = data.count; |
| | | }, |