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