{"remainingRequest":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/thread-loader/dist/cjs.js!/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/babel-loader/lib/index.js!/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/cache-loader/dist/cjs.js??ref--0-0!/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/mer.ws.baibaodun.com.cn/src/views/systemSetting/administratorAuthority/identityManager/index.vue?vue&type=script&lang=js","dependencies":[{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/src/views/systemSetting/administratorAuthority/identityManager/index.vue","mtime":1701742078558},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/babel.config.js","mtime":1701742078504},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/thread-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/babel-loader/lib/index.js","mtime":456789000000},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/mer.ws.baibaodun.com.cn/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n// +----------------------------------------------------------------------\n// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]\n// +----------------------------------------------------------------------\n// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.\n// +----------------------------------------------------------------------\n// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权\n// +----------------------------------------------------------------------\n// | Author: CRMEB Team <admin@crmeb.com>\n// +----------------------------------------------------------------------\n\nimport * as roleApi from '@/api/role.js';\nimport edit from './edit';\nimport { checkPermi } from '@/utils/permission'; // 权限判断函数\nexport default {\n  // name: \"index\"\n  components: {\n    edit: edit\n  },\n  data: function data() {\n    return {\n      constants: this.$constants,\n      listData: {\n        list: []\n      },\n      listPram: {\n        createTime: null,\n        updateTime: null,\n        level: null,\n        page: 1,\n        limit: this.$constants.page.limit[0],\n        roleName: '',\n        rules: null,\n        status: ''\n      },\n      menuList: [],\n      editDialogConfig: {\n        visible: false,\n        isCreate: 0,\n        // 0=创建，1=编辑\n        editData: {}\n      }\n    };\n  },\n  mounted: function mounted() {\n    if (checkPermi(['merchant:admin:role:list'])) this.handleGetRoleList();\n  },\n  methods: {\n    checkPermi: checkPermi,\n    handlerOpenDel: function handlerOpenDel(rowData) {\n      var _this = this;\n      this.$modalSure('删除当前数据').then(function () {\n        roleApi.delRole(rowData.id).then(function (data) {\n          _this.$message.success('删除数据成功');\n          _this.handleGetRoleList();\n        });\n      });\n    },\n    handleGetRoleList: function handleGetRoleList() {\n      var _this2 = this;\n      roleApi.getRoleList(this.listPram).then(function (data) {\n        _this2.listData = data;\n      });\n    },\n    handlerOpenEdit: function handlerOpenEdit(isCreate, editDate) {\n      isCreate === 1 ? this.editDialogConfig.editData = editDate : this.editDialogConfig.editData = {};\n      this.editDialogConfig.isCreate = isCreate;\n      this.editDialogConfig.visible = true;\n    },\n    hideEditDialog: function hideEditDialog() {\n      this.editDialogConfig.visible = false;\n      this.handleGetRoleList();\n    },\n    handleSizeChange: function handleSizeChange(val) {\n      this.listPram.limit = val;\n      this.handleGetRoleList(this.listPram);\n    },\n    handleCurrentChange: function handleCurrentChange(val) {\n      this.listPram.page = val;\n      this.handleGetRoleList(this.listPram);\n    },\n    //修改状态\n    handleStatusChange: function handleStatusChange(row) {\n      var _this3 = this;\n      roleApi.updateRoleStatus(row).then(function (res) {\n        _this3.$message.success('更新状态成功');\n        _this3.handleGetRoleList();\n      });\n    }\n  }\n};",null]}