提交 1d645b1e 编写于 作者: 刘英杰's avatar 刘英杰

更新审批退回发起人

上级 c5003f84
流水线 #22881 已通过 ,包含阶段
in 54 second
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><link rel="shortcut icon" href=favicon.ico><title>竞赛管理</title><link href=css/chunk-vendors.064c214c.css rel=stylesheet><link href=css/app.1af866c1.css rel=stylesheet></head><body><script src=/a/manager/identify/identify.js></script><noscript><strong>请开启 JavaScript 功能来使用 竞赛管理。</strong></noscript><div id=app></div><script src=js/chunk-vendors.83546e69.js></script><script src=js/app.49c46e3b.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"><link rel="shortcut icon" href=favicon.ico><title>竞赛管理</title><link href=css/chunk-vendors.064c214c.css rel=stylesheet><link href=css/app.1af866c1.css rel=stylesheet></head><body><script src=/a/manager/identify/identify.js></script><noscript><strong>请开启 JavaScript 功能来使用 竞赛管理。</strong></noscript><div id=app></div><script src=js/chunk-vendors.13fecbcb.js></script><script src=js/app.ae4e5014.js></script></body></html>
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0b899d19"],{bbca:function(e,t,n){"use strict";n("edf6")},e8c1:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("Card",{ref:"card",scopedSlots:e._u([{key:"title",fn:function(){return[n("div",{staticStyle:{height:"30px",display:"flex","align-items":"center"}},[n("h3",[e._v("我的流程列表")])])]},proxy:!0}])},[n("Table",{attrs:{columns:e.columns,data:e.tableData,loading:e.loading},scopedSlots:e._u([{key:"todo",fn:function(t){var a=t.row;return e._l(a.todo,(function(t,a){return n("span",{key:a},[e._v(e._s(t.replace("[","").replace("]","").replace('"',"")))])}))}},{key:"partcipant",fn:function(t){var a=t.row;return e._l(a.partcipant,(function(t,a){return n("span",{key:a},[e._v(e._s(t.replace("[","").replace("]","").replace('"',"")))])}))}},{key:"status",fn:function(t){var n=t.row;return[e._v("\n "+e._s(["草稿","运行中","已结束"][n.status])+"\n ")]}},{key:"action_type",fn:function(t){var a=t.row;return[n("Tag",{attrs:{color:["","success","warning","error","default","primary"][a.action_type]}},[e._v("\n "+e._s(["","发送","退会","驳回","结束","取消"][a.action_type])+"\n ")])]}},{key:"action",fn:function(t){var a=t.row;return[2===a.status?n("a",{key:e.cancelKey,staticClass:"cancel",staticStyle:{"margin-right":"15px"}},[e._v("取消")]):n("a",{key:e.cancelKey,staticStyle:{"margin-right":"15px",color:"red"},on:{click:function(t){return e.flowCancel(a)}}},[e._v("取消")]),n("a",{on:{click:function(t){return e.approvalLisFun(a)}}},[e._v("详细")])]}}])}),n("div",{staticStyle:{height:"60px",display:"flex","align-items":"center"}},[n("Page",{key:e.pageKey,attrs:{total:e.init.total,"show-total":"","show-sizer":"","page-size":e.init.page_size},on:{"on-change":e.handleChangePage,"on-page-size-change":e.handleChangePageSize},model:{value:e.init.page_index,callback:function(t){e.$set(e.init,"page_index",t)},expression:"init.page_index"}})],1)],1)],1)},i=[],r=(n("96cf"),n("1da1")),o=n("967e"),s=n.n(o),c=n("61be"),l=n("7f6b"),u={name:"list",data:function(){return{cancelKey:1,formData:{name:"",url:"",owner:"",type:"",approver:"",date:"",desc:""},approvalDrawer:!1,formValidate:{runid:"",title:"",flow_name:"",flow_id:"",status:0,action_type:0,starter:"",starter_name:"",start_time:"",current_node_id:"",current_node_name:"",todo:"",partcipant:"",modifyby:"",modifytime:"",form_id:"",form_name:""},grid:{xl:8,lg:12,md:24,sm:24,xs:24},columns:[{title:"序号",type:"index",align:"center",show:!0,width:80},{title:"标题",key:"title",align:"center",show:!0,minWidth:300},{title:"流程名称",key:"flow_name",align:"center",show:!0,minWidth:150},{title:"状态",slot:"status",align:"center",show:!0,minWidth:100},{title:"操作类型",slot:"action_type",align:"center",show:!0,minWidth:120},{title:"当前节点名称",key:"current_node_name",align:"center",show:!0,minWidth:200},{title:"当前节点待办人员",slot:"todo",align:"center",show:!0,minWidth:200},{title:"参与人",slot:"partcipant",align:"center",show:!0,minWidth:200},{title:"发起人",key:"starter",align:"center",show:!0,minWidth:150},{title:"发起人姓名",key:"starter_name",align:"center",show:!0,minWidth:120},{title:"发起时间",key:"start_time",align:"center",show:!0,minWidth:150},{title:"操作",align:"center",minWidth:180,fixed:"right",show:!0,slot:"action"}],loading:!1,tableData:[{}],tableSize:"default",tableFullscreen:!1,total:0,collapse:!1,params:{pageIndex:1,pageSize:10,college_id:"",grade:"",classId_Name:"",status:""},init:{page_index:1,page_size:10,total:0},pageKey:1}},created:function(){},mounted:function(){this.GetFlowTaskList()},methods:{GetFlowTaskList:function(){var e=Object(r["a"])(s.a.mark((function e(){var t,n;return s.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loading=!0,t={page_index:this.init.page_index,page_size:this.init.page_size},e.next=4,l["W"](t);case 4:n=e.sent,this.init.total=n.response.data_count,this.tableData=n.response.data,this.loading=!1;case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),add:function(){this.$refs.addEdit.add()},flowCancel:function(){var e=Object(r["a"])(s.a.mark((function e(t){var n=this;return s.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:c["d"](Object(r["a"])(s.a.mark((function e(){var a;return s.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["j"]({runid:t.runid});case 2:return a=e.sent,n.cancelKey++,c["e"](a),e.next=7,n.GetFlowTaskList();case 7:case"end":return e.stop()}}),e)}))));case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}(),approvalLisFun:function(e){this.$router.push({name:"awaitDoneInformation",query:{runid:e.runid,form_name:e.form_name,flowInfo:"流程详细信息"}}),console.log("🚀🚀🚀,",e)},del:function(e){console.log("删除"),this.$Message.info("删除成功")},cancel:function(){this.$Message.info("You click cancel")},handleChangePage:function(e){this.init.page_index=e,this.GetFlowTaskList()},handleChangePageSize:function(e){this.init.page_size=e,this.GetFlowTaskList()}}},d=u,p=(n("bbca"),n("2877")),h=Object(p["a"])(d,a,i,!1,null,null,null);t["default"]=h.exports},edf6:function(e,t,n){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0b899d19"],{bbca:function(e,t,n){"use strict";n("edf6")},e8c1:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("Card",{ref:"card",scopedSlots:e._u([{key:"title",fn:function(){return[n("div",{staticStyle:{height:"30px",display:"flex","align-items":"center"}},[n("h3",[e._v("我的流程列表")])])]},proxy:!0}])},[n("Table",{attrs:{columns:e.columns,data:e.tableData,loading:e.loading},scopedSlots:e._u([{key:"todo",fn:function(t){var a=t.row;return e._l(a.todo,(function(t,a){return n("span",{key:a},[e._v(e._s(t.replace("[","").replace("]","").replace('"',"")))])}))}},{key:"partcipant",fn:function(t){var a=t.row;return e._l(a.partcipant,(function(t,a){return n("span",{key:a},[e._v(e._s(t.replace("[","").replace("]","").replace('"',"")))])}))}},{key:"status",fn:function(t){var n=t.row;return[e._v("\n "+e._s(["草稿","运行中","已结束"][n.status])+"\n ")]}},{key:"action_type",fn:function(t){var a=t.row;return[n("Tag",{attrs:{color:e.publicState.completeFlow.color[a.action_type]}},[e._v("\n "+e._s(e.publicState.completeFlow.action_type[a.action_type])+"\n ")])]}},{key:"action",fn:function(t){var a=t.row;return[2===a.status?n("a",{key:e.cancelKey,staticClass:"cancel",staticStyle:{"margin-right":"15px"}},[e._v("取消")]):n("a",{key:e.cancelKey,staticStyle:{"margin-right":"15px",color:"red"},on:{click:function(t){return e.flowCancel(a)}}},[e._v("取消")]),n("a",{on:{click:function(t){return e.approvalLisFun(a)}}},[e._v("详细")])]}}])}),n("div",{staticStyle:{height:"60px",display:"flex","align-items":"center"}},[n("Page",{key:e.pageKey,attrs:{total:e.init.total,"show-total":"","show-sizer":"","page-size":e.init.page_size},on:{"on-change":e.handleChangePage,"on-page-size-change":e.handleChangePageSize},model:{value:e.init.page_index,callback:function(t){e.$set(e.init,"page_index",t)},expression:"init.page_index"}})],1)],1)],1)},i=[],r=(n("96cf"),n("1da1")),o=n("967e"),s=n.n(o),c=n("61be"),l=n("7f6b"),u={name:"list",data:function(){return{cancelKey:1,formData:{name:"",url:"",owner:"",type:"",approver:"",date:"",desc:""},approvalDrawer:!1,formValidate:{runid:"",title:"",flow_name:"",flow_id:"",status:0,action_type:0,starter:"",starter_name:"",start_time:"",current_node_id:"",current_node_name:"",todo:"",partcipant:"",modifyby:"",modifytime:"",form_id:"",form_name:""},grid:{xl:8,lg:12,md:24,sm:24,xs:24},columns:[{title:"序号",type:"index",align:"center",show:!0,width:80},{title:"标题",key:"title",align:"center",show:!0,minWidth:300},{title:"流程名称",key:"flow_name",align:"center",show:!0,minWidth:150},{title:"状态",slot:"status",align:"center",show:!0,minWidth:100},{title:"操作类型",slot:"action_type",align:"center",show:!0,minWidth:120},{title:"当前节点名称",key:"current_node_name",align:"center",show:!0,minWidth:200},{title:"当前节点待办人员",slot:"todo",align:"center",show:!0,minWidth:200},{title:"参与人",slot:"partcipant",align:"center",show:!0,minWidth:200},{title:"发起人",key:"starter",align:"center",show:!0,minWidth:150},{title:"发起人姓名",key:"starter_name",align:"center",show:!0,minWidth:120},{title:"发起时间",key:"start_time",align:"center",show:!0,minWidth:150},{title:"操作",align:"center",minWidth:180,fixed:"right",show:!0,slot:"action"}],loading:!1,tableData:[{}],tableSize:"default",tableFullscreen:!1,total:0,collapse:!1,params:{pageIndex:1,pageSize:10,college_id:"",grade:"",classId_Name:"",status:""},init:{page_index:1,page_size:10,total:0},pageKey:1}},created:function(){},mounted:function(){this.GetFlowTaskList()},methods:{GetFlowTaskList:function(){var e=Object(r["a"])(s.a.mark((function e(){var t,n;return s.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loading=!0,t={page_index:this.init.page_index,page_size:this.init.page_size},e.next=4,l["W"](t);case 4:n=e.sent,this.init.total=n.response.data_count,this.tableData=n.response.data,this.loading=!1;case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),add:function(){this.$refs.addEdit.add()},flowCancel:function(){var e=Object(r["a"])(s.a.mark((function e(t){var n=this;return s.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:c["d"](Object(r["a"])(s.a.mark((function e(){var a;return s.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l["j"]({runid:t.runid});case 2:return a=e.sent,n.cancelKey++,c["e"](a),e.next=7,n.GetFlowTaskList();case 7:case"end":return e.stop()}}),e)}))));case 1:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}(),approvalLisFun:function(e){this.$router.push({name:"awaitDoneInformation",query:{runid:e.runid,form_name:e.form_name,flowInfo:"流程详细信息"}}),console.log("🚀🚀🚀,",e)},del:function(e){console.log("删除"),this.$Message.info("删除成功")},cancel:function(){this.$Message.info("You click cancel")},handleChangePage:function(e){this.init.page_index=e,this.GetFlowTaskList()},handleChangePageSize:function(e){this.init.page_size=e,this.GetFlowTaskList()}}},d=u,p=(n("bbca"),n("2877")),h=Object(p["a"])(d,a,i,!1,null,null,null);t["default"]=h.exports},edf6:function(e,t,n){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0af2dc"],{"0ce8":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("Card",{ref:"card",scopedSlots:e._u([{key:"title",fn:function(){return[n("div",{staticStyle:{height:"30px",display:"flex","align-items":"center"}},[n("h3",[e._v("流程待办列表")])])]},proxy:!0},{key:"extra",fn:function(){return[n("Select",{staticStyle:{width:"15vw"},attrs:{placeholder:"请选择流程名称"},on:{"on-change":e.flowSelectOnChnage}},e._l(e.flowSelect,(function(t,i){return n("Option",{key:i,attrs:{value:t.id}},[e._v(e._s(t.name))])})),1)]},proxy:!0}])},[n("Table",{attrs:{columns:e.columns,data:e.tableData,loading:e.loading},scopedSlots:e._u([{key:"todo",fn:function(t){var i=t.row;return e._l(i.todo,(function(t,i){return n("span",{key:i},[e._v(e._s(t.replace("[","").replace("]","").replace('"',"")))])}))}},{key:"partcipant",fn:function(t){var i=t.row;return e._l(i.partcipant,(function(t,i){return n("span",{key:i},[e._v(e._s(t.replace("[","").replace("]","").replace('"',"")))])}))}},{key:"status",fn:function(t){var n=t.row;return[e._v("\n "+e._s(["草稿","运行中","已结束"][n.status])+"\n ")]}},{key:"action_type",fn:function(t){var i=t.row;return[n("Tag",{attrs:{color:["","success","warning","error","default","primary"][i.action_type]}},[e._v("\n "+e._s(["","发送","退会","驳回","结束","取消"][i.action_type])+"\n ")])]}},{key:"action",fn:function(t){var i=t.row;return[n("a",{on:{click:function(t){return e.approvalLisFun(i)}}},[e._v("审批")])]}}])}),n("div",{staticStyle:{height:"60px",display:"flex","align-items":"center"}},[n("Page",{key:e.pageKey,attrs:{total:e.init.total,"show-total":"","show-sizer":"","page-size":e.init.page_size},on:{"on-change":e.handleChangePage,"on-page-size-change":e.handleChangePageSize},model:{value:e.init.page_index,callback:function(t){e.$set(e.init,"page_index",t)},expression:"init.page_index"}})],1)],1)],1)},a=[],o=(n("96cf"),n("1da1")),r=n("967e"),s=n.n(r),l=n("61be"),c=n("7f6b"),d={name:"list",data:function(){return{flowSelect:[],formData:{name:"",url:"",owner:"",type:"",approver:"",date:"",desc:""},approvalDrawer:!1,formValidate:{runid:"",title:"",flow_name:"",flow_id:"",status:0,action_type:0,starter:"",starter_name:"",start_time:"",current_node_id:"",current_node_name:"",todo:"",partcipant:"",modifyby:"",modifytime:"",form_id:"",form_name:""},grid:{xl:8,lg:12,md:24,sm:24,xs:24},columns:[{title:"序号",type:"index",align:"center",show:!0,width:80},{title:"标题",key:"title",align:"center",show:!0,minWidth:300},{title:"流程名称",key:"flow_name",align:"center",show:!0,minWidth:150},{title:"状态",slot:"status",align:"center",show:!0,minWidth:100},{title:"操作类型",slot:"action_type",align:"center",show:!0,minWidth:120},{title:"当前节点名称",key:"current_node_name",align:"center",show:!0,minWidth:200},{title:"当前节点待办人员",slot:"todo",align:"center",show:!0,minWidth:200},{title:"参与人员",slot:"partcipant",align:"center",show:!0,minWidth:200},{title:"发起人工号",key:"starter",align:"center",show:!0,minWidth:150},{title:"发起人姓名",key:"starter_name",align:"center",show:!0,minWidth:120},{title:"发起时间",key:"start_time",align:"center",show:!0,minWidth:150},{title:"操作",align:"center",minWidth:180,fixed:"right",show:!0,slot:"action"}],loading:!1,tableData:[{}],tableSize:"default",tableFullscreen:!1,total:0,collapse:!1,params:{pageIndex:1,pageSize:10,college_id:"",grade:"",classId_Name:"",status:""},init:{page_index:1,page_size:10,total:0,flow_id:""},pageKey:1}},watch:{},created:function(){},mounted:function(){var e=this;this.GetFlowTaskList(),l["f"](Object(o["a"])(s.a.mark((function t(){return s.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.GetFlowTaskList();case 2:case"end":return t.stop()}}),t)})))),this.GetFlowIdSelect()},methods:{flowSelectOnChnage:function(e){this.init.flow_id=e,this.GetFlowTaskList()},GetFlowIdSelect:function(){var e=this;l["a"]((function(){c["J"]().then((function(t){t.response.map((function(e,n){"102"===e.id&&(t.response.unshift(e),t.response.splice(n+1,1))})),e.flowSelect=t.response}))}))},GetFlowTaskList:function(){var e=Object(o["a"])(s.a.mark((function e(){var t,n;return s.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loading=!0,t={page_index:this.init.page_index,page_size:this.init.page_size,flow_id:this.init.flow_id},e.next=4,c["P"](t);case 4:n=e.sent,this.init.total=n.response.data_count,this.tableData=n.response.data,this.loading=!1;case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),add:function(){this.$refs.addEdit.add()},approvalLisFun:function(e){this.$router.push({name:"awaitDoneInformation",query:{runid:e.runid,form_name:e.form_name}}),console.log("🚀🚀🚀,",e)},del:function(e){console.log("删除"),this.$Message.info("删除成功")},cancel:function(){this.$Message.info("You click cancel")},handleChangePage:function(e){this.init.page_index=e,this.GetFlowTaskList()},handleChangePageSize:function(e){this.init.page_size=e,this.GetFlowTaskList()}}},u=d,p=n("2877"),h=Object(p["a"])(u,i,a,!1,null,null,null);t["default"]=h.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0af2dc"],{"0ce8":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Card",{ref:"card",scopedSlots:t._u([{key:"title",fn:function(){return[n("div",{staticStyle:{height:"30px",display:"flex","align-items":"center"}},[n("h3",[t._v("流程待办列表")])])]},proxy:!0},{key:"extra",fn:function(){return[n("Select",{staticStyle:{width:"15vw"},attrs:{placeholder:"请选择流程名称"},on:{"on-change":t.flowSelectOnChnage}},t._l(t.flowSelect,(function(e,i){return n("Option",{key:i,attrs:{value:e.id}},[t._v(t._s(e.name))])})),1)]},proxy:!0}])},[n("Table",{attrs:{columns:t.columns,data:t.tableData,loading:t.loading},scopedSlots:t._u([{key:"todo",fn:function(e){var i=e.row;return t._l(i.todo,(function(e,i){return n("span",{key:i},[t._v(t._s(e.replace("[","").replace("]","").replace('"',"")))])}))}},{key:"partcipant",fn:function(e){var i=e.row;return t._l(i.partcipant,(function(e,i){return n("span",{key:i},[t._v(t._s(e.replace("[","").replace("]","").replace('"',"")))])}))}},{key:"status",fn:function(e){var n=e.row;return[t._v("\n "+t._s(["草稿","运行中","已结束"][n.status])+"\n ")]}},{key:"action_type",fn:function(e){var i=e.row;return[n("Tag",{attrs:{color:t.publicState.completeFlow.color[i.action_type]}},[t._v("\n "+t._s(t.publicState.completeFlow.action_type[i.action_type])+"\n ")])]}},{key:"action",fn:function(e){var i=e.row;return[n("a",{on:{click:function(e){return t.approvalLisFun(i)}}},[t._v("审批")])]}}])}),n("div",{staticStyle:{height:"60px",display:"flex","align-items":"center"}},[n("Page",{key:t.pageKey,attrs:{total:t.init.total,"show-total":"","show-sizer":"","page-size":t.init.page_size},on:{"on-change":t.handleChangePage,"on-page-size-change":t.handleChangePageSize},model:{value:t.init.page_index,callback:function(e){t.$set(t.init,"page_index",e)},expression:"init.page_index"}})],1)],1)],1)},a=[],o=(n("96cf"),n("1da1")),s=n("967e"),r=n.n(s),l=n("61be"),c=n("7f6b"),d={name:"list",data:function(){return{flowSelect:[],formData:{name:"",url:"",owner:"",type:"",approver:"",date:"",desc:""},approvalDrawer:!1,formValidate:{runid:"",title:"",flow_name:"",flow_id:"",status:0,action_type:0,starter:"",starter_name:"",start_time:"",current_node_id:"",current_node_name:"",todo:"",partcipant:"",modifyby:"",modifytime:"",form_id:"",form_name:""},grid:{xl:8,lg:12,md:24,sm:24,xs:24},columns:[{title:"序号",type:"index",align:"center",show:!0,width:80},{title:"标题",key:"title",align:"center",show:!0,minWidth:300},{title:"流程名称",key:"flow_name",align:"center",show:!0,minWidth:150},{title:"状态",slot:"status",align:"center",show:!0,minWidth:100},{title:"操作类型",slot:"action_type",align:"center",show:!0,minWidth:120},{title:"当前节点名称",key:"current_node_name",align:"center",show:!0,minWidth:200},{title:"当前节点待办人员",slot:"todo",align:"center",show:!0,minWidth:200},{title:"参与人员",slot:"partcipant",align:"center",show:!0,minWidth:200},{title:"发起人工号",key:"starter",align:"center",show:!0,minWidth:150},{title:"发起人姓名",key:"starter_name",align:"center",show:!0,minWidth:120},{title:"发起时间",key:"start_time",align:"center",show:!0,minWidth:150},{title:"操作",align:"center",minWidth:180,fixed:"right",show:!0,slot:"action"}],loading:!1,tableData:[{}],tableSize:"default",tableFullscreen:!1,total:0,collapse:!1,params:{pageIndex:1,pageSize:10,college_id:"",grade:"",classId_Name:"",status:""},init:{page_index:1,page_size:10,total:0,flow_id:""},pageKey:1}},watch:{},created:function(){},mounted:function(){var t=this;this.GetFlowTaskList(),l["f"](Object(o["a"])(r.a.mark((function e(){return r.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.GetFlowTaskList();case 2:case"end":return e.stop()}}),e)})))),this.GetFlowIdSelect()},methods:{flowSelectOnChnage:function(t){this.init.flow_id=t,this.GetFlowTaskList()},GetFlowIdSelect:function(){var t=this;l["a"]((function(){c["J"]().then((function(e){e.response.map((function(t,n){"102"===t.id&&(e.response.unshift(t),e.response.splice(n+1,1))})),t.flowSelect=e.response}))}))},GetFlowTaskList:function(){var t=Object(o["a"])(r.a.mark((function t(){var e,n;return r.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.loading=!0,e={page_index:this.init.page_index,page_size:this.init.page_size,flow_id:this.init.flow_id},t.next=4,c["P"](e);case 4:n=t.sent,this.init.total=n.response.data_count,this.tableData=n.response.data,this.loading=!1;case 8:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),add:function(){this.$refs.addEdit.add()},approvalLisFun:function(t){this.$router.push({name:"awaitDoneInformation",query:{runid:t.runid,form_name:t.form_name}}),console.log("🚀🚀🚀,",t)},del:function(t){console.log("删除"),this.$Message.info("删除成功")},cancel:function(){this.$Message.info("You click cancel")},handleChangePage:function(t){this.init.page_index=t,this.GetFlowTaskList()},handleChangePageSize:function(t){this.init.page_size=t,this.GetFlowTaskList()}}},u=d,p=n("2877"),h=Object(p["a"])(u,i,a,!1,null,null,null);e["default"]=h.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0b287e"],{2505:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("Card",{ref:"card",scopedSlots:e._u([{key:"title",fn:function(){return[i("div",{staticStyle:{height:"30px",display:"flex","align-items":"center"}},[i("h3",[e._v("流程列表")])])]},proxy:!0}])},[i("div",{staticStyle:{display:"flex","justify-content":"flex-start","flex-wrap":"wrap"}},e._l(e.init.data,(function(t,n){return i("Card",{key:n,staticStyle:{width:"150px","min-height":"150px",margin:"10px 5px"},nativeOn:{click:function(i){return e.flowAssembleFun(t)}}},[i("div",{staticStyle:{display:"flex","align-items":"center","flex-wrap":"wrap","justify-content":"center"}},[i("Icon",{attrs:{type:t.icon,size:"100"}}),i("span",[e._v("\n "+e._s(t.flowname)+"\n ")])],1)])})),1),i("div",{staticClass:"ivu-text-center ivu-mt"},[i("div",{staticStyle:{height:"60px",display:"flex","align-items":"center"}},[i("Page",{key:e.pageKey,attrs:{total:e.init.total,"show-total":"","show-sizer":"","page-size":e.init.page_size},on:{"on-change":e.handleChangePage,"on-page-size-change":e.handleChangePageSize},model:{value:e.init.page_index,callback:function(t){e.$set(e.init,"page_index",t)},expression:"init.page_index"}})],1)])])],1)},a=[],s=(i("96cf"),i("1da1")),l=i("967e"),o=i.n(l),c=(i("61be"),i("7f6b")),r={name:"list",data:function(){return{grid:{xl:8,lg:12,md:24,sm:24,xs:24},columns:[{title:"序号",type:"index",align:"center",show:!0,width:80},{title:"班级编号",key:"class_code",align:"center",show:!0,minWidth:100},{title:"班级名称",key:"class_name",align:"center",show:!0,minWidth:150},{title:"年级",key:"grade",align:"center",show:!0,minWidth:100},{title:"培养层次",key:"training",align:"center",show:!0,minWidth:120},{title:"辅导员工号",key:"counselor_card",align:"center",show:!0,minWidth:150},{title:"辅导员姓名",key:"counselor_name",align:"center",show:!0,minWidth:120},{title:"班主任工号",key:"head_teacher_card",align:"center",show:!0,minWidth:150},{title:"班主任姓名",key:"head_teacher_name",align:"center",show:!0,minWidth:120},{title:"院系名称",key:"college_name",align:"center",show:!0,minWidth:200},{title:"状态",key:"status",align:"center",slot:"status",show:!0,minWidth:130},{title:"操作",align:"center",minWidth:180,fixed:"right",show:!0,slot:"action"}],loading:!1,tableData:[{}],tableSize:"default",tableFullscreen:!1,total:0,collapse:!1,params:{pageIndex:1,pageSize:10,college_id:"",grade:"",classId_Name:"",status:""},init:{page_index:1,page_size:10,total:0,data:[]},pageKey:1}},created:function(){},mounted:function(){this.GetFlowDesignList()},methods:{flowAssembleFun:function(e){var t=this.$router.resolve({path:"/".concat(e.remark,"Form"),query:{id:e.flowid,remark:e.remark,entrance:"flow"}});window.open(t.href,"_blank")},GetFlowDesignList:function(){var e=Object(s["a"])(o.a.mark((function e(){var t,i,n;return o.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.$Spin.show(),t={page_index:this.init.page_index,page_size:this.init.page_size},e.next=4,c["H"](t);case 4:i=e.sent,n=["ios-ribbon","md-trophy","md-list-box","logo-usd","md-chatboxes"],i.response.data.map((function(e,t){e.icon=n[t]})),this.init.data=i.response.data,this.init.total=i.response.data_count,this.$Spin.hide();case 10:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),add:function(){this.$refs.addEdit.add()},edit:function(e){this.$refs.addEdit.edit(e)},del:function(e){console.log("删除"),this.$Message.info("删除成功")},cancel:function(){this.$Message.info("You click cancel")},handleChangePage:function(e){this.init.page_index=e,this.GetFlowDesignList()},handleChangePageSize:function(e){this.current=1,this.init.page_size=e,this.GetFlowDesignList()}}},d=r,h=i("2877"),g=Object(h["a"])(d,n,a,!1,null,null,null);t["default"]=g.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0b287e"],{2505:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("Card",{ref:"card",scopedSlots:e._u([{key:"title",fn:function(){return[i("div",{staticStyle:{height:"30px",display:"flex","align-items":"center"}},[i("h3",[e._v("流程列表")])])]},proxy:!0}])},[i("div",{staticStyle:{display:"flex","justify-content":"flex-start","flex-wrap":"wrap"}},e._l(e.init.data,(function(t,n){return i("Card",{key:n,staticStyle:{width:"150px","min-height":"150px",margin:"10px 5px"},nativeOn:{click:function(i){return e.flowAssembleFun(t)}}},[i("div",{staticStyle:{display:"flex","align-items":"center","flex-wrap":"wrap","justify-content":"center"}},[i("Icon",{attrs:{type:t.icon,size:"100"}}),i("span",[e._v("\n "+e._s(t.flowname)+"\n ")])],1)])})),1),i("div",{staticClass:"ivu-text-center ivu-mt"},[i("div",{staticStyle:{height:"60px",display:"flex","align-items":"center"}},[i("Page",{key:e.pageKey,attrs:{total:e.init.total,"show-total":"","show-sizer":"","page-size":e.init.page_size},on:{"on-change":e.handleChangePage,"on-page-size-change":e.handleChangePageSize},model:{value:e.init.page_index,callback:function(t){e.$set(e.init,"page_index",t)},expression:"init.page_index"}})],1)])])],1)},a=[],s=(i("96cf"),i("1da1")),l=i("967e"),o=i.n(l),c=(i("61be"),i("7f6b")),r={name:"list",data:function(){return{grid:{xl:8,lg:12,md:24,sm:24,xs:24},columns:[{title:"序号",type:"index",align:"center",show:!0,width:80},{title:"班级编号",key:"class_code",align:"center",show:!0,minWidth:100},{title:"班级名称",key:"class_name",align:"center",show:!0,minWidth:150},{title:"年级",key:"grade",align:"center",show:!0,minWidth:100},{title:"培养层次",key:"training",align:"center",show:!0,minWidth:120},{title:"辅导员工号",key:"counselor_card",align:"center",show:!0,minWidth:150},{title:"辅导员姓名",key:"counselor_name",align:"center",show:!0,minWidth:120},{title:"班主任工号",key:"head_teacher_card",align:"center",show:!0,minWidth:150},{title:"班主任姓名",key:"head_teacher_name",align:"center",show:!0,minWidth:120},{title:"院系名称",key:"college_name",align:"center",show:!0,minWidth:200},{title:"状态",key:"status",align:"center",slot:"status",show:!0,minWidth:130},{title:"操作",align:"center",minWidth:180,fixed:"right",show:!0,slot:"action"}],loading:!1,tableData:[{}],tableSize:"default",tableFullscreen:!1,total:0,collapse:!1,params:{pageIndex:1,pageSize:10,college_id:"",grade:"",classId_Name:"",status:""},init:{page_index:1,page_size:10,total:0,data:[]},pageKey:1}},created:function(){},mounted:function(){this.GetFlowDesignList()},methods:{flowAssembleFun:function(e){this.$router.push({path:"/".concat(e.remark,"Form"),query:{id:e.flowid,remark:e.remark,entrance:"flow"}})},GetFlowDesignList:function(){var e=Object(s["a"])(o.a.mark((function e(){var t,i,n;return o.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.$Spin.show(),t={page_index:this.init.page_index,page_size:this.init.page_size},e.next=4,c["H"](t);case 4:i=e.sent,n=["ios-ribbon","md-trophy","md-list-box","logo-usd","md-chatboxes"],i.response.data.map((function(e,t){e.icon=n[t]})),this.init.data=i.response.data,this.init.total=i.response.data_count,this.$Spin.hide();case 10:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),add:function(){this.$refs.addEdit.add()},edit:function(e){this.$refs.addEdit.edit(e)},del:function(e){console.log("删除"),this.$Message.info("删除成功")},cancel:function(){this.$Message.info("You click cancel")},handleChangePage:function(e){this.init.page_index=e,this.GetFlowDesignList()},handleChangePageSize:function(e){this.current=1,this.init.page_size=e,this.GetFlowDesignList()}}},d=r,h=i("2877"),g=Object(h["a"])(d,n,a,!1,null,null,null);t["default"]=g.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0dee69"],{"882e":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("Card",{ref:"card",scopedSlots:e._u([{key:"title",fn:function(){return[n("div",{staticStyle:{height:"30px",display:"flex","align-items":"center"}},[n("h3",[e._v("流程已办列表")])])]},proxy:!0}])},[n("Table",{attrs:{columns:e.columns,data:e.tableData,loading:e.loading},scopedSlots:e._u([{key:"todo",fn:function(t){var i=t.row;return e._l(i.todo,(function(t,i){return n("span",{key:i},[e._v(e._s(t.replace("[","").replace("]","").replace('"',"")))])}))}},{key:"partcipant",fn:function(t){var i=t.row;return e._l(i.partcipant,(function(t,i){return n("span",{key:i},[e._v(e._s(t.replace("[","").replace("]","").replace('"',"")))])}))}},{key:"status",fn:function(t){var n=t.row;return[e._v("\n "+e._s(["草稿","运行中","已结束"][n.status])+"\n ")]}},{key:"action_type",fn:function(t){var i=t.row;return[n("Tag",{attrs:{color:["","success","warning","error","default","primary"][i.action_type]}},[e._v("\n "+e._s(["","发送","退会","驳回","结束","取消"][i.action_type])+"\n ")])]}},{key:"action",fn:function(t){var i=t.row;return[n("a",{on:{click:function(t){return e.approvalLisFun(i)}}},[e._v("详细")])]}}])}),n("div",{staticStyle:{height:"60px",display:"flex","align-items":"center"}},[n("Page",{key:e.pageKey,attrs:{total:e.init.total,"show-total":"","show-sizer":"","page-size":e.init.page_size},on:{"on-change":e.handleChangePage,"on-page-size-change":e.handleChangePageSize},model:{value:e.init.page_index,callback:function(t){e.$set(e.init,"page_index",t)},expression:"init.page_index"}})],1)],1)],1)},a=[],o=(n("96cf"),n("1da1")),r=n("967e"),s=n.n(r),l=(n("61be"),n("7f6b")),c={name:"list",data:function(){return{formData:{name:"",url:"",owner:"",type:"",approver:"",date:"",desc:""},approvalDrawer:!1,formValidate:{runid:"",title:"",flow_name:"",flow_id:"",status:0,action_type:0,starter:"",starter_name:"",start_time:"",current_node_id:"",current_node_name:"",todo:"",partcipant:"",modifyby:"",modifytime:"",form_id:"",form_name:""},grid:{xl:8,lg:12,md:24,sm:24,xs:24},columns:[{title:"序号",type:"index",align:"center",show:!0,width:80},{title:"标题",key:"title",align:"center",show:!0,minWidth:300},{title:"流程名称",key:"flow_name",align:"center",show:!0,minWidth:150},{title:"状态",slot:"status",align:"center",show:!0,minWidth:100},{title:"操作类型",slot:"action_type",align:"center",show:!0,minWidth:120},{title:"当前节点名称",key:"current_node_name",align:"center",show:!0,minWidth:200},{title:"当前节点待办人员",slot:"todo",align:"center",show:!0,minWidth:200},{title:"参与人",slot:"partcipant",align:"center",show:!0,minWidth:200},{title:"发起人",key:"starter",align:"center",show:!0,minWidth:150},{title:"发起人姓名",key:"starter_name",align:"center",show:!0,minWidth:120},{title:"发起时间",key:"start_time",align:"center",show:!0,minWidth:150},{title:"操作",align:"center",minWidth:180,fixed:"right",show:!0,slot:"action"}],loading:!1,tableData:[{}],tableSize:"default",tableFullscreen:!1,total:0,collapse:!1,params:{pageIndex:1,pageSize:10,college_id:"",grade:"",classId_Name:"",status:""},init:{page_index:1,page_size:10,total:0},pageKey:1}},created:function(){},mounted:function(){this.GetFlowTaskList()},methods:{GetFlowTaskList:function(){var e=Object(o["a"])(s.a.mark((function e(){var t,n;return s.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loading=!0,t={page_index:this.init.page_index,page_size:this.init.page_size},e.next=4,l["x"](t);case 4:n=e.sent,this.init.total=n.response.data_count,this.tableData=n.response.data,this.loading=!1;case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),add:function(){this.$refs.addEdit.add()},approvalLisFun:function(e){this.$router.push({name:"awaitDoneInformation",query:{runid:e.runid,form_name:e.form_name,flowInfo:"流程详细信息"}}),console.log("🚀🚀🚀,",e)},del:function(e){console.log("删除"),this.$Message.info("删除成功")},cancel:function(){this.$Message.info("You click cancel")},handleChangePage:function(e){this.init.page_index=e,this.GetFlowTaskList()},handleChangePageSize:function(e){this.init.page_size=e,this.GetFlowTaskList()}}},d=c,u=n("2877"),p=Object(u["a"])(d,i,a,!1,null,null,null);t["default"]=p.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0dee69"],{"882e":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Card",{ref:"card",scopedSlots:t._u([{key:"title",fn:function(){return[n("div",{staticStyle:{height:"30px",display:"flex","align-items":"center"}},[n("h3",[t._v("流程已办列表")])])]},proxy:!0}])},[n("Table",{attrs:{columns:t.columns,data:t.tableData,loading:t.loading},scopedSlots:t._u([{key:"todo",fn:function(e){var i=e.row;return t._l(i.todo,(function(e,i){return n("span",{key:i},[t._v(t._s(e.replace("[","").replace("]","").replace('"',"")))])}))}},{key:"partcipant",fn:function(e){var i=e.row;return t._l(i.partcipant,(function(e,i){return n("span",{key:i},[t._v(t._s(e.replace("[","").replace("]","").replace('"',"")))])}))}},{key:"status",fn:function(e){var n=e.row;return[t._v("\n "+t._s(["草稿","运行中","已结束"][n.status])+"\n ")]}},{key:"action_type",fn:function(e){var i=e.row;return[n("Tag",{attrs:{color:t.publicState.completeFlow.color[i.action_type]}},[t._v("\n "+t._s(t.publicState.completeFlow.action_type[i.action_type])+"\n ")])]}},{key:"action",fn:function(e){var i=e.row;return[n("a",{on:{click:function(e){return t.approvalLisFun(i)}}},[t._v("详细")])]}}])}),n("div",{staticStyle:{height:"60px",display:"flex","align-items":"center"}},[n("Page",{key:t.pageKey,attrs:{total:t.init.total,"show-total":"","show-sizer":"","page-size":t.init.page_size},on:{"on-change":t.handleChangePage,"on-page-size-change":t.handleChangePageSize},model:{value:t.init.page_index,callback:function(e){t.$set(t.init,"page_index",e)},expression:"init.page_index"}})],1)],1)],1)},a=[],o=(n("96cf"),n("1da1")),r=n("967e"),s=n.n(r),l=(n("61be"),n("7f6b")),c=n("5ccc"),d={name:"list",computed:{publicState:function(){return c["a"]}},data:function(){return{formData:{name:"",url:"",owner:"",type:"",approver:"",date:"",desc:""},approvalDrawer:!1,formValidate:{runid:"",title:"",flow_name:"",flow_id:"",status:0,action_type:0,starter:"",starter_name:"",start_time:"",current_node_id:"",current_node_name:"",todo:"",partcipant:"",modifyby:"",modifytime:"",form_id:"",form_name:""},grid:{xl:8,lg:12,md:24,sm:24,xs:24},columns:[{title:"序号",type:"index",align:"center",show:!0,width:80},{title:"标题",key:"title",align:"center",show:!0,minWidth:300},{title:"流程名称",key:"flow_name",align:"center",show:!0,minWidth:150},{title:"状态",slot:"status",align:"center",show:!0,minWidth:100},{title:"操作类型",slot:"action_type",align:"center",show:!0,minWidth:120},{title:"当前节点名称",key:"current_node_name",align:"center",show:!0,minWidth:200},{title:"当前节点待办人员",slot:"todo",align:"center",show:!0,minWidth:200},{title:"参与人",slot:"partcipant",align:"center",show:!0,minWidth:200},{title:"发起人",key:"starter",align:"center",show:!0,minWidth:150},{title:"发起人姓名",key:"starter_name",align:"center",show:!0,minWidth:120},{title:"发起时间",key:"start_time",align:"center",show:!0,minWidth:150},{title:"操作",align:"center",minWidth:180,fixed:"right",show:!0,slot:"action"}],loading:!1,tableData:[{}],tableSize:"default",tableFullscreen:!1,total:0,collapse:!1,params:{pageIndex:1,pageSize:10,college_id:"",grade:"",classId_Name:"",status:""},init:{page_index:1,page_size:10,total:0},pageKey:1}},created:function(){},mounted:function(){this.GetFlowTaskList()},methods:{GetFlowTaskList:function(){var t=Object(o["a"])(s.a.mark((function t(){var e,n;return s.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return this.loading=!0,e={page_index:this.init.page_index,page_size:this.init.page_size},t.next=4,l["x"](e);case 4:n=t.sent,this.init.total=n.response.data_count,this.tableData=n.response.data,this.loading=!1;case 8:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),add:function(){this.$refs.addEdit.add()},approvalLisFun:function(t){this.$router.push({name:"awaitDoneInformation",query:{runid:t.runid,form_name:t.form_name,flowInfo:"流程详细信息"}}),console.log("🚀🚀🚀,",t)},del:function(t){console.log("删除"),this.$Message.info("删除成功")},cancel:function(){this.$Message.info("You click cancel")},handleChangePage:function(t){this.init.page_index=t,this.GetFlowTaskList()},handleChangePageSize:function(t){this.init.page_size=t,this.GetFlowTaskList()}}},u=d,p=n("2877"),h=Object(p["a"])(u,i,a,!1,null,null,null);e["default"]=h.exports}}]);
\ No newline at end of file
......@@ -20,5 +20,10 @@ export const publicState = {
"2": '审批通过',
"3": '审批不通过',
"4": '驳回',
},
completeFlow: {
action_type: ['待办', '发送', '退会', '驳回', '结束', '取消', '退回发起人'],
color: ['default', 'success', 'warning', 'error', 'default', 'primary', 'volcano']
}
}
......@@ -33,8 +33,8 @@
{{ ['草稿', '运行中', '已结束'][row.status] }}
</template>
<template v-slot:action_type="{row}">
<Tag :color="['', 'success', 'warning', 'error', 'default', 'primary'][row.action_type]">
{{ ['', '发送', '退会', '驳回', '结束', '取消'][row.action_type] }}
<Tag :color="publicState.completeFlow.color[row.action_type]">
{{ publicState.completeFlow.action_type[row.action_type] }}
</Tag>
</template>
<template slot-scope="{ row }" slot="action">
......
......@@ -28,8 +28,8 @@
{{ ['草稿', '运行中', '已结束'][row.status] }}
</template>
<template v-slot:action_type="{row}">
<Tag :color="['', 'success', 'warning', 'error', 'default', 'primary'][row.action_type]">
{{ ['', '发送', '退会', '驳回', '结束', '取消'][row.action_type] }}
<Tag :color="publicState.completeFlow.color[row.action_type]">
{{ publicState.completeFlow.action_type[row.action_type] }}
</Tag>
</template>
<template slot-scope="{ row }" slot="action">
......@@ -127,9 +127,15 @@
<script>
import * as hook from '../../hook'
import * as api from '../../api/requestUtils'
import {publicState} from "@/configState";
export default {
name: 'list',
computed: {
publicState() {
return publicState
}
},
data() {
return {
......
......@@ -187,7 +187,7 @@ export default {
},
methods: {
flowAssembleFun(e) {
let href = this.$router.resolve({
this.$router.push({
path: `/${e.remark}Form`,
query: {
id: e.flowid,
......@@ -195,7 +195,7 @@ export default {
entrance: 'flow',
}
})
window.open(href.href, '_blank')
},
// 查询
async GetFlowDesignList() {
......
......@@ -28,8 +28,8 @@
{{ ['草稿', '运行中', '已结束'][row.status] }}
</template>
<template v-slot:action_type="{row}">
<Tag :color="['', 'success', 'warning', 'error', 'default', 'primary'][row.action_type]">
{{ ['', '发送', '退会', '驳回', '结束', '取消'][row.action_type] }}
<Tag :color="publicState.completeFlow.color[row.action_type]">
{{ publicState.completeFlow.action_type[row.action_type] }}
</Tag>
</template>
<template slot-scope="{ row }" slot="action">
......
Markdown 格式
0% or
您添加了 0 人 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册 或