← Back
Editing: index-legacy17.js
!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return r};var n,r={},o=Object.prototype,a=o.hasOwnProperty,u=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(n){f=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var o=e&&e.prototype instanceof b?e:b,a=Object.create(o.prototype),i=new A(r||[]);return u(a,"_invoke",{value:S(t,n,i)}),a}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=p;var y="suspendedStart",h="suspendedYield",v="executing",m="completed",g={};function b(){}function w(){}function x(){}var _={};f(_,c,(function(){return this}));var k=Object.getPrototypeOf,j=k&&k(k(M([])));j&&j!==o&&a.call(j,c)&&(_=j);var L=x.prototype=b.prototype=Object.create(_);function C(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function O(e,n){function r(o,u,i,c){var l=d(e[o],e,u);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==t(f)&&a.call(f,"__await")?n.resolve(f.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):n.resolve(f).then((function(t){s.value=t,i(s)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var o;u(this,"_invoke",{value:function(t,e){function a(){return new n((function(n,o){r(t,e,n,o)}))}return o=o?o.then(a,a):a()}})}function S(t,e,r){var o=y;return function(a,u){if(o===v)throw Error("Generator is already running");if(o===m){if("throw"===a)throw u;return{value:n,done:!0}}for(r.method=a,r.arg=u;;){var i=r.delegate;if(i){var c=E(i,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===y)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var l=d(t,e,r);if("normal"===l.type){if(o=r.done?m:h,l.arg===g)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=m,r.method="throw",r.arg=l.arg)}}}function E(t,e){var r=e.method,o=t.iterator[r];if(o===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=n,E(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=d(o,t.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,g;var u=a.arg;return u?u.done?(e[t.resultName]=u.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,g):u:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function q(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(q,this),this.reset(!0)}function M(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,u=function t(){for(;++o<e.length;)if(a.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=n,t.done=!0,t};return u.next=u}}throw new TypeError(t(e)+" is not iterable")}return w.prototype=x,u(L,"constructor",{value:x,configurable:!0}),u(x,"constructor",{value:w,configurable:!0}),w.displayName=f(x,s,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,f(t,s,"GeneratorFunction")),t.prototype=Object.create(L),t},r.awrap=function(t){return{__await:t}},C(O.prototype),f(O.prototype,l,(function(){return this})),r.AsyncIterator=O,r.async=function(t,e,n,o,a){void 0===a&&(a=Promise);var u=new O(p(t,e,n,o),a);return r.isGeneratorFunction(e)?u:u.next().then((function(t){return t.done?t.value:u.next()}))},C(L),f(L,s,"Generator"),f(L,c,(function(){return this})),f(L,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},r.values=M,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&a.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,o){return i.type="throw",i.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var u=this.tryEntries[o],i=u.completion;if("root"===u.tryLoc)return r("end");if(u.tryLoc<=this.prev){var c=a.call(u,"catchLoc"),l=a.call(u,"finallyLoc");if(c&&l){if(this.prev<u.catchLoc)return r(u.catchLoc,!0);if(this.prev<u.finallyLoc)return r(u.finallyLoc)}else if(c){if(this.prev<u.catchLoc)return r(u.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return r(u.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var u=o?o.completion:{};return u.type=t,u.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(u)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:M(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),g}},r}function n(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function r(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){o(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function o(e,n,r){return(n=function(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==t(n)?n:n+""}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function a(t,e,n,r,o,a,u){try{var i=t[a](u),c=i.value}catch(t){return void n(t)}i.done?e(c):Promise.resolve(c).then(r,o)}function u(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var u=t.apply(e,n);function i(t){a(u,r,o,i,c,"next",t)}function c(t){a(u,r,o,i,c,"throw",t)}i(void 0)}))}}function i(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}(t)||function(){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 c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}System.register(["./utils-lib-legacy.js?v=VERSION_NUMBER","./index-legacy103.js?v=VERSION_NUMBER","./index-legacy112.js?v=VERSION_NUMBER","./index-legacy123.js?v=VERSION_NUMBER","./index-legacy124.js?v=VERSION_NUMBER","./base-lib-legacy.js?v=VERSION_NUMBER","./index-legacy130.js?v=VERSION_NUMBER","./column-legacy.js?v=VERSION_NUMBER","./database-legacy.js?v=VERSION_NUMBER","./useMethod-legacy4.js?v=VERSION_NUMBER","./useStore-legacy2.js?v=VERSION_NUMBER","./validator-legacy.js?v=VERSION_NUMBER","./index-legacy131.js?v=VERSION_NUMBER","./index.vue_vue_type_script_setup_true_lang-legacy3.js?v=VERSION_NUMBER","./index.vue_vue_type_script_setup_true_lang-legacy4.js?v=VERSION_NUMBER","./__commonjsHelpers__-legacy.js?v=VERSION_NUMBER","./index-legacy104.js?v=VERSION_NUMBER","./index.vue_vue_type_style_index_0_scoped_b3c4124c_lang-legacy.js?v=VERSION_NUMBER"],(function(t,n){"use strict";var o,a,c,l,s,f,p,d,y,h,v,m,g,b,w,x,_,k,j,L,C,O,S,E,q,P,A,M,T,D,N,I,G,V,R,U,F,B,H,Y,Q,z,J,W,K,Z,$,X,tt,et,nt,rt,ot,at,ut,it,ct,lt,st,ft,pt,dt,yt,ht,vt,mt,gt,bt,wt,xt,_t,kt,jt,Lt,Ct,Ot,St,Et,qt,Pt,At,Mt,Tt,Dt,Nt,It;return{setters:[function(t){o=t.u,a=t.K,c=t.n,l=t.L,s=t.an,f=t.M,p=t.ao,d=t.c,y=t.ap,h=t.J,v=t.ak,m=t.l,g=t.a0,b=t.aq,w=t.ar,t.as,x=t.S},function(t){_=t._},function(t){k=t._},function(t){j=t._},function(t){L=t.B},function(t){C=t.c,O=t.aE,S=t.g,E=t.k,q=t.r,P=t.w,A=t.Z,M=t.p,T=t.G,D=t.q,N=t.v,I=t.x,G=t.M,V=t.A,R=t.e,U=t.C,F=t.y,B=t.P,H=t.F,Y=t.z,Q=t.B,z=t.Q,J=t.J,W=t.H,K=t.al,Z=t.aW,$=t.D,X=t.ap,tt=t.ao,et=t.an,nt=t.aQ},function(t){rt=t._},function(t){ot=t.a,at=t.f,ut=t.g,it=t.u},function(t){ct=t.addDbTypes,lt=t.modifyDbTypes,st=t.delDbTypes,ft=t.getMysqlRootPwd,pt=t.getMysqlCloudServer,dt=t.setAutoConfig,yt=t.getDbTypes,ht=t.getMysqlList,vt=t.getAutoConfig},function(t){mt=t.o,gt=t.a,bt=t.b,wt=t.c,xt=t.s,_t=t.d,kt=t.e,jt=t.f,Lt=t.g,Ct=t.h,Ot=t.i,St=t.j,Et=t.k,qt=t.l},function(t){Pt=t.g},function(t){At=t.e,Mt=t.g,Tt=t.p},function(t){Dt=t.B},function(t){Nt=t._},function(t){It=t._},null,null,null],execute:function(){var Gt={class:"inline-flex items-center mr-2rem"},Vt={key:0,class:"text-[12px]"},Rt={class:"flex items-center"};t("default",C({__name:"index",setup:function(t){var C=Pt(),Ut=C.refs,Ft=Ut.isRefreshTable,Bt=Ut.isLoading,Ht=Ut.softData,Yt=Ut.isHaveServer,Qt=Ut.isRefreshClassList,zt=C.resetRefresh,Jt=C.refreshTableList,Wt=O(),Kt=o(),Zt=Kt.payment,$t=Kt.mainWidth,Xt=S((function(){return Zt.value.authType})),te=E({status:!1,code:""}),ee=q(!1),ne=q(""),re=E({total:0,page:1,row:10}),oe=q([]),ae=q([]),ue=q(null),ie=q("all"),ce=q(""),le=q([]),se=q([]),fe=q([]),pe=S((function(){return $t.value>1530?280:$t.value>1440?200:$t.value>1200?150:120})),de=S((function(){return!Ht.value.setup&&!Yt.value}));P(Qt,(function(t){t&&(Qt.value=!1,xe())}));var ye,he,ve=[{label:"设置权限",value:"permission",event:(he=u(e().mark((function t(n,o,a,u,i,c){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",wt(a.value,"multlples",r(r({},c),{},{clearBatch:i})));case 1:case"end":return t.stop()}}),t)}))),function(t,e,n,r,o,a){return he.apply(this,arguments)})},{label:"设置分类",value:"class",event:(ye=u(e().mark((function t(n,r,o,a,u,i){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:xt(o,u,me,i);case 1:case"end":return t.stop()}}),t)}))),function(t,e,n,r,o,a){return ye.apply(this,arguments)})}].concat(i(_t())),me=q([]),ge=q([]),be=function(t){ce.value=t,re.page=1,Jt()},we=function(){re.page=1,Jt()},xe=function(){var t=u(e().mark((function t(){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a({request:yt({db_type:"mysql"}),data:{msg:Array},success:function(t){var e=t.msg;me.value=i(e.map((function(t){return{label:t.ps,value:String(t.id)}}))),se.value=[{label:"全部分类",value:"all"}].concat(i(e.map((function(t){return{label:t.ps,value:String(t.id)}})))),ge.value=se.value.map((function(t){return t.value})).filter((function(t){return Number(t)>=0||"all"===t}))}});case 2:return t.abrupt("return",Promise.resolve(se.value||[]));case 3:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),_e=function(){var t=u(e().mark((function t(){var n;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a({loading:"正在获取密码,请稍后...",request:ft({table:"config",id:1,key:"mysql_root"}),data:String});case 2:n=t.sent,kt(n);case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),ke=function(t){c({title:"高级设置",area:[96,62],compData:t,component:function(){return l((function(){return n.import("./index-legacy128.js?v=VERSION_NUMBER")}),void 0,n.meta.url)}})},je=function(){var t=u(e().mark((function t(n,r){var o,a,u;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=f.success("正在跳转phpMyAdmin,请稍后..."),t.prev=1,t.next=4,b({sName:"phpmyadmin"});case 4:if(a=t.sent,u=a.data,"panel"!==r){t.next=13;break}if(null==u||!u.ext.auth){t.next=9;break}return t.abrupt("return",f.error("当前phpMyAdmin已开启密码访问,请使用【通过公共访问】进行访问"));case 9:if("false"!==(null==u?void 0:u.setup)){t.next=11;break}return t.abrupt("return",f.error("当前phpMyAdmin未安装,请先安装phpMyAdmin"));case 11:return t.next=13,w(n.username,n.password);case 13:t.next=18;break;case 15:t.prev=15,t.t0=t.catch(1);case 18:return t.prev=18,o.close(),t.finish(18);case 21:case"end":return t.stop()}}),t,null,[[1,15,18,21]])})));return function(e,n){return t.apply(this,arguments)}}(),Le=function(){var t=u(e().mark((function t(){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a({request:pt(),data:[Array,le]});case 2:return le.value.length||(Yt.value=!1),t.abrupt("return",le.value);case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),Ce=function(){var t=u(e().mark((function t(){var n,r=arguments;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return""===(n=r.length>0&&void 0!==r[0]?r[0]:{p:re.page,limit:re.row,table:"databases",search:ce.value,sid:"all"===ie.value?"":ie.value}).sid&&delete n.sid,Number(n.sid)<0&&(n.type_id=n.sid,delete n.sid),t.next=5,a({loading:Bt,request:ht(n),data:{data:[Array,oe],page:x(re),search_history:[Array,fe],error:String},success:function(t){Et.value=t.data,t.error&&(te.status=!0,te.code=t.error)}});case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),Oe=function(){var t=u(e().mark((function t(){var n,r;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,vt({name:"mysql"});case 3:n=t.sent,r=n.data,ee.value=!!r.status,ne.value=r.cycle,t.next=11;break;case 9:t.prev=9,t.t0=t.catch(0);case 11:case"end":return t.stop()}}),t,null,[[0,9]])})));return function(){return t.apply(this,arguments)}}(),Se=function(){var t=u(e().mark((function t(n){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return ee.value=n,t.prev=1,t.next=4,a({loading:"正在设置自动备份数据库...",request:dt({name:"mysql",status:n?1:0}),message:!0,success:function(t){t.status||(ee.value=!n)}});case 4:t.next=8;break;case 6:t.prev=6,t.t0=t.catch(1);case 8:return t.prev=8,undefined.close(),t.finish(8);case 11:case"end":return t.stop()}}),t,null,[[1,6,8,11]])})));return function(e){return t.apply(this,arguments)}}(),Ee=function(){return Wt.push({path:"/crontab/task"})},qe=function(){localStorage.setItem("MYSQL-RECYCLE","true"),window.location.href="/files"},Pe=function(){var t=u(e().mark((function t(){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return ae.value=Me(),!de.value&&Mt({promises:[xe],delay:1e3}),Oe(),Ce(),t.next=6,Le();case 6:ae.value=Me(),s(ae.value,"database_mysql_column");case 8:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),Ae=[{name:"企业增量备份",ename:"increment",callback:function(){return ke("increment")}},{name:"远程数据库",ename:"server",callback:function(){return gt()}},{name:"关联服务",ename:"service",callback:function(){return ke("service")}},{name:"容量限制",ename:"capacity",callback:function(){return oe.value.length?oe.value.some((function(t){return 0===t.sid}))?void function(t){"ltd"===Xt.value?0===t.sid?c({title:"数据库配额",area:50,component:function(){return l((function(){return n.import("./index-legacy129.js?v=VERSION_NUMBER")}),void 0,n.meta.url)},compData:t,showFooter:!0}):f.error("仅本地数据库支持设置容量配额"):Tt({sourceId:52})}(oe.value.filter((function(t){return 0===t.sid}))[0]):f.error("当前页暂无本地数据库进行容量配额!"):f.error("暂无数据库,请先添加数据库")}},{name:"敏感词检测",ename:"sensitive",callback:function(){return ke("sensitive")}},{name:"Mysql用户管理",ename:"user",callback:function(){return ke("user")}}],Me=function(){return[ot({type:"page",key:"id"})].concat(i(jt(Ot)),[at({event:function(t,e){return qt(t,e)}}),Lt(le.value,"mysql"),ut({table:"databases"}),it([{isHide:function(t){return!!t.sid},onClick:function(t){return je(t,"panel")},title:"管理"},{onClick:wt,title:"权限"},{onClick:function(t){return Ct(t)},title:"工具"},{onClick:function(t){return Ot(t)},title:"改密"},{onClick:function(t){return St(t)},title:"删除"}])])};return P((function(){return Ft.value}),function(){var t=u(e().mark((function t(n){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=3;break}return t.next=3,Ce();case 3:zt();case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),A("serverList",le),M(Pe),function(t,e){var n=rt,r=p,o=K,a=Z,u=$,i=X,c=tt,l=et,s=nt,f=d,b=L,w=y,x=h,C=j,O=v,S=m,E=g,q=k,P=_,A=T("bt-loading");return D(),N("div",null,[I(de)?(D(),G(n,{key:0,options:I(Ht)},{content:V((function(){return[R(Nt,{type:"Mysql"})]})),_:1},8,["options"])):U("",!0),I(te).status?(D(),G(r,{key:1,options:I(te)},null,8,["options"])):U("",!0),R(a,{type:"info",closable:!1,class:"!mb-[12px]","show-icon":""},{title:V((function(){return[F("div",Gt,[e[8]||(e[8]=F("div",{class:"mr-4 min-w-max text-[#555] text-[12px]"},"自动备份数据库",-1)),R(o,{size:"small",class:"mr-8px",modelValue:I(ee),"onUpdate:modelValue":e[0]||(e[0]=function(t){return B(ee)?ee.value=t:null}),width:36,onChange:Se},null,8,["modelValue"]),I(ee)?(D(),N(H,{key:1},[F("span",null,Y(I(ne)),1),F("span",{class:"bt-link",onClick:Ee},"[前往计划任务]")],64)):(D(),N("div",Vt," 添加数据库后,可开启自动备份,保证数据安全。 "))])]})),_:1}),R(P,null,{"header-left":V((function(){return[F("div",Rt,[R(u,{type:"primary",onClick:e[1]||(e[1]=function(t){return I(mt)(Le)})},{default:V((function(){return e[9]||(e[9]=[Q(" 添加数据库 ")])})),_:1}),I(Ht).setup?(D(),G(u,{key:0,onClick:_e},{default:V((function(){return e[10]||(e[10]=[Q("root密码")])})),_:1})):U("",!0),R(u,{onClick:I(gt)},{default:V((function(){return e[11]||(e[11]=[Q("远程数据库")])})),_:1},8,["onClick"]),R(u,{onClick:I(bt)},{default:V((function(){return e[12]||(e[12]=[Q("phpMyAdmin")])})),_:1},8,["onClick"]),R(l,{class:"ml-10px","split-button":"",type:"default",onClick:e[2]||(e[2]=z((function(t){return ke("route")}),["stop"])),onCommand:ke},{dropdown:V((function(){return[R(c,null,{default:V((function(){return[R(i,{command:"route"},{default:V((function(){return e[13]||(e[13]=[Q("数据库备份")])})),_:1}),R(i,{command:"user"},{default:V((function(){return e[14]||(e[14]=[Q(" 用户管理 ")])})),_:1}),R(i,{command:"service"},{default:V((function(){return e[15]||(e[15]=[Q("关联服务")])})),_:1}),R(i,{command:"process"},{default:V((function(){return e[16]||(e[16]=[Q(" 守护进程 ")])})),_:1}),R(i,{command:"reinforce"},{default:V((function(){return e[17]||(e[17]=[Q(" 等保加固 ")])})),_:1})]})),_:1})]})),default:V((function(){return[e[18]||(e[18]=Q(" 高级设置 "))]})),_:1}),R(It,{"comp-data":I(le),class:"mx-[1rem]"},null,8,["comp-data"]),R(s,{content:"点击跳转数据库回收站",placement:"top"},{default:V((function(){return[R(u,{type:"default",onClick:qe},{default:V((function(){return e[19]||(e[19]=[F("i",{class:"svgtofont-el-delete mr-2px"},null,-1),F("span",{class:"<2xl:hidden"},"回收站",-1)])})),_:1})]})),_:1}),I(Ht).setup&&I($t)>1200?(D(),G(Dt,{key:1,class:"ml-[1rem]","plugin-name":"mysql","is-request":!1,pluginInfo:I(Ht)},null,8,["pluginInfo"])):U("",!0),R(f,{onClick:e[3]||(e[3]=function(t){return I(At)({name:"数据库",type:12,id:17})}),icon:"desired",class:"ml-[12px] <2xl:hidden",iconClass:"text-1.6rem"},{default:V((function(){return e[20]||(e[20]=[Q(" 需求反馈 ")])})),_:1})])]})),"header-right":V((function(){return[R(b,{class:"mr-[10px] !w-[14rem]",modelValue:I(ie),"onUpdate:modelValue":e[4]||(e[4]=function(t){return B(ie)?ie.value=t:null}),onChange:we,name:"Mysql",options:I(se),config:{getClassList:xe,addClass:function(t){var e=t.ps;return ct({ps:e,db_type:"mysql"})},editClass:function(t){var e=t.ps,n=t.id;return lt({ps:e,id:n,db_type:"mysql"})},deleteClass:function(t){var e=t.id;return st({id:e,db_type:"mysql"})}},ignore:I(ge)},null,8,["modelValue","options","config","ignore"]),R(x,{class:J("!w-[".concat(I(pe),"px]")),disabledPopover:!1,modelValue:I(ce),"onUpdate:modelValue":e[5]||(e[5]=function(t){return B(ce)?ce.value=t:null}),clearable:"",placeholder:"请输入数据库名称/备注",onSearch:be},{default:V((function(){return[R(w,{list:{historyList:I(fe),recommendList:Ae},name:"databases",keys:"databases",onUpdate:I(Jt),onSearch:be},null,8,["list","onUpdate"])]})),_:1},8,["class","modelValue"]),R(C,{class:"ml-[10px]",onRefresh:I(Jt)},null,8,["onRefresh"]),R(O,{name:"database_mysql",class:"ml-[10px]","table-ref":I(ue),column:I(ae)},null,8,["table-ref","column"])]})),content:V((function(){return[W(R(S,{ref_key:"mysqlDbTableRef",ref:ue,column:I(ae),data:I(oe),total:I(re).total},null,8,["column","data","total"]),[[A,I(Bt)]])]})),"footer-left":V((function(){return[R(E,{options:ve,"table-ref":I(ue)},null,8,["table-ref"])]})),"footer-right":V((function(){return[R(q,{total:I(re).total,page:I(re).page,"onUpdate:page":e[6]||(e[6]=function(t){return I(re).page=t}),row:I(re).row,"onUpdate:row":e[7]||(e[7]=function(t){return I(re).row=t}),onChange:I(Jt)},null,8,["total","page","row","onChange"])]})),_:1})])}}}))}}}))}();
Save File
Cancel