3e3fcd29 by 任超

refactor:工作流

1 parent 54fb416c
...@@ -26,17 +26,17 @@ export const constantRoutes = [ ...@@ -26,17 +26,17 @@ export const constantRoutes = [
26 // 业务流程框架 26 // 业务流程框架
27 // 业务流程框架 27 // 业务流程框架
28 { 28 {
29 path: '/workFramecs', 29 path: '/workFrame',
30 component: () => import('@/views/workflow/workFrame1.vue'), 30 component: () => import('@/views/workflow/workFrame.vue'),
31 name: 'workFramecs', 31 name: 'workFrame',
32 hidden: true, 32 hidden: true,
33 meta: { title: '发起申请' } 33 meta: { title: '发起申请' }
34 }, 34 },
35 // 业务流程只读框架 35 // 业务流程只读框架
36 { 36 {
37 path: '/workFrameViewcs', 37 path: '/workFrameView',
38 component: () => import('@/views/workflow/workFrameView1.vue'), 38 component: () => import('@/views/workflow/workFrameView.vue'),
39 name: 'workFrameViewcs', 39 name: 'workFrameView',
40 hidden: true, 40 hidden: true,
41 meta: { title: '发起申请' } 41 meta: { title: '发起申请' }
42 }, 42 },
......
...@@ -174,21 +174,20 @@ export default { ...@@ -174,21 +174,20 @@ export default {
174 bsmSlsq: item.bsmSlsq, 174 bsmSlsq: item.bsmSlsq,
175 bestepid: item.bestepid 175 bestepid: item.bestepid
176 }).then(res => { 176 }).then(res => {
177 if(res.code == 200){ 177 if (res.code == 200) {
178 if(res.result){ 178 if (res.result) {
179 //有任务权限 179 //有任务权限
180 // const { href } = this.$router.resolve('/workFrame?bsmSlsq=' + item.bsmSlsq + '&bestepid=' + item.bestepid + '&bsmBusiness=' + '&sqywbm=' + item.djywbm); 180 const { href } = this.$router.resolve('/workFrame?bsmSlsq=' + item.bsmSlsq + '&bestepid=' + item.bestepid + '&bsmBusiness=' + '&sqywbm=' + item.djywbm);
181 const { href } = this.$router.resolve('/workFramecs?bsmSlsq=' + item.bsmSlsq + '&bestepid=' + item.bestepid + '&bsmBusiness=' + '&sqywbm=' + item.djywbm);
182 window.open(href, '_blank'); 181 window.open(href, '_blank');
183 //从待办箱进入的调取任务领取接口 182 //从待办箱进入的调取任务领取接口
184 claimTask(item.bsmSlsq, item.bestepid) 183 claimTask(item.bsmSlsq, item.bestepid)
185 }else{ 184 } else {
186 //无任务权限 185 //无任务权限
187 this.$message.error("无该任务操作权限,或已被他人抢办,请重新操作") 186 this.$message.error("无该任务操作权限,或已被他人抢办,请重新操作")
188 //刷新页面 187 //刷新页面
189 this.queryClick(); 188 this.queryClick();
190 } 189 }
191 }else{ 190 } else {
192 this.$message.error("用户任务权限判断失败,请联系管理员") 191 this.$message.error("用户任务权限判断失败,请联系管理员")
193 } 192 }
194 }) 193 })
......
...@@ -134,8 +134,7 @@ export default { ...@@ -134,8 +134,7 @@ export default {
134 this.queryClick() 134 this.queryClick()
135 }, 135 },
136 ywhClick (item) { 136 ywhClick (item) {
137 // const { href } = this.$router.resolve('/workFrameView?bsmSlsq=' + item.bsmSlsq + '&bestepid=' + item.bestepid + '&bsmBusiness=' + '&viewtype=1'); 137 const { href } = this.$router.resolve('/workFrameView?bsmSlsq=' + item.bsmSlsq + '&bestepid=' + item.bestepid + '&bsmBusiness=' + '&viewtype=1');
138 const { href } = this.$router.resolve('/workFrameViewcs?bsmSlsq=' + item.bsmSlsq + '&bestepid=' + item.bestepid + '&bsmBusiness=' + '&viewtype=1');
139 window.open(href, '_blank'); 138 window.open(href, '_blank');
140 } 139 }
141 } 140 }
......
...@@ -10,7 +10,7 @@ export default { ...@@ -10,7 +10,7 @@ export default {
10 jump (data, type) { 10 jump (data, type) {
11 this.$emit("closeDialog"); 11 this.$emit("closeDialog");
12 const { href } = this.$router.resolve( 12 const { href } = this.$router.resolve(
13 "/workFramecs?bsmSlsq=" + 13 "/workFrame?bsmSlsq=" +
14 data.bsmSlsq + 14 data.bsmSlsq +
15 "&bestepid=" + 15 "&bestepid=" +
16 data.bestepid + '&bsmBusiness=' + '&sqywbm=' + type 16 data.bestepid + '&bsmBusiness=' + '&sqywbm=' + type
......
...@@ -120,7 +120,7 @@ export default { ...@@ -120,7 +120,7 @@ export default {
120 console.log(name, sort); 120 console.log(name, sort);
121 }, 121 },
122 openDialog (item) { 122 openDialog (item) {
123 const { href } = this.$router.resolve('/workFrameViewcs?bsmSlsq=' + item.bsmSlsq + '&bestepid=' + item.bestepid + '&bsmBusiness=' + item.bsmBusiness + '&viewtype=3') 123 const { href } = this.$router.resolve('/workFrameView?bsmSlsq=' + item.bsmSlsq + '&bestepid=' + item.bestepid + '&bsmBusiness=' + item.bsmBusiness + '&viewtype=3')
124 window.open(href, '_blank'); 124 window.open(href, '_blank');
125 } 125 }
126 } 126 }
......