{"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\\flow\\BpmCommonDefList.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-bpm\\src\\views\\flow\\BpmCommonDefList.vue","mtime":1675071992788},{"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":["//\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 { Message } from \"element-ui\";\nimport req from \"@/request.js\";\n\nvar eipAuthDialog = function eipAuthDialog() {\n return import(\"@/components/dialog/EipAuthDialog.vue\");\n};\n\nvar eipFlowDialog = function eipFlowDialog() {\n return import(\"@/components/dialog/EipFlowDialog.vue\");\n};\n\nexport default {\n components: {\n eipFlowDialog: eipFlowDialog,\n eipAuthDialog: eipAuthDialog\n },\n name: \"BpmCommonDefList\",\n computed: {\n //删除对话框数据的URL\n deleteUrl: function deleteUrl() {\n return \"${bpmModel}/bpmModel/BpmOftenFlow/v1/removes\";\n }\n },\n data: function data() {\n return {\n type: \"\",\n //新增或是修改\n defkeys: [],\n //选择的流程\n tableData: [],\n //列表数据\n pageResult: {\n page: 1,\n pageSize: 20,\n total: 0\n }\n };\n },\n methods: {\n rowClick: function rowClick(row, column, event) {\n this.$refs.htTable.$refs.htTable.toggleRowSelection(row);\n },\n //打开流程选择器对话框\n showDialog: function showDialog() {\n this.$refs.eipFlowDialog.showDialog([]);\n },\n //修改常用流程权限信息\n showEditDialog: function showEditDialog(row) {\n var this_ = this;\n this_.defkeys = [];\n req.get(\"${bpmModel}/bpmModel/BpmOftenFlow/v1/getBpmOftenFlowUsers?oftenFlowId=\" + row.id).then(function (resp) {\n if (resp.data) {\n var conf = {\n right: [],\n permissionList: [{\n type: \"everyone\",\n title: \"所有人\"\n }, {\n type: \"user\",\n title: \"用户\"\n }, {\n type: \"org\",\n title: \"组织\"\n }, {\n type: \"pos\",\n title: \"岗位\"\n }, {\n type: \"role\",\n title: \"角色\"\n }]\n };\n conf.right = resp.data;\n this_.type = \"edit\";\n this_.defkeys.push(row.defKey);\n this_.$refs.eipAuthDialog.showDialog(conf);\n }\n });\n },\n showAuthDialog: function showAuthDialog() {\n var conf = {\n right: [],\n permissionList: [{\n type: \"everyone\",\n title: \"所有人\"\n }, {\n type: \"user\",\n title: \"用户\"\n }, {\n type: \"org\",\n title: \"组织\"\n }, {\n type: \"pos\",\n title: \"岗位\"\n }, {\n type: \"role\",\n title: \"角色\"\n }]\n };\n this.type = \"add\";\n this.$refs.eipAuthDialog.showDialog(conf);\n },\n //授权页面确认事件\n eipAuthConfirm: function eipAuthConfirm(data) {\n var this_ = this;\n var map = {\n defkeys: this_.defkeys,\n type: this_.type,\n calOwnerNameJson: data\n };\n req.post(\"${bpmModel}/bpmModel/BpmOftenFlow/v1/save\", map).then(function (resp) {\n resp = resp.data;\n\n if (resp.state) {\n Message.success(resp && resp.message ? resp.message : \"添加常用流程成功\");\n this_.$refs.htTable.load(); //重新加载列表数据\n }\n });\n },\n //监听常用流程确认事件\n dialogOnConfirm: function dialogOnConfirm(data) {\n var this_ = this;\n this_.defkeys = [];\n\n for (var i = 0; i < data.length; i++) {\n this_.defkeys.push(data[i].defKey);\n }\n\n if (this_.defkeys.length == 0) {\n Message.warning(\"至少选择一条流程\");\n return;\n } else {\n this_.showAuthDialog();\n }\n },\n //页面加载显示数据\n loadData: function loadData(param, cb) {\n var this_ = this;\n req.post(\"${bpmModel}/bpmModel/BpmOftenFlow/v1/list\", param).then(function (response) {\n this_.tableData = 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 }\n};",null]}