ludc
2024-12-30 9c0f8e3576aecba48aa00bd4347e6dae58ceb2ae
1
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4f5f2367","chunk-d7823aa8","chunk-2d22214e","chunk-2d21802d","chunk-2d214028"],{"1fef":function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t._self._c;return e("div",[e("el-row",t._l(t.homeData,(function(n){return e("el-col",{attrs:{span:n.span,xs:24}},[e(n.component,{key:n.component,tag:"component",attrs:{height:t.height*n.height,title:n.title,icon:n.icon}})],1)})),1)],1)},r=[],a=n("cca9"),c=n("c8bd"),i=n("aeb0"),s={name:"workIndex",components:{UndoTaskPortlet:a["default"],taskPortlet:c["default"],test:i["default"]},data:function(){return{height:document.body.clientHeight-115,homeData:[{component:"UndoTaskPortlet",height:.4,span:16},{component:"taskPortlet",height:.3,span:5},{component:"test",height:.6,span:12}]}},created:function(){this.initData()},methods:{initData:function(){}}},l=s,u=n("2877"),p=Object(u["a"])(l,o,r,!1,null,"bcabf79c",null);e["default"]=p.exports},"4e3c":function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t._self._c;return e("div",[e(t.showComponent,{tag:"component"})],1)},r=[],a=(n("8e6e"),n("ac6a"),n("456d"),n("6762"),n("2fdb"),n("ade3")),c=n("5880"),i=n("0ca1"),s=n("1fef");function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){Object(a["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var p={name:"wel",components:{adminIndex:i["default"],workIndex:s["default"]},data:function(){return{showComponent:null}},computed:u({},Object(c["mapGetters"])(["userInfo"])),watch:{"userInfo.userId":function(){this.userInfo.userId.includes("admin")?this.showComponent=i["default"]:this.showComponent=s["default"]}},created:function(){this.userInfo.userId.includes("admin")?this.showComponent=i["default"]:this.showComponent=s["default"]},methods:{}},d=p,f=(n("8571"),n("2877")),h=Object(f["a"])(d,o,r,!1,null,null,null);e["default"]=h.exports},8571:function(t,e,n){"use strict";n("feec")},aeb0:function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t._self._c;return e("basic-container",{style:"height:"+t.height+"px",attrs:{title:"首页组件"}},[t._v("\n  首页组件\n")])},r=[],a=(n("c5f6"),{name:"test",props:{height:{type:Number},title:{type:String},icon:{type:String}}}),c=a,i=n("2877"),s=Object(i["a"])(c,o,r,!1,null,"1d467b1c",null);e["default"]=s.exports},c8bd:function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t._self._c;return e("basic-container",{style:"height:"+t.height+"px",attrs:{title:"待办事项"}},[t._v("\n  待办\n")])},r=[],a=(n("c5f6"),{name:"taskPortlet",props:{height:{type:Number},title:{type:String},icon:{type:String}}}),c=a,i=n("2877"),s=Object(i["a"])(c,o,r,!1,null,"cc5c85f0",null);e["default"]=s.exports},cca9:function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t._self._c;return e("basic-container",{style:"height:"+t.height+"px",attrs:{title:"待办流程任务"}},[e("avue-crud",{ref:"crud",attrs:{data:t.todoData,option:t.todoOption,page:t.page,"table-loading":t.loading},on:{"update:page":function(e){t.page=e},"on-load":t.onLoad,"cell-click":t.cellHandle},scopedSlots:t._u([{key:"menu",fn:function(n){var o=n.size,r=n.row,a=n.index;return[e("el-button",{attrs:{size:o,icon:"el-icon-check",type:"text"},on:{click:function(e){return t.gotodo(r,a)}}},[t._v("执行\n      ")])]}}])})],1)},r=[],a=(n("8e6e"),n("ac6a"),n("456d"),n("ade3"));n("c5f6");function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){Object(a["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var s={name:"UndoTaskPortlet",props:{height:{type:Number},title:{type:String},icon:{type:String}},data:function(){return{loading:!1,page:{pageSize:10,currentPage:1,total:0},todoData:[],todoOption:{height:"auto",addBtn:!1,header:!1,align:"center",index:!0,menuWidth:80,editBtn:!1,delBtn:!1,border:!0,column:[{label:"任务名称",prop:"taskName",sortable:!0,headerAlign:"center",align:"left",html:!0,width:300,overHidden:!0,formatter:function(t){return'<a name="processname" href="javascript:;" style="color: #66b1ff;">'+t.variables.processName+"-"+t.taskName+"</a>"}},{label:"上一步处理时间",sortable:!0,width:150,prop:"createTime"},{label:"上一步操作人",sortable:!0,width:120,prop:"historyActivityAssigneName"},{label:"流程描述",prop:"processDesc",overHidden:!0,formatter:function(t){return t.variables.processDesc}},{label:"所属流程模板",sortable:!0,overHidden:!0,prop:"categoryName"}]}}},created:function(){},methods:{onLoad:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(i({},this.query),{},{category:e.category?flowCategory(e.category):null})},cellHandle:function(t,e,n,o){"taskName"==e.property&&this.gotodo(t)},gotodo:function(t,e){this.$router.push({path:"/work/process/".concat(flowRoute(this.flowRoutes,t.category),"/handle/").concat(t.taskId,"/").concat(t.processInstanceId,"/").concat(t.businessId)})}}},l=s,u=n("2877"),p=Object(u["a"])(l,o,r,!1,null,"6f4d4a2e",null);e["default"]=p.exports},feec:function(t,e,n){}}]);