| | |
| | | ws: null, |
| | | //权限合集 |
| | | permsEntity: [], |
| | | currentPerms: "", |
| | | currentPerms: '', |
| | | //综合展示 |
| | | syntiesis: {}, |
| | | }, |
| | | mutations: { |
| | | //获取权限合集 |
| | | getPermsEntity(state, msg) { |
| | | state.permsEntity = msg |
| | | state.permsEntity = msg; |
| | | }, |
| | | currentPerms(state, msg) { |
| | | state.currentPerms = msg |
| | | state.currentPerms = msg; |
| | | }, |
| | | // 获取完整面包屑路径 |
| | | changeCata(state, msg) { |
| | |
| | | type="primary" |
| | | @click="queryInfo()" |
| | | icon="el-icon-search" |
| | | >{{ $t("operatManage.ELM.search") }}</el-button |
| | | > |
| | | >{{ $t("operatManage.ELM.search") }} |
| | | </el-button> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button |
| | | size="small" |
| | | @click="resetInfo('queryForm')" |
| | | icon="el-icon-refresh" |
| | | >{{ $t("operatManage.ELM.reset") }}</el-button |
| | | > |
| | | {{ $t("operatManage.ELM.reset") }} |
| | | </el-button> |
| | | </el-form-item> |
| | | <br /> |
| | | <el-form-item> |
| | |
| | | size="small" |
| | | @click="showAddDialog" |
| | | icon="el-icon-plus" |
| | | >{{ $t("common.append") }}</el-button |
| | | > |
| | | {{ $t("common.append") }} |
| | | </el-button> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button |
| | |
| | | size="small" |
| | | @click="deleteUserInfo" |
| | | icon="el-icon-delete" |
| | | >{{ $t("common.delete") }}</el-button |
| | | > |
| | | {{ $t("common.delete") }} |
| | | </el-button> |
| | | </el-form-item> |
| | | <el-form-item> |
| | | <el-button |
| | |
| | | size="small" |
| | | @click="editPwd" |
| | | icon="el-icon-unlock" |
| | | >重置密码</el-button |
| | | > |
| | | >重置密码 |
| | | </el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | |
| | | :label="$t('common.operate')" |
| | | width="80px" |
| | | fixed="right" |
| | | v-if="menuStatus.update" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <!-- <el-button type="primary" size="small">修改</el-button> --> |
| | |
| | | } |
| | | }; |
| | | return { |
| | | menuStatus: { |
| | | delete: false, |
| | | insert: false, |
| | | update: false, |
| | | }, |
| | | isNewUser: false, |
| | | currentPage: 1, |
| | | pageSize: 10, |
| | |
| | | this.currentPage = val; |
| | | this.queryInfo(); |
| | | }, |
| | | showPermsMenu(res) { |
| | | console.log(res.tag); |
| | | switch (res.tag) { |
| | | case "/delete": |
| | | this.menuStatus.delete = true; |
| | | break; |
| | | case "/insert": |
| | | this.menuStatus.insert = true; |
| | | break; |
| | | case "/update": |
| | | this.menuStatus.update = true; |
| | | break; |
| | | } |
| | | }, |
| | | }, |
| | | mounted() { |
| | | this.getUserInfo(); |
| | | this.getpublickey(); |
| | | }, |
| | | 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]); |
| | | } |
| | | } |
| | | }, |
| | | }; |
| | | </script> |
| | | <style> |