Commit e6f8b03d by 无尘

feat: 增加 sql 页面

parent efe8cdae
.m-b-20[data-v-506b4520]{margin-bottom:20px}
\ No newline at end of file
.enterprise-info[data-v-2c3614a1]{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.enterprise-info[data-v-2c3614a1],.logo[data-v-2c3614a1]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.logo[data-v-2c3614a1]{margin-right:10px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:40px;height:40px}.logo img[data-v-2c3614a1]{max-width:100%;max-height:100%;border-radius:2px}.enterprise-name[data-v-2c3614a1]{display:block;width:calc(100% - 50px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
\ No newline at end of file
.enterprise-info[data-v-038527d6]{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.enterprise-info[data-v-038527d6],.logo[data-v-038527d6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.logo[data-v-038527d6]{margin-right:10px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:40px;height:40px}.logo img[data-v-038527d6]{max-width:100%;max-height:100%;border-radius:2px}.enterprise-name[data-v-038527d6]{display:block;width:calc(100% - 50px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
\ 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-126ea711.12980bcb.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-52075058.debc587f.css rel=prefetch><link href=css/chunk-ce6e75c2.5c2cd5fc.css rel=prefetch><link href=js/chunk-126ea711.df8c9e0f.js rel=prefetch><link href=js/chunk-22af8244.f7b854db.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-52075058.d2d7a3ed.js rel=prefetch><link href=js/chunk-ce6e75c2.19df2410.js rel=prefetch><link href=js/chunk-e0354b28.860dd428.js rel=prefetch><link href=css/app.64cc76ee.css rel=preload as=style><link href=css/chunk-vendors.635bc84a.css rel=preload as=style><link href=js/app.6f4b9fc5.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.64cc76ee.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.6f4b9fc5.js></script></body></html>
\ 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-126ea711.12980bcb.css rel=prefetch><link href=css/chunk-20e8a4a6.39cc1bc2.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-4e4948e2.6235b95e.css rel=prefetch><link href=css/chunk-512af800.73a18d33.css rel=prefetch><link href=css/chunk-ce6e75c2.5c2cd5fc.css rel=prefetch><link href=js/chunk-0cd94ba7.704e334d.js rel=prefetch><link href=js/chunk-126ea711.1927465d.js rel=prefetch><link href=js/chunk-20e8a4a6.daf1ce24.js rel=prefetch><link href=js/chunk-22af8244.f7b854db.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-48024ea4.3beca5a7.js rel=prefetch><link href=js/chunk-4e4948e2.3231b768.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=css/app.64cc76ee.css rel=preload as=style><link href=css/chunk-vendors.635bc84a.css rel=preload as=style><link href=js/app.f180ec49.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.64cc76ee.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.f180ec49.js></script></body></html>
\ 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"),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,_=[];while(S<d.length){w.lastIndex=b?S:0;var C,T=c(w,b?d:d.slice(S));if(null===T||(C=p(l(w.lastIndex+(b?0:S)),d.length))===F)S=u(d,S,f);else{if(_.push(d.slice(F,S)),_.length===D)return _;for(var x=1;x<=T.length-1;x++)if(_.push(T[x]),_.length===D)return _;S=F=C}}return _.push(d.slice(F)),_}]}))},"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",[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.tableName||"--"))]}}])}),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"].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(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={pageNum:e.currentPage,pageSize:e.pageSize};l(t).then((function(t){e.loading=!1,e.tableData=t.result.list||[],e.total=t.result.totalCount||0})).catch((function(t){e.loading=!1}))},toSqlPage:function(e){var t=this;t.$router.push("/sql-list?projectId=".concat(e.projectId))}},watch:{}},o=c,s=a("2877"),p=Object(s["a"])(o,n,i,!1,null,"58c1e7f0",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-20e8a4a6"],{"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,_=[];while(S<d.length){w.lastIndex=b?S:0;var C,x=c(w,b?d:d.slice(S));if(null===x||(C=p(l(w.lastIndex+(b?0:S)),d.length))===F)S=u(d,S,f);else{if(_.push(d.slice(F,S)),_.length===D)return _;for(var T=1;T<=x.length-1;T++)if(_.push(x[T]),_.length===D)return _;S=F=C}}return _.push(d.slice(F)),_}]}))},"388c":function(e,t,a){},"781b":function(e,t,a){"use strict";var n=a("388c"),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",[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.projectName||"--"))]}}])}),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={pageNum:e.currentPage,pageSize:e.pageSize};l(t).then((function(t){e.loading=!1,e.tableData=t.result.list||[],e.total=t.result.totalCount||0})).catch((function(t){e.loading=!1}))},toSqlPage:function(e){var t=this;t.$router.push("/sql-list?projectId=".concat(e.projectId))}},watch:{}},o=c,s=(a("781b"),a("2877")),p=Object(s["a"])(o,n,i,!1,null,"506b4520",null);t["default"]=p.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-48024ea4"],{"28a5":function(e,t,a){"use strict";var n=a("aae3"),l=a("cb7c"),o=a("ebd6"),i=a("0390"),r=a("9def"),u=a("5f1b"),c=a("520a"),s=a("79e5"),f=Math.min,p=[].push,d="split",h="length",g="lastIndex",b=4294967295,v=!s((function(){RegExp(b,"y")}));a("214f")("split",2,(function(e,t,a,s){var m;return m="c"=="abbc"[d](/(b)*/)[1]||4!="test"[d](/(?:)/,-1)[h]||2!="ab"[d](/(?:ab)*/)[h]||4!="."[d](/(.?)(.?)/)[h]||"."[d](/()()/)[h]>1||""[d](/.?/)[h]?function(e,t){var l=String(this);if(void 0===e&&0===t)return[];if(!n(e))return a.call(l,e,t);var o,i,r,u=[],s=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,d=void 0===t?b:t>>>0,v=new RegExp(e.source,s+"g");while(o=c.call(v,l)){if(i=v[g],i>f&&(u.push(l.slice(f,o.index)),o[h]>1&&o.index<l[h]&&p.apply(u,o.slice(1)),r=o[0][h],f=i,u[h]>=d))break;v[g]===o.index&&v[g]++}return f===l[h]?!r&&v.test("")||u.push(""):u.push(l.slice(f)),u[h]>d?u.slice(0,d):u}:"0"[d](void 0,0)[h]?function(e,t){return void 0===e&&0===t?[]:a.call(this,e,t)}:a,[function(a,n){var l=e(this),o=void 0==a?void 0:a[t];return void 0!==o?o.call(a,l,n):m.call(String(l),a,n)},function(e,t){var n=s(m,e,this,t,m!==a);if(n.done)return n.value;var c=l(e),p=String(this),d=o(c,RegExp),h=c.unicode,g=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(v?"y":"g"),w=new d(v?c:"^(?:"+c.source+")",g),S=void 0===t?b:t>>>0;if(0===S)return[];if(0===p.length)return null===u(w,p)?[p]:[];var _=0,D=0,F=[];while(D<p.length){w.lastIndex=v?D:0;var k,x=u(w,v?p:p.slice(D));if(null===x||(k=f(r(w.lastIndex+(v?0:D)),p.length))===_)D=i(p,D,h);else{if(F.push(p.slice(_,D)),F.length===S)return F;for(var y=1;y<=x.length-1;y++)if(F.push(x[y]),F.length===S)return F;D=_=k}}return F.push(p.slice(_)),F}]}))},c310: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",[a("div",{staticClass:"m-b-20"},[a("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"}})],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.projectName||"--"))]}}])}),a("el-table-column",{attrs:{label:"表名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.tableName||"--"))]}}])}),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":"''"},model:{value:t.row.tableName,callback:function(a){e.$set(t.row,"tableName",a)},expression:"scope.row.tableName"}})]}}])}),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.tableName||"--"))]}}])}),a("el-table-column",{attrs:{label:"完善状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.tableName||"--"))]}}])}),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":"''"},model:{value:t.row.tableName,callback:function(a){e.$set(t.row,"tableName",a)},expression:"scope.row.tableName"}})]}}])}),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.tableName||"--"))]}}])}),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.toSqlPage(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()],1)},l=[],o=a("d157"),i=a("e56e"),r=i["a"].getSqlList,u={name:"SqlList",components:{},data:function(){return{searchInput:"",currentPage:1,pageSize:20,total:0,loading:!1,tableData:[],multipleSelection:[]}},mounted:function(){var e=this;e.getTableData()},methods:{toInput:Object(o["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;var t={pageNum:e.currentPage,pageSize:e.pageSize};r(t).then((function(t){e.loading=!1,e.tableData=t.result.list||[],e.total=t.result.totalCount||0})).catch((function(t){e.loading=!1}))}},watch:{}},c=u,s=a("2877"),f=Object(s["a"])(c,n,l,!1,null,"84cc9086",null);t["default"]=f.exports},d157:function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return l}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function n(e,t){var a;return t=t||200,function(){var n=this,l=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,e.apply(n,l)}),t)}}function l(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"),l={getDictList:"/dict-list",saveDict:"/save-dict",delDict:"/del-dict",dictDetail:"/dict-detail"};l=Object(n["a"])(l,"/hb-manage-operation-web"),t["a"]=l}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4e4948e2"],{"386d":function(e,t,a){"use strict";var r=a("cb7c"),n=a("83a1"),i=a("5f1b");a("214f")("search",1,(function(e,t,a,o){return[function(a){var r=e(this),n=void 0==a?void 0:a[t];return void 0!==n?n.call(a,r):new RegExp(a)[t](String(r))},function(e){var t=o(a,e,this);if(t.done)return t.value;var s=r(e),l=String(this),c=s.lastIndex;n(c,0)||(s.lastIndex=0);var u=i(s,l);return n(s.lastIndex,c)||(s.lastIndex=c),null===u?-1:u.index}]}))},"6cf8":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{padding:"20px"}},[a("el-input",{staticStyle:{width:"180px"},attrs:{placeholder:"请输入企业/商户","prefix-icon":"el-icon-search",clearable:""},on:{change:e.onSearch},model:{value:e.search.search,callback:function(t){e.$set(e.search,"search","string"===typeof t?t.trim():t)},expression:"search.search"}}),a("el-select",{staticStyle:{"margin-left":"10px",width:"106px"},attrs:{placeholder:"全部版本",clearable:""},on:{change:e.onSearch},model:{value:e.search.version,callback:function(t){e.$set(e.search,"version",t)},expression:"search.version"}},e._l(e.versionList,(function(e){return a("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})})),1),a("el-select",{staticStyle:{"margin-left":"10px",width:"106px"},attrs:{placeholder:"全部状态",clearable:""},on:{change:e.onSearch},model:{value:e.search.bindFlag,callback:function(t){e.$set(e.search,"bindFlag",t)},expression:"search.bindFlag"}},e._l(e.bindFlagList,(function(e){return a("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})})),1),a("el-table",{staticStyle:{"margin-top":"20px"},attrs:{data:e.enterpriseList}},[a("el-table-column",{attrs:{label:"企业信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return a("div",{staticClass:"enterprise-info"},[a("div",{staticClass:"logo"},[r.corpSquareLogoUrl?a("img",{attrs:{src:r.corpSquareLogoUrl,alt:""}}):e._e()]),a("span",{staticClass:"enterprise-name"},[e._v(e._s(r.wxEnterpriseName))])])}}])}),a("el-table-column",{attrs:{label:"订购版本",prop:"version",formatter:e.formatVersion}}),a("el-table-column",{attrs:{label:"授权GIC商户数",prop:"enterpriseCount"}}),a("el-table-column",{attrs:{label:"最近授权时间"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return a("div",{staticStyle:{"line-height":"normal"}},[a("p",[e._v(e._s(e._f("timeStampToYmd")(r.createTime)))]),a("p",[e._v(e._s(e._f("timeStampToHms")(r.createTime)))])])}}])}),a("el-table-column",{attrs:{label:"最近编辑时间"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return a("div",{staticStyle:{"line-height":"normal"}},[a("p",[e._v(e._s(e._f("timeStampToYmd")(r.updateTime)))]),a("p",[e._v(e._s(e._f("timeStampToHms")(r.updateTime)))])])}}])}),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.tologinBack(r)}}},[e._v("登录")]),a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.toEnterpriseDetail(r)}}},[e._v("详情")])]}}])})],1),e.pager.total>0?a("el-pagination",{staticStyle:{"text-align":"right"},attrs:{background:"",layout:"total,sizes,prev,pager,next",total:e.pager.total,"page-sizes":e.pager.pageSizes,"page-size":e.pager.pageSize,"current-page":e.pager.currentPage},on:{"size-change":e.onSizeChange,"current-change":e.onCurrentChange}}):e._e()],1)},n=[],i=(a("386d"),a("a30a")),o=i["a"].getEnterpriseList,s={name:"EnterpriseList",data:function(){return{versionList:[{label:"基础版",value:"1"},{label:"高级版",value:"2"}],bindFlagList:[{label:"未绑定",value:"1"},{label:"已绑定",value:"2"}],search:{search:"",version:"",bindFlag:""},pager:{total:0,pageSizes:[20,40,60,80],pageSize:20,currentPage:1},enterpriseList:[]}},created:function(){this.getEnterpriseList()},methods:{tologinBack:function(e){var t=localStorage.getItem("haobanOperate")?JSON.parse(localStorage.getItem("haobanOperate")):{id:"",userMobile:"",realName:""},a={phoneNumber:t.userMobile,nationCode:"86",accountId:t.id,wxEnterpriseId:e.wxEnterpriseId,accountName:t.realName};window.open("/hb-manage-web/auth/operation-login?wxEnterpriseId=".concat(a.wxEnterpriseId,"&nationCode=").concat(a.nationCode,"&phoneNumber=").concat(a.phoneNumber,"&accountId=").concat(a.accountId,"&accountName=").concat(a.accountName),"_blank","noopener")},getEnterpriseList:function(){var e=this,t=this.search,a=t.search,r=t.version,n=t.bindFlag,i=this.pager,s=i.pageSize,l=i.currentPage,c={search:a,version:r,bindFlag:n,pageSize:s,pageNum:l};o(c).then((function(t){var a=t.result||{},r=a.totalCount,n=a.result;e.pager.total=r||0,e.enterpriseList=n||[]}))},onSearch:function(){this.pager.currentPage=1,this.getEnterpriseList()},onCurrentChange:function(e){this.pager.currentPage=e,this.getEnterpriseList()},onSizeChange:function(e){this.pager.pageSize=e,this.onSearch()},formatVersion:function(e,t,a){var r="--";return this.versionList.some((function(e){return e.value==a&&(r=e.label),e.value==a})),r},toEnterpriseDetail:function(e){var t=e.wxEnterpriseId;this.$router.push("/enterprise-detail?enterpriseId=".concat(t))}}},l=s,c=(a("ff72"),a("2877")),u=Object(c["a"])(l,r,n,!1,null,"2c3614a1",null);t["default"]=u.exports},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},a30a:function(e,t,a){"use strict";var r=a("71f6"),n={getEnterpriseList:"/wx-enterprise-list",getEnterpriseDetail:"/enterprise-detail",refreshEnterpriseInfo:"/setting/wx-enterprise-info-flush",storeRangeDetail:"/store-range-detail"};t["a"]=Object(r["a"])(n,"/hb-manage-operation-web")},a334:function(e,t,a){},ff72:function(e,t,a){"use strict";var r=a("a334"),n=a.n(r);n.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-52075058"],{"386d":function(e,t,a){"use strict";var r=a("cb7c"),n=a("83a1"),i=a("5f1b");a("214f")("search",1,(function(e,t,a,o){return[function(a){var r=e(this),n=void 0==a?void 0:a[t];return void 0!==n?n.call(a,r):new RegExp(a)[t](String(r))},function(e){var t=o(a,e,this);if(t.done)return t.value;var s=r(e),l=String(this),c=s.lastIndex;n(c,0)||(s.lastIndex=0);var u=i(s,l);return n(s.lastIndex,c)||(s.lastIndex=c),null===u?-1:u.index}]}))},"6a8f":function(e,t,a){},"6cf8":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{padding:"20px"}},[a("el-input",{staticStyle:{width:"180px"},attrs:{placeholder:"请输入企业/商户","prefix-icon":"el-icon-search",clearable:""},on:{change:e.onSearch},model:{value:e.search.search,callback:function(t){e.$set(e.search,"search","string"===typeof t?t.trim():t)},expression:"search.search"}}),a("el-select",{staticStyle:{"margin-left":"10px",width:"106px"},attrs:{placeholder:"全部版本",clearable:""},on:{change:e.onSearch},model:{value:e.search.version,callback:function(t){e.$set(e.search,"version",t)},expression:"search.version"}},e._l(e.versionList,(function(e){return a("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})})),1),a("el-select",{staticStyle:{"margin-left":"10px",width:"106px"},attrs:{placeholder:"全部状态",clearable:""},on:{change:e.onSearch},model:{value:e.search.bindFlag,callback:function(t){e.$set(e.search,"bindFlag",t)},expression:"search.bindFlag"}},e._l(e.bindFlagList,(function(e){return a("el-option",{key:e.value,attrs:{value:e.value,label:e.label}})})),1),a("el-table",{staticStyle:{"margin-top":"20px"},attrs:{data:e.enterpriseList}},[a("el-table-column",{attrs:{label:"企业信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return a("div",{staticClass:"enterprise-info"},[a("div",{staticClass:"logo"},[r.corpSquareLogoUrl?a("img",{attrs:{src:r.corpSquareLogoUrl,alt:""}}):e._e()]),a("span",{staticClass:"enterprise-name"},[e._v(e._s(r.wxEnterpriseName))])])}}])}),a("el-table-column",{attrs:{label:"订购版本",prop:"version",formatter:e.formatVersion}}),a("el-table-column",{attrs:{label:"授权GIC商户数",prop:"enterpriseCount"}}),a("el-table-column",{attrs:{label:"最近授权时间"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return a("div",{staticStyle:{"line-height":"normal"}},[a("p",[e._v(e._s(e._f("timeStampToYmd")(r.createTime)))]),a("p",[e._v(e._s(e._f("timeStampToHms")(r.createTime)))])])}}])}),a("el-table-column",{attrs:{label:"最近编辑时间"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return a("div",{staticStyle:{"line-height":"normal"}},[a("p",[e._v(e._s(e._f("timeStampToYmd")(r.updateTime)))]),a("p",[e._v(e._s(e._f("timeStampToHms")(r.updateTime)))])])}}])}),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.tologinBack(r)}}},[e._v("登录")]),a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.toEnterpriseDetail(r)}}},[e._v("详情")])]}}])})],1),e.pager.total>0?a("el-pagination",{staticStyle:{"text-align":"right"},attrs:{background:"",layout:"total,sizes,prev,pager,next",total:e.pager.total,"page-sizes":e.pager.pageSizes,"page-size":e.pager.pageSize,"current-page":e.pager.currentPage},on:{"size-change":e.onSizeChange,"current-change":e.onCurrentChange}}):e._e()],1)},n=[],i=(a("386d"),a("a30a")),o=i["a"].getEnterpriseList,s={name:"EnterpriseList",data:function(){return{versionList:[{label:"基础版",value:"1"},{label:"高级版",value:"2"}],bindFlagList:[{label:"未绑定",value:"1"},{label:"已绑定",value:"2"}],search:{search:"",version:"",bindFlag:""},pager:{total:0,pageSizes:[20,40,60,80],pageSize:20,currentPage:1},enterpriseList:[]}},created:function(){this.getEnterpriseList()},methods:{tologinBack:function(e){var t=localStorage.getItem("haobanOperate")?JSON.parse(localStorage.getItem("haobanOperate")):{id:"",userMobile:"",realName:""},a={phoneNumber:t.userMobile,nationCode:"86",accountId:t.id,wxEnterpriseId:e.wxEnterpriseId,accountName:t.realName};window.open("/hb-manage-web/auth/operation-login?wxEnterpriseId=".concat(a.wxEnterpriseId,"&nationCode=").concat(a.nationCode,"&phoneNumber=").concat(a.phoneNumber,"&accountId=").concat(a.accountId,"&accountName=").concat(a.accountName),"_blank","noopener")},getEnterpriseList:function(){var e=this,t=this.search,a=t.search,r=t.version,n=t.bindFlag,i=this.pager,s=i.pageSize,l=i.currentPage,c={search:a,version:r,bindFlag:n,pageSize:s,pageNum:l};o(c).then((function(t){var a=t.result||{},r=a.totalCount,n=a.result;e.pager.total=r||0,e.enterpriseList=n||[]}))},onSearch:function(){this.pager.currentPage=1,this.getEnterpriseList()},onCurrentChange:function(e){this.pager.currentPage=e,this.getEnterpriseList()},onSizeChange:function(e){this.pager.pageSize=e,this.onSearch()},formatVersion:function(e,t,a){var r="--";return this.versionList.some((function(e){return e.value==a&&(r=e.label),e.value==a})),r},toEnterpriseDetail:function(e){var t=e.wxEnterpriseId;this.$router.push("/enterprise-detail?enterpriseId=".concat(t))}}},l=s,c=(a("892d"),a("2877")),u=Object(c["a"])(l,r,n,!1,null,"038527d6",null);t["default"]=u.exports},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},"892d":function(e,t,a){"use strict";var r=a("6a8f"),n=a.n(r);n.a},a30a:function(e,t,a){"use strict";var r=a("71f6"),n={getEnterpriseList:"/wx-enterprise-list",getEnterpriseDetail:"/enterprise-detail",refreshEnterpriseInfo:"/setting/wx-enterprise-info-flush",storeRangeDetail:"/store-range-detail"};t["a"]=Object(r["a"])(n,"/hb-manage-operation-web")}}]);
\ No newline at end of file
......@@ -4,10 +4,13 @@
* @Author: 无尘
* @Date: 2020-11-09 11:15:16
* @LastEditors: 无尘
* @LastEditTime: 2020-11-10 11:41:58
* @LastEditTime: 2020-11-11 09:57:41
-->
<template>
<div>
<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.projectName || '--' }}</template>
......@@ -31,6 +34,7 @@
</template>
<script>
import { _debounce } from '@/common/js/public';
import fetch from '@/api/dictionary';
const { getProjectList } = fetch;
......@@ -39,6 +43,7 @@ export default {
components: {},
data() {
return {
searchInput: '',
// 分页参数
currentPage: 1,
pageSize: 20,
......@@ -56,6 +61,47 @@ export default {
// 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: 无尘
*/
......@@ -89,6 +135,8 @@ export default {
};
</script>
<style lang='less' scoped>
.m-b-20 {
margin-bottom: 20px;
}
</style>
......@@ -4,11 +4,14 @@
* @Author: 无尘
* @Date: 2020-11-09 11:16:12
* @LastEditors: 无尘
* @LastEditTime: 2020-11-10 13:42:53
* @LastEditTime: 2020-11-11 09:57:50
-->
<!-- -->
<template>
<div>
<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>
</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-column type="selection" width="55"> </el-table-column>
<el-table-column label="项目名称" show-overflow-tooltip>
......@@ -63,6 +66,7 @@
</template>
<script>
import { _debounce } from '@/common/js/public';
import fetch from '@/api/dictionary';
const { getSqlList } = fetch;
......@@ -71,6 +75,7 @@ export default {
components: {},
data() {
return {
searchInput: '',
// 分页参数
currentPage: 1,
pageSize: 20,
......@@ -89,6 +94,47 @@ export default {
// 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: 勾选
* @param {Array} val
* @author: 无尘
......
......@@ -4,10 +4,13 @@
* @Author: 无尘
* @Date: 2020-11-09 11:15:55
* @LastEditors: 无尘
* @LastEditTime: 2020-11-10 13:36:28
* @LastEditTime: 2020-11-11 09:48:08
-->
<template>
<div>
<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.tableName || '--' }}</template>
......@@ -31,6 +34,7 @@
</template>
<script>
import { _debounce } from '@/common/js/public';
import fetch from '@/api/dictionary';
const { getTableList } = fetch;
......@@ -39,6 +43,7 @@ export default {
components: {},
data() {
return {
searchInput: '',
// 分页参数
currentPage: 1,
pageSize: 20,
......@@ -56,6 +61,47 @@ export default {
// 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: 无尘
*/
......
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