{"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\\components\\dialog\\DefAuthorizePageDialog.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\components\\dialog\\DefAuthorizePageDialog.vue","mtime":1675071991710},{"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 \"core-js/modules/es6.function.name\";\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//\nimport req from \"@/request.js\";\n\nvar defAuthorizeDialog = function defAuthorizeDialog() {\n  return import(\"@/components/dialog/DefAuthorizeDialog.vue\");\n};\n\nexport default {\n  components: {\n    defAuthorizeDialog: defAuthorizeDialog\n  },\n  name: \"def-authorize-page-dialog\",\n  data: function data() {\n    return {\n      pageResult: {\n        page: 1,\n        pageSize: 20,\n        total: 0\n      },\n      data: [],\n      dialogVisible: false,\n      rightTypeFilters: [{\n        text: '所有人',\n        value: 'everyone'\n      }, {\n        text: '组织',\n        value: 'org'\n      }, {\n        text: '岗位',\n        value: 'pos'\n      }, {\n        text: '角色',\n        value: 'role'\n      }, {\n        text: '用户',\n        value: 'user'\n      }],\n      pageUrl: \"\".concat(window.context.bpmModel, \"/flow/defAuthorize/v1/getAuthDetailPage\"),\n      defDescMap: {\n        m_edit: '设计',\n        m_del: '删除',\n        m_start: '启动',\n        m_set: '设置',\n        m_clean: '清除数据'\n      },\n      instanceDescMap: {\n        i_del: '删除',\n        i_org: '本部门'\n      },\n      defRow: {}\n    };\n  },\n  methods: {\n    showDialog: function showDialog(row) {\n      this.dialogVisible = true;\n      this.defRow = row ? row : {};\n      this.loadData({});\n    },\n    //鼠标选中行改变复选框\n    rowClick: function rowClick(row, column, event) {\n      this.$refs.htTable.$refs.htTable.toggleRowSelection(row);\n    },\n    loadData: function loadData(param, cb) {\n      var _this2 = this;\n\n      param.querys || (param.querys = []);\n\n      if (this.defRow.defKey) {\n        param.querys.push({\n          group: \"main\",\n          property: \"defKey\",\n          value: this.defRow.defKey,\n          operation: \"EQUAL\",\n          relation: \"AND\"\n        });\n      }\n\n      req.post(this.pageUrl, param).then(function (response) {\n        _this2.data = response.data.rows;\n        _this2.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    onConfirm: function onConfirm(selectedNode) {\n      this.$emit(\"onConfirm\", {\n        alias: selectedNode.alias,\n        name: selectedNode.name\n      });\n      this.dialogVisible = false;\n    },\n    getAuthDesc: function getAuthDesc(jsonStr, type) {\n      if (jsonStr) {\n        var _this = this;\n\n        var jsonObj = JSON.parse(jsonStr);\n        var descArray = [];\n\n        for (var key in jsonObj) {\n          if (jsonObj.hasOwnProperty(key)) {\n            if (jsonObj[key] == true) {\n              if (type != 'instance') {\n                if (_this.defDescMap[key]) {\n                  descArray.push(_this.defDescMap[key]);\n                }\n              } else {\n                if (_this.instanceDescMap[key]) {\n                  descArray.push(_this.instanceDescMap[key]);\n                }\n              }\n            }\n          }\n        }\n\n        if (descArray.length > 0) {\n          return descArray.join(\"、\");\n        }\n      }\n\n      return '';\n    },\n    editAuth: function editAuth(row) {\n      this.$refs.defAuthorizeDialog.showDialog(row ? row.id : '', this.defRow);\n      this.dialogVisible = false;\n    },\n    authorizeConfirm: function authorizeConfirm(load) {\n      this.dialogVisible = true;\n\n      if (load) {\n        this.$refs.htTable.load();\n      }\n    }\n  }\n};",null]}