1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0238e9b0"],{"4b72":function(t,e,n){"use strict";n.d(e,"g",(function(){return u})),n.d(e,"f",(function(){return i})),n.d(e,"d",(function(){return c})),n.d(e,"j",(function(){return l})),n.d(e,"e",(function(){return a})),n.d(e,"a",(function(){return s})),n.d(e,"h",(function(){return d})),n.d(e,"b",(function(){return b})),n.d(e,"c",(function(){return f})),n.d(e,"i",(function(){return h}));n("e9c4");var o=n("b775"),r=n("cbd8");function u(t){return Object(o["a"])({url:"/tool/gen/list",method:"get",params:t})}function i(t){return Object(o["a"])({url:"/tool/gen/db/list",method:"get",params:t})}function c(t){return Object(o["a"])({url:"/tool/gen/"+t,method:"get"})}function l(t){return Object(o["a"])({url:"/tool/gen",method:"put",data:r["a"].methods.encrypt(JSON.stringify(t))})}function a(t){return Object(o["a"])({url:"/tool/gen/importTable",method:"post",params:t})}function s(t){return Object(o["a"])({url:"/tool/gen/createTable",method:"post",params:t})}function d(t){return Object(o["a"])({url:"/tool/gen/preview/"+t,method:"get"})}function b(t){return Object(o["a"])({url:"/tool/gen/"+t,method:"delete"})}function f(t){return Object(o["a"])({url:"/tool/gen/genCode/"+t,method:"get"})}function h(t){return Object(o["a"])({url:"/tool/gen/synchDb/"+t,method:"get"})}},"7d85":function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{attrs:{title:"创建表",visible:t.visible,width:"800px",top:"5vh","append-to-body":""},on:{"update:visible":function(e){t.visible=e}}},[n("span",[t._v("创建表语句(支持多个建表语句):")]),n("el-input",{attrs:{type:"textarea",rows:10,placeholder:"请输入文本"},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}}),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary"},on:{click:t.handleCreateTable}},[t._v("确 定")]),n("el-button",{on:{click:function(e){t.visible=!1}}},[t._v("取 消")])],1)],1)},r=[],u=n("4b72"),i={data:function(){return{visible:!1,content:""}},methods:{show:function(){this.visible=!0},handleCreateTable:function(){var t=this;""!==this.content?Object(u["a"])({sql:this.content}).then((function(e){t.$modal.msgSuccess(e.msg),200===e.code&&(t.visible=!1,t.$emit("ok"))})):this.$modal.msgError("请输入建表语句")}}},c=i,l=n("2877"),a=Object(l["a"])(c,o,r,!1,null,null,null);e["default"]=a.exports}}]);
|