(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1fb73ff0","chunk-1c0a05b5","chunk-404cbaac"],{"0831":function(t,e,n){"use strict";n("4ea9")},1538:function(t,e,n){"use strict";n.d(e,"g",(function(){return a})),n.d(e,"b",(function(){return o})),n.d(e,"f",(function(){return s})),n.d(e,"m",(function(){return i})),n.d(e,"n",(function(){return c})),n.d(e,"i",(function(){return l})),n.d(e,"h",(function(){return u})),n.d(e,"e",(function(){return d})),n.d(e,"j",(function(){return m})),n.d(e,"a",(function(){return f})),n.d(e,"l",(function(){return h})),n.d(e,"c",(function(){return b})),n.d(e,"d",(function(){return p})),n.d(e,"k",(function(){return g}));var r=n("b775");function a(t){return Object(r["b"])({url:"/flowable/definition/list",method:"get",params:t})}function o(t,e){return Object(r["b"])({url:"/flowable/definition/start/"+t,method:"post",data:e})}function s(t){return Object(r["b"])({url:"/flowable/task/processVariables/"+t,method:"get"})}function i(t){return Object(r["b"])({url:"/flowable/definition/updateState/edit",method:"post",params:t})}function c(t){return Object(r["b"])({url:"/flowable/definition/userList",method:"get",params:t})}function l(t){return Object(r["b"])({url:"/flowable/definition/roleList",method:"get",params:t})}function u(t){return Object(r["b"])({url:"/flowable/definition/readXml/"+t,method:"get"})}function d(t){return Object(r["b"])({url:"/flowable/task/flowViewer/"+t,method:"get"})}function m(t){return Object(r["b"])({url:"/flowable/definition/save",method:"post",data:t})}function f(t){return Object(r["b"])({url:"/system/deployment",method:"post",data:t})}function h(t){return Object(r["b"])({url:"/system/deployment/edit",method:"post",data:t})}function b(t){return Object(r["b"])({url:"/flowable/definition/delete/",method:"post",params:t})}function p(t){return Object(r["b"])({url:"/system/deployment/export",method:"get",params:t})}function g(){return Object(r["b"])({url:"/flowable/definition/selectOptionList",method:"get"})}},"38f7":function(t,e,n){},"4ea9":function(t,e,n){},"542c":function(t,e,n){},"5a61":function(t,e,n){"use strict";n.d(e,"i",(function(){return a})),n.d(e,"g",(function(){return o})),n.d(e,"a",(function(){return s})),n.d(e,"m",(function(){return i})),n.d(e,"d",(function(){return c})),n.d(e,"f",(function(){return l})),n.d(e,"k",(function(){return u})),n.d(e,"l",(function(){return d})),n.d(e,"e",(function(){return m})),n.d(e,"h",(function(){return f})),n.d(e,"j",(function(){return h})),n.d(e,"c",(function(){return b})),n.d(e,"b",(function(){return p}));var r=n("b775");function a(t){return Object(r["b"])({url:"/cms/cmsClass/list",method:"get",params:t})}function o(t){return Object(r["b"])({url:"/cms/cmsClass/"+t,method:"get"})}function s(t){return Object(r["b"])({url:"/cms/cmsClass",method:"post",data:t})}function i(t){return Object(r["b"])({url:"/cms/cmsClass/edit",method:"post",data:t})}function c(t){return Object(r["b"])({url:"/cms/cmsClass/"+t,method:"post"})}function l(t){return Object(r["b"])({url:"/cms/cmsClass/export",method:"get",params:t})}function u(t){return null!=t&&""!==t||(t="0"),Object(r["b"])({url:"/cms/cmsClass/listTree/"+t,method:"get"})}function d(t){return Object(r["b"])({url:"/cms/cmsClass/search",method:"get",params:t})}function m(t){return Object(r["b"])({url:"/cms/cmsClass/enable/edit",method:"post",data:t})}function f(t){return null!=t&&""!==t||(t="0"),Object(r["b"])({url:"/cms/cmsClass/allTree/"+t,method:"get"})}function h(t){return Object(r["b"])({url:"/cms/cmsClass/recycleList",method:"get",params:t})}function b(t){return Object(r["b"])({url:"/cms/cmsClass/restore",method:"post",data:t})}function p(t){return Object(r["b"])({url:"/cms/cmsClass/expurgate",method:"post",data:t})}},"5a92":function(t,e,n){"use strict";n.r(e);n("99af");var r=function(){var t=this,e=t._self._c;return e("div",[e("a-card",{staticStyle:{"margin-bottom":"10px"},attrs:{bordered:!1}},[e("div",{staticClass:"table-page-search-wrapper"},[e("a-form",{ref:"queryForm",attrs:{labelCol:t.labelCol,wrapperCol:t.wrapperCol}},[e("a-row",{attrs:{gutter:32}},[e("a-col",{attrs:{span:6}},[e("a-form-item",{attrs:{label:"接收时间",prop:"deployTime"}},[e("el-date-picker",{staticStyle:{width:"100%"},attrs:{clearable:"",size:"small",type:"date","value-format":"yyyy-MM-dd",placeholder:"选择时间"},model:{value:t.queryParams.createTime,callback:function(e){t.$set(t.queryParams,"createTime",e)},expression:"queryParams.createTime"}})],1)],1),e("a-col",[e("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"right"}},[e("a-button",{attrs:{type:"primary"},on:{click:t.handleQuery}},[e("a-icon",{attrs:{type:"search"}}),t._v("查询")],1),e("a-button",{staticStyle:{"margin-left":"8px"},on:{click:t.resetQuery}},[e("a-icon",{attrs:{type:"redo"}}),t._v("重置")],1)],1)])],1)],1)],1)]),e("a-card",{staticClass:"table-card",staticStyle:{padding:"15px"},attrs:{bordered:!1}},[e("advance-table",{attrs:{title:"待办任务",pagination:{current:t.queryParams.pageNum,pageSize:t.queryParams.pageSize,total:t.total,showSizeChanger:!0,showLessItems:!0,showQuickJumper:!0,showTotal:function(t,e){return"第 ".concat(e[0],"-").concat(e[1]," 条，总计 ").concat(t," 条")},onChange:t.changeSize,onShowSizeChange:t.onShowSizeChange},tableKey:"base-cmsArticle-index-table",rowKey:"id",size:"middle",columns:t.columns,"data-source":t.todoList,loading:t.loading,"format-conditions":!0,"row-selection":{selectedRowKeys:t.selectedRowKeys,onChange:t.onSelectChange}},on:{change:t.handleTableChange,refresh:t.getList},scopedSlots:t._u([{key:"operation",fn:function(n){n.text;var r=n.record;return e("span",{},[e("a",{on:{click:function(e){return t.handleProcess(r)}}},[t._v(" 处理 ")])])}}])})],1),t.arg?e("a-drawer",{attrs:{title:"流程处理",width:"70%","append-to-body":!1,"modal-append-to-body":!1,closable:!1,visible:t.arg},on:{close:t.onClose}},[e("model",{attrs:{obj:t.argData},on:{ok:function(e){t.arg=!1,t.open=!1,t.getList()}}})],1):t._e()],1)},a=[],o=(n("d81d"),n("d3b7"),n("e099")),s=n("72ff"),i=n("d6ea"),c=n("a18c"),l=n("5d9e"),u=n("5a61"),d={name:"Deploy",components:{model:i["default"],router:c["a"],AdvanceTable:l["a"]},data:function(){return{arg:!1,argData:{},loading:!0,ids:[],single:!0,multiple:!0,showSearch:!0,total:0,todoList:[],title:"",open:!1,labelCol:{span:6},wrapperCol:{span:18},selectedRowKeys:[],cmsClassTreeOptions:[],statusOptions:[],queryParams:{pageNum:1,pageSize:10,articleName:null,articleType:null,createTime:null,category:null},columns:[{title:"文章标题",dataIndex:"articleName",ellipsis:!0,align:"left",width:"15%"},{title:"文章栏目",dataIndex:"articleType",ellipsis:!0,align:"left",width:"15%"},{title:"文章发布日期",dataIndex:"articleSubmitTime",ellipsis:!0,align:"left",width:"15%"},{title:"任务发起人",dataIndex:"startUserName",ellipsis:!0,align:"left",width:"15%"},{title:"接收时间",dataIndex:"createTime",ellipsis:!0,align:"left",width:"180"},{title:"操作",dataIndex:"operation",align:"center",width:"15%",scopedSlots:{customRender:"operation"}}],form:{},rules:{}}},created:function(){var t=this;this.getTreeSelect(),this.getList(),this.getDicts("cms_status_type").then((function(e){t.statusOptions=e.data}))},methods:{onClose:function(){this.arg=!1},getList:function(){var t=this;this.loading=!0,Object(s["n"])(this.queryParams).then((function(e){t.todoList=e.data.list,t.total=e.data.total,t.loading=!1}))},handleProcess:function(t){this.argData={articleId:t.articleId,procInsId:t.procInsId,deployId:t.deployId,taskId:t.taskId,finished:!0},this.arg=!0},cancel:function(){this.open=!1,this.reset()},reset:function(){this.form={id:null,category:null,key:null,tenantId:null,deployTime:null,derivedFrom:null,derivedFromRoot:null,parentDeploymentId:null,engineVersion:null},this.resetForm("form")},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.queryParams={pageNum:1,pageSize:10,articleName:null,articleType:null,createTime:null},this.resetForm("queryForm"),this.handleQuery()},handleSelectionChange:function(t){this.ids=t.map((function(t){return t.id})),this.single=1!==t.length,this.multiple=!t.length},handleAdd:function(){this.reset(),this.open=!0,this.title="添加流程定义"},handleUpdate:function(t){var e=this;this.reset();var n=t.id||this.ids;Object(o["e"])(n).then((function(t){e.form=t.data,e.open=!0,e.title="修改流程定义"}))},handleDelete:function(t){var e=this,n=t.id||this.ids;this.$elConfirm('是否确认删除流程定义编号为"'+n+'"的数据项?',"警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return Object(o["b"])(n)})).then((function(){e.getList(),e.elMsgSuccess("删除成功")}))},handleExport:function(){var t=this,e=this.queryParams;this.$elConfirm("是否确认导出所有流程定义数据项?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return Object(o["d"])(e)})).then((function(e){t.download(e.msg)}))},changeSize:function(t,e){this.queryParams.pageNum=t,this.queryParams.pageSize=e,this.getList()},onShowSizeChange:function(t,e){this.queryParams.pageSize=e,this.getList()},handleTableChange:function(t,e,n){void 0!==n.field&&null!==n.field&&""!==n.field&&(this.queryParams.orderByColumn="a."+n.field,this.queryParams.isAsc=n.order),this.getList()},onSelectChange:function(t,e){this.selectedRowKeys=t,this.selectedRows=e,this.ids=this.selectedRows.map((function(t){return t.id})),this.single=1!==t.length,this.multiple=!t.length},getTreeSelect:function(){var t=this;Object(u["k"])("0").then((function(e){t.cmsClassTreeOptions=e.data}))},onLoadData:function(t){return new Promise((function(e){t.dataRef.children?e():Object(u["k"])(t.dataRef.id).then((function(n){t.dataRef.children=n.data,e()}))}))}}},m=d,f=n("2877"),h=Object(f["a"])(m,r,a,!1,null,null,null);e["default"]=h.exports},"6e55":function(t,e,n){"use strict";n.d(e,"d",(function(){return a})),n.d(e,"e",(function(){return o})),n.d(e,"g",(function(){return s})),n.d(e,"f",(function(){return i})),n.d(e,"a",(function(){return c})),n.d(e,"h",(function(){return l})),n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return d}));var r=n("b775");function a(t){return Object(r["b"])({url:"/flowable/task/finishedList",method:"get",params:t})}function o(t){return Object(r["b"])({url:"/flowable/task/flowRecord",method:"get",params:t})}function s(t){return Object(r["b"])({url:"/flowable/task/revokeProcess",method:"post",data:t})}function i(t){return Object(r["b"])({url:"/system/deployment/"+t,method:"get"})}function c(t){return Object(r["b"])({url:"/system/deployment",method:"post",data:t})}function l(t){return Object(r["b"])({url:"/system/deployment/edit",method:"post",data:t})}function u(t){return Object(r["b"])({url:"/flowable/task/delete/"+t,method:"post"})}function d(t){return Object(r["b"])({url:"/system/deployment/export",method:"get",params:t})}},"72ff":function(t,e,n){"use strict";n.d(e,"l",(function(){return a})),n.d(e,"i",(function(){return o})),n.d(e,"a",(function(){return s})),n.d(e,"x",(function(){return i})),n.d(e,"e",(function(){return c})),n.d(e,"g",(function(){return l})),n.d(e,"w",(function(){return u})),n.d(e,"d",(function(){return d})),n.d(e,"u",(function(){return m})),n.d(e,"c",(function(){return f})),n.d(e,"k",(function(){return h})),n.d(e,"b",(function(){return b})),n.d(e,"s",(function(){return p})),n.d(e,"q",(function(){return g})),n.d(e,"j",(function(){return y})),n.d(e,"t",(function(){return k})),n.d(e,"v",(function(){return v})),n.d(e,"n",(function(){return O})),n.d(e,"p",(function(){return j})),n.d(e,"o",(function(){return w})),n.d(e,"m",(function(){return _})),n.d(e,"r",(function(){return C})),n.d(e,"f",(function(){return F})),n.d(e,"h",(function(){return I}));var r=n("b775");function a(t){return Object(r["b"])({url:"/cms/cmsArticle/list",method:"get",params:t})}function o(t){return Object(r["b"])({url:"/cms/cmsArticle/"+t,method:"get"})}function s(t){return Object(r["b"])({url:"/cms/cmsArticle",method:"post",data:t})}function i(t){return Object(r["b"])({url:"/cms/cmsArticle/edit",method:"post",data:t})}function c(t){return Object(r["b"])({url:"/cms/cmsArticle/"+t,method:"post"})}function l(t){return Object(r["b"])({url:"/cms/cmsArticle/export",method:"get",params:t})}function u(t){return Object(r["b"])({url:"/cms/cmsArticle/top/"+t,method:"get"})}function d(t){return Object(r["b"])({url:"/cms/cmsArticle/cancelTop/"+t,method:"get"})}function m(t){return Object(r["b"])({url:"/cms/cmsArticle/slide/"+t,method:"get"})}function f(t){return Object(r["b"])({url:"/cms/cmsArticle/cancelSlide/"+t,method:"get"})}function h(t){return Object(r["b"])({url:"/cms/cmsArticle/hot/"+t,method:"get"})}function b(t){return Object(r["b"])({url:"/cms/cmsArticle/cancelHot/"+t,method:"get"})}function p(t){return Object(r["b"])({url:"/cms/cmsArticle/release/"+t,method:"get"})}function g(t){return Object(r["b"])({url:"/cms/cmsArticle/offline/"+t,method:"get"})}function y(t){return Object(r["b"])({url:"/cms/cmsArticle/getArticleClass/"+t,method:"get"})}function k(t){return Object(r["b"])({url:"/cms/cmsArticle/saveArticleClass",method:"post",data:t})}function v(t){return Object(r["b"])({url:"/cms/cmsArticle/submit/"+t,method:"get"})}function O(t){return Object(r["b"])({url:"/cms/cmsArticle/todoList",method:"get",params:t})}function j(t){return Object(r["b"])({url:"/cms/cmsArticle/migrationClass",method:"post",data:t})}function w(t){return Object(r["b"])({url:"/cms/cmsArticle/migrationArticle",method:"post",data:t})}function _(t){return Object(r["b"])({url:"/cms/cmsArticle/recycleList",method:"get",params:t})}function C(t){return Object(r["b"])({url:"/cms/cmsArticle/recover/"+t,method:"get"})}function F(t){return Object(r["b"])({url:"/cms/cmsArticle/completelyRemove/"+t,method:"post"})}function I(t){return Object(r["b"])({url:"/cms/cmsArticle/auditFlow/"+t,method:"get"})}},b5e5:function(t,e,n){"use strict";n("38f7")},c0c7:function(t,e,n){"use strict";n.d(e,"l",(function(){return o})),n.d(e,"h",(function(){return s})),n.d(e,"a",(function(){return i})),n.d(e,"p",(function(){return c})),n.d(e,"e",(function(){return l})),n.d(e,"n",(function(){return u})),n.d(e,"f",(function(){return d})),n.d(e,"m",(function(){return m})),n.d(e,"j",(function(){return f})),n.d(e,"q",(function(){return h})),n.d(e,"r",(function(){return b})),n.d(e,"s",(function(){return p})),n.d(e,"k",(function(){return g})),n.d(e,"d",(function(){return y})),n.d(e,"b",(function(){return k})),n.d(e,"c",(function(){return v})),n.d(e,"i",(function(){return O})),n.d(e,"g",(function(){return j})),n.d(e,"o",(function(){return w}));var r=n("b775"),a=n("028d");function o(t){return Object(r["b"])({url:"/system/user/list",method:"get",params:t})}function s(t){return Object(r["b"])({url:"/system/user/"+Object(a["i"])(t),method:"get"})}function i(t){return Object(r["b"])({url:"/system/user",method:"post",data:t})}function c(t){return Object(r["b"])({url:"/system/user/edit",method:"post",data:t})}function l(t){return Object(r["b"])({url:"/system/user/"+t,method:"post"})}function u(t){return Object(r["b"])({url:"/system/user/restart/"+t,method:"post"})}function d(t){return Object(r["b"])({url:"/system/user/export",method:"get",params:t})}function m(t,e){var n={id:t,password:e};return Object(r["b"])({url:"/system/user/resetPwd/edit",method:"post",data:n})}function f(){return Object(r["b"])({url:"/system/user/profile",method:"get"})}function h(t){return Object(r["b"])({url:"/system/user/profile",method:"post",data:t})}function b(t,e){var n={oldPassword:t,newPassword:e};return Object(r["b"])({url:"/system/user/profile/updatePwd/edit",method:"post",params:n})}function p(t){return Object(r["b"])({url:"/system/user/profile/avatar",method:"post",data:t})}function g(){return Object(r["b"])({url:"/system/user/importTemplate",method:"get"})}function y(t){return Object(r["b"])({url:"/system/user/checkUserNameUnique",method:"get",params:t})}function k(t){return Object(r["b"])({url:"/system/user/checkEmailUnique",method:"get",params:t})}function v(t){return Object(r["b"])({url:"/system/user/checkPhoneUnique",method:"get",params:t})}function O(t){return Object(r["b"])({url:"/system/user/getUserInfoByIds",method:"post",data:t})}function j(t){return Object(r["b"])({url:"/system/user/roleUserList",method:"get",params:t})}function w(t){return Object(r["b"])({url:"/system/user/addRoleUser",method:"post",data:t})}},d6ea:function(t,e,n){"use strict";n.r(e);n("b0c0");var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"app-container"},[e("el-button",{staticStyle:{float:"right","margin-bottom":"5px","margin-top":"-18px"},attrs:{type:"primary"},on:{click:t.goBack}},[t._v("返回")]),e("el-card",{staticClass:"box-card"},[e("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[e("span",{staticClass:"el-icon-document"},[t._v("基础信息")]),e("div",[e("div",[t._v("文章标题:       "),e("span",[t._v(t._s(t.articleQuery.title||"-/-"))])]),e("div",[t._v("所属栏目:       "),e("span",[t._v(t._s(t.articleQuery.className||"-/-"))])]),e("div",[t._v("文章来源:       "),e("span",[t._v(t._s(t.articleQuery.source||"-/-"))])]),e("div",[t._v("作       者:       "),e("span",[t._v(t._s(t.articleQuery.author||"-/-"))])]),e("div",[t._v("内       容:       "),e("div",{domProps:{innerHTML:t._s(t.articleQuery.content)}})])])]),t.variableOpen?e("el-col",{attrs:{span:16,offset:6}},[e("div",[e("parser",{key:(new Date).getTime(),attrs:{"form-conf":t.variablesData}})],1),(t.finished=!0)?e("div",{staticStyle:{"margin-left":"10%","margin-bottom":"20px","font-size":"14px"}},[e("el-button",{attrs:{icon:"el-icon-edit-outline",type:"success",size:"mini"},on:{click:t.handleComplete}},[t._v("审批")])],1):t._e()]):t._e(),t.formConfOpen&&t.obj.isNew?e("el-col",{attrs:{span:16,offset:4}},[e("div",{staticClass:"test-form"},[e("parser",{key:(new Date).getTime(),ref:"parser",attrs:{"form-conf":t.formConf},on:{submit:t.submitForm,getData:t.getData}})],1)]):t._e()],1),t.flowRecordList?e("el-card",{staticClass:"box-card"},[e("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[e("span",{staticClass:"el-icon-notebook-1"},[t._v("审批记录")])]),e("el-col",{attrs:{span:16,offset:4}},[e("div",{staticClass:"block"},[e("el-timeline",t._l(t.flowRecordList,(function(n,r){return e("el-timeline-item",{key:r,attrs:{icon:t.setIcon(n.finishTime),color:t.setColor(n.finishTime)}},[e("p",{staticStyle:{"font-weight":"700"}},[t._v(t._s(n.taskName))]),e("el-card",{attrs:{"body-style":{padding:"10px"}}},[n.assigneeName?e("label",{staticStyle:{"font-weight":"normal","margin-right":"30px"}},[t._v("实际办理： "+t._s(n.assigneeName)+" "),e("el-tag",{attrs:{type:"info",size:"mini"}},[t._v(t._s(n.deptName))])],1):t._e(),n.candidate?e("label",{staticStyle:{"font-weight":"normal","margin-right":"30px"}},[t._v("候选办理： "+t._s(n.candidate))]):t._e(),e("label",{staticStyle:{"font-weight":"normal"}},[t._v("接收时间： ")]),e("label",{staticStyle:{color:"#8a909c","font-weight":"normal"}},[t._v(t._s(n.createTime))]),n.finishTime?e("label",{staticStyle:{"margin-left":"30px","font-weight":"normal"}},[t._v("办结时间： ")]):t._e(),e("label",{staticStyle:{color:"#8a909c","font-weight":"normal"}},[t._v(t._s(n.finishTime))]),n.duration?e("label",{staticStyle:{"margin-left":"30px","font-weight":"normal"}},[t._v("耗时： ")]):t._e(),e("label",{staticStyle:{color:"#8a909c","font-weight":"normal"}},[t._v(t._s(n.duration))]),n.comment?e("p",["1"===n.comment.type?e("el-tag",{attrs:{type:"success"}},[t._v(" "+t._s(n.comment.comment))]):t._e(),"2"===n.comment.type?e("el-tag",{attrs:{type:"warning"}},[t._v(" "+t._s(n.comment.comment))]):t._e(),"3"===n.comment.type?e("el-tag",{attrs:{type:"danger"}},[t._v(" "+t._s(n.comment.comment))]):t._e()],1):t._e()])],1)})),1)],1)])],1):t._e(),e("el-card",{staticClass:"box-card"},[e("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[e("span",{staticClass:"el-icon-picture-outline"},[t._v("流程图")])]),e("flow",{staticStyle:{"margin-top":"-10rem","margin-bottom":"-8rem"},attrs:{xmlData:t.xmlData,taskData:t.taskList}})],1),e("el-dialog",{attrs:{title:t.completeTitle,visible:t.completeOpen,width:"40%","append-to-body":""},on:{"update:visible":function(e){t.completeOpen=e}}},[e("el-row",[e("el-form",{attrs:{"label-width":"80px"}},[e("el-form-item",{attrs:{label:"处理结果",prop:"audit",rules:[{required:!0,message:"请选择处理结果",trigger:"blur"}]}},[e("el-radio-group",{on:{change:t.auditRadioChange},model:{value:t.audit,callback:function(e){t.audit=e},expression:"audit"}},[e("el-radio-button",{attrs:{label:"0"}},[t._v("通过")]),e("el-radio-button",{attrs:{label:"1"}},[t._v("不通过")])],1)],1),e("el-form-item",{attrs:{label:"处理意见",prop:"comment"}},[e("el-input",{staticStyle:{width:"50%"},attrs:{type:"textarea",placeholder:"请输入意见"},model:{value:t.taskForm.comment,callback:function(e){t.$set(t.taskForm,"comment",e)},expression:"taskForm.comment"}})],1)],1)],1),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){t.completeOpen=!1}}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:t.taskComplete}},[t._v("确 定")])],1)],1),e("el-dialog",{attrs:{title:t.returnTitle,visible:t.returnOpen,width:"40%","append-to-body":""},on:{"update:visible":function(e){t.returnOpen=e}}},[e("el-form",{ref:"taskForm",attrs:{model:t.taskForm,"label-width":"80px"}},[e("el-form-item",{attrs:{label:"退回节点",prop:"targetKey"}},[e("el-radio-group",{model:{value:t.taskForm.targetKey,callback:function(e){t.$set(t.taskForm,"targetKey",e)},expression:"taskForm.targetKey"}},t._l(t.returnTaskList,(function(n){return e("el-radio-button",{key:n.id,attrs:{label:n.id}},[t._v(t._s(n.name))])})),1)],1),e("el-form-item",{attrs:{label:"退回意见",prop:"comment",rules:[{required:!0,message:"请输入意见",trigger:"blur"}]}},[e("el-input",{staticStyle:{width:"50%"},attrs:{type:"textarea",placeholder:"请输入意见"},model:{value:t.taskForm.comment,callback:function(e){t.$set(t.taskForm,"comment",e)},expression:"taskForm.comment"}})],1)],1),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){t.returnOpen=!1}}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:t.taskReturn}},[t._v("确 定")])],1)],1),e("el-dialog",{attrs:{title:t.rejectTitle,visible:t.rejectOpen,width:"40%","append-to-body":""},on:{"update:visible":function(e){t.rejectOpen=e}}},[e("el-form",{ref:"taskForm",attrs:{model:t.taskForm,"label-width":"80px"}},[e("el-form-item",{attrs:{label:"驳回意见",prop:"comment",rules:[{required:!0,message:"请输入意见",trigger:"blur"}]}},[e("el-input",{staticStyle:{width:"50%"},attrs:{type:"textarea",placeholder:"请输入意见"},model:{value:t.taskForm.comment,callback:function(e){t.$set(t.taskForm,"comment",e)},expression:"taskForm.comment"}})],1)],1),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){t.rejectOpen=!1}}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:t.taskReject}},[t._v("确 定")])],1)],1)],1)},a=[],o=(n("a15b"),n("d81d"),n("a434"),n("d3b7"),n("159b"),n("ddb0"),n("6e55")),s=n("1538"),i=n("e099"),c=n("589b"),l=(n("542c"),n("c0c7")),u=n("72ff"),d={name:"FlowAuditIndex",components:{flow:c["default"]},props:{obj:{type:Object}},data:function(){return{xmlData:"",taskList:[],deptName:void 0,deptOptions:[],userList:null,defaultProps:{children:"children",label:"label"},queryParams:{deptId:void 0},loading:!1,flowRecordList:[],formConfCopy:{},src:null,rules:{},variablesForm:{},taskForm:{returnTaskShow:!1,delegateTaskShow:!1,defaultTaskShow:!0,sendUserShow:!1,multiple:!1,comment:"审核通过",procInsId:"",instanceId:"",deployId:"",taskId:"",procDefId:"",vars:"",targetKey:""},userDataList:[],assignee:null,formConf:{},formConfOpen:!1,variables:[],variablesData:{},variableOpen:!1,returnTaskList:[],finished:"false",completeTitle:null,completeOpen:!1,returnTitle:null,returnOpen:!1,rejectOpen:!1,rejectTitle:null,userData:[],articleId:"",articleQuery:[],audit:"0",gutterValue:20}},created:function(){this.articleId=this.obj.articleId,this.getArticle(),this.taskForm.deployId=this.obj.deployId,this.taskForm.taskId=this.obj.taskId,this.taskForm.procInsId=this.obj.procInsId,this.taskForm.instanceId=this.obj.procInsId,this.taskForm.procDefId=this.obj.procDefId,this.getFlowViewer(this.taskForm.procInsId),this.getModelDetail(this.taskForm.deployId),this.taskForm.taskId&&(this.processVariables(this.taskForm.taskId),this.getNextFlowNode(this.taskForm.taskId)),this.getFlowRecordList(this.taskForm.procInsId,this.taskForm.deployId),this.finished=this.obj.finished},mounted:function(){},methods:{reset:function(){this.audit=this.$options.data().audit},getList:function(){var t=this;Object(l["l"])(this.addDateRange(this.queryParams,this.dateRange)).then((function(e){t.userList=e.rows,t.total=e.total}))},filterNode:function(t,e){return!t||-1!==e.label.indexOf(t)},handleNodeClick:function(t){this.queryParams.deptId=t.id,this.getList()},getModelDetail:function(t){var e=this;Object(s["h"])(t).then((function(t){e.xmlData=t.data}))},getFlowViewer:function(t){var e=this;Object(s["e"])(t).then((function(t){e.taskList=t.data}))},setIcon:function(t){return t?"el-icon-check":"el-icon-time"},setColor:function(t){return t?"#2bc418":"#b3bdbb"},handleSelectionChange:function(t){this.userData=t;var e=t.map((function(t){return t.userId}))[0];this.taskForm.values=e instanceof Array?{approval:e.join(",")}:{approval:e}},handleClose:function(t){this.userData.splice(this.userData.indexOf(t),1)},handleCheckChange:function(t){this.taskForm.values=t instanceof Array?{approval:t.join(",")}:{approval:t}},getFlowRecordList:function(t,e){var n=this,r={procInsId:t,deployId:e};Object(o["e"])(r).then((function(t){if(n.flowRecordList=t.data.flowList,n.flowRecordList.length>0){var e=n.flowRecordList[n.flowRecordList.length-1].formDta.variables;n.variablesData=e||{},n.variableOpen=!0}t.data.formData&&(t.data.formData&&(n.formConf=t.data.formData),n.formConfOpen=!0)})).catch((function(t){n.goBack()}))},fillFormData:function(t,e){t.fields.forEach((function(t){var n=e[t.__vModel__];n&&(t.__config__.defaultValue=n)}))},processVariables:function(t){var e=this;t&&Object(s["f"])(t).then((function(t){e.variablesData=t.data.variables||{},e.variableOpen=!0}))},getNextFlowNode:function(t){var e=this,n={taskId:t};Object(i["f"])(n).then((function(t){var n=t.data;n&&("assignee"===n.type?e.userDataList=t.data.userList:"candidateUsers"===n.type?(e.userDataList=t.data.userList,e.taskForm.multiple=!0):"candidateGroups"===n.type?(t.data.roleList.forEach((function(t){t.userId=t.roleId,t.nickName=t.roleName})),e.userDataList=t.data.roleList,e.taskForm.multiple=!1):"multiInstance"===n.type&&(e.userDataList=t.data.userList,e.taskForm.multiple=!0),e.taskForm.sendUserShow=!0)}))},handleComplete:function(){this.reset(),this.completeOpen=!0,this.completeTitle="审批流程"},taskComplete:function(){var t=this;this.taskForm.comment?(this.taskForm.values={approve:this.audit||"0"},this.showLoading(),Object(i["a"])(this.taskForm).then((function(e){t.elMsgSuccess("操作成功"),t.hideLoading(),t.goBack()})).catch((function(e){t.hideLoading()}))):this.elMsgError("请输入审批意见")},handleDelegate:function(){this.taskForm.delegateTaskShow=!0},handleAssign:function(){},goBack:function(){this.$emit("ok")},getData:function(t){if(t){var e=[];t.fields.forEach((function(t){var n={};if(n.label=t.__config__.label,t.__config__.defaultValue instanceof Array){var r=[];t.__config__.defaultValue.forEach((function(t){r.push(t)})),n.val=r}else n.val=t.__config__.defaultValue;e.push(n)})),this.variables=e}},submitForm:function(t){var e=this;if(t){var n=t.valData,r=t.formData;r.disabled=!0,r.formBtns=!1,this.taskForm.procDefId&&(n.variables=r,this.showLoading(),Object(s["b"])(this.taskForm.procDefId,n).then((function(t){e.elMsgSuccess(t.msg),e.hideLoading(),e.goBack()})).catch((function(t){e.elMsgSuccess(t.msg),e.hideLoading()})))}},handleReject:function(){this.rejectOpen=!0,this.rejectTitle="驳回流程"},taskReject:function(){var t=this;this.$refs["taskForm"].validate((function(e){e&&(t.showLoading(),Object(i["g"])(t.taskForm).then((function(e){t.hideLoading(),t.elMsgSuccess(e.msg),t.goBack()})))}))},handleReturn:function(){var t=this;this.returnOpen=!0,this.returnTitle="退回流程",Object(i["h"])(this.taskForm).then((function(e){t.returnTaskList=e.data,t.taskForm.values=null}))},taskReturn:function(){var t=this;this.$refs["taskForm"].validate((function(e){e&&Object(i["i"])(t.taskForm).then((function(e){t.elMsgSuccess(e.msg),t.goBack()}))}))},cancelTask:function(){this.taskForm.returnTaskShow=!1,this.taskForm.defaultTaskShow=!0,this.taskForm.sendUserShow=!0,this.returnTaskList=[]},submitDeleteTask:function(){var t=this;this.$refs["taskForm"].validate((function(e){e&&Object(i["c"])(t.taskForm).then((function(e){t.elMsgSuccess(e.msg),t.goBack()}))}))},cancelDelegateTask:function(){this.taskForm.delegateTaskShow=!1,this.taskForm.defaultTaskShow=!0,this.taskForm.sendUserShow=!0,this.returnTaskList=[]},getArticle:function(){var t=this;Object(u["i"])(this.articleId).then((function(e){t.articleQuery=e.data}))},auditRadioChange:function(t){var e=void 0;"0"===t?e="审核通过":"1"===t&&(e="审核不通过"),this.taskForm.comment=e}}},m=d,f=(n("0831"),n("b5e5"),n("2877")),h=Object(f["a"])(m,r,a,!1,null,"638a5c71",null);e["default"]=h.exports},e099:function(t,e,n){"use strict";n.d(e,"j",(function(){return a})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"i",(function(){return i})),n.d(e,"g",(function(){return c})),n.d(e,"h",(function(){return l})),n.d(e,"f",(function(){return u})),n.d(e,"e",(function(){return d})),n.d(e,"b",(function(){return m})),n.d(e,"d",(function(){return f}));var r=n("b775");function a(t){return Object(r["b"])({url:"/flowable/task/todoList",method:"get",params:t})}function o(t){return Object(r["b"])({url:"/flowable/task/complete",method:"post",data:t})}function s(t){return Object(r["b"])({url:"/flowable/task/delegate",method:"post",data:t})}function i(t){return Object(r["b"])({url:"/flowable/task/return",method:"post",data:t})}function c(t){return Object(r["b"])({url:"/flowable/task/reject",method:"post",data:t})}function l(t){return Object(r["b"])({url:"/flowable/task/returnList",method:"post",data:t})}function u(t){return Object(r["b"])({url:"/flowable/task/nextFlowNode",method:"post",data:t})}function d(t){return Object(r["b"])({url:"/system/deployment/"+t,method:"get"})}function m(t){return Object(r["b"])({url:"/system/deployment/"+t,method:"post"})}function f(t){return Object(r["b"])({url:"/system/deployment/export",method:"get",params:t})}}}]);