(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-094f3aa4","chunk-2d0df437","chunk-2d0df437","chunk-ab49d8da","chunk-54391707","chunk-6337d406","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437","chunk-2d0df437"],{"1e3b":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e._self._c;return t("a-modal",{staticStyle:{top:"5%",height:"95%"},attrs:{title:"JAVA增强",width:e.modalWidth,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭",wrapClassName:"ant-modal-cust-warp"},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("template",{slot:"footer"},[t("a-button",{key:"back",on:{click:e.handleCancel}},[e._v("关闭")]),t("a-button",{key:"submit",attrs:{type:"primary"},on:{click:e.handleSubmit}},[e._v("确定")]),e.aiTestMode?t("div",{staticStyle:{display:"inline-block",float:"left"}},[t("a-button",{on:{click:function(t){return e.genEnhanceJavaData(e.code)}}},[e._v("生成测试数据")])],1):e._e()],1),t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"页面按钮",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["buttonCode"],expression:"[ 'buttonCode']"}],attrs:{getPopupContainer:function(e){return e.parentNode},placeholder:"请选择页面控件"},on:{change:function(t){e.handleChangeEhjava("buttonCode",t)}}},[t("a-select-option",{attrs:{value:"add"}},[e._v("新增")]),t("a-select-option",{attrs:{value:"edit"}},[e._v("编辑")]),t("a-select-option",{attrs:{value:"delete"}},[e._v("删除")]),t("a-select-option",{attrs:{value:"import"}},[e._v("导入")]),t("a-select-option",{attrs:{value:"export"}},[e._v("导出")]),t("a-select-option",{attrs:{value:"query"}},[e._v("查询")]),e._l(e.btnList,(function(n,a){return[t("a-select-option",{key:a,attrs:{value:n.buttonCode}},[e._v(e._s(n.buttonName))])]}))],2)],1),t("a-form-item",{attrs:{label:"事件状态",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["event"],expression:"[ 'event']"}],attrs:{name:"radioGroup"},on:{change:function(t){e.handleChangeEhjava("event",t.target.value)}}},[t("a-radio",{attrs:{value:"start"}},[e._v("开始")]),t("a-radio",{attrs:{value:"end"}},[e._v("结束")])],1)],1),t("a-form-item",{attrs:{label:"类型",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["cgJavaType"],expression:"[ 'cgJavaType']"}],attrs:{name:"radioGroup"},on:{change:function(t){e.handleChangeEhjava("cgJavaType",t.target.value)}}},[t("a-radio",{attrs:{value:"spring"}},[e._v("spring-key")]),t("a-radio",{attrs:{value:"class"}},[e._v("java-class")])],1)],1),t("a-form-item",{attrs:{label:"内容",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["cgJavaValue",{rules:[{required:!0,message:"请输入内容!"}]}],expression:"[ 'cgJavaValue',{rules: [{ required: true, message: '请输入内容!' }]}]"}],attrs:{placeholder:"请输入内容"}})],1),t("a-form-item",{attrs:{label:"是否生效",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-radio-group",{directives:[{name:"decorator",rawName:"v-decorator",value:["activeStatus"],expression:"[ 'activeStatus']"}],attrs:{name:"radioGroup"},on:{change:function(t){e.handleChangeEhjava2("activeStatus",t.target.value)}}},[t("a-radio",{attrs:{value:"1"}},[e._v("有效")]),t("a-radio",{attrs:{value:"0"}},[e._v("无效")])],1)],1)],1)],2)},o=[],r=n("261e"),i=n("0fea"),l=n("88bc"),s=n.n(l),c=n("f654"),u={name:"EnhanceJava",mixins:[c["a"]],components:{ATextarea:r["a"]},data:function(){return{modalWidth:800,visible:!1,confirmLoading:!1,form:this.$form.createForm(this),labelCol:{xs:{span:24},sm:{span:4}},wrapperCol:{xs:{span:24},sm:{span:16}},code:"",btnUrl:"/online/cgform/head/enhanceButton/",btnList:[],url:"/online/cgform/head/enhanceJava/",urlByButtonCode:"/online/cgform/head/enhanceJavaByButtonCode/",model:{buttonCode:"add",event:"end",cgJavaType:"spring",activeStatus:"1"}}},methods:{handleSubmit:function(){var e=this;this.form.validateFields((function(t,n){if(!t){var a;if(e.confirmLoading=!0,e.model.id){var o=Object.assign(e.model,n);a=Object(i["t"])(e.url+e.code,o)}else a=Object(i["r"])(e.url+e.code,n);a.then((function(t){e.confirmLoading=!1,t.success?(e.visible=!1,e.$message.success(t.message)):e.$message.warning(t.message)}))}}))},handleCancel:function(){this.visible=!1},show:function(e){this.code=e,this.visible=!0,this.model={buttonCode:"add",event:"end",cgJavaType:"spring",activeStatus:"1"},this.loadBtnList(),this.handleQueryEnhjava("buttonCode")},loadBtnList:function(){var e=this;Object(i["j"])(this.btnUrl+this.code).then((function(t){t.success&&(t.result&&0!=t.result.length?e.btnList=t.result.filter((function(e){return"action"==e.optType})):e.btnList=[])}))},handleQueryEnhjava:function(e){var t=this,n=t.url;"buttonCode"==e&&(n=t.urlByButtonCode),Object(i["j"])(n+t.code,t.model).then((function(e){e.success?t.model=e.result:(t.model.id="",t.model.cgJavaValue=""),t.$nextTick((function(){t.form.setFieldsValue(s()(t.model,"cgJavaValue","buttonCode","event","cgJavaType","activeStatus"))}))}))},handleChangeEhjava:function(e,t){this.model[e]=t,this.handleQueryEnhjava(e)},handleChangeEhjava2:function(e,t){this.model[e]=t}}},d=u,f=n("2877"),h=Object(f["a"])(d,a,o,!1,null,"1db16f5e",null);t["default"]=h.exports},"26bb":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e._self._c;return t("a-modal",{staticStyle:{top:"5%",height:"90%"},attrs:{title:"从数据库导入表单",width:e.modalWidth,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭",wrapClassName:"ant-modal-cust-warp"},on:{cancel:e.handleCancel}},[t("template",{slot:"footer"},[t("a-button",{on:{click:e.handleCancel}},[e._v("关闭")]),t("a-button",{attrs:{type:"primary",icon:"swap",loading:e.btnLoading},on:{click:e.handleTrans}},[e._v("生成表单")])],1),t("div",{staticClass:"table-page-search-wrapper",staticStyle:{"padding-bottom":"0","margin-bottom":"0"}},[t("a-form",{attrs:{layout:"inline"}},[t("a-row",{attrs:{gutter:24}},[t("a-col",{attrs:{span:24}},[t("a-form-item",{staticStyle:{"padding-bottom":"0","margin-bottom":"0"},attrs:{label:"表名"}},[t("a-input",{attrs:{placeholder:"请输入表名按回车查询"},on:{pressEnter:e.searchFilter},model:{value:e.filterId,callback:function(t){e.filterId=t},expression:"filterId"}})],1)],1)],1)],1)],1),t("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{margin:"5px 0",height:"30px",padding:"6px 10px","font-size":"12px"}},[t("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v("已选择 "),t("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys.length))]),e._v("项  \n    "),t("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),t("div",{staticStyle:{margin:"5px"}},[e._v("\n    注：导入表会排除配置前缀表\n    "),t("a",{attrs:{href:"http://doc.jeecg.com/1898410",target:"_blank"}},[e._v(" 参考文档")])]),t("a-spin",{attrs:{spinning:e.confirmLoading}},[t("a-table",{ref:"table",attrs:{size:"small",bordered:"",rowKey:"id",pagination:e.pagination,columns:e.columns,dataSource:e.dataSource,locale:{emptyText:e.emptyText},rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange}})],1)],2)},o=[],r=n("0fea");function i(e){return u(e)||c(e)||s(e)||l()}function l(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e,t){if(e){if("string"==typeof e)return d(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function c(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function u(e){if(Array.isArray(e))return d(e)}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var f={name:"TransDb2Online",data:function(){return{modalWidth:500,visible:!1,emptyText:"暂无数据",confirmLoading:!1,btnLoading:!1,queryUrl:"/online/cgform/head/queryTables/",transUrl:"/online/cgform/head/transTables/",metaSource:[],dataSource:[],filterId:"",pagination:{simple:!1,current:1,pageSize:10,pageSizeOptions:["10","30","50"],showTotal:function(e,t){return" 共"+e+"条"},showSizeChanger:!0,total:0},columns:[{title:"#",dataIndex:"",key:"rowIndex",width:60,align:"center",customRender:function(e,t,n){return parseInt(n)+1}},{title:"表名",align:"left",dataIndex:"id"}],selectedRowKeys:[]}},methods:{show:function(){this.visible=!0,this.btnLoading=!1,this.filterId="",this.emptyText="暂无数据",this.selectedRowKeys=[],this.queryTables()},onSelectChange:function(e){this.selectedRowKeys=e},handleTableChange:function(e,t,n){this.pagination=e},onClearSelected:function(){this.selectedRowKeys=[]},queryTables:function(){var e=this;this.confirmLoading=!0;var t={pageNo:this.pagination.current,pageSize:this.pagination.pageSize,tableName:this.filterId};Object(r["j"])(this.queryUrl,t).then((function(t){e.confirmLoading=!1,t.success?(e.dataSource=t.result,e.metaSource=i(t.result)):"noadminauth"==t.message?(e.$message.warning("非admin用户无权限操作!"),e.emptyText="非admin用户无权限操作!"):e.$message.warning(t.message)}))},searchFilter:function(){var e=this;this.filterId?this.dataSource=this.metaSource.filter((function(t){return t.id.indexOf(e.filterId)>=0})):this.dataSource=i(this.metaSource)},searchReset:function(){this.filterId="",this.searchFilter()},handleCancel:function(){this.visible=!1},handleSuccess:function(){this.visible=!1,this.$emit("ok")},handleTrans:function(){var e=this;if(this.selectedRowKeys&&0!=this.selectedRowKeys.length){this.btnLoading=!0;var t=this.selectedRowKeys.join(",");Object(r["r"])(this.transUrl+t).then((function(t){e.btnLoading=!1,t.success?(e.$message.success(t.message),e.handleSuccess()):e.$message.warning(t.message)}))}else this.$message.warning("请选择一张表")}}},h=f,p=(n("bcfc"),n("2877")),m=Object(p["a"])(h,a,o,!1,null,"3f6146c5",null);t["default"]=m.exports},"36f0":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e._self._c;return t("a-modal",{staticStyle:{top:"5%",height:"95%"},attrs:{title:"JS增强",width:e.modalWidth,visible:e.visible,confirmLoading:e.confirmLoading,wrapClassName:"ant-modal-cust-warp"},on:{cancel:e.handleCancel}},[t("a-form",{staticStyle:{height:"100%"}},[t("j-code-editor",{ref:"codeEditor",attrs:{value:e.cgJs,language:"javascript",fullScreen:!0,lineNumbers:!1,"min-height":240,"language-change":!1},on:{input:e.handleCodeChange}}),t("a-select",{class:{"valid-error-cust":e.validError,"js-type-select":!0},attrs:{size:"small",placeholder:"请选择增强类型",getPopupContainer:function(e){return e.parentNode}},on:{change:e.handleChangeType},model:{value:e.cgJsType,callback:function(t){e.cgJsType=t},expression:"cgJsType"}},[t("a-select-option",{attrs:{value:"form"}},[e._v("form")]),t("a-select-option",{attrs:{value:"list"}},[e._v("list")])],1)],1),t("template",{slot:"footer"},[t("a-button",{key:"back",on:{click:e.handleCancel}},[e._v("关闭")]),t("a-button",{key:"submit",attrs:{type:"primary"},on:{click:e.handleSubmit}},[e._v("确定")]),e.showHistory?t("a-button",{staticStyle:{float:"left"},attrs:{type:"link"},on:{click:e.handleWatchHistory}},[e._v("查看历史版本")]):e._e(),e.aiTestMode?t("div",{staticStyle:{display:"inline-block",float:"left"}},[t("a-button",{on:{click:function(t){return e.genEnhanceJsData(e.tableName,e.cgJsType,"codeEditor")}}},[e._v("生成测试数据")])],1):e._e()],1),t("enhance-history",{ref:"historyModal"})],2)},o=[],r=n("0fea"),i=n("3fa1"),l=n("f654"),s={name:"EnhanceJs",components:{EnhanceHistory:i["default"]},mixins:[l["a"]],data:function(){return{modalWidth:800,visible:!1,confirmLoading:!1,form:this.$form.createForm(this),labelCol:{xs:{span:24},sm:{span:4}},wrapperCol:{xs:{span:24},sm:{span:16}},url:"/online/cgform/head/enhanceJs/",model:{},cgJsType:[],cgJs:"",code:"",validError:!1,showHistory:!1,codeChange:!1,tableName:""}},methods:{handleSubmit:function(){var e=this;if(!this.cgJsType||0==this.cgJsType.length)return this.$message.warning("请选择增强类型！"),this.validError=!0,!1;this.validError=!1;var t,n={cgJs:this.$refs.codeEditor.getCodeContent(),cgJsType:this.cgJsType};if(this.model.id){var a=Object.assign({},this.model,n);t=Object(r["t"])(this.url+this.code,a)}else t=Object(r["r"])(this.url+this.code,n);t.then((function(t){e.confirmLoading=!1,t.success?(e.addLocalRecord(n),e.visible=!1,e.$message.success(t.message)):e.$message.warning(t.message)}))},handleCancel:function(){this.visible=!1},show:function(e){var t=e.id;this.cgJs="",this.validError=!1,this.codeChange=!1,this.code=t,this.tableName=e.tableName;var n=this.$store.getters.enhanceJs(t);n&&n.length>0?(this.cgJsType=n[n.length-1].type,this.showHistory=!0):this.showHistory=!1,this.visible=!0,this.cgJsType&&0!=this.cgJsType.length?this.handleChangeType(this.cgJsType):this.handleChangeType("list")},handleChangeType:function(e){var t=this,n=this;n.cgJsType=e,Object(r["j"])(n.url+n.code,{type:e}).then((function(e){e.success?(n.model=e.result,n.$nextTick((function(){n.cgJs=n.model.cgJs,t.$refs.codeEditor.setCodeContent(n.cgJs)}))):(n.model={},n.$nextTick((function(){n.cgJs="",t.$refs.codeEditor.setCodeContent(n.cgJs)})))}))},addLocalRecord:function(e){if(!0===this.codeChange){var t={code:this.code,str:e.cgJs,type:e.cgJsType,date:(new Date).getTime()};this.$store.dispatch("addEhanceRecord",t)}},handleWatchHistory:function(){this.$refs.historyModal.show(this.code,this.cgJsType)},handleCodeChange:function(e){this.cgJs!=e&&(this.codeChange=!0,this.cgJs=e)}}},c=s,u=(n("de1e"),n("2877")),d=Object(u["a"])(c,a,o,!1,null,"1011cd2e",null);t["default"]=d.exports},"3fa1":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e._self._c;return t("j-modal",{attrs:{title:"JS增强历史记录",width:"1200px",visible:e.visible,maskClosable:!1,confirmLoading:e.confirmLoading,fullscreen:"",switchFullscreen:""},on:{cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.confirmLoading}},[t("a-layout",[t("a-layout-sider",{attrs:{theme:"light"}},[t("a-list",{class:"cust-enhance-his",attrs:{bordered:"",dataSource:e.dataList},scopedSlots:e._u([{key:"renderItem",fn:function(n){return t("a-list-item",{class:e.activeIndex===n.index?"bgBlue":""},[t("a",{staticStyle:{color:"rgba(0, 0, 0, 0.85)"},on:{click:function(t){return e.fullCode(n)}}},[e._v(e._s(e.getFormatDate(n.date)))])])}}])},[t("div",{attrs:{slot:"header"},slot:"header"},[t("a-divider",{staticStyle:{margin:"0"}},[e._v("保存时间")])],1)])],1),t("a-layout",[t("a-layout-content",{style:{margin:"8px 8px",padding:"8px",background:"#fff",minHeight:"280px"}},[t("j-code-editor",{ref:"codeEditor",attrs:{language:"javascript",fullScreen:!0,lineNumbers:!1,"language-change":!1}})],1)],1)],1)],1),t("template",{slot:"footer"},[t("a-button",{key:"back",on:{click:e.handleCancel}},[e._v("关闭")])],1)],2)},o=[],r=n("ca00");function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=l(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,o=function(){};return{s:o,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,r=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw r}}}}function l(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}var c={name:"EnhanceHistory",components:{},data:function(){return{visible:!1,confirmLoading:!1,dataList:[],jsStr:"",activeIndex:0}},methods:{handleCancel:function(){this.visible=!1},getFormatDate:function(e){return Object(r["h"])(e,"yyyy-MM-dd hh:mm:ss")},fullCode:function(e){this.activeIndex=e.index,this.$refs.codeEditor.setCodeContent(e.str)},show:function(e,t){var n=this;this.jsStr="",this.dataList=[];var a,o=this.$store.getters.enhanceJs(e),r=[],l=0,s=i(o);try{for(s.s();!(a=s.n()).done;){var c=a.value;c.type===t&&(l++,r.push(Object.assign({},c,{index:l})))}}catch(u){s.e(u)}finally{s.f()}r&&r.length>0&&r.sort((function(e,t){return t.date-e.date})),this.dataList=[].concat(r),this.visible=!0,this.$nextTick((function(){n.fullCode(r[0])}))}}},u=c,d=(n("8ab3"),n("2877")),f=Object(d["a"])(u,a,o,!1,null,null,null);t["default"]=f.exports},"48b7":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e._self._c;return t("a-modal",{class:{"jeecg-onl-button-modal":!0},style:e.modalStyle,attrs:{title:"自定义按钮",width:e.modalWidth,visible:e.visible,cancelText:"关闭"},on:{cancel:e.handleCancel}},[t("template",{slot:"footer"},[t("a-button",{key:"back",on:{click:e.handleCancel}},[e._v("关闭")]),e.aiTestMode?t("div",{staticStyle:{display:"inline-block",float:"left"}},[t("a-button",{on:{click:function(t){return e.genButtons(e.code)}}},[e._v("生成测试数据")])],1):e._e()],1),t("div",{staticClass:"table-page-search-wrapper"}),t("div",{staticClass:"table-operator",staticStyle:{"margin-bottom":"18px"}},[t("a-button",{attrs:{type:"primary",icon:"plus"},on:{click:e.handleAdd}},[e._v("新增")]),e.selectedRowKeys.length>0?t("a-dropdown",[t("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[t("a-menu-item",{key:"1",on:{click:e.batchDel}},[t("a-icon",{attrs:{type:"delete"}}),e._v("删除")],1)],1),t("a-button",{staticStyle:{"margin-left":"8px"}},[e._v(" 批量操作 "),t("a-icon",{attrs:{type:"down"}})],1)],1):e._e()],1),t("div",{style:e.table_area_style},[t("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[t("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v(" 已选择 "),t("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys.length))]),e._v("项\n      "),t("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),t("a-table",{ref:"table",attrs:{size:"middle",bordered:"",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"action",fn:function(n,a){return t("span",{},[t("a",{on:{click:function(t){return e.handleEdit(a)}}},[e._v("编辑")]),t("a-divider",{attrs:{type:"vertical"}}),t("a-dropdown",[t("a",{staticClass:"ant-dropdown-link"},[e._v("更多 "),t("a-icon",{attrs:{type:"down"}})],1),t("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[t("a-menu-item",[t("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return e.handleDelete(a.id)}}},[t("a",[e._v("删除")])])],1)],1)],1)],1)}}])})],1),t("onlCgformButton-modal",{ref:"modalForm",attrs:{code:e.code},on:{ok:e.modalFormOk}})],2)},o=[],r=n("717a"),i=n("b65a"),l=n("0fea"),s=n("f654"),c={name:"OnlCgformButtonList",mixins:[i["a"],s["a"]],components:{OnlCgformButtonModal:r["default"]},data:function(){return{modalWidth:"100%",modalStyle:{top:0,padding:0,height:window.innerHeight-5+"px","overflow-y":"hidden"},table_area_style:{height:window.innerHeight-210+"px","overflow-y":"auto"},visible:!1,description:"自定义按钮管理页面",code:"",url:{list:"/online/cgform/button/list/",delete:"/online/cgform/button/delete",deleteBatch:"/online/cgform/button/deleteBatch"},isorter:{column:"orderNum",order:"asc"},columns:[{title:"按钮编码",align:"center",dataIndex:"buttonCode"},{title:"按钮名称",align:"center",dataIndex:"buttonName"},{title:"按钮样式",align:"center",dataIndex:"buttonStyle",customRender:function(e,t){if("form"===e){var n=t.optPosition;return e+"("+("2"==n?"底部":"侧面")+")"}return e}},{title:"按钮类型",align:"center",dataIndex:"optType"},{title:"排序",align:"center",dataIndex:"orderNum"},{title:"按钮图标",align:"center",dataIndex:"buttonIcon"},{title:"表达式",align:"center",dataIndex:"exp"},{title:"按钮状态",align:"center",dataIndex:"buttonStatus",customRender:function(e){return 1==e?"激活":"未激活"}},{title:"操作",dataIndex:"action",align:"center",scopedSlots:{customRender:"action"}}]}},created:function(){},methods:{loadData:function(e){var t=this;if(this.code){1===e&&(this.ipagination.current=1);var n=this.getQueryParams();Object(l["j"])(this.url.list+this.code,n).then((function(e){e.success&&(t.dataSource=e.result.records,t.ipagination.total=e.result.total)}))}},handleCancel:function(){this.visible=!1,this.code=""},show:function(e){this.code=e,this.visible=!0,this.loadData(1)}}},u=c,d=(n("d1a5"),n("2877")),f=Object(d["a"])(u,a,o,!1,null,"0719e898",null);t["default"]=f.exports},"48ee":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e._self._c;return t("a-modal",{staticStyle:{top:"5%",height:"95%"},attrs:{title:"SQL增强",width:e.modalWidth,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭",wrapClassName:"ant-modal-cust-warp"},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[t("template",{slot:"footer"},[t("a-button",{key:"back",on:{click:e.handleCancel}},[e._v("关闭")]),t("a-button",{key:"submit",attrs:{type:"primary"},on:{click:e.handleSubmit}},[e._v("确定")]),e.aiTestMode?t("div",{staticStyle:{display:"inline-block",float:"left"}},[t("a-button",{on:{click:function(t){return e.genEnhanceSqlData(e.tableName,"codeEditor")}}},[e._v("生成测试数据")])],1):e._e()],1),t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{label:"页面按钮",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["buttonCode"],expression:"[ 'buttonCode']"}],attrs:{placeholder:"请选择页面控件",getPopupContainer:function(e){return e.parentNode}},on:{change:e.handleChangeType}},[t("a-select-option",{attrs:{value:"add"}},[e._v("新增")]),t("a-select-option",{attrs:{value:"edit"}},[e._v("编辑")]),t("a-select-option",{attrs:{value:"delete"}},[e._v("删除")]),e._l(e.btnList,(function(n,a){return[t("a-select-option",{key:a,attrs:{value:n.buttonCode}},[e._v(e._s(n.buttonName))])]}))],2)],1),t("a-form-item",{attrs:{label:"增强SQL",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("div",{staticClass:"coder-cust-height"},[t("j-code-editor",{ref:"codeEditor",attrs:{language:"sql",placeholder:"请输入SQL语句","language-change":!1,lineNumbers:!1,fullScreen:!0,"min-height":320},on:{input:e.handleInputCgbSql}})],1),t("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["cgbSql"],expression:"['cgbSql']"}],attrs:{hidden:!0}})],1),t("a-form-item",{attrs:{label:"描述",labelCol:e.labelCol,wrapperCol:e.wrapperCol}},[t("a-textarea",{directives:[{name:"decorator",rawName:"v-decorator",value:["content"],expression:"[ 'content']"}],attrs:{rows:2,placeholder:"请输入描述"}})],1)],1)],2)},o=[],r=n("0fea"),i=n("88bc"),l=n.n(i),s=n("f654"),c={name:"EnhanceSql",mixins:[s["a"]],components:{},data:function(){return{modalWidth:800,visible:!1,confirmLoading:!1,form:this.$form.createForm(this),labelCol:{xs:{span:24},sm:{span:4}},wrapperCol:{xs:{span:24},sm:{span:16}},code:"",btnUrl:"/online/cgform/head/enhanceButton/",btnList:[],url:"/online/cgform/head/enhanceSql/",model:{},tableName:""}},methods:{handleSubmit:function(){var e=this;this.form.validateFields((function(t,n){if(!t){var a;if(e.confirmLoading=!0,e.model.id){var o=Object.assign(e.model,n);a=Object(r["t"])(e.url+e.code,o)}else a=Object(r["r"])(e.url+e.code,n);a.then((function(t){e.confirmLoading=!1,t.success?(e.visible=!1,e.$message.success(t.message)):e.$message.warning(t.message)}))}}))},handleCancel:function(){this.visible=!1},show:function(e){this.code=e.id,this.tableName=e.tableName,this.visible=!0,this.handleChangeType("add"),this.loadBtnList()},loadBtnList:function(){var e=this;Object(r["j"])(this.btnUrl+this.code).then((function(t){t.success&&(t.result&&0!=t.result.length?e.btnList=t.result.filter((function(e){return"action"==e.optType})):e.btnList=[])}))},handleInputCgbSql:function(e){this.form.setFieldsValue({cgbSql:e})},handleChangeType:function(e){var t=this,n=this;Object(r["j"])(n.url+n.code,{buttonCode:e}).then((function(a){a.success?(n.model=a.result,n.$nextTick((function(){n.form.setFieldsValue(l()(n.model,"buttonCode","content","cgbSql")),t.$refs.codeEditor.setCodeContent(t.model.cgbSql||"")}))):(n.model={},n.$nextTick((function(){n.form.setFieldsValue({content:"",cgbSql:"",buttonCode:e}),t.$refs.codeEditor.setCodeContent("")})))}))}}},u=c,d=(n("ca2e"),n("2877")),f=Object(d["a"])(u,a,o,!1,null,"07db7343",null);t["default"]=f.exports},"4dc4":function(e,t,n){"use strict";n("f0f0")},5591:function(e,t,n){"use strict";n("a99f")},"60d9":function(e,t,n){},"717a":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e._self._c;return t("a-modal",{attrs:{title:e.title,width:800,visible:e.visible,confirmLoading:e.confirmLoading,cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.confirmLoading}},[t("a-form",{attrs:{form:e.form}},[t("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"按钮编码"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["buttonCode",{rules:[{required:!0,message:"请输入按钮编码!"}]}],expression:"['buttonCode',{rules: [{ required: true, message: '请输入按钮编码!' }]}]"}],attrs:{placeholder:"请输入按钮编码"}})],1),t("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"按钮名称"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["buttonName",{rules:[{required:!0,message:"请输入按钮名称!"}]}],expression:"['buttonName',{rules: [{ required: true, message: '请输入按钮名称!' }]}]"}],attrs:{placeholder:"请输入按钮名称"}})],1),t("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"按钮样式"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["buttonStyle"],expression:"['buttonStyle']"}],attrs:{placeholder:"请选择按钮样式",getPopupContainer:function(e){return e.parentNode}},on:{change:e.handleStyleChange}},[t("a-select-option",{attrs:{value:"link"}},[e._v("link")]),t("a-select-option",{attrs:{value:"button"}},[e._v("button")]),t("a-select-option",{attrs:{value:"form"}},[e._v("form")])],1)],1),t("a-form-item",{directives:[{name:"show",rawName:"v-show",value:e.formButton,expression:"formButton"}],attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"按钮位置"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["optPosition",{initialValue:"2"}],expression:"['optPosition',{initialValue:'2'}]"}],attrs:{placeholder:"请选择按钮位置",getPopupContainer:function(e){return e.parentNode}}},[t("a-select-option",{attrs:{value:"1"}},[e._v("侧面")]),t("a-select-option",{attrs:{value:"2"}},[e._v("底部")])],1)],1),t("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"按钮类型"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["optType"],expression:"['optType']"}],attrs:{placeholder:"请选择按钮类型",getPopupContainer:function(e){return e.parentNode}}},[t("a-select-option",{attrs:{value:"js"}},[e._v("js")]),t("a-select-option",{attrs:{value:"action"}},[e._v("action")])],1)],1),t("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"排序"}},[t("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["orderNum"],expression:"[ 'orderNum']"}],staticStyle:{width:"100%"},attrs:{placeholder:"请输入按钮排序"}})],1),t("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"按钮图标"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["buttonIcon"],expression:"['buttonIcon']"}],attrs:{placeholder:"请输入按钮图标"}},[t("a-tooltip",{attrs:{slot:"suffix",title:"a-icon type"},slot:"suffix"},[t("a-icon",{staticStyle:{color:"rgba(0,0,0,.45)"},attrs:{type:"info-circle"}})],1)],1)],1),t("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"表达式"}},[t("a-input",{directives:[{name:"decorator",rawName:"v-decorator",value:["exp"],expression:"['exp']"}],attrs:{placeholder:"请输入表达式"}})],1),t("a-form-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"按钮状态"}},[t("a-select",{directives:[{name:"decorator",rawName:"v-decorator",value:["buttonStatus"],expression:"['buttonStatus']"}],attrs:{placeholder:"请选择按钮状态",getPopupContainer:function(e){return e.parentNode}}},[t("a-select-option",{attrs:{value:"1"}},[e._v("激活")]),t("a-select-option",{attrs:{value:"0"}},[e._v("未激活")])],1)],1)],1)],1)],1)},o=[],r=n("0fea"),i=n("88bc"),l=n.n(i),s={name:"OnlCgformButtonModal",props:{code:{type:String,required:!0,default:""}},data:function(){return{title:"操作",visible:!1,model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,form:this.$form.createForm(this),validatorRules:{},url:{add:"/online/cgform/button/add",edit:"/online/cgform/button/edit"},formButton:!1}},created:function(){},methods:{add:function(){this.edit({buttonStyle:"link",optType:"js",buttonStatus:"1"})},edit:function(e){var t=this;this.form.resetFields(),this.model=Object.assign({},e),this.formButton="form"===e.buttonStyle,this.visible=!0,this.$nextTick((function(){t.form.setFieldsValue(l()(t.model,"optPosition","buttonCode","buttonIcon","buttonName","buttonStatus","buttonStyle","exp","optType","orderNum"))}))},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){var e=this,t=this;this.form.validateFields((function(n,a){if(!n){t.confirmLoading=!0;var o="",i="";e.model.id?(o+=e.url.edit,i="put"):(o+=e.url.add,i="post");var l=Object.assign(e.model,a);l.cgformHeadId=e.code,Object(r["q"])(o,l,i).then((function(e){e.success?(t.$message.success(e.message),t.$emit("ok")):t.$message.warning(e.message)})).finally((function(){t.confirmLoading=!1,t.close()}))}}))},handleCancel:function(){this.close()},handleStyleChange:function(e){this.formButton="form"===e}}},c=s,u=n("2877"),d=Object(u["a"])(c,a,o,!1,null,"08d4b383",null);t["default"]=d.exports},"88bc":function(e,t,n){(function(t){var n=1/0,a=9007199254740991,o="[object Arguments]",r="[object Function]",i="[object GeneratorFunction]",l="[object Symbol]",s="object"==typeof t&&t&&t.Object===Object&&t,c="object"==typeof self&&self&&self.Object===Object&&self,u=s||c||Function("return this")();function d(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function f(e,t){var n=-1,a=e?e.length:0,o=Array(a);while(++n<a)o[n]=t(e[n],n,e);return o}function h(e,t){var n=-1,a=t.length,o=e.length;while(++n<a)e[o+n]=t[n];return e}var p=Object.prototype,m=p.hasOwnProperty,g=p.toString,v=u.Symbol,b=p.propertyIsEnumerable,y=v?v.isConcatSpreadable:void 0,C=Math.max;function w(e,t,n,a,o){var r=-1,i=e.length;n||(n=_),o||(o=[]);while(++r<i){var l=e[r];t>0&&n(l)?t>1?w(l,t-1,n,a,o):h(o,l):a||(o[o.length]=l)}return o}function S(e,t){return e=Object(e),k(e,t,(function(t,n){return n in e}))}function k(e,t,n){var a=-1,o=t.length,r={};while(++a<o){var i=t[a],l=e[i];n(l,i)&&(r[i]=l)}return r}function x(e,t){return t=C(void 0===t?e.length-1:t,0),function(){var n=arguments,a=-1,o=C(n.length-t,0),r=Array(o);while(++a<o)r[a]=n[t+a];a=-1;var i=Array(t+1);while(++a<t)i[a]=n[a];return i[t]=r,d(e,this,i)}}function _(e){return O(e)||j(e)||!!(y&&e&&e[y])}function T(e){if("string"==typeof e||J(e))return e;var t=e+"";return"0"==t&&1/e==-n?"-0":t}function j(e){return E(e)&&m.call(e,"callee")&&(!b.call(e,"callee")||g.call(e)==o)}var O=Array.isArray;function L(e){return null!=e&&$(e.length)&&!N(e)}function E(e){return I(e)&&L(e)}function N(e){var t=R(e)?g.call(e):"";return t==r||t==i}function $(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function R(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function I(e){return!!e&&"object"==typeof e}function J(e){return"symbol"==typeof e||I(e)&&g.call(e)==l}var A=x((function(e,t){return null==e?{}:S(e,f(w(t,1),T))}));e.exports=A}).call(this,n("24aa"))},"8ab3":function(e,t,n){"use strict";n("ff32")},"914d":function(e,t,n){},a968:function(e,t,n){},a99f:function(e,t,n){},b311:function(e,t,n){
/*!
 * clipboard.js v2.0.11
 * https://clipboardjs.com/
 *
 * Licensed MIT © Zeno Rocha
 */
(function(t,n){e.exports=n()})(0,(function(){return function(){var e={686:function(e,t,n){"use strict";n.d(t,{default:function(){return $}});var a=n(279),o=n.n(a),r=n(370),i=n.n(r),l=n(817),s=n.n(l);function c(e){try{return document.execCommand(e)}catch(t){return!1}}var u=function(e){var t=s()(e);return c("cut"),t},d=u;function f(e){var t="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[t?"right":"left"]="-9999px";var a=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(a,"px"),n.setAttribute("readonly",""),n.value=e,n}var h=function(e,t){var n=f(e);t.container.appendChild(n);var a=s()(n);return c("copy"),n.remove(),a},p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"===typeof e?n=h(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null===e||void 0===e?void 0:e.type)?n=h(e.value,t):(n=s()(e),c("copy")),n},m=p;function g(e){return g="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}var v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,n=void 0===t?"copy":t,a=e.container,o=e.target,r=e.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==o){if(!o||"object"!==g(o)||1!==o.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&o.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(o.hasAttribute("readonly")||o.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return r?m(r,{container:a}):o?"cut"===n?d(o):m(o,{container:a}):void 0},b=v;function y(e){return y="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function S(e,t,n){return t&&w(e.prototype,t),n&&w(e,n),e}function k(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&x(e,t)}function x(e,t){return x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},x(e,t)}function _(e){var t=O();return function(){var n,a=L(e);if(t){var o=L(this).constructor;n=Reflect.construct(a,arguments,o)}else n=a.apply(this,arguments);return T(this,n)}}function T(e,t){return!t||"object"!==y(t)&&"function"!==typeof t?j(e):t}function j(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function L(e){return L=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},L(e)}function E(e,t){var n="data-clipboard-".concat(e);if(t.hasAttribute(n))return t.getAttribute(n)}var N=function(e){k(n,e);var t=_(n);function n(e,a){var o;return C(this,n),o=t.call(this),o.resolveOptions(a),o.listenClick(e),o}return S(n,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"===typeof e.action?e.action:this.defaultAction,this.target="function"===typeof e.target?e.target:this.defaultTarget,this.text="function"===typeof e.text?e.text:this.defaultText,this.container="object"===y(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=i()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy",a=b({action:n,container:this.container,target:this.target(t),text:this.text(t)});this.emit(a?"success":"error",{action:n,text:a,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return E("action",e)}},{key:"defaultTarget",value:function(e){var t=E("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return E("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return m(e,t)}},{key:"cut",value:function(e){return d(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"===typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}]),n}(o()),$=N},828:function(e){var t=9;if("undefined"!==typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}function a(e,n){while(e&&e.nodeType!==t){if("function"===typeof e.matches&&e.matches(n))return e;e=e.parentNode}}e.exports=a},438:function(e,t,n){var a=n(828);function o(e,t,n,a,o){var r=i.apply(this,arguments);return e.addEventListener(n,r,o),{destroy:function(){e.removeEventListener(n,r,o)}}}function r(e,t,n,a,r){return"function"===typeof e.addEventListener?o.apply(null,arguments):"function"===typeof n?o.bind(null,document).apply(null,arguments):("string"===typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return o(e,t,n,a,r)})))}function i(e,t,n,o){return function(n){n.delegateTarget=a(n.target,t),n.delegateTarget&&o.call(e,n)}}e.exports=r},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"===typeof e||e instanceof String},t.fn=function(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t}},370:function(e,t,n){var a=n(879),o=n(438);function r(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!a.string(t))throw new TypeError("Second argument must be a String");if(!a.fn(n))throw new TypeError("Third argument must be a Function");if(a.node(e))return i(e,t,n);if(a.nodeList(e))return l(e,t,n);if(a.string(e))return s(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function i(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}function l(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}function s(e,t,n){return o(document.body,e,t,n)}e.exports=r},817:function(e){function t(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var a=window.getSelection(),o=document.createRange();o.selectNodeContents(e),a.removeAllRanges(),a.addRange(o),t=a.toString()}return t}e.exports=t},279:function(e){function t(){}t.prototype={on:function(e,t,n){var a=this.e||(this.e={});return(a[e]||(a[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var a=this;function o(){a.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),a=0,o=n.length;for(a;a<o;a++)n[a].fn.apply(n[a].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),a=n[e],o=[];if(a&&t)for(var r=0,i=a.length;r<i;r++)a[r].fn!==t&&a[r].fn._!==t&&o.push(a[r]);return o.length?n[e]=o:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t}},t={};function n(a){if(t[a])return t[a].exports;var o=t[a]={exports:{}};return e[a](o,o.exports,n),o.exports}return function(){n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,{a:t}),t}}(),function(){n.d=function(e,t){for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})}}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),n(686)}().default}))},bcfc:function(e,t,n){"use strict";n("914d")},c954:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e._self._c;return t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"table-page-search-wrapper"},[t("a-form",{attrs:{layout:"inline"}},[t("a-row",{attrs:{gutter:24}},[t("a-col",{attrs:{xl:6,lg:7,md:8,sm:24}},[t("a-form-item",{attrs:{label:"表名"}},[t("a-input",{attrs:{placeholder:"请输入表名"},model:{value:e.queryParam.tableName,callback:function(t){e.$set(e.queryParam,"tableName",t)},expression:"queryParam.tableName"}})],1)],1),t("a-col",{attrs:{xl:6,lg:7,md:8,sm:24}},[t("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[t("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),t("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")])],1)])],1)],1)],1),t("div",{staticClass:"table-operator"}),t("div",[t("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[t("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v("\n      已选择\n      "),t("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys.length))]),e._v("\n      项\n      "),t("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),t("a-table",{ref:"table",attrs:{size:"middle",bordered:"",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"action",fn:function(n,a){return[t("a",{on:{click:function(t){return e.handleEdit(a)}}},[e._v("编辑")]),t("a-divider",{attrs:{type:"vertical"}}),t("a-dropdown",[t("a",{staticClass:"ant-dropdown-link"},[e._v("更多\n            "),t("a-icon",{attrs:{type:"down"}})],1),t("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[t("a-menu-item",[t("a",{on:{click:function(t){return e.goPageOnline(a)}}},[e._v("功能测试")])]),t("a-menu-item",[t("a",{on:{click:function(t){return e.handleOnlineUrlShow(a)}}},[e._v("配置地址")])]),t("a-menu-item",[t("a",{on:{click:function(t){return e.goAuthConfig(a.id)}}},[e._v("权限控制")])]),t("a-menu-item",[t("a",{on:{click:function(t){return e.doAuthConfig(a.id)}}},[e._v("角色授权")])]),t("a-menu-item",[t("a",{on:{click:function(t){return e.handleRemoveRecord(a.id)}}},[e._v("移除")])])],1)],1)]}},{key:"dbsync",fn:function(n){return["Y"===n?t("span",{staticStyle:{color:"limegreen"}},[e._v("已同步")]):e._e(),"N"===n?t("span",{staticStyle:{color:"red"}},[e._v("未同步")]):e._e()]}}])})],1),t("onl-cgform-head-modal",{ref:"modalForm",attrs:{"action-button":!1},on:{ok:e.modalFormOk}}),t("a-modal",{attrs:{title:e.onlineUrlTitle,visible:e.onlineUrlVisible},on:{cancel:e.handleOnlineUrlClose}},[t("template",{slot:"footer"},[t("a-button",{on:{click:e.handleOnlineUrlClose}},[e._v("关闭")]),t("a-button",{staticClass:"copy-this-text",attrs:{type:"primary","data-clipboard-text":e.onlineUrl},on:{click:e.onCopyUrl}},[e._v("复制")])],1),t("p",[e._v(e._s(e.onlineUrl))])],2),t("enhance-js",{ref:"ehjs"}),t("enhance-sql",{ref:"ehsql"}),t("enhance-java",{ref:"ehjava"}),t("trans-db2-online",{ref:"transd2o",on:{ok:e.transOk}}),t("onl-cgform-button-list",{ref:"btnList"}),t("auth-manager",{ref:"authManager"}),t("auth-setter",{ref:"authSetter"})],1)},o=[],r=n("5f63"),i=n("0fea"),l=n("b65a"),s=n("b311"),c=n.n(s),u=n("ca00"),d=n("36f0"),f=n("48ee"),h=n("1e3b"),p=n("26bb"),m=n("48b7"),g=n("ecd7"),v=n("5ba2"),b={name:"OnlCgformHeadList",mixins:[l["a"]],components:{OnlCgformHeadModal:r["default"],EnhanceJs:d["default"],EnhanceSql:f["default"],EnhanceJava:h["default"],TransDb2Online:p["default"],OnlCgformButtonList:m["default"],AuthManager:g["default"],AuthSetter:v["default"]},data:function(){return{description:"Online表单视图",columns:[{title:"#",dataIndex:"",key:"rowIndex",width:60,align:"center",customRender:function(e,t,n){return parseInt(n)+1}},{title:"视图表名",align:"center",dataIndex:"tableName"},{title:"视图表描述",align:"center",dataIndex:"tableTxt"},{title:"原表版本",align:"center",dataIndex:"copyVersion"},{title:"视图版本",align:"center",dataIndex:"tableVersion"},{title:"操作",dataIndex:"action",align:"center",scopedSlots:{customRender:"action"}}],url:{list:"/online/cgform/head/list",delete:"/online/cgform/head/delete",deleteBatch:"/online/cgform/head/deleteBatch",removeRecord:"/online/cgform/head/removeRecord"},tableTypeDictOptions:[],sexDictOptions:[],syncModalVisible:!1,syncFormId:"",synMethod:"normal",syncLoading:!1,onlineUrlTitle:"",onlineUrlVisible:!1,onlineUrl:"",selectedRowKeys:[],selectedRows:[],physicId:""}},watch:{$route:function(){this.loadData()}},methods:{getQueryParams:function(){var e=Object.assign({},this.queryParam,this.isorter,this.filters);return e.field=this.getQueryField(),e.pageNo=this.ipagination.current,e.pageSize=this.ipagination.pageSize,e.copyType=1,e.physicId=this.physicId,this.superQueryParams&&(e["superQueryParams"]=encodeURI(this.superQueryParams),e["superQueryMatchType"]=this.superQueryMatchType),Object(u["g"])(e)},loadData:function(e){var t=this;if(!this.$route.params.code)return!1;if(this.physicId=this.$route.params.code,this.url.list){1===e&&(this.ipagination.current=1);var n=this.getQueryParams();this.loading=!0,Object(i["j"])(this.url.list,n).then((function(e){e.success&&(t.dataSource=e.result.records,t.ipagination.total=e.result.total),510===e.code&&t.$message.warning(e.message),t.loading=!1}))}else this.$message.error("请设置url.list属性!")},goPageOnline:function(e){"Y"==e.isTree?this.$router.push({path:"/online/cgformTreeList/"+e.id}):this.$router.push({path:"/online/cgformList/"+e.id})},handleOnlineUrlClose:function(){this.onlineUrlTitle="",this.onlineUrlVisible=!1},handleOnlineUrlShow:function(e){"Y"==e.isTree?this.onlineUrl="/online/cgformTreeList/".concat(e.id):this.onlineUrl="/online/cgformList/".concat(e.id),this.onlineUrlVisible=!0,this.onlineUrlTitle="菜单链接["+e.tableTxt+"]"},handleRemoveRecord:function(e){var t=this;this.$confirm({title:"确认要移除此记录?",onOk:function(){Object(i["b"])(t.url.removeRecord,{id:e}).then((function(e){e.success?(t.$message.success("移除成功"),t.loadData()):t.$message.warning(e.message)}))},onCancel:function(){}})},doEnhanceJs:function(){this.selectedRowKeys&&1==this.selectedRowKeys.length?this.$refs.ehjs.show(this.selectedRowKeys[0]):this.$message.warning("请先选中一条记录")},doEnhanceSql:function(){this.selectedRowKeys&&1==this.selectedRowKeys.length?this.$refs.ehsql.show(this.selectedRowKeys[0]):this.$message.warning("请先选中一条记录")},doEnhanceJava:function(){this.selectedRowKeys&&1==this.selectedRowKeys.length?this.$refs.ehjava.show(this.selectedRowKeys[0]):this.$message.warning("请先选中一条记录")},doCgformButton:function(){this.selectedRowKeys&&1==this.selectedRowKeys.length?this.$refs.btnList.show(this.selectedRowKeys[0]):this.$message.warning("请先选中一条记录")},importOnlineForm:function(){this.$refs.transd2o.show()},transOk:function(){this.loadData()},onSelectChange:function(e,t){this.selectedRowKeys=e,this.selectedRows=t},onCopyUrl:function(){var e=this,t=new c.a(".copy-this-text");t.on("success",(function(){t.destroy(),e.$message.success("复制成功"),e.handleOnlineUrlClose()})),t.on("error",(function(){e.$message.error("该浏览器不支持自动复制"),t.destroy()}))},showMyCopyInfo:function(e){},copyConfig:function(e){var t=this;Object(i["r"])("".concat(this.url.copyOnline,"?code=").concat(e)).then((function(e){e.success?(t.$message.success("复制成功"),t.loadData()):t.$message.error("复制失败>>"+e.message)}))},goAuthConfig:function(e){this.$refs.authManager.show(e)},doAuthConfig:function(e){this.$refs.authSetter.show(e)}}},y=b,C=(n("4dc4"),n("5591"),n("2877")),w=Object(C["a"])(y,a,o,!1,null,"4b598cd2",null);t["default"]=w.exports},ca2e:function(e,t,n){"use strict";n("f126")},d1a5:function(e,t,n){"use strict";n("a968")},de1e:function(e,t,n){"use strict";n("60d9")},f0f0:function(e,t,n){},f126:function(e,t,n){},ff32:function(e,t,n){}}]);