| | |
| | | <el-button icon="el-icon-delete" @click="onEmpty('formData1')">{{ |
| | | $t('common.empty') |
| | | }}</el-button> |
| | | <el-button @click="InsertFormdialog = true" icon="el-icon-edit">{{ |
| | | $t('common.append') |
| | | }}</el-button> |
| | | <el-button @click="delTokenData" icon="el-icon-delete">{{ |
| | | $t('common.delete') |
| | | }}</el-button> |
| | | <el-button |
| | | v-if="menuStatus.insert" |
| | | @click="InsertFormdialog = true" |
| | | icon="el-icon-edit" |
| | | >{{ $t('common.append') }}</el-button |
| | | > |
| | | <el-button |
| | | v-if="menuStatus.delete" |
| | | @click="delTokenData" |
| | | icon="el-icon-delete" |
| | | >{{ $t('common.delete') }}</el-button |
| | | > |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | |
| | | $t('operatManage.tokentoolObj.renewal') |
| | | }}</el-button> |
| | | <el-button |
| | | v-if="menuStatus.update" |
| | | @click="handleEdit(scope.$index, scope.row)" |
| | | type="warning" |
| | | plain |
| | |
| | | pageIndex: 1, |
| | | pageSize: 10, |
| | | }, |
| | | menuStatus: { |
| | | delete: false, |
| | | insert: false, |
| | | update: false, |
| | | }, |
| | | }; |
| | | }, |
| | | created() { |
| | | 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; |
| | | } |
| | | }, |
| | | async delTokenData() { |
| | | var std = []; |
| | | for (var i in this.multipleSelection) { |