{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\uc\\RoleMethodAuth.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\uc\\RoleMethodAuth.vue","mtime":1675071993366},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import _toConsumableArray from \"D:/jenkins/workspace/xq-web-bpm/node_modules/@babel/runtime/helpers/esm/toConsumableArray\";\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//\nvar eipMethodDialog = function eipMethodDialog() {\n  return import(\"@/components/dialog/EipMethodDialog.vue\");\n};\n\nexport default {\n  name: \"RoleMethodAuth\",\n  components: {\n    eipMethodDialog: eipMethodDialog\n  },\n  props: {},\n  data: function data() {\n    return {\n      dialogVisible: false,\n      roleMenusMethod: null,\n      defaultCheckedKeys: [],\n      saveData: {},\n      roleAlias: null,\n      data: [],\n      pageResult: {\n        page: 1,\n        pageSize: 100,\n        total: 0\n      }\n    };\n  },\n  methods: {\n    showMethodDialog: function showMethodDialog() {\n      this.$refs.eipMethodDialog.showDialog();\n    },\n    showDialog: function showDialog(roleAlias) {\n      this.dialogVisible = true;\n      this.roleAlias = roleAlias;\n    },\n    handleClose: function handleClose() {\n      this.dialogVisible = false;\n    },\n    loadMethodData: function loadMethodData(params, cb) {\n      var _this = this;\n\n      this.$http.post(\"${portal}\" + \"/sys/sysMethod/v1/getRoleMethods?roleAlias=\".concat(this.roleAlias), params).then(function (response) {\n        _this.data = response.data.rows;\n        _this.pageResult = {\n          page: response.data.page,\n          pageSize: response.data.pageSize,\n          total: response.data.total\n        };\n      }).finally(function () {\n        return cb();\n      });\n    },\n    beforeSaveData: function beforeSaveData() {\n      // saveData = {roleAlias:\"\",arrMenuAlias:[],arrMethodAlias:[],dataPermission:{}}\n      var elTree = this.$refs.htMenuManager.$refs.htMenuTree.$refs.htMenuTree.$refs.elTree;\n      this.saveData = {\n        roleAlias: this.roleAlias,\n        arrMenuAlias: [].concat(_toConsumableArray(elTree.getHalfCheckedKeys()), _toConsumableArray(elTree.getCheckedKeys())),\n        arrMethodAlias: [],\n        dataPermission: {}\n      };\n    },\n    afterSaveData: function afterSaveData() {\n      this.handleClose();\n    },\n    dialogOnConfirm: function dialogOnConfirm(methods) {\n      var _this2 = this;\n\n      if (methods.length) {\n        this.$http.post(\"${portal}/sys/sysRoleAuth/v1/saveRoleMethods\", {\n          roleAlias: this.roleAlias,\n          arrMethodAlias: methods.extractByKey(\"alias\"),\n          dataPermission: {}\n        }).then(function (response) {\n          if (response.data.state) {\n            _this2.$refs.htTable.load();\n\n            _this2.$message({\n              type: \"success\",\n              message: response.data.message\n            });\n          }\n        });\n      }\n    }\n  }\n};",null]}