Commit a0d45aa4 by 无尘

feat: 增加接口

parent 0d1869da
.m-b-20[data-v-191d12bc]{margin-bottom:20px}.w-408[data-v-191d12bc]{width:408px}
\ No newline at end of file
.m-b-20[data-v-dc043f74]{margin-bottom:20px}.w-408[data-v-dc043f74]{width:408px}
\ No newline at end of file
.m-b-20[data-v-920157b4]{margin-bottom:20px}.w-408[data-v-920157b4]{width:408px}
\ No newline at end of file
.w-363[data-v-30e4ac4c]{width:363px}.selected div[data-v-30e4ac4c]{color:#2f54eb}.w-363[data-v-4f3d2984]{width:363px}.selected div[data-v-4f3d2984]{color:#2f54eb}.m-b-20[data-v-5295f8ea]{margin-bottom:20px}.w-408[data-v-5295f8ea]{width:408px}
\ 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-44751b09.cae94d78.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-5b137f7c.ff02298b.css rel=prefetch><link href=css/chunk-7556d89c.b90e880e.css rel=prefetch><link href=css/chunk-b9ba1078.4394470e.css rel=prefetch><link href=css/chunk-ce6e75c2.5c2cd5fc.css rel=prefetch><link href=css/chunk-e3fddd90.2fb4f08b.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-44751b09.8c9fb6fb.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-5b137f7c.94a0554a.js rel=prefetch><link href=js/chunk-7556d89c.07adf886.js rel=prefetch><link href=js/chunk-b9ba1078.f33902c4.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-e3fddd90.55dfc285.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.b3338622.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.b3338622.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-0c6041b4.d0755970.css rel=prefetch><link href=css/chunk-126ea711.12980bcb.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-5b137f7c.ff02298b.css rel=prefetch><link href=css/chunk-77604740.3418c98f.css rel=prefetch><link href=css/chunk-7fdbceaf.b90e880e.css rel=prefetch><link href=css/chunk-ce6e75c2.5c2cd5fc.css rel=prefetch><link href=css/chunk-e3fddd90.2fb4f08b.css rel=prefetch><link href=css/chunk-e7c4557e.4f971e39.css rel=prefetch><link href=css/chunk-eb8d8e3c.aa0d6bff.css rel=prefetch><link href=js/chunk-0c6041b4.b88270a4.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-4566970e.8f92af78.js rel=prefetch><link href=js/chunk-512af800.a7b7d1df.js rel=prefetch><link href=js/chunk-5b137f7c.94a0554a.js rel=prefetch><link href=js/chunk-77604740.30645652.js rel=prefetch><link href=js/chunk-7fdbceaf.b4c283a7.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-e3fddd90.55dfc285.js rel=prefetch><link href=js/chunk-e7c4557e.1b36022d.js rel=prefetch><link href=js/chunk-eb8d8e3c.4252b532.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.de48e302.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.de48e302.js></script></body></html>
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-448cb576"],{"0973":function(t,i,e){t.exports=e.p+"img/error_404.bf587478.svg"},1879:function(t,i,e){"use strict";var n=e("cf48"),s=e.n(n);s.a},"1c41":function(t,i,e){t.exports=e.p+"img/error_500.ed0cba44.svg"},"28a5":function(t,i,e){"use strict";var n=e("aae3"),s=e("cb7c"),r=e("ebd6"),a=e("0390"),c=e("9def"),l=e("5f1b"),u=e("520a"),o=e("79e5"),f=Math.min,d=[].push,h="split",g="length",p="lastIndex",v=4294967295,m=!o((function(){RegExp(v,"y")}));e("214f")("split",2,(function(t,i,e,o){var b;return b="c"=="abbc"[h](/(b)*/)[1]||4!="test"[h](/(?:)/,-1)[g]||2!="ab"[h](/(?:ab)*/)[g]||4!="."[h](/(.?)(.?)/)[g]||"."[h](/()()/)[g]>1||""[h](/.?/)[g]?function(t,i){var s=String(this);if(void 0===t&&0===i)return[];if(!n(t))return e.call(s,t,i);var r,a,c,l=[],o=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,h=void 0===i?v:i>>>0,m=new RegExp(t.source,o+"g");while(r=u.call(m,s)){if(a=m[p],a>f&&(l.push(s.slice(f,r.index)),r[g]>1&&r.index<s[g]&&d.apply(l,r.slice(1)),c=r[0][g],f=a,l[g]>=h))break;m[p]===r.index&&m[p]++}return f===s[g]?!c&&m.test("")||l.push(""):l.push(s.slice(f)),l[g]>h?l.slice(0,h):l}:"0"[h](void 0,0)[g]?function(t,i){return void 0===t&&0===i?[]:e.call(this,t,i)}:e,[function(e,n){var s=t(this),r=void 0==e?void 0:e[i];return void 0!==r?r.call(e,s,n):b.call(String(s),e,n)},function(t,i){var n=o(b,t,this,i,b!==e);if(n.done)return n.value;var u=s(t),d=String(this),h=r(u,RegExp),g=u.unicode,p=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(m?"y":"g"),x=new h(m?u:"^(?:"+u.source+")",p),_=void 0===i?v:i>>>0;if(0===_)return[];if(0===d.length)return null===l(x,d)?[d]:[];var w=0,C=0,S=[];while(C<d.length){x.lastIndex=m?C:0;var k,y=l(x,m?d:d.slice(C));if(null===y||(k=f(c(x.lastIndex+(m?0:C)),d.length))===w)C=a(d,C,g);else{if(S.push(d.slice(w,C)),S.length===_)return S;for(var E=1;E<=y.length-1;E++)if(S.push(y[E]),S.length===_)return S;C=w=k}}return S.push(d.slice(w)),S}]}))},"4cf1":function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100vh"}},[e("div",{staticClass:"wscn-http404"},[e("div",{staticClass:"pic-404"},[e("img",{staticClass:"pic-404__parent",attrs:{src:t.imgSrc,alt:"404"}})]),e("div",{staticClass:"bullshit"},[e("div",{staticClass:"bullshit__headline"},[t._v(t._s(t.message))]),e("a",{staticClass:"bullshit__return-home",attrs:{href:"#/index"}},[t._v("返回首页")])])])])},s=[],r=(e("28a5"),e("d1ea")),a=e.n(r),c=e("0973"),l=e.n(c),u=e("1c41"),o=e.n(u),f={name:"Index",data:function(){return{imgSrc:"",message:"",srcList:{403:a.a,404:l.a,500:o.a},msgList:{403:"抱歉,你无权访问该页面",404:"抱歉,你访问的页面不存在",500:"抱歉,服务器出错了"}}},mounted:function(){var t=this,i=t.$route.path.split("/")[1];t.imgSrc=t.srcList[i],t.message=t.msgList[i]}},d=f,h=(e("1879"),e("2877")),g=Object(h["a"])(d,n,s,!1,null,"afd4acfe",null);i["default"]=g.exports},cf48:function(t,i,e){},d1ea:function(t,i,e){t.exports=e.p+"img/error_403.829774f4.svg"}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0c6041b4"],{"0973":function(t,i,e){t.exports=e.p+"img/error_404.bf587478.svg"},1879:function(t,i,e){"use strict";var n=e("cf48"),s=e.n(n);s.a},"1c41":function(t,i,e){t.exports=e.p+"img/error_500.ed0cba44.svg"},"28a5":function(t,i,e){"use strict";var n=e("aae3"),s=e("cb7c"),r=e("ebd6"),a=e("0390"),c=e("9def"),l=e("5f1b"),u=e("520a"),o=e("79e5"),f=Math.min,d=[].push,h="split",g="length",p="lastIndex",v=4294967295,m=!o((function(){RegExp(v,"y")}));e("214f")("split",2,(function(t,i,e,o){var b;return b="c"=="abbc"[h](/(b)*/)[1]||4!="test"[h](/(?:)/,-1)[g]||2!="ab"[h](/(?:ab)*/)[g]||4!="."[h](/(.?)(.?)/)[g]||"."[h](/()()/)[g]>1||""[h](/.?/)[g]?function(t,i){var s=String(this);if(void 0===t&&0===i)return[];if(!n(t))return e.call(s,t,i);var r,a,c,l=[],o=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,h=void 0===i?v:i>>>0,m=new RegExp(t.source,o+"g");while(r=u.call(m,s)){if(a=m[p],a>f&&(l.push(s.slice(f,r.index)),r[g]>1&&r.index<s[g]&&d.apply(l,r.slice(1)),c=r[0][g],f=a,l[g]>=h))break;m[p]===r.index&&m[p]++}return f===s[g]?!c&&m.test("")||l.push(""):l.push(s.slice(f)),l[g]>h?l.slice(0,h):l}:"0"[h](void 0,0)[g]?function(t,i){return void 0===t&&0===i?[]:e.call(this,t,i)}:e,[function(e,n){var s=t(this),r=void 0==e?void 0:e[i];return void 0!==r?r.call(e,s,n):b.call(String(s),e,n)},function(t,i){var n=o(b,t,this,i,b!==e);if(n.done)return n.value;var u=s(t),d=String(this),h=r(u,RegExp),g=u.unicode,p=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(m?"y":"g"),x=new h(m?u:"^(?:"+u.source+")",p),_=void 0===i?v:i>>>0;if(0===_)return[];if(0===d.length)return null===l(x,d)?[d]:[];var w=0,C=0,S=[];while(C<d.length){x.lastIndex=m?C:0;var k,y=l(x,m?d:d.slice(C));if(null===y||(k=f(c(x.lastIndex+(m?0:C)),d.length))===w)C=a(d,C,g);else{if(S.push(d.slice(w,C)),S.length===_)return S;for(var E=1;E<=y.length-1;E++)if(S.push(y[E]),S.length===_)return S;C=w=k}}return S.push(d.slice(w)),S}]}))},"4cf1":function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100vh"}},[e("div",{staticClass:"wscn-http404"},[e("div",{staticClass:"pic-404"},[e("img",{staticClass:"pic-404__parent",attrs:{src:t.imgSrc,alt:"404"}})]),e("div",{staticClass:"bullshit"},[e("div",{staticClass:"bullshit__headline"},[t._v(t._s(t.message))]),e("a",{staticClass:"bullshit__return-home",attrs:{href:"#/index"}},[t._v("返回首页")])])])])},s=[],r=(e("28a5"),e("d1ea")),a=e.n(r),c=e("0973"),l=e.n(c),u=e("1c41"),o=e.n(u),f={name:"Index",data:function(){return{imgSrc:"",message:"",srcList:{403:a.a,404:l.a,500:o.a},msgList:{403:"抱歉,你无权访问该页面",404:"抱歉,你访问的页面不存在",500:"抱歉,服务器出错了"}}},mounted:function(){var t=this,i=t.$route.path.split("/")[1];t.imgSrc=t.srcList[i],t.message=t.msgList[i]}},d=f,h=(e("1879"),e("2877")),g=Object(h["a"])(d,n,s,!1,null,"afd4acfe",null);i["default"]=g.exports},cf48:function(t,i,e){},d1ea:function(t,i,e){t.exports=e.p+"img/error_403.829774f4.svg"}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-44751b09"],{"06ed":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-408",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:{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.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.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.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:{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||"--"))]}}])})],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=[],r=a("d157"),o=a("e56e"),i=o["a"].getAcountList,u={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};i(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:{}},c=u,s=(a("643b"),a("2877")),f=Object(s["a"])(c,n,l,!1,null,"191d12bc",null);t["default"]=f.exports},"28a5":function(e,t,a){"use strict";var n=a("aae3"),l=a("cb7c"),r=a("ebd6"),o=a("0390"),i=a("9def"),u=a("5f1b"),c=a("520a"),s=a("79e5"),f=Math.min,d=[].push,p="split",h="length",g="lastIndex",v=4294967295,m=!s((function(){RegExp(v,"y")}));a("214f")("split",2,(function(e,t,a,s){var b;return b="c"=="abbc"[p](/(b)*/)[1]||4!="test"[p](/(?:)/,-1)[h]||2!="ab"[p](/(?:ab)*/)[h]||4!="."[p](/(.?)(.?)/)[h]||"."[p](/()()/)[h]>1||""[p](/.?/)[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 r,o,i,u=[],s=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,p=void 0===t?v:t>>>0,m=new RegExp(e.source,s+"g");while(r=c.call(m,l)){if(o=m[g],o>f&&(u.push(l.slice(f,r.index)),r[h]>1&&r.index<l[h]&&d.apply(u,r.slice(1)),i=r[0][h],f=o,u[h]>=p))break;m[g]===r.index&&m[g]++}return f===l[h]?!i&&m.test("")||u.push(""):u.push(l.slice(f)),u[h]>p?u.slice(0,p):u}:"0"[p](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),r=void 0==a?void 0:a[t];return void 0!==r?r.call(a,l,n):b.call(String(l),a,n)},function(e,t){var n=s(b,e,this,t,b!==a);if(n.done)return n.value;var c=l(e),d=String(this),p=r(c,RegExp),h=c.unicode,g=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(m?"y":"g"),w=new p(m?c:"^(?:"+c.source+")",g),_=void 0===t?v:t>>>0;if(0===_)return[];if(0===d.length)return null===u(w,d)?[d]:[];var S=0,D=0,k=[];while(D<d.length){w.lastIndex=m?D:0;var C,F=u(w,m?d:d.slice(D));if(null===F||(C=f(i(w.lastIndex+(m?0:D)),d.length))===S)D=o(d,D,h);else{if(k.push(d.slice(S,D)),k.length===_)return k;for(var T=1;T<=F.length-1;T++)if(k.push(F[T]),k.length===_)return k;D=S=C}}return k.push(d.slice(S)),k}]}))},"643b":function(e,t,a){"use strict";var n=a("9b62"),l=a.n(n);l.a},"9b62":function(e,t,a){},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-77604740"],{"06ed":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-408",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.trialAccountName||"--"))]}}])}),a("el-table-column",{attrs:{label:"企业","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.wxEnterpriseName||"--"))]}}])}),a("el-table-column",{attrs:{label:"用户手机号","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.realAccount||"--"))]}}])}),a("el-table-column",{attrs:{label:"试用账号","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.trialAccount||"--"))]}}])}),a("el-table-column",{attrs:{label:"账号类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.trialType?"手机号":"企微账号"))]}}])}),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[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||"--"))]}}])})],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)},r=[],l=a("d157"),i=a("e56e"),o=i["a"].getAccountList,u={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(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={search:e.searchInput,type:1,pageNum:e.currentPage,pageSize:e.pageSize};o(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:{}},c=u,s=(a("bbbf"),a("2877")),f=Object(s["a"])(c,n,r,!1,null,"dc043f74",null);t["default"]=f.exports},"24f7":function(e,t,a){},"28a5":function(e,t,a){"use strict";var n=a("aae3"),r=a("cb7c"),l=a("ebd6"),i=a("0390"),o=a("9def"),u=a("5f1b"),c=a("520a"),s=a("79e5"),f=Math.min,d=[].push,p="split",h="length",g="lastIndex",v=4294967295,m=!s((function(){RegExp(v,"y")}));a("214f")("split",2,(function(e,t,a,s){var b;return b="c"=="abbc"[p](/(b)*/)[1]||4!="test"[p](/(?:)/,-1)[h]||2!="ab"[p](/(?:ab)*/)[h]||4!="."[p](/(.?)(.?)/)[h]||"."[p](/()()/)[h]>1||""[p](/.?/)[h]?function(e,t){var r=String(this);if(void 0===e&&0===t)return[];if(!n(e))return a.call(r,e,t);var l,i,o,u=[],s=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,p=void 0===t?v:t>>>0,m=new RegExp(e.source,s+"g");while(l=c.call(m,r)){if(i=m[g],i>f&&(u.push(r.slice(f,l.index)),l[h]>1&&l.index<r[h]&&d.apply(u,l.slice(1)),o=l[0][h],f=i,u[h]>=p))break;m[g]===l.index&&m[g]++}return f===r[h]?!o&&m.test("")||u.push(""):u.push(r.slice(f)),u[h]>p?u.slice(0,p):u}:"0"[p](void 0,0)[h]?function(e,t){return void 0===e&&0===t?[]:a.call(this,e,t)}:a,[function(a,n){var r=e(this),l=void 0==a?void 0:a[t];return void 0!==l?l.call(a,r,n):b.call(String(r),a,n)},function(e,t){var n=s(b,e,this,t,b!==a);if(n.done)return n.value;var c=r(e),d=String(this),p=l(c,RegExp),h=c.unicode,g=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(m?"y":"g"),w=new p(m?c:"^(?:"+c.source+")",g),_=void 0===t?v:t>>>0;if(0===_)return[];if(0===d.length)return null===u(w,d)?[d]:[];var S=0,D=0,F=[];while(D<d.length){w.lastIndex=m?D:0;var T,k=u(w,m?d:d.slice(D));if(null===k||(T=f(o(w.lastIndex+(m?0:D)),d.length))===S)D=i(d,D,h);else{if(F.push(d.slice(S,D)),F.length===_)return F;for(var C=1;C<=k.length-1;C++)if(F.push(k[C]),F.length===_)return F;D=S=T}}return F.push(d.slice(S)),F}]}))},bbbf:function(e,t,a){"use strict";var n=a("24f7"),r=a.n(n);r.a},d157:function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),a.d(t,"b",(function(){return r}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function n(e,t){var a;return t=t||200,function(){var n=this,r=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,e.apply(n,r)}),t)}}function r(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"),r={getDictList:"/dict-list",saveDict:"/save-dict",delDict:"/del-dict",dictDetail:"/dict-detail"};r=Object(n["a"])(r,"/hb-manage-operation-web"),t["a"]=r}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b9ba1078"],{"05c3":function(t,e,n){},"0d4e":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"common-right"},[n("div",{staticClass:"m-b-20 flex flex-space-between"},[n("el-input",{staticClass:"w-408",attrs:{placeholder:"请输入操作人/试用人/试用企业/手机号/试用账号",maxlength:"60",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return function(e){return t.toInput(e,t.searchInput)}(e)}},model:{value:t.searchInput,callback:function(e){t.searchInput=e},expression:"searchInput"}}),n("el-button",{staticClass:"m-l-10",attrs:{type:"primary"},on:{click:function(e){return t.editAccount("")}}},[t._v("新建账号")])],1),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[n("el-table-column",{attrs:{label:"试用人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.sqlCheckProjectName||"--"))]}}])}),n("el-table-column",{attrs:{label:"企业","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.sqlCheckProjectName||"--"))]}}])}),n("el-table-column",{attrs:{label:"用户手机号","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.sqlCheckProjectName||"--"))]}}])}),n("el-table-column",{attrs:{label:"试用账号","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.sqlCheckProjectName||"--"))]}}])}),n("el-table-column",{attrs:{label:"账号类型","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.sqlCheckProjectName||"--"))]}}])}),n("el-table-column",{attrs:{prop:"",label:"试用开始时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime))+" "+t._s(e.row.createTime?"":"--"))]),n("div",[t._v(t._s(t._f("timeStampToHms")(e.row.createTime))+" "+t._s(e.row.createTime?"":"--"))])]}}])}),n("el-table-column",{attrs:{label:"有效期","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.sqlCheckProjectName||"--"))]}}])}),n("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.editAccount(e.row)}}},[t._v("编辑")]),n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.tryEnd(e.row)}}},[t._v("结束试用")])]}}])})],1),0!=t.tableData.length?n("div",{staticClass:"block common-wrap__page text-right m-t-24"},[n("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)},r=[],o=n("d157"),l=n("e56e"),u=l["a"].getAcountList,i=l["a"].setAcountStatus,c={name:"ProjectSql",components:{},data:function(){return{searchInput:"",currentPage:1,pageSize:20,total:0,loading:!1,tableData:[],showEdit:!1,editRow:{}}},mounted:function(){var t=this;t.getTableData()},methods:{toInput:Object(o["a"])((function(t,e){var n=this;n.currentPage=1,n.getTableData()}),500),clearInput:function(){var t=this;t.currentPage=1,t.getTableData()},handleSizeChange:function(t){var e=this;e.currentPage=1,e.pageSize=t,e.getTableData()},handleCurrentChange:function(t){var e=this;e.currentPage=t,e.getTableData()},getTableData:function(){var t=this;t.loading=!0;var e={project:t.searchInput,pageNum:t.currentPage,pageSize:t.pageSize};u(e).then((function(e){t.loading=!1,t.tableData=e.result.result||[],t.total=e.result.totalCount||0})).catch((function(e){t.loading=!1}))},editAccount:function(t){var e=this;e.showEdit=!0,e.editRow=t?JSON.parse(JSON.stringify(t)):{}},tryEnd:function(t){var e=this;e.$confirm("是否结束试用?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.postEnd(t)})).catch((function(){}))},postEnd:function(t){var e=this,n={};i(n).then((function(t){"0000"==t.code?(e.$message({message:"结束试用成功",type:"success"}),e.currentPage=1,e.getTableData()):e.$message.error(t.message)})).catch((function(t){}))}},watch:{}},s=c,f=(n("7fd7"),n("2877")),d=Object(f["a"])(s,a,r,!1,null,"920157b4",null);e["default"]=d.exports},"28a5":function(t,e,n){"use strict";var a=n("aae3"),r=n("cb7c"),o=n("ebd6"),l=n("0390"),u=n("9def"),i=n("5f1b"),c=n("520a"),s=n("79e5"),f=Math.min,d=[].push,p="split",h="length",g="lastIndex",v=4294967295,b=!s((function(){RegExp(v,"y")}));n("214f")("split",2,(function(t,e,n,s){var m;return m="c"=="abbc"[p](/(b)*/)[1]||4!="test"[p](/(?:)/,-1)[h]||2!="ab"[p](/(?:ab)*/)[h]||4!="."[p](/(.?)(.?)/)[h]||"."[p](/()()/)[h]>1||""[p](/.?/)[h]?function(t,e){var r=String(this);if(void 0===t&&0===e)return[];if(!a(t))return n.call(r,t,e);var o,l,u,i=[],s=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,p=void 0===e?v:e>>>0,b=new RegExp(t.source,s+"g");while(o=c.call(b,r)){if(l=b[g],l>f&&(i.push(r.slice(f,o.index)),o[h]>1&&o.index<r[h]&&d.apply(i,o.slice(1)),u=o[0][h],f=l,i[h]>=p))break;b[g]===o.index&&b[g]++}return f===r[h]?!u&&b.test("")||i.push(""):i.push(r.slice(f)),i[h]>p?i.slice(0,p):i}:"0"[p](void 0,0)[h]?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,a){var r=t(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,r,a):m.call(String(r),n,a)},function(t,e){var a=s(m,t,this,e,m!==n);if(a.done)return a.value;var c=r(t),d=String(this),p=o(c,RegExp),h=c.unicode,g=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(b?"y":"g"),w=new p(b?c:"^(?:"+c.source+")",g),_=void 0===e?v:e>>>0;if(0===_)return[];if(0===d.length)return null===i(w,d)?[d]:[];var k=0,D=0,S=[];while(D<d.length){w.lastIndex=b?D:0;var y,C=i(w,b?d:d.slice(D));if(null===C||(y=f(u(w.lastIndex+(b?0:D)),d.length))===k)D=l(d,D,h);else{if(S.push(d.slice(k,D)),S.length===_)return S;for(var F=1;F<=C.length-1;F++)if(S.push(C[F]),S.length===_)return S;D=k=y}}return S.push(d.slice(k)),S}]}))},"7fd7":function(t,e,n){"use strict";var a=n("05c3"),r=n.n(a);r.a},d157:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return r}));n("c5f6"),n("a481"),n("28a5"),n("6b54");function a(t,e){var n;return e=e||200,function(){var a=this,r=arguments;n&&clearTimeout(n),n=setTimeout((function(){n=null,t.apply(a,r)}),e)}}function r(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,""))):""}},e56e:function(t,e,n){"use strict";var a=n("71f6"),r={getDictList:"/dict-list",saveDict:"/save-dict",delDict:"/del-dict",dictDetail:"/dict-detail"};r=Object(a["a"])(r,"/hb-manage-operation-web"),e["a"]=r}}]);
\ No newline at end of file
......@@ -4,52 +4,53 @@
* @Author: 无尘
* @Date: 2020-11-09 11:22:08
* @LastEditors: 无尘
* @LastEditTime: 2020-11-13 17:25:39
* @LastEditTime: 2020-11-16 14:21:40
*/
import getFetch from './get-fetch';
let api = {
getProjectList: "/list-project", // 获取项目列表,
getTableList: "/list-table", // 获取表列表,
getSqlList: "/list-sql", // 获取 sql 列表,
getProjectList: '/list-project', // 获取项目列表,
getTableList: '/list-table', // 获取表列表,
getSqlList: '/list-sql', // 获取 sql 列表,
addSqlIndex: {
url: "/perfect-sql-index", // 添加索引
method: "post",
url: '/perfect-sql-index', // 添加索引
method: 'post',
useFormData: true,
useIntercept: false
},
setPerfect: {
url: "/sql-perfect-need", // 完善开关
method: "post",
url: '/sql-perfect-need', // 完善开关
method: 'post',
useFormData: true,
useIntercept: false
},
setStatus: {
url: "/sql-online", // 上线开关
method: "post",
url: '/sql-online', // 上线开关
method: 'post',
useFormData: true,
useIntercept: false
},
exportData: {
url: "/exportList", // 导出
method: "post",
url: '/exportList', // 导出
method: 'post',
useFormData: true,
useIntercept: false
},
getAccountList: '/', // 获取试用账号列表
getAccountList: '/trial-list', // 获取试用账号列表
setAccountStatus: {
url: "/", // 结束试用
method: "post",
url: '/trial-end', // 结束试用
method: 'post',
useFormData: true,
useIntercept: false
},
getEnterpriseList: '/' , // 获取企业列表数据
getEnterpriseList: '/wx-enterprise-list', // 获取企业列表数据
saveAccount: {
url: "/", // 结束试用
method: "post",
url: '/trial-add', // 保存账号
method: 'post',
useFormData: true,
useIntercept: false
},
getAccountDetail: '/trial-detail', // 获取账号详情
};
api = getFetch(api, '/hb-manage-operation-web');
......
<!--
* @Descripttion: 重复手机号,查看详情
* @version: 1.0.0
* @Author: 无尘
* @Date: 2020-11-16 14:56:07
* @LastEditors: 无尘
* @LastEditTime: 2020-11-16 16:15:52
-->
<!--
<account-detail :edit-obj="editObj"></account-detail>
import accountDetail from '@/components/account/account-detail.vue';
-->
<template>
<el-dialog title="试用账号详" :visible.sync="dialogVisible" width="600px" :before-close="handleClose">
<div class="">
<el-table class="select-table" ref="" v-loading="loading" :data="tableData" tooltip-effect="dark" :style="{ width: '100%'}">
<el-table-column label="试用人" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.trialAccountName || '--' }}</template>
</el-table-column>
<el-table-column label="企业" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.wxEnterpriseName || '--' }}</template>
</el-table-column>
<el-table-column label="用户手机号" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.realAccount || '--' }}</template>
</el-table-column>
<el-table-column label="试用账号" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.trialAccount || '--' }}</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 label="有效期" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.effectDate || '不限' }}</template>
</el-table-column>
</el-table>
</div>
</el-dialog>
</template>
<script>
export default {
name: 'SqlDetail',
components: {},
props: {
editObj: {
type: Object,
default() {
return {};
}
}
},
data() {
return {
dialogVisible: true,
loading: false,
tableData: []
};
},
// 生命周期 - 挂载完成(访问DOM元素)
mounted() {
const that = this;
if (Object.keys(that.sqlRow).length) {
that.tableData = [ JSON.parse(JSON.stringify(that.sqlRow)) ];
}
},
// methods
methods: {
/**
* @description: 关闭弹窗
* @author: 无尘
*/
handleClose() {
const that = this;
that.$emit('closeEdit');
},
cancelEdit() {
const that = this;
that.$emit('closeEdit');
}
},
watch: {
editObj(newData) {
const that = this;
if (Object.keys(newData).length) {
that.tableData = [ JSON.parse(JSON.stringify(newData)) ];
}
}
}
};
</script>
<style lang='less' scoped>
.w-363 {
width: 363px;
}
.selected {
div {
color: #2f54eb;
}
}
</style>
......@@ -70,20 +70,20 @@ export const routes = [
},
component: () => import('@/views/sql/sql-list.vue')
},
{
path: '/current-account',
meta: {
title: '当前试用'
},
component: () => import('@/views/account/current-account.vue')
},
{
path: '/history-account',
meta: {
title: '历史试用'
},
component: () => import('@/views/account/history-account.vue')
}
{
path: '/current-account',
meta: {
title: '当前试用'
},
component: () => import('@/views/account/current-account.vue')
},
{
path: '/history-account',
meta: {
title: '历史试用'
},
component: () => import('@/views/account/history-account.vue')
}
]
},
{
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-11-13 10:59:31
* @LastEditors: 无尘
* @LastEditTime: 2020-11-13 17:26:13
* @LastEditTime: 2020-11-16 16:15:06
-->
<template>
<div class="common-right">
......@@ -12,21 +12,21 @@
<el-input placeholder="请输入操作人/试用人/试用企业/手机号/试用账号" maxlength="60" v-model="searchInput" class="w-408" @keyup.native="value => toInput(value, searchInput)" clearable @clear="clearInput"></el-input>
<el-button class="m-l-10" type="primary" @click="editAccount('')">新建账号</el-button>
</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>
<template slot-scope="scope">{{ scope.row.sqlCheckProjectName || '--' }}</template>
<template slot-scope="scope">{{ scope.row.trialAccountName || '--' }}</template>
</el-table-column>
<el-table-column label="企业" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.sqlCheckProjectName || '--' }}</template>
<template slot-scope="scope">{{ scope.row.wxEnterpriseName || '--' }}</template>
</el-table-column>
<el-table-column label="用户手机号" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.sqlCheckProjectName || '--' }}</template>
<template slot-scope="scope">{{ scope.row.realAccount || '--' }}</template>
</el-table-column>
<el-table-column label="试用账号" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.sqlCheckProjectName || '--' }}</template>
<template slot-scope="scope">{{ scope.row.trialAccount || '--' }}</template>
</el-table-column>
<el-table-column label="账号类型" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.sqlCheckProjectName || '--' }}</template>
<template slot-scope="scope">{{ scope.row.trialType == 1 ? '手机号' : '企微账号' }}</template>
</el-table-column>
<el-table-column prop="" label="试用开始时间" show-overflow-tooltip>
<template slot-scope="scope">
......@@ -35,7 +35,7 @@
</template>
</el-table-column>
<el-table-column label="有效期" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.sqlCheckProjectName || '--' }}</template>
<template slot-scope="scope">{{ scope.row.effectDate || '不限' }}</template>
</el-table-column>
<el-table-column prop="" label="操作" show-overflow-tooltip>
<template slot-scope="scope">
......@@ -52,7 +52,7 @@
</template>
<script>
import editAccount from '@/components/sql/edit-account.vue';
import editAccount from '@/components/account/edit-account.vue';
import { _debounce } from '@/common/js/public';
import fetch from '@/api/dictionary';
......@@ -130,7 +130,8 @@ export default {
const that = this;
that.loading = true;
const param = {
project: that.searchInput,
search: that.searchInput,
type: 0,
pageNum: that.currentPage,
pageSize: that.pageSize
};
......@@ -175,8 +176,8 @@ export default {
postEnd(row) {
const that = this;
const param = {
}
trialAccountId: row.trialAccountId
};
setAccountStatus(param).then(res => {
if (res.code == '0000') {
that.$message({
......
......@@ -4,28 +4,28 @@
* @Author: 无尘
* @Date: 2020-11-13 10:59:48
* @LastEditors: 无尘
* @LastEditTime: 2020-11-13 17:26:23
* @LastEditTime: 2020-11-16 15:56:51
-->
<template>
<div class="common-right">
<div class="m-b-20">
<el-input placeholder="请输入操作人/试用人/试用企业/手机号/试用账号" maxlength="50" v-model="searchInput" class="w-408" @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 class="select-table" ref="multipleTable" v-loading="loading" :data="tableData" tooltip-effect="dark" :style="{ width: '100%' }">
<el-table-column label="试用人" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.sqlCheckProjectName || '--' }}</template>
<template slot-scope="scope">{{ scope.row.trialAccountName || '--' }}</template>
</el-table-column>
<el-table-column label="企业" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.sqlCheckProjectName || '--' }}</template>
<template slot-scope="scope">{{ scope.row.wxEnterpriseName || '--' }}</template>
</el-table-column>
<el-table-column label="用户手机号" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.sqlCheckProjectName || '--' }}</template>
<template slot-scope="scope">{{ scope.row.realAccount || '--' }}</template>
</el-table-column>
<el-table-column label="试用账号" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.sqlCheckProjectName || '--' }}</template>
<template slot-scope="scope">{{ scope.row.trialAccount || '--' }}</template>
</el-table-column>
<el-table-column label="账号类型" show-overflow-tooltip>
<template slot-scope="scope">{{ scope.row.sqlCheckProjectName || '--' }}</template>
<template slot-scope="scope">{{ scope.row.trialType == 1 ? '手机号' : '企微账号' }}</template>
</el-table-column>
<el-table-column prop="" label="试用开始时间" show-overflow-tooltip>
<template slot-scope="scope">
......@@ -125,7 +125,8 @@ export default {
const that = this;
that.loading = true;
const param = {
project: that.searchInput,
search: that.searchInput,
type: 1,
pageNum: that.currentPage,
pageSize: that.pageSize
};
......
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