Commit b038b14f by 无尘

feat: 增加接口

parent b238d663
.m-l-10[data-v-1396d742]{margin-left:10px}.w-130[data-v-1396d742]{width:130px}
\ No newline at end of file
.m-b-20[data-v-032f449c]{margin-bottom:20px}
\ No newline at end of file
.m-l-10[data-v-405f4d76]{margin-left:10px}.w-130[data-v-405f4d76]{width:130px}.w-249[data-v-405f4d76]{width:249px}.w-180[data-v-405f4d76]{width:180px}.span-dot[data-v-405f4d76]{display:inline-block;vertical-align:middle;width:6px;height:6px;margin-right:6px;border-radius:3px}.span-dot.bg-52c41a[data-v-405f4d76]{background:#52c41a}.span-dot.bg-d9d9d9[data-v-405f4d76]{background:#d9d9d9}
\ No newline at end of file
.w-279[data-v-8e08dcd2]{width:279px}
\ No newline at end of file
.w-279[data-v-71479443]{width:279px}.m-b-20[data-v-71479443]{margin-bottom:20px}
\ No newline at end of file
<!DOCTYPE html><html lang=cn><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.48.css><link rel=stylesheet type=text/css href=static/fonts/iconfont.css><title>好办</title><link href=css/chunk-015b2776.930b27fa.css rel=prefetch><link href=css/chunk-126ea711.12980bcb.css rel=prefetch><link href=css/chunk-2e5207cc.ff2543ba.css rel=prefetch><link href=css/chunk-448cb576.d0755970.css rel=prefetch><link href=css/chunk-4566970e.f9174fd0.css rel=prefetch><link href=css/chunk-512af800.73a18d33.css rel=prefetch><link href=css/chunk-ce6e75c2.5c2cd5fc.css rel=prefetch><link href=css/chunk-e7c4557e.4f971e39.css rel=prefetch><link href=js/chunk-015b2776.92bf6393.js rel=prefetch><link href=js/chunk-0cd94ba7.bf32def3.js rel=prefetch><link href=js/chunk-126ea711.1927465d.js rel=prefetch><link href=js/chunk-22af8244.f7b854db.js rel=prefetch><link href=js/chunk-2e5207cc.ff5b4a9d.js rel=prefetch><link href=js/chunk-448cb576.a6f1f4e7.js rel=prefetch><link href=js/chunk-4566970e.8f92af78.js rel=prefetch><link href=js/chunk-512af800.a7b7d1df.js rel=prefetch><link href=js/chunk-b9d67818.6c5b5c6f.js rel=prefetch><link href=js/chunk-ce6e75c2.9409f4b5.js rel=prefetch><link href=js/chunk-e7c4557e.1b36022d.js rel=prefetch><link href=css/app.072f9719.css rel=preload as=style><link href=css/chunk-vendors.635bc84a.css rel=preload as=style><link href=js/app.94ffc6ae.js rel=preload as=script><link href=js/chunk-vendors.1cef5819.js rel=preload as=script><link href=css/chunk-vendors.635bc84a.css rel=stylesheet><link href=css/app.072f9719.css rel=stylesheet></head><body class=damolish><noscript><strong>We're sorry but damolish doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vue/2.6.10/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vuex/3.0.1/vuex.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/axios/0.19.0/axios.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/layout.1.2.46.js></script><script src=//web-1251519181.file.myqcloud.com/components/editor.1.1.11.js></script><script src=//web-1251519181.file.myqcloud.com/components/user-info.1.0.3.js></script><script src=js/chunk-vendors.1cef5819.js></script><script src=js/app.94ffc6ae.js></script></body></html> <!DOCTYPE html><html lang=cn><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.48.css><link rel=stylesheet type=text/css href=static/fonts/iconfont.css><title>好办</title><link href=css/chunk-126ea711.12980bcb.css rel=prefetch><link href=css/chunk-3a94616c.ba19d67f.css rel=prefetch><link href=css/chunk-448cb576.d0755970.css rel=prefetch><link href=css/chunk-4566970e.f9174fd0.css rel=prefetch><link href=css/chunk-512af800.73a18d33.css rel=prefetch><link href=css/chunk-73040fe8.b74edfde.css rel=prefetch><link href=css/chunk-c93d6954.6168ba80.css rel=prefetch><link href=css/chunk-ce6e75c2.5c2cd5fc.css rel=prefetch><link href=css/chunk-e7c4557e.4f971e39.css rel=prefetch><link href=js/chunk-126ea711.1927465d.js rel=prefetch><link href=js/chunk-22af8244.f7b854db.js rel=prefetch><link href=js/chunk-3a94616c.61ce46ee.js rel=prefetch><link href=js/chunk-448cb576.a6f1f4e7.js rel=prefetch><link href=js/chunk-4566970e.8f92af78.js rel=prefetch><link href=js/chunk-512af800.a7b7d1df.js rel=prefetch><link href=js/chunk-73040fe8.b11760c0.js rel=prefetch><link href=js/chunk-c93d6954.40bff73e.js rel=prefetch><link href=js/chunk-ce6e75c2.9409f4b5.js rel=prefetch><link href=js/chunk-e0354b28.47793da0.js rel=prefetch><link href=js/chunk-e7c4557e.1b36022d.js rel=prefetch><link href=css/app.072f9719.css rel=preload as=style><link href=css/chunk-vendors.635bc84a.css rel=preload as=style><link href=js/app.67bc7d4d.js rel=preload as=script><link href=js/chunk-vendors.1cef5819.js rel=preload as=script><link href=css/chunk-vendors.635bc84a.css rel=stylesheet><link href=css/app.072f9719.css rel=stylesheet></head><body class=damolish><noscript><strong>We're sorry but damolish doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vue/2.6.10/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vuex/3.0.1/vuex.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/axios/0.19.0/axios.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/layout.1.2.46.js></script><script src=//web-1251519181.file.myqcloud.com/components/editor.1.1.11.js></script><script src=//web-1251519181.file.myqcloud.com/components/user-info.1.0.3.js></script><script src=js/chunk-vendors.1cef5819.js></script><script src=js/app.67bc7d4d.js></script></body></html>
\ No newline at end of file \ No newline at end of file
(function(e){function t(t){for(var a,r,i=t[0],u=t[1],s=t[2],l=0,f=[];l<i.length;l++)r=i[l],Object.prototype.hasOwnProperty.call(o,r)&&o[r]&&f.push(o[r][0]),o[r]=0;for(a in u)Object.prototype.hasOwnProperty.call(u,a)&&(e[a]=u[a]);d&&d(t);while(f.length)f.shift()();return c.push.apply(c,s||[]),n()}function n(){for(var e,t=0;t<c.length;t++){for(var n=c[t],a=!0,r=1;r<n.length;r++){var i=n[r];0!==o[i]&&(a=!1)}a&&(c.splice(t--,1),e=u(u.s=n[0]))}return e}var a={},r={app:0},o={app:0},c=[];function i(e){return u.p+"js/"+({}[e]||e)+"."+{"chunk-126ea711":"1927465d","chunk-22af8244":"f7b854db","chunk-3a94616c":"61ce46ee","chunk-448cb576":"a6f1f4e7","chunk-4566970e":"8f92af78","chunk-512af800":"a7b7d1df","chunk-73040fe8":"b11760c0","chunk-c93d6954":"40bff73e","chunk-ce6e75c2":"9409f4b5","chunk-e0354b28":"47793da0","chunk-e7c4557e":"1b36022d"}[e]+".js"}function u(t){if(a[t])return a[t].exports;var n=a[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,u),n.l=!0,n.exports}u.e=function(e){var t=[],n={"chunk-126ea711":1,"chunk-3a94616c":1,"chunk-448cb576":1,"chunk-4566970e":1,"chunk-512af800":1,"chunk-73040fe8":1,"chunk-c93d6954":1,"chunk-ce6e75c2":1,"chunk-e7c4557e":1};r[e]?t.push(r[e]):0!==r[e]&&n[e]&&t.push(r[e]=new Promise((function(t,n){for(var a="css/"+({}[e]||e)+"."+{"chunk-126ea711":"12980bcb","chunk-22af8244":"31d6cfe0","chunk-3a94616c":"ba19d67f","chunk-448cb576":"d0755970","chunk-4566970e":"f9174fd0","chunk-512af800":"73a18d33","chunk-73040fe8":"b74edfde","chunk-c93d6954":"6168ba80","chunk-ce6e75c2":"5c2cd5fc","chunk-e0354b28":"31d6cfe0","chunk-e7c4557e":"4f971e39"}[e]+".css",o=u.p+a,c=document.getElementsByTagName("link"),i=0;i<c.length;i++){var s=c[i],l=s.getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(l===a||l===o))return t()}var f=document.getElementsByTagName("style");for(i=0;i<f.length;i++){s=f[i],l=s.getAttribute("data-href");if(l===a||l===o)return t()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.onload=t,d.onerror=function(t){var a=t&&t.target&&t.target.src||o,c=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");c.code="CSS_CHUNK_LOAD_FAILED",c.request=a,delete r[e],d.parentNode.removeChild(d),n(c)},d.href=o;var h=document.getElementsByTagName("head")[0];h.appendChild(d)})).then((function(){r[e]=0})));var a=o[e];if(0!==a)if(a)t.push(a[2]);else{var c=new Promise((function(t,n){a=o[e]=[t,n]}));t.push(a[2]=c);var s,l=document.createElement("script");l.charset="utf-8",l.timeout=120,u.nc&&l.setAttribute("nonce",u.nc),l.src=i(e);var f=new Error;s=function(t){l.onerror=l.onload=null,clearTimeout(d);var n=o[e];if(0!==n){if(n){var a=t&&("load"===t.type?"missing":t.type),r=t&&t.target&&t.target.src;f.message="Loading chunk "+e+" failed.\n("+a+": "+r+")",f.name="ChunkLoadError",f.type=a,f.request=r,n[1](f)}o[e]=void 0}};var d=setTimeout((function(){s({type:"timeout",target:l})}),12e4);l.onerror=l.onload=s,document.head.appendChild(l)}return Promise.all(t)},u.m=e,u.c=a,u.d=function(e,t,n){u.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},u.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,t){if(1&t&&(e=u(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(u.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)u.d(n,a,function(t){return e[t]}.bind(null,a));return n},u.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return u.d(t,"a",t),t},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.p="",u.oe=function(e){throw e};var s=window["webpackJsonp"]=window["webpackJsonp"]||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var f=0;f<s.length;f++)t(s[f]);var d=l;c.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){n("db4d"),e.exports=n("56d7")},"013a":function(e,t){e.exports="data:image/png;base64,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"},"17f7":function(e,t,n){},"195a":function(e,t,n){"use strict";var a=n("17f7"),r=n.n(a);r.a},2464:function(e,t,n){},"365c":function(e,t,n){"use strict";var a=n("71f6"),r={getUserInfo:"/loginuser",getLoginOut:"/logout"};r=Object(a["a"])(r,"/gic-authcenter"),t["a"]=r},"4f94":function(e,t,n){},"56d7":function(e,t,n){"use strict";n.r(t);n("456d"),n("ac6a"),n("cadf"),n("551c"),n("f751"),n("097d"),n("db4d"),n("0fae"),n("4f94"),n("d31c");var a=n("8bbf"),r=n.n(a),o=n("8c4f"),c=n("cebe"),i=n.n(c),u=n("5c96"),s=n.n(u),l=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dm-reset",attrs:{id:"app"}},[n("router-view")],1)},f=[],d={name:"App"},h=d,p=(n("7c55"),n("2877")),g=Object(p["a"])(h,l,f,!1,null,null,null),m=g.exports,b=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"layout"},[n("yw-header",{on:{updateAsideMenu:e.updateAsideMenu}}),n("aside-menu",{attrs:{menu:e.menu}}),n("div",{staticClass:"main"},[e.breadList.length?n("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},e._l(e.breadList,(function(t){return n("el-breadcrumb-item",{key:t,attrs:{to:{path:t.path}}},[e._v(e._s(t.name))])})),1):e._e(),n("keep-alive",[e.$route.meta.keepAlive?n("router-view",{key:e.$route.fullPath,on:{updateBread:e.updateBread}}):e._e()],1),e.$route.meta.keepAlive?e._e():n("router-view",{key:e.$route.fullPath,on:{updateBread:e.updateBread}})],1)],1)},v=[],k=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"header"},[a("a",{staticClass:"logo",attrs:{href:e.origin+"/operation-platform/#/index"}},[a("img",{attrs:{src:n("013a"),alt:""}}),a("span",[e._v("好办运维平台")])]),a("yw-user-info",{attrs:{"user-data":e.userInfo}})],1)},y=[];function w(){var e=window.location.origin;return(e.indexOf("localhost")>=0||e.indexOf("192.168")>=0)&&(e="https://four.gicdev.com"),e}var M=w(),S=n("365c"),x=S["a"].getUserInfo,C={name:"YwHeader",data:function(){return{origin:M,userInfo:{}}},created:function(){this.getUserInfo()},methods:{getUserInfo:function(){var e=this;x().then((function(t){var n=t.result||{};localStorage.setItem("haobanOperate",JSON.stringify(n)),e.userInfo=Object.assign({},n),e.$emit("updateAsideMenu",n.menuTree||[])}))}}},T=C,E=(n("195a"),Object(p["a"])(T,k,y,!1,null,"c28f5328",null)),O=E.exports,A=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"aside-menu"},[n("ul",{staticClass:"aside-menu__wrapper"},[e._l(e.tabData,(function(t){return[1==t.isShow?n("li",{key:t.id,class:["tab-left-list-cell p-l-14",{"active-tab":t.uri===e.activeTab}],on:{click:function(n){return e.selectTab(t)}}},[e._v("\n "+e._s(t.menuName)+"\n "),t.nodeChildren&&t.nodeChildren.length?n("i",{class:[t.collapsFlag?"el-icon-arrow-up":"el-icon-arrow-down"]}):e._e()]):e._e(),n("ul",{directives:[{name:"show",rawName:"v-show",value:t.collapsFlag,expression:"item.collapsFlag"}],key:t.id+"-sub",staticClass:"child-tab-left-list"},[e._l(t.nodeChildren,(function(t){return[1==t.isShow?n("li",{key:t.id,class:["tab-left-list-cell p-l-40",{"active-tab":t.uri==e.activeTab}],on:{click:function(n){return e.selectTab(t)}}},[e._v("\n "+e._s(t.menuName)+"\n "),t.nodeChildren&&t.nodeChildren.length?n("i",{class:[t.collapsFlag?"el-icon-arrow-up":"el-icon-arrow-down"]}):e._e()]):e._e(),n("ul",{directives:[{name:"show",rawName:"v-show",value:t.collapsFlag,expression:"childitem.collapsFlag"}],key:t.id+"-sub",staticClass:"third-tab-left-list"},[e._l(t.nodeChildren,(function(t){return[1==t.isShow?n("li",{key:t.id,class:["tab-left-list-cell p-l-60",{"active-tab":t.uri===e.activeTab}],on:{click:function(n){return e.selectTab(t)}}},[e._v("\n "+e._s(t.menuName)+"\n ")]):e._e()]}))],2)]}))],2)]}))],2)])},I=[],j={name:"AsideMenu",props:{menu:Array},data:function(){return{activeTab:"",tabData:[]}},methods:{selectTab:function(e){Array.isArray(e.nodeChildren)&&e.nodeChildren.length>0?e.collapsFlag=!e.collapsFlag:this.$router.push({path:e.uri})}},watch:{"$route.path":{immediate:!0,handler:function(e){this.activeTab=e}},menu:{immediate:!0,handler:function(e){var t=this,n=e.filter((function(e){return"haoban_operation"===e.code}))[0]||{};function a(e){return e=e.slice(),e.map((function(e){return t.$set(e,"collapsFlag",!0),e.nodeChildren&&e.nodeChildren.length>0&&(e.nodeChildren=a(e.nodeChildren)),e}))}this.tabData=a(n.nodeChildren||[])}}}},Q=j,H=(n("77ce"),Object(p["a"])(Q,A,I,!1,null,"ef5d1a82",null)),Y=H.exports,F={name:"Layout",components:{ywHeader:O,asideMenu:Y},data:function(){return{menu:[],breadList:[]}},methods:{updateAsideMenu:function(e){this.menu=e||[]},updateBread:function(e){this.breadList=e||[]}},watch:{"$route.path":function(){this.breadList=[]}}},K=F,W=(n("b7dd"),Object(p["a"])(K,b,v,!1,null,"0ae88e85",null)),J=W.exports,R=[{path:"/",component:J,redirect:"/enterprise-list",children:[{path:"/enterprise-list",meta:{title:"企业管理"},component:function(){return n.e("chunk-e7c4557e").then(n.bind(null,"6cf8"))}},{path:"/enterprise-detail",meta:{title:"企业详情"},component:function(){return n.e("chunk-512af800").then(n.bind(null,"d1a4"))}},{path:"/menu-config",meta:{title:"菜单配置"},component:function(){return n.e("chunk-ce6e75c2").then(n.bind(null,"d8f8"))}},{path:"/permission-list",meta:{title:"权限项列表"},component:function(){return n.e("chunk-e0354b28").then(n.bind(null,"a664"))}},{path:"/operation-list",meta:{title:"操作项列表"},component:function(){return n.e("chunk-126ea711").then(n.bind(null,"0ce1"))}},{path:"/dictionary-list",meta:{title:"字典管理"},component:function(){return n.e("chunk-4566970e").then(n.bind(null,"31b3"))}},{path:"/create-dictionary",meta:{title:"新建、编辑字典"},component:function(){return n.e("chunk-22af8244").then(n.bind(null,"3a0f"))}},{path:"/project-sql",meta:{title:"项目列表"},component:function(){return n.e("chunk-c93d6954").then(n.bind(null,"fe48"))}},{path:"/table-sql",meta:{title:"表列表"},component:function(){return n.e("chunk-73040fe8").then(n.bind(null,"97b0"))}},{path:"/sql-list",meta:{title:"sql列表"},component:function(){return n.e("chunk-3a94616c").then(n.bind(null,"c310"))}}]},{path:"/403",meta:{title:"无权访问"},component:function(){return n.e("chunk-448cb576").then(n.bind(null,"4cf1"))}},{path:"/404",meta:{title:"error404"},component:function(){return n.e("chunk-448cb576").then(n.bind(null,"4cf1"))}},{path:"/500",meta:{title:"error500"},component:function(){return n.e("chunk-448cb576").then(n.bind(null,"4cf1"))}},{path:"*",redirect:"/404",hidden:!0}],z=new o["a"]({routes:R}),N=z,D=(n("c5f6"),n("3b2b"),n("a481"),n("6b54"),function(e,t){if(e){e=10===e.toString().length?1e3*e:e;var n=new Date(e),a={"M+":n.getMonth()+1,"D+":n.getDate(),W:"日一二三四五六".charAt(n.getDay()),"h+":n.getHours(),"m+":n.getMinutes(),"s+":n.getSeconds(),"q+":Math.floor((n.getMonth()+3)/3),S:n.getMilliseconds()};for(var r in/(Y+)/.test(t)&&(t=t.replace(RegExp.$1,(n.getFullYear()+"").substr(4-RegExp.$1.length))),a)new RegExp("("+r+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?a[r]:("00"+a[r]).substr((""+a[r]).length)));return t}}),U=function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),r=n<10?"0"+n:n,o=t.getHours()<10?"0"+t.getHours():t.getHours(),c=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return"".concat(t.getFullYear(),"-").concat(r,"-").concat(a," ").concat(o,":").concat(c,":").concat(i)}},q=function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),r=n<10?"0"+n:n,o=t.getHours()<10?"0"+t.getHours():t.getHours(),c=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return"".concat(t.getFullYear(),".").concat(r,".").concat(a," ").concat(o,":").concat(c,":").concat(i)}},P=function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=n<10?"0"+n:n;return"".concat(t.getFullYear(),"-").concat(a)}},V=function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),r=n<10?"0"+n:n;return"".concat(t.getFullYear(),"-").concat(r,"-").concat(a)}},L=function(e){if(e){var t=new Date(e),n=t.getHours()<10?"0"+t.getHours():t.getHours(),a=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),r=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return"".concat(n,":").concat(a,":").concat(r)}},G=function(e){if(e){var t=new Date,n=new Date(Number(e)).getTime()-t.getTime();if(n<0)return"";var a=Math.floor(n/864e5),r=n%864e5,o=Math.floor(r/36e5),c=r%36e5,i=Math.floor(c/6e4);return"".concat(a,"天").concat(o,"小时").concat(i,"分")}},Z=function(e){return e?(e=e.toString(),e.substr(0,3)+"****"+e.substr(7,11)):""},B=function(e){return e?(e=e.toString(),"**"+e.substr(e.length-1,e.length)):""},X=function(e){if(!e)return"00:00:00";var t=e/1e3,n=Math.floor(t/60/60/24),a=24*n+Math.floor(t/60/60)%24<10?"0"+(24*n+Math.floor(t/60/60)%24):24*n+Math.floor(t/60/60)%24,r=Math.floor(t/60)%60<10?"0"+Math.floor(t/60)%60:Math.floor(t/60)%60,o=Math.floor(t)%60<10?"0"+Math.floor(t)%60:Math.floor(t)%60;return"".concat(a,":").concat(r,":").concat(o)},_={dateFormat:D,formatTimeStamp:U,timeStampToYm:P,timeStampToYmd:V,timeStampToHms:L,formatTimeYmdHms:q,formatPhoneNum:Z,formatName:B,timeStampSpace:G,formatTime:X};r.a.use(o["a"]),r.a.use(s.a),i.a.defaults.withCredentials=!0,r.a.prototype.axios=i.a,r.a.config.devtools=!1,r.a.config.productionTip=!1,Object.keys(_).forEach((function(e){r.a.filter(e,_[e])})),new r.a({router:N,render:function(e){return e(m)}}).$mount("#app")},"71f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));n("ac6a"),n("456d");var a=n("cebe"),r=n.n(a),o=n("4328"),c=n.n(o),i=n("5c96"),u=!0,s=u?window.location.origin:"https://four.gicdev.com";r.a.defaults.baseURL=s;var l=function(e,t){t=Object.assign({},t),e=Object.assign({},e);var n={url:"",params:"",data:"",method:"get",useFormData:!1,useIntercept:!0,headers:{}};switch(n=Object.assign(n,e),n.useFormData&&(t=c.a.stringify(t)),n.method.toLowerCase()){case"get":n.params=t;break;case"post":n.data=t;break;default:n.data=t;break}return new Promise((function(e,t){r()(n).then((function(a){var r=a.data;if(!n.useIntercept||"0000"===r.code)return e(r);r.message&&Object(i["Message"])({message:r.message,type:"warning",duration:3e3}),t(r)})).catch((function(e){var n=e.response||{},a=n.data,r=n.status;if(401===r){var o=u?"../operation-platform/":"https://four.gicdev.com/operation-platform/";window.location.href=o}a&&a.message&&Object(i["Message"])({message:a.message,type:"warning"}),t(e)}))}))};function f(e,t){e=e||{};var n=Object.keys(e);return n.forEach((function(n){var a=e[n];"string"===typeof a&&(a={url:a}),a.url="".concat(t).concat(a.url),e[n]=function(e){return l(a,e)}})),e}},"77ce":function(e,t,n){"use strict";var a=n("838a"),r=n.n(a);r.a},"7c55":function(e,t,n){"use strict";var a=n("2464"),r=n.n(a);r.a},"838a":function(e,t,n){},"8bbf":function(e,t){e.exports=Vue},b7dd:function(e,t,n){"use strict";var a=n("e4e3"),r=n.n(a);r.a},cebe:function(e,t){e.exports=axios},d31c:function(e,t,n){},e4e3:function(e,t,n){}});
\ No newline at end of file
(function(e){function t(t){for(var a,r,i=t[0],u=t[1],s=t[2],l=0,f=[];l<i.length;l++)r=i[l],Object.prototype.hasOwnProperty.call(o,r)&&o[r]&&f.push(o[r][0]),o[r]=0;for(a in u)Object.prototype.hasOwnProperty.call(u,a)&&(e[a]=u[a]);d&&d(t);while(f.length)f.shift()();return c.push.apply(c,s||[]),n()}function n(){for(var e,t=0;t<c.length;t++){for(var n=c[t],a=!0,r=1;r<n.length;r++){var i=n[r];0!==o[i]&&(a=!1)}a&&(c.splice(t--,1),e=u(u.s=n[0]))}return e}var a={},r={app:0},o={app:0},c=[];function i(e){return u.p+"js/"+({}[e]||e)+"."+{"chunk-015b2776":"92bf6393","chunk-0cd94ba7":"bf32def3","chunk-126ea711":"1927465d","chunk-22af8244":"f7b854db","chunk-2e5207cc":"ff5b4a9d","chunk-448cb576":"a6f1f4e7","chunk-4566970e":"8f92af78","chunk-512af800":"a7b7d1df","chunk-b9d67818":"6c5b5c6f","chunk-ce6e75c2":"9409f4b5","chunk-e7c4557e":"1b36022d"}[e]+".js"}function u(t){if(a[t])return a[t].exports;var n=a[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,u),n.l=!0,n.exports}u.e=function(e){var t=[],n={"chunk-015b2776":1,"chunk-126ea711":1,"chunk-2e5207cc":1,"chunk-448cb576":1,"chunk-4566970e":1,"chunk-512af800":1,"chunk-ce6e75c2":1,"chunk-e7c4557e":1};r[e]?t.push(r[e]):0!==r[e]&&n[e]&&t.push(r[e]=new Promise((function(t,n){for(var a="css/"+({}[e]||e)+"."+{"chunk-015b2776":"930b27fa","chunk-0cd94ba7":"31d6cfe0","chunk-126ea711":"12980bcb","chunk-22af8244":"31d6cfe0","chunk-2e5207cc":"ff2543ba","chunk-448cb576":"d0755970","chunk-4566970e":"f9174fd0","chunk-512af800":"73a18d33","chunk-b9d67818":"31d6cfe0","chunk-ce6e75c2":"5c2cd5fc","chunk-e7c4557e":"4f971e39"}[e]+".css",o=u.p+a,c=document.getElementsByTagName("link"),i=0;i<c.length;i++){var s=c[i],l=s.getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(l===a||l===o))return t()}var f=document.getElementsByTagName("style");for(i=0;i<f.length;i++){s=f[i],l=s.getAttribute("data-href");if(l===a||l===o)return t()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.onload=t,d.onerror=function(t){var a=t&&t.target&&t.target.src||o,c=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");c.code="CSS_CHUNK_LOAD_FAILED",c.request=a,delete r[e],d.parentNode.removeChild(d),n(c)},d.href=o;var h=document.getElementsByTagName("head")[0];h.appendChild(d)})).then((function(){r[e]=0})));var a=o[e];if(0!==a)if(a)t.push(a[2]);else{var c=new Promise((function(t,n){a=o[e]=[t,n]}));t.push(a[2]=c);var s,l=document.createElement("script");l.charset="utf-8",l.timeout=120,u.nc&&l.setAttribute("nonce",u.nc),l.src=i(e);var f=new Error;s=function(t){l.onerror=l.onload=null,clearTimeout(d);var n=o[e];if(0!==n){if(n){var a=t&&("load"===t.type?"missing":t.type),r=t&&t.target&&t.target.src;f.message="Loading chunk "+e+" failed.\n("+a+": "+r+")",f.name="ChunkLoadError",f.type=a,f.request=r,n[1](f)}o[e]=void 0}};var d=setTimeout((function(){s({type:"timeout",target:l})}),12e4);l.onerror=l.onload=s,document.head.appendChild(l)}return Promise.all(t)},u.m=e,u.c=a,u.d=function(e,t,n){u.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},u.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,t){if(1&t&&(e=u(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(u.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)u.d(n,a,function(t){return e[t]}.bind(null,a));return n},u.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return u.d(t,"a",t),t},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.p="",u.oe=function(e){throw e};var s=window["webpackJsonp"]=window["webpackJsonp"]||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var f=0;f<s.length;f++)t(s[f]);var d=l;c.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){n("db4d"),e.exports=n("56d7")},"013a":function(e,t){e.exports="data:image/png;base64,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"},"17f7":function(e,t,n){},"195a":function(e,t,n){"use strict";var a=n("17f7"),r=n.n(a);r.a},2464:function(e,t,n){},"365c":function(e,t,n){"use strict";var a=n("71f6"),r={getUserInfo:"/loginuser",getLoginOut:"/logout"};r=Object(a["a"])(r,"/gic-authcenter"),t["a"]=r},"4f94":function(e,t,n){},"56d7":function(e,t,n){"use strict";n.r(t);n("456d"),n("ac6a"),n("cadf"),n("551c"),n("f751"),n("097d"),n("db4d"),n("0fae"),n("4f94"),n("d31c");var a=n("8bbf"),r=n.n(a),o=n("8c4f"),c=n("cebe"),i=n.n(c),u=n("5c96"),s=n.n(u),l=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dm-reset",attrs:{id:"app"}},[n("router-view")],1)},f=[],d={name:"App"},h=d,p=(n("7c55"),n("2877")),g=Object(p["a"])(h,l,f,!1,null,null,null),m=g.exports,b=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"layout"},[n("yw-header",{on:{updateAsideMenu:e.updateAsideMenu}}),n("aside-menu",{attrs:{menu:e.menu}}),n("div",{staticClass:"main"},[e.breadList.length?n("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},e._l(e.breadList,(function(t){return n("el-breadcrumb-item",{key:t,attrs:{to:{path:t.path}}},[e._v(e._s(t.name))])})),1):e._e(),n("keep-alive",[e.$route.meta.keepAlive?n("router-view",{key:e.$route.fullPath,on:{updateBread:e.updateBread}}):e._e()],1),e.$route.meta.keepAlive?e._e():n("router-view",{key:e.$route.fullPath,on:{updateBread:e.updateBread}})],1)],1)},v=[],k=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"header"},[a("a",{staticClass:"logo",attrs:{href:e.origin+"/operation-platform/#/index"}},[a("img",{attrs:{src:n("013a"),alt:""}}),a("span",[e._v("好办运维平台")])]),a("yw-user-info",{attrs:{"user-data":e.userInfo}})],1)},y=[];function w(){var e=window.location.origin;return(e.indexOf("localhost")>=0||e.indexOf("192.168")>=0)&&(e="https://four.gicdev.com"),e}var M=w(),S=n("365c"),x=S["a"].getUserInfo,C={name:"YwHeader",data:function(){return{origin:M,userInfo:{}}},created:function(){this.getUserInfo()},methods:{getUserInfo:function(){var e=this;x().then((function(t){var n=t.result||{};localStorage.setItem("haobanOperate",JSON.stringify(n)),e.userInfo=Object.assign({},n),e.$emit("updateAsideMenu",n.menuTree||[])}))}}},T=C,E=(n("195a"),Object(p["a"])(T,k,y,!1,null,"c28f5328",null)),O=E.exports,A=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"aside-menu"},[n("ul",{staticClass:"aside-menu__wrapper"},[e._l(e.tabData,(function(t){return[1==t.isShow?n("li",{key:t.id,class:["tab-left-list-cell p-l-14",{"active-tab":t.uri===e.activeTab}],on:{click:function(n){return e.selectTab(t)}}},[e._v("\n "+e._s(t.menuName)+"\n "),t.nodeChildren&&t.nodeChildren.length?n("i",{class:[t.collapsFlag?"el-icon-arrow-up":"el-icon-arrow-down"]}):e._e()]):e._e(),n("ul",{directives:[{name:"show",rawName:"v-show",value:t.collapsFlag,expression:"item.collapsFlag"}],key:t.id+"-sub",staticClass:"child-tab-left-list"},[e._l(t.nodeChildren,(function(t){return[1==t.isShow?n("li",{key:t.id,class:["tab-left-list-cell p-l-40",{"active-tab":t.uri==e.activeTab}],on:{click:function(n){return e.selectTab(t)}}},[e._v("\n "+e._s(t.menuName)+"\n "),t.nodeChildren&&t.nodeChildren.length?n("i",{class:[t.collapsFlag?"el-icon-arrow-up":"el-icon-arrow-down"]}):e._e()]):e._e(),n("ul",{directives:[{name:"show",rawName:"v-show",value:t.collapsFlag,expression:"childitem.collapsFlag"}],key:t.id+"-sub",staticClass:"third-tab-left-list"},[e._l(t.nodeChildren,(function(t){return[1==t.isShow?n("li",{key:t.id,class:["tab-left-list-cell p-l-60",{"active-tab":t.uri===e.activeTab}],on:{click:function(n){return e.selectTab(t)}}},[e._v("\n "+e._s(t.menuName)+"\n ")]):e._e()]}))],2)]}))],2)]}))],2)])},I=[],j={name:"AsideMenu",props:{menu:Array},data:function(){return{activeTab:"",tabData:[]}},methods:{selectTab:function(e){Array.isArray(e.nodeChildren)&&e.nodeChildren.length>0?e.collapsFlag=!e.collapsFlag:this.$router.push({path:e.uri})}},watch:{"$route.path":{immediate:!0,handler:function(e){this.activeTab=e}},menu:{immediate:!0,handler:function(e){var t=this,n=e.filter((function(e){return"haoban_operation"===e.code}))[0]||{};function a(e){return e=e.slice(),e.map((function(e){return t.$set(e,"collapsFlag",!0),e.nodeChildren&&e.nodeChildren.length>0&&(e.nodeChildren=a(e.nodeChildren)),e}))}this.tabData=a(n.nodeChildren||[])}}}},Q=j,H=(n("77ce"),Object(p["a"])(Q,A,I,!1,null,"ef5d1a82",null)),Y=H.exports,F={name:"Layout",components:{ywHeader:O,asideMenu:Y},data:function(){return{menu:[],breadList:[]}},methods:{updateAsideMenu:function(e){this.menu=e||[]},updateBread:function(e){this.breadList=e||[]}},watch:{"$route.path":function(){this.breadList=[]}}},K=F,W=(n("b7dd"),Object(p["a"])(K,b,v,!1,null,"0ae88e85",null)),J=W.exports,R=[{path:"/",component:J,redirect:"/enterprise-list",children:[{path:"/enterprise-list",meta:{title:"企业管理"},component:function(){return n.e("chunk-e7c4557e").then(n.bind(null,"6cf8"))}},{path:"/enterprise-detail",meta:{title:"企业详情"},component:function(){return n.e("chunk-512af800").then(n.bind(null,"d1a4"))}},{path:"/menu-config",meta:{title:"菜单配置"},component:function(){return n.e("chunk-ce6e75c2").then(n.bind(null,"d8f8"))}},{path:"/permission-list",meta:{title:"权限项列表"},component:function(){return n.e("chunk-b9d67818").then(n.bind(null,"a664"))}},{path:"/operation-list",meta:{title:"操作项列表"},component:function(){return n.e("chunk-126ea711").then(n.bind(null,"0ce1"))}},{path:"/dictionary-list",meta:{title:"字典管理"},component:function(){return n.e("chunk-4566970e").then(n.bind(null,"31b3"))}},{path:"/create-dictionary",meta:{title:"新建、编辑字典"},component:function(){return n.e("chunk-22af8244").then(n.bind(null,"3a0f"))}},{path:"/project-sql",meta:{title:"项目列表"},component:function(){return n.e("chunk-2e5207cc").then(n.bind(null,"fe48"))}},{path:"/table-sql",meta:{title:"表列表"},component:function(){return n.e("chunk-0cd94ba7").then(n.bind(null,"97b0"))}},{path:"/sql-list",meta:{title:"sql列表"},component:function(){return n.e("chunk-015b2776").then(n.bind(null,"c310"))}}]},{path:"/403",meta:{title:"无权访问"},component:function(){return n.e("chunk-448cb576").then(n.bind(null,"4cf1"))}},{path:"/404",meta:{title:"error404"},component:function(){return n.e("chunk-448cb576").then(n.bind(null,"4cf1"))}},{path:"/500",meta:{title:"error500"},component:function(){return n.e("chunk-448cb576").then(n.bind(null,"4cf1"))}},{path:"*",redirect:"/404",hidden:!0}],z=new o["a"]({routes:R}),N=z,D=(n("c5f6"),n("3b2b"),n("a481"),n("6b54"),function(e,t){if(e){e=10===e.toString().length?1e3*e:e;var n=new Date(e),a={"M+":n.getMonth()+1,"D+":n.getDate(),W:"日一二三四五六".charAt(n.getDay()),"h+":n.getHours(),"m+":n.getMinutes(),"s+":n.getSeconds(),"q+":Math.floor((n.getMonth()+3)/3),S:n.getMilliseconds()};for(var r in/(Y+)/.test(t)&&(t=t.replace(RegExp.$1,(n.getFullYear()+"").substr(4-RegExp.$1.length))),a)new RegExp("("+r+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?a[r]:("00"+a[r]).substr((""+a[r]).length)));return t}}),U=function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),r=n<10?"0"+n:n,o=t.getHours()<10?"0"+t.getHours():t.getHours(),c=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return"".concat(t.getFullYear(),"-").concat(r,"-").concat(a," ").concat(o,":").concat(c,":").concat(i)}},q=function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),r=n<10?"0"+n:n,o=t.getHours()<10?"0"+t.getHours():t.getHours(),c=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return"".concat(t.getFullYear(),".").concat(r,".").concat(a," ").concat(o,":").concat(c,":").concat(i)}},P=function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=n<10?"0"+n:n;return"".concat(t.getFullYear(),"-").concat(a)}},V=function(e){if(e){var t=new Date(e),n=t.getMonth()+1,a=t.getDate()<10?"0"+t.getDate():t.getDate(),r=n<10?"0"+n:n;return"".concat(t.getFullYear(),"-").concat(r,"-").concat(a)}},L=function(e){if(e){var t=new Date(e),n=t.getHours()<10?"0"+t.getHours():t.getHours(),a=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),r=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return"".concat(n,":").concat(a,":").concat(r)}},G=function(e){if(e){var t=new Date,n=new Date(Number(e)).getTime()-t.getTime();if(n<0)return"";var a=Math.floor(n/864e5),r=n%864e5,o=Math.floor(r/36e5),c=r%36e5,i=Math.floor(c/6e4);return"".concat(a,"天").concat(o,"小时").concat(i,"分")}},Z=function(e){return e?(e=e.toString(),e.substr(0,3)+"****"+e.substr(7,11)):""},B=function(e){return e?(e=e.toString(),"**"+e.substr(e.length-1,e.length)):""},X=function(e){if(!e)return"00:00:00";var t=e/1e3,n=Math.floor(t/60/60/24),a=24*n+Math.floor(t/60/60)%24<10?"0"+(24*n+Math.floor(t/60/60)%24):24*n+Math.floor(t/60/60)%24,r=Math.floor(t/60)%60<10?"0"+Math.floor(t/60)%60:Math.floor(t/60)%60,o=Math.floor(t)%60<10?"0"+Math.floor(t)%60:Math.floor(t)%60;return"".concat(a,":").concat(r,":").concat(o)},_={dateFormat:D,formatTimeStamp:U,timeStampToYm:P,timeStampToYmd:V,timeStampToHms:L,formatTimeYmdHms:q,formatPhoneNum:Z,formatName:B,timeStampSpace:G,formatTime:X};r.a.use(o["a"]),r.a.use(s.a),i.a.defaults.withCredentials=!0,r.a.prototype.axios=i.a,r.a.config.devtools=!1,r.a.config.productionTip=!1,Object.keys(_).forEach((function(e){r.a.filter(e,_[e])})),new r.a({router:N,render:function(e){return e(m)}}).$mount("#app")},"71f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));n("ac6a"),n("456d");var a=n("cebe"),r=n.n(a),o=n("4328"),c=n.n(o),i=n("5c96"),u=!0,s=u?window.location.origin:"https://four.gicdev.com";r.a.defaults.baseURL=s;var l=function(e,t){t=Object.assign({},t),e=Object.assign({},e);var n={url:"",params:"",data:"",method:"get",useFormData:!1,useIntercept:!0,headers:{}};switch(n=Object.assign(n,e),n.useFormData&&(t=c.a.stringify(t)),n.method.toLowerCase()){case"get":n.params=t;break;case"post":n.data=t;break;default:n.data=t;break}return new Promise((function(e,t){r()(n).then((function(a){var r=a.data;if(!n.useIntercept||"0000"===r.code)return e(r);r.message&&Object(i["Message"])({message:r.message,type:"warning",duration:3e3}),t(r)})).catch((function(e){var n=e.response||{},a=n.data,r=n.status;if(401===r){var o=u?"../operation-platform/":"https://four.gicdev.com/operation-platform/";window.location.href=o}a&&a.message&&Object(i["Message"])({message:a.message,type:"warning"}),t(e)}))}))};function f(e,t){e=e||{};var n=Object.keys(e);return n.forEach((function(n){var a=e[n];"string"===typeof a&&(a={url:a}),a.url="".concat(t).concat(a.url),e[n]=function(e){return l(a,e)}})),e}},"77ce":function(e,t,n){"use strict";var a=n("838a"),r=n.n(a);r.a},"7c55":function(e,t,n){"use strict";var a=n("2464"),r=n.n(a);r.a},"838a":function(e,t,n){},"8bbf":function(e,t){e.exports=Vue},b7dd:function(e,t,n){"use strict";var a=n("e4e3"),r=n.n(a);r.a},cebe:function(e,t){e.exports=axios},d31c:function(e,t,n){},e4e3:function(e,t,n){}});
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-015b2776"],{"28a5":function(e,t,l){"use strict";var a=l("aae3"),n=l("cb7c"),s=l("ebd6"),o=l("0390"),r=l("9def"),i=l("5f1b"),c=l("520a"),u=l("79e5"),d=Math.min,h=[].push,f="split",p="length",m="lastIndex",g=4294967295,b=!u((function(){RegExp(g,"y")}));l("214f")("split",2,(function(e,t,l,u){var v;return v="c"=="abbc"[f](/(b)*/)[1]||4!="test"[f](/(?:)/,-1)[p]||2!="ab"[f](/(?:ab)*/)[p]||4!="."[f](/(.?)(.?)/)[p]||"."[f](/()()/)[p]>1||""[f](/.?/)[p]?function(e,t){var n=String(this);if(void 0===e&&0===t)return[];if(!a(e))return l.call(n,e,t);var s,o,r,i=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,f=void 0===t?g:t>>>0,b=new RegExp(e.source,u+"g");while(s=c.call(b,n)){if(o=b[m],o>d&&(i.push(n.slice(d,s.index)),s[p]>1&&s.index<n[p]&&h.apply(i,s.slice(1)),r=s[0][p],d=o,i[p]>=f))break;b[m]===s.index&&b[m]++}return d===n[p]?!r&&b.test("")||i.push(""):i.push(n.slice(d)),i[p]>f?i.slice(0,f):i}:"0"[f](void 0,0)[p]?function(e,t){return void 0===e&&0===t?[]:l.call(this,e,t)}:l,[function(l,a){var n=e(this),s=void 0==l?void 0:l[t];return void 0!==s?s.call(l,n,a):v.call(String(n),l,a)},function(e,t){var a=u(v,e,this,t,v!==l);if(a.done)return a.value;var c=n(e),h=String(this),f=s(c,RegExp),p=c.unicode,m=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(b?"y":"g"),q=new f(b?c:"^(?:"+c.source+")",m),w=void 0===t?g:t>>>0;if(0===w)return[];if(0===h.length)return null===i(q,h)?[h]:[];var C=0,k=0,S=[];while(k<h.length){q.lastIndex=b?k:0;var x,I=i(q,b?h:h.slice(k));if(null===I||(x=d(r(q.lastIndex+(b?0:k)),h.length))===C)k=o(h,k,p);else{if(S.push(h.slice(C,k)),S.length===w)return S;for(var F=1;F<=I.length-1;F++)if(S.push(I[F]),S.length===w)return S;k=C=x}}return S.push(h.slice(C)),S}]}))},bfac:function(e,t,l){"use strict";var a=l("e65e"),n=l.n(a);n.a},c310:function(e,t,l){"use strict";l.r(t);var a=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",{staticClass:"common-right"},[l("div",{staticClass:"m-b-20"},[l("el-input",{staticClass:"w-274",attrs:{placeholder:"SQL搜索",maxlength:"150",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.searchInput)}(t)}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}}),l("el-date-picker",{staticClass:"m-l-10",attrs:{"prefix-icon":"el-icon-time",type:"daterange","range-separator":"~",placeholder:"选择日期"},on:{change:e.changeDate},model:{value:e.createDate,callback:function(t){e.createDate=t},expression:"createDate"}}),l("el-select",{staticClass:"m-l-10 w-130",attrs:{placeholder:"请选择"},on:{change:e.changeCondition},model:{value:e.sqlCheckIndexType,callback:function(t){e.sqlCheckIndexType=t},expression:"sqlCheckIndexType"}},e._l(e.perfectOption,(function(e){return l("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),l("el-select",{staticClass:"m-l-10 w-130",attrs:{placeholder:"请选择"},on:{change:e.changeCondition},model:{value:e.statusFlag,callback:function(t){e.statusFlag=t},expression:"statusFlag"}},e._l(e.onlineOption,(function(e){return l("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),l("el-select",{staticClass:"m-l-10 w-130",attrs:{placeholder:"请选择"},on:{change:e.changeCondition},model:{value:e.sqlCheckIndexStatus,callback:function(t){e.sqlCheckIndexStatus=t},expression:"sqlCheckIndexStatus"}},e._l(e.isPerfectOption,(function(e){return l("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),l("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[l("el-table-column",{attrs:{type:"selection",width:"55"}}),l("el-table-column",{attrs:{label:"项目名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.sqlCheckProjectName||"--"))]}}])}),l("el-table-column",{attrs:{label:"表名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.sqlCheckTableName||"--"))]}}])}),l("el-table-column",{attrs:{label:"是否需要完善","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-switch",{attrs:{"active-text":"''","inactive-text":"''"},on:{change:function(l){return e.changePerfect(l,t.row)}},model:{value:t.row.sqlCheckIndexStatus,callback:function(l){e.$set(t.row,"sqlCheckIndexStatus",l)},expression:"scope.row.sqlCheckIndexStatus"}})]}}])}),l("el-table-column",{attrs:{label:"SQL","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.sqlCheckSql||"--"))]}}])}),l("el-table-column",{attrs:{label:"完善状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.sqlCheckIndexType?"已完善":"未完善"))]}}])}),l("el-table-column",{attrs:{label:"上线状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-switch",{attrs:{"active-text":"''","inactive-text":"''"},on:{change:function(l){return e.changeStatus(l,t.row)}},model:{value:t.row.statusFlag,callback:function(l){e.$set(t.row,"statusFlag",l)},expression:"scope.row.statusFlag"}})]}}])}),l("el-table-column",{attrs:{prop:"",label:"创建时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[l("div",[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime))+" "+e._s(t.row.createTime?"":"--"))]),l("div",[e._v(e._s(e._f("timeStampToHms")(t.row.createTime))+" "+e._s(t.row.createTime?"":"--"))])]}}])}),l("el-table-column",{attrs:{label:"操作人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.commitName||"--"))]}}])}),l("el-table-column",{attrs:{prop:"",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[l("el-button",{attrs:{type:"text"},on:{click:function(l){return e.toShowIndex(t.row)}}},[e._v("完善索引")]),l("el-button",{attrs:{type:"text"},on:{click:function(l){return e.toShowDetail(t.row)}}},[e._v("详情")])]}}])})],1),0!=e.tableData.length?l("div",{staticClass:"block common-wrap__page text-right m-t-24"},[l("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e(),e.showDetail?l("sql-detail",{attrs:{"sql-row":e.sqlRow}}):e._e(),e.showIndex?l("index-dialog",{attrs:{"sql-check-sql-id":e.sqlCheckSqlId}}):e._e()],1)},n=[],s=(l("ac6a"),function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("el-dialog",{attrs:{title:"SQL 详情",visible:e.dialogVisible,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[l("div",{},[l("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"label-width":"10px"},nativeOn:{submit:function(e){e.preventDefault()}}},[l("el-form-item",{attrs:{label:"项目名称",prop:""}},[e._v("\n "+e._s(e.ruleForm.sqlCheckProjectName||"--")+"\n ")]),l("el-form-item",{attrs:{label:"表名称",prop:""}},[e._v("\n "+e._s(e.ruleForm.sqlCheckTableName||"--")+"\n ")]),l("el-form-item",{attrs:{label:"SQL",prop:""}},[l("el-input",{staticClass:"w-440",attrs:{readonly:"",type:"textarea",rows:"3",maxlength:"500","show-word-limit":""},model:{value:e.ruleForm.sqlCheckSql,callback:function(t){e.$set(e.ruleForm,"sqlCheckSql",t)},expression:"ruleForm.sqlCheckSql"}})],1),l("el-form-item",{attrs:{label:"完善状态",prop:""}},[e._v("\n "+e._s(e.ruleForm.sqlCheckIndexType?"已完善":"未完善")+"\n ")]),l("el-form-item",{attrs:{label:"上线状态",prop:""}},[e._v("\n "+e._s(e.ruleForm.statusFlag?"已上线":"未上线")+"\n ")])],1)],1)])}),o=[],r=(l("456d"),{name:"SqlDetail",components:{},props:{sqlRow:{type:Object,default:function(){return{}}}},data:function(){return{dialogVisible:!0,loadBtn:!1,ruleForm:{sqlCheckSqlId:"",sqlCheckSql:"",sqlCheckProjectName:"",sqlCheckTableName:"",sqlCheckIndexType:"",statusFlag:""}}},mounted:function(){var e=this;Object.keys(e.sqlRow).length&&(e.ruleForm=JSON.parse(JSON.stringify(e.sqlRow)))},methods:{handleClose:function(){var e=this;e.$emit("closeText"),e.$refs["ruleForm"].resetFields()}},watch:{sqlRow:function(e){var t=this;Object.keys(e).length&&(t.ruleForm=JSON.parse(JSON.stringify(e)))}}}),i=r,c=l("2877"),u=Object(c["a"])(i,s,o,!1,null,"d3e9a3b4",null),d=u.exports,h=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("el-dialog",{attrs:{title:"完善索引",visible:e.dialogVisible,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[l("div",{},[l("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"10px"},nativeOn:{submit:function(e){e.preventDefault()}}},[l("el-form-item",{attrs:{label:"",prop:"sqlIndex"}},[l("el-input",{staticClass:"w-440",attrs:{type:"textarea",rows:"3",maxlength:"500","show-word-limit":""},model:{value:e.ruleForm.sqlIndex,callback:function(t){e.$set(e.ruleForm,"sqlIndex",t)},expression:"ruleForm.sqlIndex"}})],1)],1)],1),l("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{on:{click:e.toCancel}},[e._v("取消")]),l("el-button",{attrs:{type:"primary",loading:e.loadBtn},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("确认")])],1)])},f=[],p=l("d157"),m=l("e56e"),g=l("5c96"),b={showmsg:function(e,t){Object(g["Message"])({duration:1e3,message:e,type:t})}},v=m["a"].addSqlIndex,q={name:"IndexDialog",components:{},props:{sqlCheckSqlId:{type:String}},data:function(){return{userInfo:localStorage.getItem("haobanOperate")?JSON.parse(localStorage.getItem("haobanOperate")):{id:"",userMobile:"",realName:""},dialogVisible:!0,loadBtn:!1,ruleForm:{sqlCheckSqlId:"",sqlIndex:""},rules:{sqlIndex:[{required:!0,message:"请输入",trigger:"blur"}]}}},mounted:function(){var e=this;e.sqlCheckSqlId&&(e.ruleForm.sqlCheckSqlId=e.sqlCheckSqlId)},methods:{toCancel:function(){var e=this;e.$emit("closeText"),e.$refs["ruleForm"].resetFields()},handleClose:function(e){var t=this;t.$emit("closeText"),t.$refs["ruleForm"].resetFields()},submitForm:Object(p["a"])((function(e){var t=this;t.$refs[e].validate((function(e){e&&t.postSave()}))}),300),postSave:function(){var e=this;e.loadBtn=!0;var t={sqlCheckSqlId:e.ruleForm.sqlCheckSqlId,sqlIndex:Object(p["b"])(e.ruleForm.sqlIndex),commitId:e.userInfo.id};v(t).then((function(t){e.loadBtn=!1,"0000"==t.code?(b.showmsg("操作成功","success"),e.$refs["ruleForm"].resetFields(),e.$emit("submitText")):(e.$message({message:t.message||"接口错误",type:"warning"}),e.$emit("submitText"))})).catch((function(t){e.loadBtn=!1}))}},watch:{}},w=q,C=Object(c["a"])(w,h,f,!1,null,"5ec525c8",null),k=C.exports,S=m["a"].getSqlList,x=m["a"].setPerfect,I=m["a"].setStatus,F={name:"SqlList",components:{sqlDetail:d,indexDialog:k},data:function(){return{userInfo:localStorage.getItem("haobanOperate")?JSON.parse(localStorage.getItem("haobanOperate")):{id:"",userMobile:"",realName:""},searchInput:"",createDate:[],sqlCheckIndexType:"",perfectOption:[{value:"",label:"全部完善状态"},{value:"1",label:"已完善"},{value:"0",label:"未完善"}],statusFlag:"",onlineOption:[{value:"",label:"全部上线状态"},{value:"1",label:"已上线"},{value:"0",label:"未上线"}],sqlCheckIndexStatus:"",isPerfectOption:[{value:"",label:"全部"},{value:"1",label:"是"},{value:"0",label:"否"}],currentPage:1,pageSize:20,total:0,loading:!1,tableData:[],multipleSelection:[],showDetail:!1,sqlRow:{},showIndex:!1,sqlCheckSqlId:""}},mounted:function(){var e=this;e.getTableData()},methods:{changeCondition:function(){var e=this;e.currentPage=1,e.getTableData()},toShowIndex:function(e){var t=this;t.showIndex=!0,t.sqlCheckSqlId=e.sqlCheckSqlId},changePerfect:function(e,t){var l=this,a={sqlCheckIndexStatus:e?1:0,sqlCheckSqlId:t.sqlCheckSqlId,commitId:l.userInfo.id};x(a).then((function(e){"0000"==e.code?(l.$message({message:"设置成功",type:"success"}),l.currentPage=1,l.getTableData()):l.$message.error(e.message)})).catch((function(e){}))},changeStatus:function(e,t){var l=this,a={statusFlag:e?1:0,sqlCheckSqlId:t.sqlCheckSqlId,commitId:l.userInfo.id};I(a).then((function(e){"0000"==e.code?(l.$message({message:"设置成功",type:"success"}),l.currentPage=1,l.getTableData()):l.$message.error(e.message)})).catch((function(e){}))},changeDate:function(e){var t=this;e||(t.createDate=[]),t.currentPage=1,t.getTableData()},toInput:Object(p["a"])((function(e,t){var l=this;l.currentPage=1,l.getTableData()}),500),clearInput:function(){var e=this;e.currentPage=1,e.getTableData()},handleSizeChange:function(e){var t=this;t.currentPage=1,t.pageSize=e,t.getTableData()},handleCurrentChange:function(e){var t=this;t.currentPage=e,t.getTableData()},handleSelectionChange:function(e){this.multipleSelection=e},getTableData:function(){var e=this;e.loading=!0,e.createDate||(e.createDate=[]);var t={project:e.$route.query.sqlCheckProjectId,table:e.$route.query.sqlCheckTableId,sqlCheckIndexType:e.sqlCheckIndexType,statusFlag:e.statusFlag,sqlCheckIndexStatus:e.sqlCheckIndexStatus,startDate:e.createDate[0],endDate:e.createDate[1],pageNum:e.currentPage,pageSize:e.pageSize};S(t).then((function(t){e.loading=!1,t.result.result&&t.result.result.length&&t.result.result.forEach((function(e){e.sqlCheckIndexStatus=1==e.sqlCheckIndexStatus,e.statusFlag=1==e.statusFlag})),e.tableData=t.result.result||[],e.total=t.result.totalCount||0})).catch((function(t){e.loading=!1}))}},watch:{}},_=F,D=(l("bfac"),Object(c["a"])(_,a,n,!1,null,"1396d742",null));t["default"]=D.exports},d157:function(e,t,l){"use strict";l.d(t,"a",(function(){return a})),l.d(t,"b",(function(){return n}));l("c5f6"),l("a481"),l("28a5"),l("6b54");function a(e,t){var l;return t=t||200,function(){var a=this,n=arguments;l&&clearTimeout(l),l=setTimeout((function(){l=null,e.apply(a,n)}),t)}}function n(e){return String(e)&&"null"!=String(e)?(e=String(e).replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(e).replace(/\%uD.{3}/g,""))):""}},e56e:function(e,t,l){"use strict";var a=l("71f6"),n={getDictList:"/dict-list",saveDict:"/save-dict",delDict:"/del-dict",dictDetail:"/dict-detail"};n=Object(a["a"])(n,"/hb-manage-operation-web"),t["a"]=n},e65e:function(e,t,l){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0cd94ba7"],{"28a5":function(e,t,a){"use strict";var n=a("aae3"),i=a("cb7c"),l=a("ebd6"),r=a("0390"),u=a("9def"),c=a("5f1b"),o=a("520a"),s=a("79e5"),p=Math.min,d=[].push,g="split",h="length",f="lastIndex",b=4294967295,v=!s((function(){RegExp(b,"y")}));a("214f")("split",2,(function(e,t,a,s){var m;return m="c"=="abbc"[g](/(b)*/)[1]||4!="test"[g](/(?:)/,-1)[h]||2!="ab"[g](/(?:ab)*/)[h]||4!="."[g](/(.?)(.?)/)[h]||"."[g](/()()/)[h]>1||""[g](/.?/)[h]?function(e,t){var i=String(this);if(void 0===e&&0===t)return[];if(!n(e))return a.call(i,e,t);var l,r,u,c=[],s=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,g=void 0===t?b:t>>>0,v=new RegExp(e.source,s+"g");while(l=o.call(v,i)){if(r=v[f],r>p&&(c.push(i.slice(p,l.index)),l[h]>1&&l.index<i[h]&&d.apply(c,l.slice(1)),u=l[0][h],p=r,c[h]>=g))break;v[f]===l.index&&v[f]++}return p===i[h]?!u&&v.test("")||c.push(""):c.push(i.slice(p)),c[h]>g?c.slice(0,g):c}:"0"[g](void 0,0)[h]?function(e,t){return void 0===e&&0===t?[]:a.call(this,e,t)}:a,[function(a,n){var i=e(this),l=void 0==a?void 0:a[t];return void 0!==l?l.call(a,i,n):m.call(String(i),a,n)},function(e,t){var n=s(m,e,this,t,m!==a);if(n.done)return n.value;var o=i(e),d=String(this),g=l(o,RegExp),h=o.unicode,f=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(v?"y":"g"),w=new g(v?o:"^(?:"+o.source+")",f),D=void 0===t?b:t>>>0;if(0===D)return[];if(0===d.length)return null===c(w,d)?[d]:[];var F=0,S=0,C=[];while(S<d.length){w.lastIndex=v?S:0;var T,_=c(w,v?d:d.slice(S));if(null===_||(T=p(u(w.lastIndex+(v?0:S)),d.length))===F)S=r(d,S,h);else{if(C.push(d.slice(F,S)),C.length===D)return C;for(var k=1;k<=_.length-1;k++)if(C.push(_[k]),C.length===D)return C;S=F=T}}return C.push(d.slice(F)),C}]}))},"97b0":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-right"},[a("div",{staticClass:"m-b-20"},[a("el-input",{staticClass:"w-274",attrs:{placeholder:"表名搜索",maxlength:"50",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.searchInput)}(t)}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}})],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"表名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.sqlCheckTableName||"--"))]}}])}),a("el-table-column",{attrs:{prop:"",label:"创建时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime))+" "+e._s(t.row.createTime?"":"--"))]),a("div",[e._v(e._s(e._f("timeStampToHms")(t.row.createTime))+" "+e._s(t.row.createTime?"":"--"))])]}}])}),a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.toSqlPage(t.row)}}},[e._v("SQL列表")])]}}])})],1),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)},i=[],l=a("d157"),r=a("e56e"),u=r["a"].getTableList,c={name:"TableSql",components:{},data:function(){return{searchInput:"",currentPage:1,pageSize:20,total:0,loading:!1,tableData:[]}},mounted:function(){var e=this;e.getTableData()},methods:{toInput:Object(l["a"])((function(e,t){var a=this;a.currentPage=1,a.getTableData()}),500),clearInput:function(){var e=this;e.currentPage=1,e.getTableData()},handleSizeChange:function(e){var t=this;t.currentPage=1,t.pageSize=e,t.getTableData()},handleCurrentChange:function(e){var t=this;t.currentPage=e,t.getTableData()},getTableData:function(){var e=this;e.loading=!0;var t={table:e.searchInput,pageNum:e.currentPage,pageSize:e.pageSize};u(t).then((function(t){e.loading=!1,e.tableData=t.result.result||[],e.total=t.result.totalCount||0})).catch((function(t){e.loading=!1}))},toSqlPage:function(e){var t=this;t.$router.push("/sql-list?sqlCheckTableId=".concat(e.sqlCheckTableId))}},watch:{}},o=c,s=a("2877"),p=Object(s["a"])(o,n,i,!1,null,"b3d79314",null);t["default"]=p.exports},d157:function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return i}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function n(e,t){var a;return t=t||200,function(){var n=this,i=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,e.apply(n,i)}),t)}}function i(e){return String(e)&&"null"!=String(e)?(e=String(e).replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(e).replace(/\%uD.{3}/g,""))):""}},e56e:function(e,t,a){"use strict";var n=a("71f6"),i={getDictList:"/dict-list",saveDict:"/save-dict",delDict:"/del-dict",dictDetail:"/dict-detail"};i=Object(n["a"])(i,"/hb-manage-operation-web"),t["a"]=i}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2e5207cc"],{"22ae":function(e,t,a){"use strict";var n=a("f6ed"),i=a.n(n);i.a},"28a5":function(e,t,a){"use strict";var n=a("aae3"),i=a("cb7c"),r=a("ebd6"),u=a("0390"),l=a("9def"),c=a("5f1b"),o=a("520a"),s=a("79e5"),p=Math.min,d=[].push,f="split",g="length",h="lastIndex",v=4294967295,b=!s((function(){RegExp(v,"y")}));a("214f")("split",2,(function(e,t,a,s){var m;return m="c"=="abbc"[f](/(b)*/)[1]||4!="test"[f](/(?:)/,-1)[g]||2!="ab"[f](/(?:ab)*/)[g]||4!="."[f](/(.?)(.?)/)[g]||"."[f](/()()/)[g]>1||""[f](/.?/)[g]?function(e,t){var i=String(this);if(void 0===e&&0===t)return[];if(!n(e))return a.call(i,e,t);var r,u,l,c=[],s=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,f=void 0===t?v:t>>>0,b=new RegExp(e.source,s+"g");while(r=o.call(b,i)){if(u=b[h],u>p&&(c.push(i.slice(p,r.index)),r[g]>1&&r.index<i[g]&&d.apply(c,r.slice(1)),l=r[0][g],p=u,c[g]>=f))break;b[h]===r.index&&b[h]++}return p===i[g]?!l&&b.test("")||c.push(""):c.push(i.slice(p)),c[g]>f?c.slice(0,f):c}:"0"[f](void 0,0)[g]?function(e,t){return void 0===e&&0===t?[]:a.call(this,e,t)}:a,[function(a,n){var i=e(this),r=void 0==a?void 0:a[t];return void 0!==r?r.call(a,i,n):m.call(String(i),a,n)},function(e,t){var n=s(m,e,this,t,m!==a);if(n.done)return n.value;var o=i(e),d=String(this),f=r(o,RegExp),g=o.unicode,h=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(b?"y":"g"),w=new f(b?o:"^(?:"+o.source+")",h),D=void 0===t?v:t>>>0;if(0===D)return[];if(0===d.length)return null===c(w,d)?[d]:[];var F=0,S=0,C=[];while(S<d.length){w.lastIndex=b?S:0;var _,k=c(w,b?d:d.slice(S));if(null===k||(_=p(l(w.lastIndex+(b?0:S)),d.length))===F)S=u(d,S,g);else{if(C.push(d.slice(F,S)),C.length===D)return C;for(var x=1;x<=k.length-1;x++)if(C.push(k[x]),C.length===D)return C;S=F=_}}return C.push(d.slice(F)),C}]}))},d157:function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return i}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function n(e,t){var a;return t=t||200,function(){var n=this,i=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,e.apply(n,i)}),t)}}function i(e){return String(e)&&"null"!=String(e)?(e=String(e).replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(e).replace(/\%uD.{3}/g,""))):""}},e56e:function(e,t,a){"use strict";var n=a("71f6"),i={getDictList:"/dict-list",saveDict:"/save-dict",delDict:"/del-dict",dictDetail:"/dict-detail"};i=Object(n["a"])(i,"/hb-manage-operation-web"),t["a"]=i},f6ed:function(e,t,a){},fe48:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-right"},[a("div",{staticClass:"m-b-20"},[a("el-input",{staticClass:"w-274",attrs:{placeholder:"项目搜索",maxlength:"50",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.searchInput)}(t)}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}})],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"项目名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.sqlCheckProjectName||"--"))]}}])}),a("el-table-column",{attrs:{prop:"",label:"创建时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime))+" "+e._s(t.row.createTime?"":"--"))]),a("div",[e._v(e._s(e._f("timeStampToHms")(t.row.createTime))+" "+e._s(t.row.createTime?"":"--"))])]}}])}),a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.toSqlPage(t.row)}}},[e._v("SQL列表")])]}}])})],1),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)},i=[],r=a("d157"),u=a("e56e"),l=u["a"].getProjectList,c={name:"ProjectSql",components:{},data:function(){return{searchInput:"",currentPage:1,pageSize:20,total:0,loading:!1,tableData:[]}},mounted:function(){var e=this;e.getTableData()},methods:{toInput:Object(r["a"])((function(e,t){var a=this;a.currentPage=1,a.getTableData()}),500),clearInput:function(){var e=this;e.currentPage=1,e.getTableData()},handleSizeChange:function(e){var t=this;t.currentPage=1,t.pageSize=e,t.getTableData()},handleCurrentChange:function(e){var t=this;t.currentPage=e,t.getTableData()},getTableData:function(){var e=this;e.loading=!0;var t={project:e.searchInput,pageNum:e.currentPage,pageSize:e.pageSize};l(t).then((function(t){e.loading=!1,e.tableData=t.result.result||[],e.total=t.result.totalCount||0})).catch((function(t){e.loading=!1}))},toSqlPage:function(e){var t=this;t.$router.push("/sql-list?sqlCheckProjectId=".concat(e.sqlCheckProjectId))}},watch:{}},o=c,s=(a("22ae"),a("2877")),p=Object(s["a"])(o,n,i,!1,null,"032f449c",null);t["default"]=p.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3a94616c"],{"28a5":function(e,t,a){"use strict";var l=a("aae3"),n=a("cb7c"),s=a("ebd6"),o=a("0390"),r=a("9def"),c=a("5f1b"),i=a("520a"),u=a("79e5"),d=Math.min,h=[].push,m="split",p="length",f="lastIndex",g=4294967295,b=!u((function(){RegExp(g,"y")}));a("214f")("split",2,(function(e,t,a,u){var v;return v="c"=="abbc"[m](/(b)*/)[1]||4!="test"[m](/(?:)/,-1)[p]||2!="ab"[m](/(?:ab)*/)[p]||4!="."[m](/(.?)(.?)/)[p]||"."[m](/()()/)[p]>1||""[m](/.?/)[p]?function(e,t){var n=String(this);if(void 0===e&&0===t)return[];if(!l(e))return a.call(n,e,t);var s,o,r,c=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,m=void 0===t?g:t>>>0,b=new RegExp(e.source,u+"g");while(s=i.call(b,n)){if(o=b[f],o>d&&(c.push(n.slice(d,s.index)),s[p]>1&&s.index<n[p]&&h.apply(c,s.slice(1)),r=s[0][p],d=o,c[p]>=m))break;b[f]===s.index&&b[f]++}return d===n[p]?!r&&b.test("")||c.push(""):c.push(n.slice(d)),c[p]>m?c.slice(0,m):c}:"0"[m](void 0,0)[p]?function(e,t){return void 0===e&&0===t?[]:a.call(this,e,t)}:a,[function(a,l){var n=e(this),s=void 0==a?void 0:a[t];return void 0!==s?s.call(a,n,l):v.call(String(n),a,l)},function(e,t){var l=u(v,e,this,t,v!==a);if(l.done)return l.value;var i=n(e),h=String(this),m=s(i,RegExp),p=i.unicode,f=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(b?"y":"g"),q=new m(b?i:"^(?:"+i.source+")",f),C=void 0===t?g:t>>>0;if(0===C)return[];if(0===h.length)return null===c(q,h)?[h]:[];var k=0,S=0,w=[];while(S<h.length){q.lastIndex=b?S:0;var x,I=c(q,b?h:h.slice(S));if(null===I||(x=d(r(q.lastIndex+(b?0:S)),h.length))===k)S=o(h,S,p);else{if(w.push(h.slice(k,S)),w.length===C)return w;for(var F=1;F<=I.length-1;F++)if(w.push(I[F]),w.length===C)return w;S=k=x}}return w.push(h.slice(k)),w}]}))},ae9d:function(e,t,a){"use strict";var l=a("c79c"),n=a.n(l);n.a},c310:function(e,t,a){"use strict";a.r(t);var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-right"},[a("div",{staticClass:"m-b-20"},[a("el-input",{staticClass:"w-180",attrs:{placeholder:"请输入 SQL",maxlength:"250",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.searchInput)}(t)}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}}),a("el-date-picker",{staticClass:"m-l-10 w-249",attrs:{"prefix-icon":"el-icon-time",type:"daterange","range-separator":"~","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.createDate,callback:function(t){e.createDate=t},expression:"createDate"}}),a("el-select",{staticClass:"m-l-10 w-130",attrs:{placeholder:"请选择"},on:{change:e.changeCondition},model:{value:e.sqlCheckIndexType,callback:function(t){e.sqlCheckIndexType=t},expression:"sqlCheckIndexType"}},e._l(e.perfectOption,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),a("el-select",{staticClass:"m-l-10 w-130",attrs:{placeholder:"请选择"},on:{change:e.changeCondition},model:{value:e.statusFlag,callback:function(t){e.statusFlag=t},expression:"statusFlag"}},e._l(e.onlineOption,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),a("el-select",{staticClass:"m-l-10 w-130",attrs:{placeholder:"是否需要完善"},on:{change:e.changeCondition},model:{value:e.sqlCheckIndexStatus,callback:function(t){e.sqlCheckIndexStatus=t},expression:"sqlCheckIndexStatus"}},e._l(e.isPerfectOption,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),a("el-button",{staticClass:"m-l-10",attrs:{type:"primary"},on:{click:function(t){return e.multStatus(1)}}},[e._v("完善上线状态")]),a("el-button",{staticClass:"m-l-10",attrs:{type:"primary"},on:{click:e.exportSql}},[e._v("导出脚本")])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),a("el-table-column",{attrs:{label:"项目名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.sqlCheckProjectName||"--"))]}}])}),a("el-table-column",{attrs:{label:"表名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.sqlCheckTableName||"--"))]}}])}),a("el-table-column",{attrs:{label:"是否需要完善","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-text":"''","inactive-text":"''"},on:{change:function(a){return e.changePerfect(a,t.row)}},model:{value:t.row.sqlCheckIndexStatus,callback:function(a){e.$set(t.row,"sqlCheckIndexStatus",a)},expression:"scope.row.sqlCheckIndexStatus"}})]}}])}),a("el-table-column",{attrs:{label:"SQL","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.sqlCheckSql||"--"))]}}])}),a("el-table-column",{attrs:{label:"完善状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{class:["span-dot",1==t.row.sqlCheckIndexType?"bg-52c41a ":"bg-d9d9d9"]}),a("span",{staticClass:"p-l-8"},[e._v(e._s(1==t.row.sqlCheckIndexType?"已完善":"未完善"))])]}}])}),a("el-table-column",{attrs:{label:"上线状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-text":"''","inactive-text":"''"},on:{change:function(a){return e.changeStatus(a,t.row)}},model:{value:t.row.statusFlag,callback:function(a){e.$set(t.row,"statusFlag",a)},expression:"scope.row.statusFlag"}})]}}])}),a("el-table-column",{attrs:{prop:"",label:"创建时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime))+" "+e._s(t.row.createTime?"":"--"))]),a("div",[e._v(e._s(e._f("timeStampToHms")(t.row.createTime))+" "+e._s(t.row.createTime?"":"--"))])]}}])}),a("el-table-column",{attrs:{label:"操作人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.commitName||"--"))]}}])}),a("el-table-column",{attrs:{prop:"",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.toShowIndex(t.row)}}},[e._v("完善索引")]),a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.toShowDetail(t.row)}}},[e._v("详情")])]}}])})],1),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e(),e.showDetail?a("sql-detail",{attrs:{"sql-row":e.sqlRow}}):e._e(),e.showIndex?a("index-dialog",{attrs:{"sql-check-sql-id":e.sqlCheckSqlId}}):e._e()],1)},n=[],s=(a("ac6a"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"SQL 详情",visible:e.dialogVisible,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,"label-width":"10px"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("el-form-item",{attrs:{label:"项目名称",prop:""}},[e._v("\n "+e._s(e.ruleForm.sqlCheckProjectName||"--")+"\n ")]),a("el-form-item",{attrs:{label:"表名称",prop:""}},[e._v("\n "+e._s(e.ruleForm.sqlCheckTableName||"--")+"\n ")]),a("el-form-item",{attrs:{label:"SQL",prop:""}},[a("el-input",{staticClass:"w-440",attrs:{readonly:"",type:"textarea",rows:"3",maxlength:"500","show-word-limit":""},model:{value:e.ruleForm.sqlCheckSql,callback:function(t){e.$set(e.ruleForm,"sqlCheckSql",t)},expression:"ruleForm.sqlCheckSql"}})],1),a("el-form-item",{attrs:{label:"完善状态",prop:""}},[e._v("\n "+e._s(e.ruleForm.sqlCheckIndexType?"已完善":"未完善")+"\n ")]),a("el-form-item",{attrs:{label:"上线状态",prop:""}},[e._v("\n "+e._s(e.ruleForm.statusFlag?"已上线":"未上线")+"\n ")])],1)],1)])}),o=[],r=(a("456d"),{name:"SqlDetail",components:{},props:{sqlRow:{type:Object,default:function(){return{}}}},data:function(){return{dialogVisible:!0,loadBtn:!1,ruleForm:{sqlCheckSqlId:"",sqlCheckSql:"",sqlCheckProjectName:"",sqlCheckTableName:"",sqlCheckIndexType:"",statusFlag:""}}},mounted:function(){var e=this;Object.keys(e.sqlRow).length&&(e.ruleForm=JSON.parse(JSON.stringify(e.sqlRow)))},methods:{handleClose:function(){var e=this;e.$emit("closeDetail"),e.$refs["ruleForm"].resetFields()}},watch:{sqlRow:function(e){var t=this;Object.keys(e).length&&(t.ruleForm=JSON.parse(JSON.stringify(e)))}}}),c=r,i=a("2877"),u=Object(i["a"])(c,s,o,!1,null,"cc9f5194",null),d=u.exports,h=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"完善索引",visible:e.dialogVisible,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"50px"},nativeOn:{submit:function(e){e.preventDefault()}}},[a("el-form-item",{attrs:{label:"内容",prop:"sqlIndex"}},[a("el-input",{staticClass:"w-440",attrs:{type:"textarea",rows:"3",maxlength:"500","show-word-limit":""},model:{value:e.ruleForm.sqlIndex,callback:function(t){e.$set(e.ruleForm,"sqlIndex",t)},expression:"ruleForm.sqlIndex"}})],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.toCancel}},[e._v("取消")]),a("el-button",{attrs:{type:"primary",loading:e.loadBtn},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("确认")])],1)])},m=[],p=a("d157"),f=a("e56e"),g=a("5c96"),b={showmsg:function(e,t){Object(g["Message"])({duration:1e3,message:e,type:t})}},v=f["a"].addSqlIndex,q={name:"IndexDialog",components:{},props:{sqlCheckSqlId:{type:String}},data:function(){return{userInfo:localStorage.getItem("haobanOperate")?JSON.parse(localStorage.getItem("haobanOperate")):{id:"",userMobile:"",realName:""},dialogVisible:!0,loadBtn:!1,ruleForm:{sqlCheckSqlId:"",sqlIndex:""},rules:{sqlIndex:[{required:!0,message:"请输入内容",trigger:"blur"}]}}},mounted:function(){var e=this;e.sqlCheckSqlId&&(e.ruleForm.sqlCheckSqlId=e.sqlCheckSqlId)},methods:{toCancel:function(){var e=this;e.$emit("closeText"),e.$refs["ruleForm"].resetFields()},handleClose:function(e){var t=this;t.$emit("closeText"),t.$refs["ruleForm"].resetFields()},submitForm:Object(p["a"])((function(e){var t=this;t.$refs[e].validate((function(e){e&&t.postSave()}))}),300),postSave:function(){var e=this;e.loadBtn=!0;var t={sqlCheckSqlId:e.ruleForm.sqlCheckSqlId,sqlIndex:Object(p["b"])(e.ruleForm.sqlIndex),commitId:e.userInfo.id,commitName:e.userInfo.realName};v(t).then((function(t){e.loadBtn=!1,"0000"==t.code?(b.showmsg("操作成功","success"),e.$refs["ruleForm"].resetFields(),e.$emit("submitText")):(e.$message({message:t.message||"接口错误",type:"warning"}),e.$emit("submitText"))})).catch((function(t){e.loadBtn=!1}))}},watch:{}},C=q,k=Object(i["a"])(C,h,m,!1,null,"3cd3ebbd",null),S=k.exports,w=f["a"].getSqlList,x=f["a"].setPerfect,I=f["a"].setStatus,F=f["a"].exportData,y={name:"SqlList",components:{sqlDetail:d,indexDialog:S},data:function(){return{userInfo:localStorage.getItem("haobanOperate")?JSON.parse(localStorage.getItem("haobanOperate")):{id:"",userMobile:"",realName:""},searchInput:"",createDate:[],sqlCheckIndexType:"",perfectOption:[{value:"",label:"全部完善状态"},{value:"1",label:"已完善"},{value:"0",label:"未完善"}],statusFlag:"",onlineOption:[{value:"",label:"全部上线状态"},{value:"1",label:"已上线"},{value:"0",label:"未上线"}],sqlCheckIndexStatus:"",isPerfectOption:[{value:"",label:"是否需要完善"},{value:"1",label:"是"},{value:"0",label:"否"}],currentPage:1,pageSize:20,total:0,loading:!1,tableData:[],multipleSelection:[],showDetail:!1,sqlRow:{},showIndex:!1,sqlCheckSqlId:""}},mounted:function(){var e=this;e.getTableData()},methods:{multStatus:function(e){var t=this;t.changeStatus(e)},exportSql:function(){var e=this;e.createDate||(e.createDate=[]);var t={project:e.$route.query.sqlCheckProjectId,table:e.$route.query.sqlCheckTableId,sqlCheckIndexType:e.sqlCheckIndexType,statusFlag:e.statusFlag,sqlCheckIndexStatus:e.sqlCheckIndexStatus,startDate:e.createDate[0],endDate:e.createDate[1]};F(t).then((function(t){if("0000"==t.code){if(!t.data)return e.$message.error("暂无数据"),!1;e.$message({message:"导出成功",type:"success"});var a=new Blob([t.data],{type:"application/vnd.ms-excel"}),l="sql脚本.csv",n=document.createElement("a");n.download=l,n.style.display="none",n.href=URL.createObjectURL(a),document.body.appendChild(n),n.click(),URL.revokeObjectURL(n.href),document.body.removeChild(n)}else e.$message.error(t.message)})).catch((function(e){}))},changeCondition:function(){var e=this;e.currentPage=1,e.getTableData()},changeDate:function(e){var t=this;e||(t.createDate=[]),t.currentPage=1,t.getTableData()},toShowIndex:function(e){var t=this;t.showIndex=!0,t.sqlCheckSqlId=e.sqlCheckSqlId},closeText:function(){var e=this;e.showIndex=!0,e.sqlCheckSqlId=""},submitText:function(){var e=this;e.currentPage=1,e.getTableData()},toShowDetail:function(e){var t=this;t.showDetail=!0,t.sqlRow=e.sqlRow},closeDetail:function(){var e=this;e.showDetail=!1,e.sqlRow={}},changePerfect:function(e,t){var a=this,l={sqlCheckIndexStatus:e?1:0,sqlCheckSqlId:t?t.sqlCheckSqlId:a.multipleSelection.map((function(e){return e.sqlCheckSqlId})),commitId:a.userInfo.id,commitName:a.userInfo.realName};x(l).then((function(e){"0000"==e.code?(a.$message({message:"设置成功",type:"success"}),a.currentPage=1,a.getTableData()):a.$message.error(e.message)})).catch((function(e){}))},changeStatus:function(e,t){var a=this,l={statusFlag:e?1:0,sqlCheckSqlId:t?t.sqlCheckSqlId:a.multipleSelection.map((function(e){return e.sqlCheckSqlId})),commitId:a.userInfo.id,commitName:a.userInfo.realName};I(l).then((function(e){"0000"==e.code?(a.$message({message:"设置成功",type:"success"}),a.currentPage=1,a.getTableData()):a.$message.error(e.message)})).catch((function(e){}))},toInput:Object(p["a"])((function(e,t){var a=this;a.currentPage=1,a.getTableData()}),500),clearInput:function(){var e=this;e.currentPage=1,e.getTableData()},handleSizeChange:function(e){var t=this;t.currentPage=1,t.pageSize=e,t.getTableData()},handleCurrentChange:function(e){var t=this;t.currentPage=e,t.getTableData()},handleSelectionChange:function(e){this.multipleSelection=e},getTableData:function(){var e=this;e.loading=!0,e.createDate||(e.createDate=[]);var t={project:e.$route.query.sqlCheckProjectId,table:e.$route.query.sqlCheckTableId,sqlCheckIndexType:e.sqlCheckIndexType,statusFlag:e.statusFlag,sqlCheckIndexStatus:e.sqlCheckIndexStatus,startDate:e.createDate[0],endDate:e.createDate[1],pageNum:e.currentPage,pageSize:e.pageSize};w(t).then((function(t){e.loading=!1,t.result.result&&t.result.result.length&&t.result.result.forEach((function(e){e.sqlCheckIndexStatus=1==e.sqlCheckIndexStatus,e.statusFlag=1==e.statusFlag})),e.tableData=t.result.result||[],e.total=t.result.totalCount||0})).catch((function(t){e.loading=!1}))}},watch:{}},D=y,_=(a("ae9d"),Object(i["a"])(D,l,n,!1,null,"405f4d76",null));t["default"]=_.exports},c79c:function(e,t,a){},d157:function(e,t,a){"use strict";a.d(t,"a",(function(){return l})),a.d(t,"b",(function(){return n}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function l(e,t){var a;return t=t||200,function(){var l=this,n=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,e.apply(l,n)}),t)}}function n(e){return String(e)&&"null"!=String(e)?(e=String(e).replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(e).replace(/\%uD.{3}/g,""))):""}},e56e:function(e,t,a){"use strict";var l=a("71f6"),n={getDictList:"/dict-list",saveDict:"/save-dict",delDict:"/del-dict",dictDetail:"/dict-detail"};n=Object(l["a"])(n,"/hb-manage-operation-web"),t["a"]=n}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-73040fe8"],{"28a5":function(e,t,a){"use strict";var n=a("aae3"),i=a("cb7c"),u=a("ebd6"),r=a("0390"),l=a("9def"),c=a("5f1b"),o=a("520a"),s=a("79e5"),d=Math.min,p=[].push,g="split",f="length",h="lastIndex",v=4294967295,b=!s((function(){RegExp(v,"y")}));a("214f")("split",2,(function(e,t,a,s){var m;return m="c"=="abbc"[g](/(b)*/)[1]||4!="test"[g](/(?:)/,-1)[f]||2!="ab"[g](/(?:ab)*/)[f]||4!="."[g](/(.?)(.?)/)[f]||"."[g](/()()/)[f]>1||""[g](/.?/)[f]?function(e,t){var i=String(this);if(void 0===e&&0===t)return[];if(!n(e))return a.call(i,e,t);var u,r,l,c=[],s=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,g=void 0===t?v:t>>>0,b=new RegExp(e.source,s+"g");while(u=o.call(b,i)){if(r=b[h],r>d&&(c.push(i.slice(d,u.index)),u[f]>1&&u.index<i[f]&&p.apply(c,u.slice(1)),l=u[0][f],d=r,c[f]>=g))break;b[h]===u.index&&b[h]++}return d===i[f]?!l&&b.test("")||c.push(""):c.push(i.slice(d)),c[f]>g?c.slice(0,g):c}:"0"[g](void 0,0)[f]?function(e,t){return void 0===e&&0===t?[]:a.call(this,e,t)}:a,[function(a,n){var i=e(this),u=void 0==a?void 0:a[t];return void 0!==u?u.call(a,i,n):m.call(String(i),a,n)},function(e,t){var n=s(m,e,this,t,m!==a);if(n.done)return n.value;var o=i(e),p=String(this),g=u(o,RegExp),f=o.unicode,h=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(b?"y":"g"),w=new g(b?o:"^(?:"+o.source+")",h),D=void 0===t?v:t>>>0;if(0===D)return[];if(0===p.length)return null===c(w,p)?[p]:[];var F=0,S=0,C=[];while(S<p.length){w.lastIndex=b?S:0;var T,_=c(w,b?p:p.slice(S));if(null===_||(T=d(l(w.lastIndex+(b?0:S)),p.length))===F)S=r(p,S,f);else{if(C.push(p.slice(F,S)),C.length===D)return C;for(var k=1;k<=_.length-1;k++)if(C.push(_[k]),C.length===D)return C;S=F=T}}return C.push(p.slice(F)),C}]}))},"97b0":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-right"},[a("div",{staticClass:"m-b-20"},[a("el-input",{staticClass:"w-279",attrs:{placeholder:"请输入表名称",maxlength:"50",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.searchInput)}(t)}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}})],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"表名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.sqlCheckTableName||"--"))]}}])}),a("el-table-column",{attrs:{prop:"",label:"创建时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime))+" "+e._s(t.row.createTime?"":"--"))]),a("div",[e._v(e._s(e._f("timeStampToHms")(t.row.createTime))+" "+e._s(t.row.createTime?"":"--"))])]}}])}),a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.toSqlPage(t.row)}}},[e._v("SQL列表")])]}}])})],1),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)},i=[],u=a("d157"),r=a("e56e"),l=r["a"].getTableList,c={name:"TableSql",components:{},data:function(){return{searchInput:"",currentPage:1,pageSize:20,total:0,loading:!1,tableData:[]}},mounted:function(){var e=this;e.getTableData()},methods:{toInput:Object(u["a"])((function(e,t){var a=this;a.currentPage=1,a.getTableData()}),500),clearInput:function(){var e=this;e.currentPage=1,e.getTableData()},handleSizeChange:function(e){var t=this;t.currentPage=1,t.pageSize=e,t.getTableData()},handleCurrentChange:function(e){var t=this;t.currentPage=e,t.getTableData()},getTableData:function(){var e=this;e.loading=!0;var t={table:e.searchInput,pageNum:e.currentPage,pageSize:e.pageSize};l(t).then((function(t){e.loading=!1,e.tableData=t.result.result||[],e.total=t.result.totalCount||0})).catch((function(t){e.loading=!1}))},toSqlPage:function(e){var t=this;t.$router.push("/sql-list?sqlCheckTableId=".concat(e.sqlCheckTableId))}},watch:{}},o=c,s=(a("c563"),a("2877")),d=Object(s["a"])(o,n,i,!1,null,"8e08dcd2",null);t["default"]=d.exports},"9dc7":function(e,t,a){},c563:function(e,t,a){"use strict";var n=a("9dc7"),i=a.n(n);i.a},d157:function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return i}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function n(e,t){var a;return t=t||200,function(){var n=this,i=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,e.apply(n,i)}),t)}}function i(e){return String(e)&&"null"!=String(e)?(e=String(e).replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(e).replace(/\%uD.{3}/g,""))):""}},e56e:function(e,t,a){"use strict";var n=a("71f6"),i={getDictList:"/dict-list",saveDict:"/save-dict",delDict:"/del-dict",dictDetail:"/dict-detail"};i=Object(n["a"])(i,"/hb-manage-operation-web"),t["a"]=i}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c93d6954"],{"28a5":function(e,t,a){"use strict";var n=a("aae3"),i=a("cb7c"),r=a("ebd6"),u=a("0390"),l=a("9def"),c=a("5f1b"),o=a("520a"),s=a("79e5"),p=Math.min,d=[].push,g="split",f="length",h="lastIndex",v=4294967295,b=!s((function(){RegExp(v,"y")}));a("214f")("split",2,(function(e,t,a,s){var m;return m="c"=="abbc"[g](/(b)*/)[1]||4!="test"[g](/(?:)/,-1)[f]||2!="ab"[g](/(?:ab)*/)[f]||4!="."[g](/(.?)(.?)/)[f]||"."[g](/()()/)[f]>1||""[g](/.?/)[f]?function(e,t){var i=String(this);if(void 0===e&&0===t)return[];if(!n(e))return a.call(i,e,t);var r,u,l,c=[],s=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,g=void 0===t?v:t>>>0,b=new RegExp(e.source,s+"g");while(r=o.call(b,i)){if(u=b[h],u>p&&(c.push(i.slice(p,r.index)),r[f]>1&&r.index<i[f]&&d.apply(c,r.slice(1)),l=r[0][f],p=u,c[f]>=g))break;b[h]===r.index&&b[h]++}return p===i[f]?!l&&b.test("")||c.push(""):c.push(i.slice(p)),c[f]>g?c.slice(0,g):c}:"0"[g](void 0,0)[f]?function(e,t){return void 0===e&&0===t?[]:a.call(this,e,t)}:a,[function(a,n){var i=e(this),r=void 0==a?void 0:a[t];return void 0!==r?r.call(a,i,n):m.call(String(i),a,n)},function(e,t){var n=s(m,e,this,t,m!==a);if(n.done)return n.value;var o=i(e),d=String(this),g=r(o,RegExp),f=o.unicode,h=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(b?"y":"g"),w=new g(b?o:"^(?:"+o.source+")",h),D=void 0===t?v:t>>>0;if(0===D)return[];if(0===d.length)return null===c(w,d)?[d]:[];var F=0,S=0,C=[];while(S<d.length){w.lastIndex=b?S:0;var _,k=c(w,b?d:d.slice(S));if(null===k||(_=p(l(w.lastIndex+(b?0:S)),d.length))===F)S=u(d,S,f);else{if(C.push(d.slice(F,S)),C.length===D)return C;for(var x=1;x<=k.length-1;x++)if(C.push(k[x]),C.length===D)return C;S=F=_}}return C.push(d.slice(F)),C}]}))},"2ec8":function(e,t,a){},6601:function(e,t,a){"use strict";var n=a("2ec8"),i=a.n(n);i.a},d157:function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return i}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function n(e,t){var a;return t=t||200,function(){var n=this,i=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,e.apply(n,i)}),t)}}function i(e){return String(e)&&"null"!=String(e)?(e=String(e).replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(e).replace(/\%uD.{3}/g,""))):""}},e56e:function(e,t,a){"use strict";var n=a("71f6"),i={getDictList:"/dict-list",saveDict:"/save-dict",delDict:"/del-dict",dictDetail:"/dict-detail"};i=Object(n["a"])(i,"/hb-manage-operation-web"),t["a"]=i},fe48:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-right"},[a("div",{staticClass:"m-b-20"},[a("el-input",{staticClass:"w-279",attrs:{placeholder:"请输入项目名称",maxlength:"50",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.searchInput)}(t)}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}})],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"项目名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.sqlCheckProjectName||"--"))]}}])}),a("el-table-column",{attrs:{prop:"",label:"创建时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime))+" "+e._s(t.row.createTime?"":"--"))]),a("div",[e._v(e._s(e._f("timeStampToHms")(t.row.createTime))+" "+e._s(t.row.createTime?"":"--"))])]}}])}),a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.toSqlPage(t.row)}}},[e._v("SQL列表")])]}}])})],1),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)},i=[],r=a("d157"),u=a("e56e"),l=u["a"].getProjectList,c={name:"ProjectSql",components:{},data:function(){return{searchInput:"",currentPage:1,pageSize:20,total:0,loading:!1,tableData:[]}},mounted:function(){var e=this;e.getTableData()},methods:{toInput:Object(r["a"])((function(e,t){var a=this;a.currentPage=1,a.getTableData()}),500),clearInput:function(){var e=this;e.currentPage=1,e.getTableData()},handleSizeChange:function(e){var t=this;t.currentPage=1,t.pageSize=e,t.getTableData()},handleCurrentChange:function(e){var t=this;t.currentPage=e,t.getTableData()},getTableData:function(){var e=this;e.loading=!0;var t={project:e.searchInput,pageNum:e.currentPage,pageSize:e.pageSize};l(t).then((function(t){e.loading=!1,e.tableData=t.result.result||[],e.total=t.result.totalCount||0})).catch((function(t){e.loading=!1}))},toSqlPage:function(e){var t=this;t.$router.push("/sql-list?sqlCheckProjectId=".concat(e.sqlCheckProjectId))}},watch:{}},o=c,s=(a("6601"),a("2877")),p=Object(s["a"])(o,n,i,!1,null,"71479443",null);t["default"]=p.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b9d67818"],{"0feb":function(t,e,i){"use strict";var n=i("71f6"),a={getMenuList:"/gic-menu-list",addMenu:"/menu-add",editMenu:"/menu-edit",delMenu:"/menu-del",addAuthItem:"/add-auth-item",editAuthItem:"/edit-auth-item",delAuthItem:"/del-auth-item",getAuthItemList:"/auth-item-list",getOperationItemList:"/operation-item-list",addOperationItem:"/add-operation-item",editOperationItem:"/edit-operation-item",delOperationItem:"/del-operation-item",haobanVersionList:"/haoban-version-list",appVersionList:"/app-version-list"};e["a"]=Object(n["a"])(a,"/hb-manage-operation-web")},"28a5":function(t,e,i){"use strict";var n=i("aae3"),a=i("cb7c"),u=i("ebd6"),o=i("0390"),r=i("9def"),s=i("5f1b"),l=i("520a"),d=i("79e5"),h=Math.min,m=[].push,c="split",p="length",I="lastIndex",f=4294967295,g=!d((function(){RegExp(f,"y")}));i("214f")("split",2,(function(t,e,i,d){var b;return b="c"=="abbc"[c](/(b)*/)[1]||4!="test"[c](/(?:)/,-1)[p]||2!="ab"[c](/(?:ab)*/)[p]||4!="."[c](/(.?)(.?)/)[p]||"."[c](/()()/)[p]>1||""[c](/.?/)[p]?function(t,e){var a=String(this);if(void 0===t&&0===e)return[];if(!n(t))return i.call(a,t,e);var u,o,r,s=[],d=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),h=0,c=void 0===e?f:e>>>0,g=new RegExp(t.source,d+"g");while(u=l.call(g,a)){if(o=g[I],o>h&&(s.push(a.slice(h,u.index)),u[p]>1&&u.index<a[p]&&m.apply(s,u.slice(1)),r=u[0][p],h=o,s[p]>=c))break;g[I]===u.index&&g[I]++}return h===a[p]?!r&&g.test("")||s.push(""):s.push(a.slice(h)),s[p]>c?s.slice(0,c):s}:"0"[c](void 0,0)[p]?function(t,e){return void 0===t&&0===e?[]:i.call(this,t,e)}:i,[function(i,n){var a=t(this),u=void 0==i?void 0:i[e];return void 0!==u?u.call(i,a,n):b.call(String(a),i,n)},function(t,e){var n=d(b,t,this,e,b!==i);if(n.done)return n.value;var l=a(t),m=String(this),c=u(l,RegExp),p=l.unicode,I=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(g?"y":"g"),v=new c(g?l:"^(?:"+l.source+")",I),A=void 0===e?f:e>>>0;if(0===A)return[];if(0===m.length)return null===s(v,m)?[m]:[];var y=0,w=0,x=[];while(w<m.length){v.lastIndex=g?w:0;var L,F=s(v,g?m:m.slice(w));if(null===F||(L=h(r(v.lastIndex+(g?0:w)),m.length))===y)w=o(m,w,p);else{if(x.push(m.slice(y,w)),x.length===A)return x;for(var O=1;O<=F.length-1;O++)if(x.push(F[O]),x.length===A)return x;w=y=L}}return x.push(m.slice(y)),x}]}))},a664:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticStyle:{padding:"20px"}},[i("div",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{type:"primary"},on:{click:function(e){t.editAuth.show=!0}}},[t._v("新建权限项")])],1),i("el-table",{staticStyle:{"margin-top":"20px"},attrs:{data:t.authList}},[i("el-table-column",{attrs:{label:"权限名称",prop:"authItemName",formatter:function(t,e,i){return i||"--"}}}),i("el-table-column",{attrs:{label:"包含操作项",prop:"operationItemCount",formatter:function(t,e,i){return i+"个"||!1}}}),i("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[i("el-button",{attrs:{type:"text"},on:{click:function(e){return t.onEditAuthOpen(n)}}},[t._v("编辑")]),i("el-button",{attrs:{type:"text"},on:{click:function(e){return t.onDelAuth(n)}}},[t._v("删除")])]}}])})],1),i("el-dialog",{attrs:{visible:t.editAuth.show,title:t.editAuth.authItemId?"编辑权限项":"新建权限项",width:"590px"},on:{"update:visible":function(e){return t.$set(t.editAuth,"show",e)},closed:t.onEditAuthClose}},[i("el-form",{ref:"editAuth",attrs:{model:t.editAuth,rules:t.editAuthRule,"label-width":"110px"},nativeOn:{submit:function(t){t.preventDefault()}}},[i("el-form-item",{attrs:{label:"权限项名称",prop:"authItemName"}},[i("el-input",{staticStyle:{width:"440px"},attrs:{type:"text",placeholder:"请输入权限项名称",maxlength:"20","show-word-limit":""},model:{value:t.editAuth.authItemName,callback:function(e){t.$set(t.editAuth,"authItemName","string"===typeof e?e.trim():e)},expression:"editAuth.authItemName"}})],1),i("el-form-item",{attrs:{label:"包含操作项",prop:"operationItemIds"}},[i("el-select",{staticStyle:{width:"332px"},attrs:{"collapse-tags":"",multiple:"",clearable:""},model:{value:t.editAuth.operationItemIds,callback:function(e){t.$set(t.editAuth,"operationItemIds",e)},expression:"editAuth.operationItemIds"}},t._l(t.operationList,(function(t){return i("el-option",{key:t.operationItemId,attrs:{value:t.operationItemId,label:t.operationItemName}})})),1),i("el-button",{staticStyle:{"margin-left":"24px"},attrs:{type:"text"},on:{click:t.toOperationList}},[t._v("添加操作项")])],1)],1),i("template",{slot:"footer"},[i("el-button",{on:{click:function(e){t.editAuth.show=!1}}},[t._v("取消")]),i("el-button",{attrs:{type:"primary",loading:t.editAuth.loading},on:{click:t.onEditAuthSave}},[t._v(t._s(t.editAuth.authItemId?"保存":"新建"))])],1)],2)],1)},a=[],u=i("d157"),o=i("0feb"),r=o["a"].addAuthItem,s=o["a"].editAuthItem,l=o["a"].delAuthItem,d=o["a"].getAuthItemList,h=o["a"].getOperationItemList,m={name:"PermissionList",data:function(){return{bread:[{path:"/menu-config",name:"权限配置"},{name:"权限项"}],menuId:"",appType:"",operationList:[],authList:[],editAuth:{show:!1,loading:!1,authItemId:"",authItemName:"",operationItemIds:[]},editAuthRule:{authItemName:[{required:!0,message:"权限项名称不能为空",trigger:"blur"}],operationItemIds:[{required:!0,message:"请至少选择一个操作项",trigger:"change"}]}}},created:function(){var t=this.$route.query,e=t.menuId,i=t.appType;if(!e)return this.$router.go(-1);this.menuId=e,this.appType=i,this.initData(),this.$emit("updateBread",this.bread)},methods:{initData:function(){this.getAuthItemList(),this.getOperationItemList(1)},getOperationItemList:function(t){var e=this;1==t&&(this.operationList=[]),h({menuId:this.menuId,pageSize:20,pageNum:t}).then((function(i){var n=i.result||{},a=n.totalPage,u=n.result;e.operationList=e.operationList.concat(u||[]),t+1<=a&&e.getOperationItemList(t+1)}))},getAuthItemList:function(){var t=this;d({menuId:this.menuId}).then((function(e){t.authList=e.result||[]}))},onEditAuthOpen:function(t){var e=t.authItemId,i=t.authItemName,n=t.operationItemList;Object.assign(this.editAuth,{show:!0,operationItemIds:Array.isArray(n)?n.map((function(t){return t.operationItemId})):[],authItemId:e,authItemName:i})},onEditAuthClose:function(){Object.assign(this.editAuth,{authItemId:"",authItemName:"",operationItemIds:[]}),this.$nextTick(this.$refs.editAuth.clearValidate)},onEditAuthSave:function(){var t=this;this.$refs.editAuth.validate((function(e){if(e){var i=t.editAuth,n=i.authItemId,a=i.authItemName,o=i.operationItemIds,l={authItemName:Object(u["b"])(a),operationItemIds:o.join(","),menuId:t.menuId};t.editAuth.loading=!0,n?(l.authItemId=n,s(l).then(d.bind(t,"保存成功!")).finally((function(){return t.editAuth.loading=!1}))):r(l).then(d.bind(t,"新建成功!")).finally((function(){return t.editAuth.loading=!1}))}function d(t){this.$message.success(t),this.editAuth.show=!1,this.getAuthItemList()}}))},onDelAuth:function(t){var e=this,i=t.authItemId,n=t.authItemName;this.$confirm("确定删除【 ".concat(n," 】吗?"),"提示",{type:"warning"}).then((function(){l({authItemId:i}).then((function(t){e.$message.success("删除成功!"),e.getAuthItemList()}))}))},toOperationList:function(){this.$router.push("/operation-list?type=".concat(this.appType))}}},c=m,p=i("2877"),I=Object(p["a"])(c,n,a,!1,null,null,null);e["default"]=I.exports},d157:function(t,e,i){"use strict";i.d(e,"a",(function(){return n})),i.d(e,"b",(function(){return a}));i("c5f6"),i("a481"),i("28a5"),i("6b54");function n(t,e){var i;return e=e||200,function(){var n=this,a=arguments;i&&clearTimeout(i),i=setTimeout((function(){i=null,t.apply(n,a)}),e)}}function a(t){return String(t)&&"null"!=String(t)?(t=String(t).replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(t).replace(/\%uD.{3}/g,""))):""}}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e0354b28"],{"0feb":function(t,e,i){"use strict";var n=i("71f6"),a={getMenuList:"/gic-menu-list",addMenu:"/menu-add",editMenu:"/menu-edit",delMenu:"/menu-del",addAuthItem:"/add-auth-item",editAuthItem:"/edit-auth-item",delAuthItem:"/del-auth-item",getAuthItemList:"/auth-item-list",getOperationItemList:"/operation-item-list",addOperationItem:"/add-operation-item",editOperationItem:"/edit-operation-item",delOperationItem:"/del-operation-item",haobanVersionList:"/haoban-version-list",appVersionList:"/app-version-list"};e["a"]=Object(n["a"])(a,"/hb-manage-operation-web")},"28a5":function(t,e,i){"use strict";var n=i("aae3"),a=i("cb7c"),u=i("ebd6"),o=i("0390"),r=i("9def"),s=i("5f1b"),l=i("520a"),d=i("79e5"),h=Math.min,m=[].push,c="split",p="length",I="lastIndex",f=4294967295,g=!d((function(){RegExp(f,"y")}));i("214f")("split",2,(function(t,e,i,d){var b;return b="c"=="abbc"[c](/(b)*/)[1]||4!="test"[c](/(?:)/,-1)[p]||2!="ab"[c](/(?:ab)*/)[p]||4!="."[c](/(.?)(.?)/)[p]||"."[c](/()()/)[p]>1||""[c](/.?/)[p]?function(t,e){var a=String(this);if(void 0===t&&0===e)return[];if(!n(t))return i.call(a,t,e);var u,o,r,s=[],d=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),h=0,c=void 0===e?f:e>>>0,g=new RegExp(t.source,d+"g");while(u=l.call(g,a)){if(o=g[I],o>h&&(s.push(a.slice(h,u.index)),u[p]>1&&u.index<a[p]&&m.apply(s,u.slice(1)),r=u[0][p],h=o,s[p]>=c))break;g[I]===u.index&&g[I]++}return h===a[p]?!r&&g.test("")||s.push(""):s.push(a.slice(h)),s[p]>c?s.slice(0,c):s}:"0"[c](void 0,0)[p]?function(t,e){return void 0===t&&0===e?[]:i.call(this,t,e)}:i,[function(i,n){var a=t(this),u=void 0==i?void 0:i[e];return void 0!==u?u.call(i,a,n):b.call(String(a),i,n)},function(t,e){var n=d(b,t,this,e,b!==i);if(n.done)return n.value;var l=a(t),m=String(this),c=u(l,RegExp),p=l.unicode,I=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(g?"y":"g"),v=new c(g?l:"^(?:"+l.source+")",I),A=void 0===e?f:e>>>0;if(0===A)return[];if(0===m.length)return null===s(v,m)?[m]:[];var y=0,w=0,x=[];while(w<m.length){v.lastIndex=g?w:0;var L,F=s(v,g?m:m.slice(w));if(null===F||(L=h(r(v.lastIndex+(g?0:w)),m.length))===y)w=o(m,w,p);else{if(x.push(m.slice(y,w)),x.length===A)return x;for(var O=1;O<=F.length-1;O++)if(x.push(F[O]),x.length===A)return x;w=y=L}}return x.push(m.slice(y)),x}]}))},a664:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticStyle:{padding:"20px"}},[i("div",{staticStyle:{"text-align":"right"}},[i("el-button",{attrs:{type:"primary"},on:{click:function(e){t.editAuth.show=!0}}},[t._v("新建权限项")])],1),i("el-table",{staticStyle:{"margin-top":"20px"},attrs:{data:t.authList}},[i("el-table-column",{attrs:{label:"权限名称",prop:"authItemName",formatter:function(t,e,i){return i||"--"}}}),i("el-table-column",{attrs:{label:"包含操作项",prop:"operationItemCount",formatter:function(t,e,i){return i+"个"||!1}}}),i("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[i("el-button",{attrs:{type:"text"},on:{click:function(e){return t.onEditAuthOpen(n)}}},[t._v("编辑")]),i("el-button",{attrs:{type:"text"},on:{click:function(e){return t.onDelAuth(n)}}},[t._v("删除")])]}}])})],1),i("el-dialog",{attrs:{visible:t.editAuth.show,title:t.editAuth.authItemId?"编辑权限项":"新建权限项",width:"590px"},on:{"update:visible":function(e){return t.$set(t.editAuth,"show",e)},closed:t.onEditAuthClose}},[i("el-form",{ref:"editAuth",attrs:{model:t.editAuth,rules:t.editAuthRule,"label-width":"110px"},nativeOn:{submit:function(t){t.preventDefault()}}},[i("el-form-item",{attrs:{label:"权限项名称",prop:"authItemName"}},[i("el-input",{staticStyle:{width:"440px"},attrs:{type:"text",placeholder:"请输入权限项名称",maxlength:"20","show-word-limit":""},model:{value:t.editAuth.authItemName,callback:function(e){t.$set(t.editAuth,"authItemName","string"===typeof e?e.trim():e)},expression:"editAuth.authItemName"}})],1),i("el-form-item",{attrs:{label:"包含操作项",prop:"operationItemIds"}},[i("el-select",{staticStyle:{width:"332px"},attrs:{"collapse-tags":"",multiple:"",clearable:""},model:{value:t.editAuth.operationItemIds,callback:function(e){t.$set(t.editAuth,"operationItemIds",e)},expression:"editAuth.operationItemIds"}},t._l(t.operationList,(function(t){return i("el-option",{key:t.operationItemId,attrs:{value:t.operationItemId,label:t.operationItemName}})})),1),i("el-button",{staticStyle:{"margin-left":"24px"},attrs:{type:"text"},on:{click:t.toOperationList}},[t._v("添加操作项")])],1)],1),i("template",{slot:"footer"},[i("el-button",{on:{click:function(e){t.editAuth.show=!1}}},[t._v("取消")]),i("el-button",{attrs:{type:"primary",loading:t.editAuth.loading},on:{click:t.onEditAuthSave}},[t._v(t._s(t.editAuth.authItemId?"保存":"新建"))])],1)],2)],1)},a=[],u=i("d157"),o=i("0feb"),r=o["a"].addAuthItem,s=o["a"].editAuthItem,l=o["a"].delAuthItem,d=o["a"].getAuthItemList,h=o["a"].getOperationItemList,m={name:"PermissionList",data:function(){return{bread:[{path:"/menu-config",name:"权限配置"},{name:"权限项"}],menuId:"",appType:"",operationList:[],authList:[],editAuth:{show:!1,loading:!1,authItemId:"",authItemName:"",operationItemIds:[]},editAuthRule:{authItemName:[{required:!0,message:"权限项名称不能为空",trigger:"blur"}],operationItemIds:[{required:!0,message:"请至少选择一个操作项",trigger:"change"}]}}},created:function(){var t=this.$route.query,e=t.menuId,i=t.appType;if(!e)return this.$router.go(-1);this.menuId=e,this.appType=i,this.initData(),this.$emit("updateBread",this.bread)},methods:{initData:function(){this.getAuthItemList(),this.getOperationItemList(1)},getOperationItemList:function(t){var e=this;1==t&&(this.operationList=[]),h({menuId:this.menuId,pageSize:20,pageNum:t}).then((function(i){var n=i.result||{},a=n.totalPage,u=n.result;e.operationList=e.operationList.concat(u||[]),t+1<=a&&e.getOperationItemList(t+1)}))},getAuthItemList:function(){var t=this;d({menuId:this.menuId}).then((function(e){t.authList=e.result||[]}))},onEditAuthOpen:function(t){var e=t.authItemId,i=t.authItemName,n=t.operationItemList;Object.assign(this.editAuth,{show:!0,operationItemIds:Array.isArray(n)?n.map((function(t){return t.operationItemId})):[],authItemId:e,authItemName:i})},onEditAuthClose:function(){Object.assign(this.editAuth,{authItemId:"",authItemName:"",operationItemIds:[]}),this.$nextTick(this.$refs.editAuth.clearValidate)},onEditAuthSave:function(){var t=this;this.$refs.editAuth.validate((function(e){if(e){var i=t.editAuth,n=i.authItemId,a=i.authItemName,o=i.operationItemIds,l={authItemName:Object(u["b"])(a),operationItemIds:o.join(","),menuId:t.menuId};t.editAuth.loading=!0,n?(l.authItemId=n,s(l).then(d.bind(t,"保存成功!")).finally((function(){return t.editAuth.loading=!1}))):r(l).then(d.bind(t,"新建成功!")).finally((function(){return t.editAuth.loading=!1}))}function d(t){this.$message.success(t),this.editAuth.show=!1,this.getAuthItemList()}}))},onDelAuth:function(t){var e=this,i=t.authItemId,n=t.authItemName;this.$confirm("确定删除【 ".concat(n," 】吗?"),"提示",{type:"warning"}).then((function(){l({authItemId:i}).then((function(t){e.$message.success("删除成功!"),e.getAuthItemList()}))}))},toOperationList:function(){this.$router.push("/operation-list?type=".concat(this.appType))}}},c=m,p=i("2877"),I=Object(p["a"])(c,n,a,!1,null,null,null);e["default"]=I.exports},d157:function(t,e,i){"use strict";i.d(e,"a",(function(){return n})),i.d(e,"b",(function(){return a}));i("c5f6"),i("a481"),i("28a5"),i("6b54");function n(t,e){var i;return e=e||200,function(){var n=this,a=arguments;i&&clearTimeout(i),i=setTimeout((function(){i=null,t.apply(n,a)}),e)}}function a(t){return String(t)&&"null"!=String(t)?(t=String(t).replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(t).replace(/\%uD.{3}/g,""))):""}}}]);
\ No newline at end of file \ No newline at end of file
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-11-10 13:46:15 * @Date: 2020-11-10 13:46:15
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-11-11 15:31:09 * @LastEditTime: 2020-11-13 11:44:43
--> -->
<!-- <!--
<index-dialog :sql-check-sql-id="sqlCheckSqlId"></index-dialog> <index-dialog :sql-check-sql-id="sqlCheckSqlId"></index-dialog>
...@@ -13,8 +13,8 @@ import indexDialog from '@/components/sql/index-dialog.vue'; ...@@ -13,8 +13,8 @@ import indexDialog from '@/components/sql/index-dialog.vue';
<template> <template>
<el-dialog title="完善索引" :visible.sync="dialogVisible" width="600px" :before-close="handleClose"> <el-dialog title="完善索引" :visible.sync="dialogVisible" width="600px" :before-close="handleClose">
<div class=""> <div class="">
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="10px" class="demo-ruleForm" @submit.native.prevent> <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="50px" class="demo-ruleForm" @submit.native.prevent>
<el-form-item label="" prop="sqlIndex"> <el-form-item label="内容" prop="sqlIndex">
<el-input class="w-440" type="textarea" rows="3" v-model="ruleForm.sqlIndex" maxlength="500" show-word-limit></el-input> <el-input class="w-440" type="textarea" rows="3" v-model="ruleForm.sqlIndex" maxlength="500" show-word-limit></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
...@@ -51,7 +51,7 @@ export default { ...@@ -51,7 +51,7 @@ export default {
sqlIndex: '' sqlIndex: ''
}, },
rules: { rules: {
sqlIndex: [ { required: true, message: '请输入', trigger: 'blur' } ] sqlIndex: [ { required: true, message: '请输入内容', trigger: 'blur' } ]
}, },
}; };
}, },
...@@ -97,7 +97,8 @@ export default { ...@@ -97,7 +97,8 @@ export default {
const data = { const data = {
sqlCheckSqlId: that.ruleForm.sqlCheckSqlId, sqlCheckSqlId: that.ruleForm.sqlCheckSqlId,
sqlIndex: emojiToStr(that.ruleForm.sqlIndex), sqlIndex: emojiToStr(that.ruleForm.sqlIndex),
commitId: that.userInfo.id commitId: that.userInfo.id,
commitName: that.userInfo.realName
}; };
addSqlIndex(data) addSqlIndex(data)
.then(res => { .then(res => {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-11-10 13:46:26 * @Date: 2020-11-10 13:46:26
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-11-11 15:31:23 * @LastEditTime: 2020-11-11 17:01:35
--> -->
<!-- <!--
<sql-detail :sql-row="sqlRow"></sql-detail> <sql-detail :sql-row="sqlRow"></sql-detail>
...@@ -75,7 +75,7 @@ export default { ...@@ -75,7 +75,7 @@ export default {
*/ */
handleClose() { handleClose() {
const that = this; const that = this;
that.$emit('closeText'); that.$emit('closeDetail');
that.$refs['ruleForm'].resetFields(); that.$refs['ruleForm'].resetFields();
}, },
......
<!--
* @Descripttion: 当前试用账号
* @version: 1.0.0
* @Author: 无尘
* @Date: 2020-11-13 10:59:31
* @LastEditors: 无尘
* @LastEditTime: 2020-11-13 11:04:56
-->
<template>
<div class="common-right">
<div class="m-b-20">
<el-input placeholder="项目搜索" maxlength="50" v-model="searchInput" class="w-274" @keyup.native="value => toInput(value, searchInput)" clearable @clear="clearInput"></el-input>
</div>
<el-table class="select-table" ref="multipleTable" v-loading="loading" :data="tableData" tooltip-effect="dark" :style="{ width: '100%', minHeight: tableH }">
<el-table-column label="项目名称" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.sqlCheckProjectName || '--' }}</template>
</el-table-column>
<el-table-column prop="" label="创建时间" show-overflow-tooltip>
<template slot-scope="scope">
<div>{{ scope.row.createTime | timeStampToYmd }} {{ !scope.row.createTime ? '--': '' }}</div>
<div>{{ scope.row.createTime | timeStampToHms }} {{ !scope.row.createTime ? '--': '' }}</div>
</template>
</el-table-column>
<el-table-column prop="" label="操作" show-overflow-tooltip>
<template slot-scope="scope">
<el-button type="text" @click="toSqlPage(scope.row)">SQL列表</el-button>
</template>
</el-table-column>
</el-table>
<div class="block common-wrap__page text-right m-t-24" v-if="tableData.length != 0">
<el-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage" :page-sizes="[20, 40, 60, 80]" :page-size="pageSize" layout="total, sizes, prev, pager, next, jumper" :total="total"> </el-pagination>
</div>
</div>
</template>
<script>
import { _debounce } from '@/common/js/public';
import fetch from '@/api/dictionary';
const { getProjectList } = fetch;
export default {
name: 'ProjectSql',
components: {},
data() {
return {
searchInput: '',
// 分页参数
currentPage: 1,
pageSize: 20,
total: 0,
loading: false,
tableData: []
};
},
// 生命周期 - 挂载完成(访问DOM元素)
mounted() {
const that = this;
that.getTableData();
},
// methods
methods: {
/**
* @description: 输入
* @param {Object} e
* @param {String} value
* @author: 无尘
*/
toInput: _debounce(function(e, value) {
const that = this;
that.currentPage = 1;
that.getTableData();
}, 500),
/**
* @description: 搜索清除
* @author: 无尘
*/
clearInput() {
const that = this;
that.currentPage = 1;
that.getTableData();
},
/**
* @description: 分页---页码变化
* @param {Number} val
* @author: 无尘
*/
handleSizeChange(val) {
const that = this;
that.currentPage = 1;
that.pageSize = val;
that.getTableData();
},
/**
* @description: 分页---当前页变化
* @param {Number} val
* @author: 无尘
*/
handleCurrentChange(val) {
const that = this;
that.currentPage = val;
that.getTableData();
},
/**
* @description: 获取项目列表
* @author: 无尘
*/
getTableData() {
const that = this;
that.loading = true;
const param = {
project: that.searchInput,
pageNum: that.currentPage,
pageSize: that.pageSize
};
getProjectList(param).then(res => {
that.loading = false;
that.tableData = res.result.result || [];
that.total = res.result.totalCount || 0;
})
.catch(function(error) {
that.loading = false;
});
},
/**
* @description: 跳转 sql 列表
* @param {Object} row
* @author: 无尘
*/
toSqlPage(row) {
const that = this;
that.$router.push(`/sql-list?sqlCheckProjectId=${row.sqlCheckProjectId}`);
}
},
watch: {}
};
</script>
<style lang='less' scoped>
.m-b-20 {
margin-bottom: 20px;
}
</style>
<!--
* @Descripttion: 历史账号
* @version: 1.0.0
* @Author: 无尘
* @Date: 2020-11-13 10:59:48
* @LastEditors: 无尘
* @LastEditTime: 2020-11-13 11:05:06
-->
<template>
<div class="common-right">
<div class="m-b-20">
<el-input placeholder="项目搜索" maxlength="50" v-model="searchInput" class="w-274" @keyup.native="value => toInput(value, searchInput)" clearable @clear="clearInput"></el-input>
</div>
<el-table class="select-table" ref="multipleTable" v-loading="loading" :data="tableData" tooltip-effect="dark" :style="{ width: '100%', minHeight: tableH }">
<el-table-column label="项目名称" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.sqlCheckProjectName || '--' }}</template>
</el-table-column>
<el-table-column prop="" label="创建时间" show-overflow-tooltip>
<template slot-scope="scope">
<div>{{ scope.row.createTime | timeStampToYmd }} {{ !scope.row.createTime ? '--': '' }}</div>
<div>{{ scope.row.createTime | timeStampToHms }} {{ !scope.row.createTime ? '--': '' }}</div>
</template>
</el-table-column>
<el-table-column prop="" label="操作" show-overflow-tooltip>
<template slot-scope="scope">
<el-button type="text" @click="toSqlPage(scope.row)">SQL列表</el-button>
</template>
</el-table-column>
</el-table>
<div class="block common-wrap__page text-right m-t-24" v-if="tableData.length != 0">
<el-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage" :page-sizes="[20, 40, 60, 80]" :page-size="pageSize" layout="total, sizes, prev, pager, next, jumper" :total="total"> </el-pagination>
</div>
</div>
</template>
<script>
import { _debounce } from '@/common/js/public';
import fetch from '@/api/dictionary';
const { getProjectList } = fetch;
export default {
name: 'ProjectSql',
components: {},
data() {
return {
searchInput: '',
// 分页参数
currentPage: 1,
pageSize: 20,
total: 0,
loading: false,
tableData: []
};
},
// 生命周期 - 挂载完成(访问DOM元素)
mounted() {
const that = this;
that.getTableData();
},
// methods
methods: {
/**
* @description: 输入
* @param {Object} e
* @param {String} value
* @author: 无尘
*/
toInput: _debounce(function(e, value) {
const that = this;
that.currentPage = 1;
that.getTableData();
}, 500),
/**
* @description: 搜索清除
* @author: 无尘
*/
clearInput() {
const that = this;
that.currentPage = 1;
that.getTableData();
},
/**
* @description: 分页---页码变化
* @param {Number} val
* @author: 无尘
*/
handleSizeChange(val) {
const that = this;
that.currentPage = 1;
that.pageSize = val;
that.getTableData();
},
/**
* @description: 分页---当前页变化
* @param {Number} val
* @author: 无尘
*/
handleCurrentChange(val) {
const that = this;
that.currentPage = val;
that.getTableData();
},
/**
* @description: 获取项目列表
* @author: 无尘
*/
getTableData() {
const that = this;
that.loading = true;
const param = {
project: that.searchInput,
pageNum: that.currentPage,
pageSize: that.pageSize
};
getProjectList(param).then(res => {
that.loading = false;
that.tableData = res.result.result || [];
that.total = res.result.totalCount || 0;
})
.catch(function(error) {
that.loading = false;
});
},
/**
* @description: 跳转 sql 列表
* @param {Object} row
* @author: 无尘
*/
toSqlPage(row) {
const that = this;
that.$router.push(`/sql-list?sqlCheckProjectId=${row.sqlCheckProjectId}`);
}
},
watch: {}
};
</script>
<style lang='less' scoped>
.m-b-20 {
margin-bottom: 20px;
}
</style>
...@@ -4,14 +4,14 @@ ...@@ -4,14 +4,14 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-11-09 11:15:16 * @Date: 2020-11-09 11:15:16
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-11-11 11:26:03 * @LastEditTime: 2020-11-13 11:12:01
--> -->
<template> <template>
<div class="common-right"> <div class="common-right">
<div class="m-b-20"> <div class="m-b-20">
<el-input placeholder="项目搜索" maxlength="50" v-model="searchInput" class="w-274" @keyup.native="value => toInput(value, searchInput)" clearable @clear="clearInput"></el-input> <el-input placeholder="请输入项目名称" maxlength="50" v-model="searchInput" class="w-279" @keyup.native="value => toInput(value, searchInput)" clearable @clear="clearInput"></el-input>
</div> </div>
<el-table class="select-table" ref="multipleTable" v-loading="loading" :data="tableData" tooltip-effect="dark" :style="{ width: '100%', minHeight: tableH }"> <el-table class="select-table" ref="multipleTable" v-loading="loading" :data="tableData" tooltip-effect="dark" :style="{ width: '100%' }">
<el-table-column label="项目名称" show-overflow-tooltip> <el-table-column label="项目名称" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.sqlCheckProjectName || '--' }}</template> <template slot-scope="scope">{{ scope.row.sqlCheckProjectName || '--' }}</template>
</el-table-column> </el-table-column>
...@@ -136,6 +136,9 @@ export default { ...@@ -136,6 +136,9 @@ export default {
}; };
</script> </script>
<style lang='less' scoped> <style lang='less' scoped>
.w-279 {
width: 279px;
}
.m-b-20 { .m-b-20 {
margin-bottom: 20px; margin-bottom: 20px;
} }
......
...@@ -4,14 +4,14 @@ ...@@ -4,14 +4,14 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-11-09 11:16:12 * @Date: 2020-11-09 11:16:12
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-11-11 16:04:48 * @LastEditTime: 2020-11-13 13:55:02
--> -->
<!-- --> <!-- -->
<template> <template>
<div class="common-right"> <div class="common-right">
<div class="m-b-20"> <div class="m-b-20">
<el-input placeholder="SQL搜索" maxlength="150" v-model="searchInput" class="w-274" @keyup.native="value => toInput(value, searchInput)" clearable @clear="clearInput"></el-input> <el-input placeholder="请输入 SQL" maxlength="250" v-model="searchInput" class="w-180" @keyup.native="value => toInput(value, searchInput)" clearable @clear="clearInput"></el-input>
<el-date-picker class="m-l-10" v-model="createDate" prefix-icon="el-icon-time" type="daterange" range-separator="~" placeholder="选择日期" @change="changeDate"></el-date-picker> <el-date-picker class="m-l-10 w-249" v-model="createDate" prefix-icon="el-icon-time" type="daterange" range-separator="~" start-placeholder="开始日期" end-placeholder="结束日期" @change="changeDate"></el-date-picker>
<el-select class="m-l-10 w-130" v-model="sqlCheckIndexType" placeholder="请选择" @change="changeCondition"> <el-select class="m-l-10 w-130" v-model="sqlCheckIndexType" placeholder="请选择" @change="changeCondition">
<el-option <el-option
v-for="item in perfectOption" v-for="item in perfectOption"
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
:value="item.value"> :value="item.value">
</el-option> </el-option>
</el-select> </el-select>
<el-select class="m-l-10 w-130" v-model="sqlCheckIndexStatus" placeholder="请选择" @change="changeCondition"> <el-select class="m-l-10 w-130" v-model="sqlCheckIndexStatus" placeholder="是否需要完善" @change="changeCondition">
<el-option <el-option
v-for="item in isPerfectOption" v-for="item in isPerfectOption"
:key="item.value" :key="item.value"
...@@ -36,7 +36,11 @@ ...@@ -36,7 +36,11 @@
:value="item.value"> :value="item.value">
</el-option> </el-option>
</el-select> </el-select>
<el-button class="m-l-10" type="primary" @click="multStatus(1)">完善上线状态</el-button><el-button class="m-l-10" type="primary" @click="exportSql">导出脚本</el-button>
</div> </div>
<!-- <div class="m-b-20">
<el-button type="primary" @click="multPerfect(1)">批量是否需要完善sql</el-button><el-button type="primary" @click="multStatus(1)">批量完善上线状态</el-button><el-button type="primary" @click="exportSql">导出脚本</el-button>
</div> -->
<el-table class="select-table" ref="multipleTable" v-loading="loading" :data="tableData" tooltip-effect="dark" :style="{ width: '100%', minHeight: tableH }" @selection-change="handleSelectionChange"> <el-table class="select-table" ref="multipleTable" v-loading="loading" :data="tableData" tooltip-effect="dark" :style="{ width: '100%', minHeight: tableH }" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55"> </el-table-column> <el-table-column type="selection" width="55"> </el-table-column>
<el-table-column label="项目名称" show-overflow-tooltip> <el-table-column label="项目名称" show-overflow-tooltip>
...@@ -59,7 +63,7 @@ ...@@ -59,7 +63,7 @@
<template slot-scope="scope">{{ scope.row.sqlCheckSql || '--' }}</template> <template slot-scope="scope">{{ scope.row.sqlCheckSql || '--' }}</template>
</el-table-column> </el-table-column>
<el-table-column label="完善状态" show-overflow-tooltip> <el-table-column label="完善状态" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.sqlCheckIndexType== 1? '已完善' : '未完善' }}</template> <template slot-scope="scope"><span :class="['span-dot', scope.row.sqlCheckIndexType == 1 ? 'bg-52c41a ' : 'bg-d9d9d9']"></span><span class="p-l-8">{{ scope.row.sqlCheckIndexType== 1? '已完善' : '未完善' }}</span></template>
</el-table-column> </el-table-column>
<el-table-column label="上线状态" show-overflow-tooltip> <el-table-column label="上线状态" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -100,7 +104,7 @@ import indexDialog from '@/components/sql/index-dialog.vue'; ...@@ -100,7 +104,7 @@ import indexDialog from '@/components/sql/index-dialog.vue';
import { _debounce } from '@/common/js/public'; import { _debounce } from '@/common/js/public';
import fetch from '@/api/dictionary'; import fetch from '@/api/dictionary';
const { getSqlList, setPerfect, setStatus } = fetch; const { getSqlList, setPerfect, setStatus, exportData } = fetch;
export default { export default {
name: 'SqlList', name: 'SqlList',
components: { sqlDetail, indexDialog }, components: { sqlDetail, indexDialog },
...@@ -144,7 +148,7 @@ export default { ...@@ -144,7 +148,7 @@ export default {
isPerfectOption: [ isPerfectOption: [
{ {
value: '', value: '',
label: '全部' label: '是否需要完善'
}, },
{ {
value: '1', value: '1',
...@@ -177,6 +181,68 @@ export default { ...@@ -177,6 +181,68 @@ export default {
// methods // methods
methods: { methods: {
/** /**
* @description: 批量操作
* @author: 无尘
*/
// multPerfect(e) {
// },
multStatus(e) {
const that = this;
that.changeStatus(e);
},
/**
* @description: 导出脚本
* @author: 无尘
*/
exportSql() {
const that = this;
if (!that.createDate) {
that.createDate = [];
}
const param = {
project: that.$route.query.sqlCheckProjectId,
table: that.$route.query.sqlCheckTableId,
sqlCheckIndexType: that.sqlCheckIndexType,
statusFlag: that.statusFlag,
sqlCheckIndexStatus: that.sqlCheckIndexStatus,
startDate: that.createDate[0],
endDate: that.createDate[1],
};
exportData(param).then(res => {
if (res.code == '0000') {
if (!res.data) {
that.$message.error('暂无数据');
return false;
}
that.$message({
message: '导出成功',
type: 'success'
});
// let resData = res.data;
const blob = new Blob([ res.data ], {
type: 'application/vnd.ms-excel'
});
const fileName = 'sql脚本.csv';
const elink = document.createElement('a');
elink.download = fileName;
elink.style.display = 'none';
elink.href = URL.createObjectURL(blob);
document.body.appendChild(elink);
elink.click();
URL.revokeObjectURL(elink.href); // 释放URL 对象
document.body.removeChild(elink);
}else{
that.$message.error(res.message);
}
})
.catch(function(error) {
});
},
/**
* @description: 条件 * @description: 条件
* @author: 无尘 * @author: 无尘
*/ */
...@@ -185,6 +251,14 @@ export default { ...@@ -185,6 +251,14 @@ export default {
that.currentPage = 1; that.currentPage = 1;
that.getTableData(); that.getTableData();
}, },
changeDate(e) {
const that = this;
if (!e) {
that.createDate = [];
}
that.currentPage = 1;
that.getTableData();
},
/** /**
* @description: 完善索引 * @description: 完善索引
* @param {Object} row * @param {Object} row
...@@ -195,12 +269,39 @@ export default { ...@@ -195,12 +269,39 @@ export default {
that.showIndex = true; that.showIndex = true;
that.sqlCheckSqlId = row.sqlCheckSqlId; that.sqlCheckSqlId = row.sqlCheckSqlId;
}, },
closeText() {
const that = this;
that.showIndex = true;
that.sqlCheckSqlId = '';
},
submitText() {
const that = this;
that.currentPage = 1;
that.getTableData();
},
toShowDetail(row) {
const that = this;
that.showDetail = true;
that.sqlRow = row.sqlRow;
},
closeDetail() {
const that = this;
that.showDetail = false;
that.sqlRow = {};
},
/**
* @description: 开关
* @param {Boolean} e
* @param {Object} row
* @author: 无尘
*/
changePerfect(e, row) { changePerfect(e, row) {
const that = this; const that = this;
const param = { const param = {
sqlCheckIndexStatus: e ? 1 : 0, sqlCheckIndexStatus: e ? 1 : 0,
sqlCheckSqlId: row.sqlCheckSqlId, sqlCheckSqlId: row ? row.sqlCheckSqlId : that.multipleSelection.map(ele=>ele.sqlCheckSqlId),
commitId: that.userInfo.id commitId: that.userInfo.id,
commitName: that.userInfo.realName
}; };
setPerfect(param).then(res => { setPerfect(param).then(res => {
if (res.code == '0000') { if (res.code == '0000') {
...@@ -223,8 +324,9 @@ export default { ...@@ -223,8 +324,9 @@ export default {
const that = this; const that = this;
const param = { const param = {
statusFlag: e ? 1 : 0, statusFlag: e ? 1 : 0,
sqlCheckSqlId: row.sqlCheckSqlId, sqlCheckSqlId: row ? row.sqlCheckSqlId : that.multipleSelection.map(ele=>ele.sqlCheckSqlId),
commitId: that.userInfo.id commitId: that.userInfo.id,
commitName: that.userInfo.realName
}; };
setStatus(param).then(res => { setStatus(param).then(res => {
if (res.code == '0000') { if (res.code == '0000') {
...@@ -241,14 +343,7 @@ export default { ...@@ -241,14 +343,7 @@ export default {
.catch(function(error) { .catch(function(error) {
}); });
}, },
changeDate(e) {
const that = this;
if (!e) {
that.createDate = [];
}
that.currentPage = 1;
that.getTableData();
},
/** /**
* @description: 输入 * @description: 输入
* @param {Object} e * @param {Object} e
...@@ -345,4 +440,24 @@ export default { ...@@ -345,4 +440,24 @@ export default {
.w-130 { .w-130 {
width: 130px; width: 130px;
} }
.w-249 {
width: 249px;
}
.w-180 {
width: 180px;
}
.span-dot {
display: inline-block;
vertical-align: middle;
width: 6px;
height: 6px;
margin-right: 6px;
border-radius: 3px;
&.bg-52c41a {
background: #52c41a ;
}
&.bg-d9d9d9 {
background: #d9d9d9;
}
}
</style> </style>
...@@ -4,14 +4,14 @@ ...@@ -4,14 +4,14 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-11-09 11:15:55 * @Date: 2020-11-09 11:15:55
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-11-11 11:29:02 * @LastEditTime: 2020-11-13 11:11:54
--> -->
<template> <template>
<div class="common-right"> <div class="common-right">
<div class="m-b-20"> <div class="m-b-20">
<el-input placeholder="表名搜索" maxlength="50" v-model="searchInput" class="w-274" @keyup.native="value => toInput(value, searchInput)" clearable @clear="clearInput"></el-input> <el-input placeholder="请输入表名称" maxlength="50" v-model="searchInput" class="w-279" @keyup.native="value => toInput(value, searchInput)" clearable @clear="clearInput"></el-input>
</div> </div>
<el-table class="select-table" ref="multipleTable" v-loading="loading" :data="tableData" tooltip-effect="dark" :style="{ width: '100%', minHeight: tableH }"> <el-table class="select-table" ref="multipleTable" v-loading="loading" :data="tableData" tooltip-effect="dark" :style="{ width: '100%'}">
<el-table-column label="表名称" show-overflow-tooltip> <el-table-column label="表名称" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.sqlCheckTableName || '--' }}</template> <template slot-scope="scope">{{ scope.row.sqlCheckTableName || '--' }}</template>
</el-table-column> </el-table-column>
...@@ -136,6 +136,7 @@ export default { ...@@ -136,6 +136,7 @@ export default {
}; };
</script> </script>
<style lang='less' scoped> <style lang='less' scoped>
.w-279 {
width: 279px;
}
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment