META-INF.resources.static.js.chunk-005cb0c7.1f3abb72.js Maven / Gradle / Ivy
The newest version!
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-005cb0c7"],{"4b72":function(e,t,n){"use strict";n.d(t,"f",(function(){return r})),n.d(t,"e",(function(){return o})),n.d(t,"c",(function(){return l})),n.d(t,"j",(function(){return i})),n.d(t,"d",(function(){return u})),n.d(t,"h",(function(){return s})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return m})),n.d(t,"g",(function(){return b})),n.d(t,"i",(function(){return d}));var a=n("b775");function r(e){return Object(a["a"])({url:"/auto/code/table/page",method:"get",params:e})}function o(e){return Object(a["a"])({url:"/tool/gen/db/list",method:"get",params:e})}function l(e){return Object(a["a"])({url:"/tool/gen/"+e,method:"get"})}function i(e){return Object(a["a"])({url:"/tool/gen",method:"put",data:e})}function u(e){return Object(a["a"])({url:"/tool/gen/importTable",method:"post",params:e})}function s(e){return Object(a["a"])({url:"/tool/gen/preview/"+e,method:"get"})}function c(e){return Object(a["a"])({url:"/tool/gen/"+e,method:"delete"})}function m(e){return Object(a["a"])({url:"/auto/code/table/gen?tableName="+e,method:"get"})}function b(e){return Object(a["a"])({url:"/auto/code/modify/column?tableNames="+e,method:"get"})}function d(e){return Object(a["a"])({url:"/tool/gen/synchDb/"+e,method:"get"})}},"6f72":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-dialog",{attrs:{visible:e.visible,"append-to-body":"",title:"导入表",top:"5vh",width:"800px"},on:{"update:visible":function(t){e.visible=t}}},[n("el-form",{ref:"queryForm",attrs:{inline:!0,model:e.queryParams}},[n("el-form-item",{attrs:{label:"表名称",prop:"tableName"}},[n("el-input",{attrs:{clearable:"",placeholder:"请输入表名称",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.tableName,callback:function(t){e.$set(e.queryParams,"tableName",t)},expression:"queryParams.tableName"}})],1),n("el-form-item",{attrs:{label:"表描述",prop:"tableComment"}},[n("el-input",{attrs:{clearable:"",placeholder:"请输入表描述",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.tableComment,callback:function(t){e.$set(e.queryParams,"tableComment",t)},expression:"queryParams.tableComment"}})],1),n("el-form-item",[n("el-button",{attrs:{icon:"el-icon-search",size:"mini",type:"primary"},on:{click:e.handleQuery}},[e._v("搜索 ")]),n("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置 ")])],1)],1),n("el-row",[n("el-table",{ref:"table",attrs:{data:e.dbTableList,height:"260px"},on:{"row-click":e.clickRow,"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),n("el-table-column",{attrs:{"show-overflow-tooltip":!0,label:"表名称",prop:"tableName"}}),n("el-table-column",{attrs:{"show-overflow-tooltip":!0,label:"表描述",prop:"tableComment"}}),n("el-table-column",{attrs:{label:"创建时间",prop:"createTime"}}),n("el-table-column",{attrs:{label:"更新时间",prop:"updateTime"}})],1),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],attrs:{limit:e.queryParams.size,page:e.queryParams.current,total:e.total},on:{"update:limit":function(t){return e.$set(e.queryParams,"size",t)},"update:page":function(t){return e.$set(e.queryParams,"current",t)},pagination:e.getList}})],1),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary"},on:{click:e.handleImportTable}},[e._v("确 定")]),n("el-button",{on:{click:function(t){e.visible=!1}}},[e._v("取 消")])],1)],1)},r=[],o=(n("d81d"),n("a15b"),n("4b72")),l={data:function(){return{visible:!1,tables:[],total:0,dbTableList:[],queryParams:{current:1,size:10,tableName:void 0,tableComment:void 0}}},methods:{show:function(){this.getList(),this.visible=!0},clickRow:function(e){this.$refs.table.toggleRowSelection(e)},handleSelectionChange:function(e){this.tables=e.map((function(e){return e.tableName}))},getList:function(){var e=this;Object(o["e"])(this.queryParams).then((function(t){200===t.code&&(e.dbTableList=t.rows,e.total=t.total)}))},handleQuery:function(){this.queryParams.current=1,this.getList()},resetQuery:function(){this.resetForm("queryForm"),this.handleQuery()},handleImportTable:function(){var e=this,t=this.tables.join(",");""!=t?Object(o["d"])({tables:t}).then((function(t){e.$modal.msgSuccess(t.msg),200===t.code&&(e.visible=!1,e.$emit("ok"))})):this.$modal.msgError("请选择要导入的表")}}},i=l,u=n("2877"),s=Object(u["a"])(i,a,r,!1,null,null,null);t["default"]=s.exports}}]);