(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6f2ade38","chunk-3e234d3e","chunk-0a32d250","chunk-22360fa2"],{1960:function(e,t,a){"use strict";a("2205")},2205:function(e,t,a){},5638:function(e,t,a){"use strict";a.r(t);a("b64b");var r=a("2dd7"),o=a("ae95");t["default"]={name:"FormForm",props:{statusOptions:{type:Array,required:!1},classTypeOptions:{type:Array,required:!1},renewalPeriodOptions:{type:Array,required:!1},yesNoOptions:{type:Array,required:!1}},components:{AntModal:r["a"]},data:function(){return{open:!1,closeDialog:!0,disabled:!1,formTitle:"新增表单",form:{formId:null,formName:null,formContent:null,remark:null},rules:{formName:[{required:!0,message:"表单名称不能为空",trigger:"blur"}]}}},filters:{},computed:{},watch:{},mounted:function(){},methods:{onClose:function(){this.open=!1,this.reset(),this.$emit("close")},cancel:function(){this.open=!1,this.reset(),this.$emit("close")},reset:function(){this.form={formId:null,formName:null,formContent:null,remark:null}},handleAdd:function(){this.reset(),this.open=!0,this.formTitle="新增表单"},handleUpdate:function(e){var t=this;this.reset(),this.open=!0,this.formTitle="修改表单";var a=e.formId;Object(o["d"])(a).then((function(e){200==e.code&&(t.form=e.data)}))},submitForm:function(e){var t=this,a=this;this.closeDialog=e,this.disabled=!0,this.$refs.form.validate((function(e){if(!e)return t.disabled=!1,!1;var r=JSON.parse(JSON.stringify(t.form));null!=t.form.formId?Object(o["f"])(r).then((function(e){a.$message.success("修改成功",3),a.open=!1,a.$emit("ok"),a.$emit("close"),a.disabled=!1})).catch((function(e){return a.disabled=!1,!1})):Object(o["a"])(r).then((function(e){a.$message.success("新增成功",3),a.open=!1,a.$emit("ok"),a.$emit("close"),a.disabled=!1})).catch((function(e){return a.disabled=!1,!1}))}))}}}},"9c8b":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e._self._c;return t("ant-modal",{attrs:{modalWidth:"576",visible:e.open,"modal-title":e.formTitle,"adjust-size":!0},on:{cancel:e.cancel}},[t("a-form-model",{ref:"form",attrs:{slot:"content",model:e.form,rules:e.rules,layout:"vertical"},slot:"content"},[t("a-row",{attrs:{gutter:32}},[t("a-col",{attrs:{span:24}},[t("a-form-model-item",{attrs:{label:"表单名称",prop:"name"}},[t("a-input",{attrs:{placeholder:"请输入表单名称"},model:{value:e.form.formName,callback:function(t){e.$set(e.form,"formName",t)},expression:"form.formName"}})],1)],1),t("a-col",{attrs:{span:24}},[t("a-form-model-item",{attrs:{label:"表单描述",prop:"describes"}},[t("a-textarea",{attrs:{placeholder:"请输入表单描述",rows:4},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1)],1)],1)],1),t("template",{slot:"footer"},[t("a-button",{attrs:{disabled:e.disabled},on:{click:e.cancel}},[e._v(" 取消 ")]),t("a-button",{attrs:{type:"primary",disabled:e.disabled},on:{click:function(t){return e.submitForm(!0)}}},[e._v(" 保存 ")])],1)],2)},o=[],n=a("5530"),i=a("5638"),s=Object(n["a"])({},i["default"]),l=s,c=a("2877"),m=Object(c["a"])(l,r,o,!1,null,null,null);t["default"]=m.exports},a683:function(e,t,a){"use strict";a.r(t);a("99af");var r=function(){var e=this,t=e._self._c;return t("div",[t("a-card",{staticStyle:{"margin-bottom":"10px"},attrs:{bordered:!1}},[t("div",{staticClass:"table-page-search-wrapper"},[t("a-form",{ref:"queryForm",attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-row",{attrs:{gutter:32}},[t("a-col",{attrs:{span:6}},[t("a-form-item",{attrs:{label:"表单名称"}},[t("a-input",{attrs:{placeholder:"请输入表单名称","allow-clear":""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery.apply(null,arguments)}},model:{value:e.queryParam.formName,callback:function(t){e.$set(e.queryParam,"formName",t)},expression:"queryParam.formName"}})],1)],1),t("a-col",[t("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"right"}},[t("a-button",{attrs:{type:"primary"},on:{click:e.handleQuery}},[t("a-icon",{attrs:{type:"search"}}),e._v("查询")],1),t("a-button",{staticStyle:{"margin-left":"8px"},on:{click:e.resetQuery}},[t("a-icon",{attrs:{type:"redo"}}),e._v("重置")],1)],1)])],1)],1)],1)]),t("a-card",{staticClass:"table-card",attrs:{bordered:!1}},[t("a-modal",{attrs:{title:e.formTitle,visible:e.formConfOpen},on:{ok:e.handlePreviewOk,cancel:e.handlePreviewCancel}},[t("k-form-build",{ref:"kfb",attrs:{value:e.formConf}})],1),t("a-modal",{attrs:{title:"获取数据",visible:e.showData},on:{cancel:e.handlePreviewDataCancel}},[t("a-textarea",{attrs:{autosize:{minRows:20,maxRows:50},value:e.formValue}})],1),e.showAddModal?t("form-add-form",{ref:"FormAddForm",on:{ok:e.resetQuery,close:function(t){e.showAddModal=!1}}}):e._e(),e.showEditModal?t("form-edit-form",{ref:"FormEditForm",on:{ok:e.resetQuery,close:function(t){e.showAddModal=!1}}}):e._e(),t("advance-table",{attrs:{title:"表单管理",pagination:{current:e.queryParam.pageNum,pageSize:e.queryParam.pageSize,total:e.total,showSizeChanger:!0,showLessItems:!0,showQuickJumper:!0,showTotal:function(e,t){return"第 ".concat(t[0],"-").concat(t[1]," 条，总计 ").concat(e," 条")},onChange:e.changeSize,onShowSizeChange:e.onShowSizeChange},tableKey:"base-definition-index-table",rowKey:"formId",size:"middle",columns:e.columns,"data-source":e.formList,loading:e.loading,"format-conditions":!0,"row-selection":{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange,refresh:e.getList},scopedSlots:e._u([{key:"operation",fn:function(a){a.text;var r=a.record;return t("span",{},[t("a",{on:{click:function(t){return e.handlePreview(r)}}},[e._v(" 预览 ")]),t("a-divider",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["form:edit"],expression:"['form:edit']"}],attrs:{type:"vertical"}}),t("a",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["form:edit"],expression:"['form:edit']"}],on:{click:function(t){return e.handlePreview(r)}}},[e._v("数据")]),t("a-divider",{attrs:{type:"vertical"}}),t("a-dropdown",[t("a",{staticClass:"ant-dropdown-link",on:{click:function(e){return e.preventDefault()}}},[e._v("更多"),t("a-icon",{attrs:{type:"down"}})],1),t("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[t("a-menu-item",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["form:edit"],expression:"['form:edit']"}]},[t("a",{on:{click:function(t){return e.handleDesign(r)}}},[e._v("设计")])]),t("a-menu-item",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["form:edit"],expression:"['form:edit']"}]},[t("a",{on:{click:function(t){return e.handleUpdate(r)}}},[e._v("修改")])]),t("a-menu-item",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["form:remove"],expression:"['form:remove']"}]},[t("a",{on:{click:function(t){return e.handleDelete(r)}}},[e._v("删除")])])],1)],1)],1)}}])},[t("div",{staticClass:"table-operations",attrs:{slot:"button"},slot:"button"},[t("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["form:add"],expression:"['form:add']"}],on:{click:e.handleAdd}},[t("a-icon",{attrs:{type:"plus"}}),e._v("新增 ")],1),e.multiple?e._e():t("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["form:remove"],expression:"['form:remove']"}],attrs:{type:"danger",disabled:e.multiple},on:{click:e.handleDelete}},[t("a-icon",{attrs:{type:"delete"}}),e._v("删除 ")],1),t("a-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["form:export"],expression:"['form:export']"}],on:{click:e.handleExport}},[t("a-icon",{attrs:{type:"download"}}),e._v("导出 ")],1)],1)])],1)],1)},o=[],n=(a("d81d"),a("b64b"),a("ae95")),i=a("5d9e"),s=a("bdee"),l=a("9c8b"),c={name:"Form",components:{AdvanceTable:i["a"],FormAddForm:s["default"],FormEditForm:l["default"]},data:function(){return{showAddModal:!1,showEditModal:!1,formId:null,loading:!0,ids:[],selectedRowKeys:[],selectedRows:[],single:!0,multiple:!0,showSearch:!0,total:0,labelCol:{span:6},wrapperCol:{span:18},formList:[],formConf:{},formConfOpen:!1,showData:!1,formValue:"",formTitle:"",open:!1,queryParam:{pageNum:1,pageSize:10,formName:null,formContent:null},form:{},rules:{},columns:[{title:"表单主键",dataIndex:"formId",ellipsis:!0,align:"left"},{title:"表单名称",dataIndex:"formName",align:"center"},{title:"备注",dataIndex:"remark",align:"center"},{title:"操作",dataIndex:"operation",align:"center",width:"200px",scopedSlots:{customRender:"operation"}}]}},created:function(){this.getList()},methods:{getList:function(){var e=this;this.loading=!0,Object(n["e"])(this.queryParam).then((function(t){e.formList=t.rows,e.total=t.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("queryForm")},handleQuery:function(){this.queryParam.pageNum=1,this.getList()},resetQuery:function(){this.queryParam=this.$options.data().queryParam,this.handleQuery()},handlePreview:function(e){this.formConfOpen=!0,this.formTitle="表单预览",this.formConf=JSON.parse(e.formContent)},handleAdd:function(){var e=this;this.showAddModal=!0,this.$nextTick((function(){return e.$refs.FormAddForm.handleAdd()}))},handleUpdate:function(e){var t=this;this.showEditModal=!0,this.$nextTick((function(){return t.$refs.FormEditForm.handleUpdate(e)}))},handleDesign:function(e){var t=this;this.$router.push({name:"FormDesign",params:{form:e,callBack:t.getList}})},submitForm:function(){var e=this;this.$refs["form"].validate((function(t){t&&(null!=e.form.formId?Object(n["f"])(e.form).then((function(t){e.elMsgSuccess("修改成功"),e.open=!1,e.getList()})):Object(n["a"])(e.form).then((function(t){e.elMsgSuccess("新增成功"),e.open=!1,e.getList()})))}))},handleDelete:function(e){var t=this,a=e.formId||this.ids;this.$confirm({title:"确认删除所选中数据?",onOk:function(){return Object(n["b"])(a).then((function(){t.onSelectChange([],[]),t.getList(),t.$message.success("删除成功",3)}))},onCancel:function(){}})},handleExport:function(){var e=this,t=this.queryParam;this.$elConfirm("是否确认导出所有流程表单数据项?","警告",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){return Object(n["c"])(t)})).then((function(t){e.download(t.msg)}))},onSelectChange:function(e,t){this.selectedRowKeys=e,this.selectedRows=t,this.ids=this.selectedRows.map((function(e){return e.formId})),this.single=1!==e.length,this.multiple=!e.length},onShowSizeChange:function(e,t){this.queryParam.pageSize=t,this.getList()},changeSize:function(e,t){this.queryParam.pageNum=e,this.queryParam.pageSize=t,this.getList()},handleTableChange:function(e,t,a){void 0!==a.field&&null!==a.field&&""!==a.field&&(this.queryParam.orderByColumn="a."+a.field,this.queryParam.isAsc=a.order),this.getList()},handlePreviewOk:function(){var e=this;this.$refs.kfb.getData().then((function(t){e.formValue=JSON.stringify(t),e.showData=!0})).catch((function(){}))},handlePreviewCancel:function(){this.formConfOpen=!1},handlePreviewDataCancel:function(){this.showData=!1}}},m=c,u=(a("1960"),a("2877")),d=Object(u["a"])(m,r,o,!1,null,"67ac4caa",null);t["default"]=d.exports},ae95:function(e,t,a){"use strict";a.d(t,"e",(function(){return o})),a.d(t,"d",(function(){return n})),a.d(t,"a",(function(){return i})),a.d(t,"f",(function(){return s})),a.d(t,"b",(function(){return l})),a.d(t,"c",(function(){return c}));var r=a("b775");function o(e){return Object(r["b"])({url:"/flowable/form/list",method:"get",params:e})}function n(e){return Object(r["b"])({url:"/flowable/form/"+e,method:"get"})}function i(e){return Object(r["b"])({url:"/flowable/form",method:"post",data:e})}function s(e){return Object(r["b"])({url:"/flowable/form/edit",method:"post",data:e})}function l(e){return Object(r["b"])({url:"/flowable/form/"+e,method:"post"})}function c(e){return Object(r["b"])({url:"/flowable/form/export",method:"get",params:e})}},bdee:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e._self._c;return t("ant-modal",{attrs:{modalWidth:"576",visible:e.open,"modal-title":e.formTitle,"adjust-size":!0},on:{cancel:e.cancel}},[t("a-form-model",{ref:"form",attrs:{slot:"content",model:e.form,rules:e.rules,layout:"vertical"},slot:"content"},[t("a-row",{attrs:{gutter:32}},[t("a-col",{attrs:{span:24}},[t("a-form-model-item",{attrs:{label:"表单名称",prop:"name"}},[t("a-input",{attrs:{placeholder:"请输入表单名称"},model:{value:e.form.formName,callback:function(t){e.$set(e.form,"formName",t)},expression:"form.formName"}})],1)],1),t("a-col",{attrs:{span:24}},[t("a-form-model-item",{attrs:{label:"表单描述",prop:"describes"}},[t("a-textarea",{attrs:{placeholder:"请输入表单描述",rows:4},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1)],1)],1)],1),t("template",{slot:"footer"},[t("a-button",{attrs:{disabled:e.disabled},on:{click:e.cancel}},[e._v(" 取消 ")]),t("a-button",{attrs:{type:"primary",disabled:e.disabled},on:{click:function(t){return e.submitForm(!0)}}},[e._v(" 保存 ")])],1)],2)},o=[],n=a("5530"),i=a("5638"),s=Object(n["a"])({},i["default"]),l=s,c=a("2877"),m=Object(c["a"])(l,r,o,!1,null,null,null);t["default"]=m.exports}}]);