You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1 lines
7.5 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0b385b"],{2975:function(e,t,n){"use strict";n.r(t);var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-container"},[n("div",{directives:[{name:"show",rawName:"v-show",value:1==e.viewState,expression:" viewState == 1 "}]},[n("el-menu",{staticClass:"el-menu-demo",attrs:{"default-active":e.activeIndex,mode:"horizontal"}},[n("el-menu-item",{staticStyle:{"margin-left":"0","text-align":"center","background-color":"#028ac8!important",color:"#fff"},attrs:{index:"1"}},[e._v(" 流程定义 ")]),n("div",{staticClass:"new_",on:{click:e.handleAdd}},[e._v("新增")]),n("div",{staticClass:"new_out",on:{click:e.handleExport}})],1),n("div",{staticClass:"container"},[n("div",{staticClass:"tab-header"},[n("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,inline:!0,"label-width":"68px"}},[n("el-form-item",{attrs:{label:"表单名称",prop:"formName"}},[n("el-input",{attrs:{placeholder:"请输入表单名称",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.formName,callback:function(t){e.$set(e.queryParams,"formName",t)},expression:"queryParams.formName"}})],1),n("el-form-item",[n("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),n("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1)],1)]),n("right-toolbar",{attrs:{showSearch:e.showSearch},on:{"update:showSearch":function(t){e.showSearch=t},"update:show-search":function(t){e.showSearch=t},queryTable:e.getList}}),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{data:e.formList},on:{"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),n("el-table-column",{attrs:{label:"表单主键",align:"center",prop:"formId"}}),n("el-table-column",{attrs:{label:"表单名称",align:"center",prop:"formName"}}),n("el-table-column",{attrs:{label:"备注",align:"center",prop:"remark"}}),n("el-table-column",{attrs:{label:"操作",align:"center","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-view"},on:{click:function(n){return e.handleDetail(t.row)}}},[e._v("详情 ")]),n("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-edit"},on:{click:function(n){return e.handleUpdate(t.row)}}},[e._v("修改 ")]),n("el-button",{attrs:{size:"mini",type:"text",icon:"el-icon-delete"},on:{click:function(n){return e.handleDelete(t.row)}}},[e._v("删除 ")])]}}])})],1),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}}),n("el-dialog",{attrs:{title:e.title,visible:e.open,width:"500px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[n("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"80px"}},[n("el-form-item",{attrs:{label:"表单名称",prop:"formName"}},[n("el-input",{attrs:{placeholder:"请输入表单名称"},model:{value:e.form.formName,callback:function(t){e.$set(e.form,"formName",t)},expression:"form.formName"}})],1),n("el-form-item",{attrs:{label:"表单内容"}},[n("editor",{attrs:{"min-height":192},model:{value:e.form.formContent,callback:function(t){e.$set(e.form,"formContent",t)},expression:"form.formContent"}})],1),n("el-form-item",{attrs:{label:"备注",prop:"remark"}},[n("el-input",{attrs:{placeholder:"请输入备注"},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1)],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确 定")]),n("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1),n("el-dialog",{attrs:{title:e.formTitle,visible:e.formConfOpen,width:"60%","append-to-body":""},on:{"update:visible":function(t){e.formConfOpen=t}}},[n("div",{staticClass:"test-form"},[n("parser",{key:(new Date).getTime(),attrs:{"form-conf":e.formConf}})],1)])],1),n("form-add",{directives:[{name:"show",rawName:"v-show",value:2==e.viewState,expression:" viewState == 2"}]})],1)},r=[],a=n("b775");function i(e){return Object(a["a"])({url:"/v1/flowable/form/list",method:"post",data:e})}function l(e){return Object(a["a"])({url:"/v1/flowable/form/add",method:"post",data:e,headers:{"Content-Type":"application/json",token:1}})}function s(e){return Object(a["a"])({url:"/v1/flowable/form",method:"put",data:e})}function m(e){return Object(a["a"])({url:"/v1/flowable/form/"+e,method:"delete"})}function c(e){return Object(a["a"])({url:"/v1/flowable/form/export",method:"get",params:e})}var u=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div")},f=[],d={name:"formAdd"},h=d,p=n("2877"),v=Object(p["a"])(h,u,f,!1,null,"376c7a86",null),b=v.exports,w={name:"form",components:{Editor:Editor,formAdd:b},data:function(){return{activeIndex:"1",viewState:1,loading:!0,ids:[],single:!0,multiple:!0,showSearch:!0,total:0,formList:[],title:"",formConf:{},formConfOpen:!1,formTitle:"",open:!1,queryParams:{size:10,total:0,current:1,params:{formName:null,formContent:null}},form:{},rules:{}}},created:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,i(this.queryParams).then((function(t){e.formList=t.data.records,e.total=t.data.total,e.loading=!1}))},cancel:function(){this.open=!1,this.reset()},reset:function(){this.form={formId:null,formName:null,formContent:null,createTime:null,updateTime:null,createBy:null,updateBy:null,remark:null},this.resetForm("form")},handleQuery:function(){this.queryParams.pageNum=1,this.getList()},resetQuery:function(){this.resetForm("queryForm"),this.handleQuery()},handleSelectionChange:function(e){this.ids=e.map((function(e){return e.formId})),this.single=1!==e.length,this.multiple=!e.length},handleDetail:function(e){this.formConfOpen=!0,this.formTitle="流程表单配置详细",this.formConf=JSON.parse(e.formContent)},handleAdd:function(){this.$router.push({path:"/tool/build/index",query:{formId:null}})},handleUpdate:function(e){this.$router.push({path:"/tool/build/index",query:{formId:e.formId}})},submitForm:function(){var e=this;this.$refs["form"].validate((function(t){t&&(null!=e.form.formId?s(e.form).then((function(t){e.msgSuccess("修改成功"),e.open=!1,e.getList()})):l(e.form).then((function(t){e.msgSuccess("新增成功"),e.open=!1,e.getList()})))}))},handleDelete:function(e){var t=this,n=e.formId||this.ids;this.$confirm('是否确认删除流程表单编号为"'+n+'"的数据项?',"警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return m(n)})).then((function(){t.getList(),t.msgSuccess("删除成功")}))},handleExport:function(){var e=this,t=this.queryParams;this.$confirm("是否确认导出所有流程表单数据项?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return c(t)})).then((function(t){e.download(t.msg)}))}}},g=w,y=Object(p["a"])(g,o,r,!1,null,"7e691a4a",null);t["default"]=y.exports}}]);