Commit 424228b3 by 无尘

fix: 修改前端判断

parent 587b2457
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>API网关管理平台</title><link href=./static/css/app.21bd3059189d45f850631fc948a8a9ee.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.0b22084994efd19ecf9f.js></script><script type=text/javascript src=./static/js/vendor.bb8c036d7dd62f4cb37a.js></script><script type=text/javascript src=./static/js/app.434c40aceca40251eccb.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>API网关管理平台</title><link href=./static/css/app.db1df87c42cdc82352adcd0b0c7847ec.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.e85e7596e7bbfea2cd94.js></script><script type=text/javascript src=./static/js/vendor.bb8c036d7dd62f4cb37a.js></script><script type=text/javascript src=./static/js/app.61b654d433581d361863.js></script></body></html>
\ No newline at end of file \ No newline at end of file
webpackJsonp([17],{BdlF:function(t,e){},OEJD:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("319J"),o=a("P9l9"),l=a("jvWE"),r=a("LlAa"),s={name:"releaseRecords",components:{navBread:n.a},data:function(){return{navPath:[{name:"发布记录",path:""}],searchValue:"",tableData:[],pageSize:20,currentPage:1,totalCount:0}},methods:{searchData:Object(l.a)(function(t){this.currentPage,this.getData()},500),clearInput:function(){this.currentPage=1,this.getData()},handleSizeChange:function(t){this.pageSize=t,this.getData()},handleCurrentChange:function(t){this.currentPage=t,this.getData()},handleShow:function(t,e){this.$router.push("/")},getData:function(){var t=this,e={search:t.searchValue,pageNum:t.currentPage,pageSize:t.pageSize};Object(o.a)("/gateway-manage/page-api-publish-record",e).then(function(e){var a=e.data;if("0000"==a.code)return t.tableData=a.result.result||[],void(t.totalCount=a.result.totalCount);r.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{$route:{handler:function(t,e){},deep:!0}},mounted:function(){this.$emit("showTab",4),this.getData()}},i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"api-body-content border-box"},[a("div",{staticClass:"common-nav"},[a("nav-bread",{attrs:{navPath:t.navPath}})],1),t._v(" "),a("div",{staticClass:"api-body-main common-body-main border-box"},[a("div",{staticClass:"api-main-content border-box"},[a("div",{staticClass:"search-wrap m-b-20"},[a("el-input",{staticClass:"w-320",attrs:{clearable:"",placeholder:"请输入发布版本"},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.searchData(a);var a}},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),t._v(" "),a("div",{staticClass:"table-wrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData}},[a("el-table-column",{attrs:{prop:"publishRecordId",label:"发布版本","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{label:"API名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.interfaceName)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"版本号","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.version)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"环境","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.sceneName)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"发布备注","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.remark)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"创建时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createDate)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createDate)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.handleShow(e.$index,e.row)}}},[t._v("查看")])]}}])})],1),t._v(" "),t.totalCount?a("div",{staticClass:"pagination text-right m-t-14"},[a("el-pagination",{attrs:{small:"","page-size":t.pageSize,"current-page":t.currentPage,layout:"prev, pager, next",total:t.totalCount},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])])])},staticRenderFns:[]};var c=a("VU/8")(s,i,!1,function(t){a("BdlF")},"data-v-3b6b3586",null);e.default=c.exports}}); webpackJsonp([16],{NDJm:function(t,e){},OEJD:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("319J"),o=a("P9l9"),r=a("jvWE"),l=a("LlAa"),s={name:"releaseRecords",components:{navBread:n.a},data:function(){return{navPath:[{name:"发布记录",path:""}],searchValue:"",tableData:[],pageSize:20,currentPage:1,totalCount:0}},methods:{searchData:Object(r.a)(function(t){this.currentPage,this.getData()},500),clearInput:function(){this.currentPage=1,this.getData()},handleSizeChange:function(t){this.pageSize=t,this.getData()},handleCurrentChange:function(t){this.currentPage=t,this.getData()},handleShow:function(t,e){this.$router.push("/")},getData:function(){var t=this,e={search:t.searchValue,pageNum:t.currentPage,pageSize:t.pageSize};Object(o.a)("/gateway-manage/page-api-publish-record",e).then(function(e){var a=e.data;if("0000"==a.code)return t.tableData=a.result.result||[],void(t.totalCount=a.result.totalCount);l.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{$route:{handler:function(t,e){},deep:!0}},mounted:function(){this.$emit("showTab",4),this.getData()}},i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"api-body-content border-box"},[a("div",{staticClass:"common-nav"},[a("nav-bread",{attrs:{navPath:t.navPath}})],1),t._v(" "),a("div",{staticClass:"api-body-main common-body-main border-box"},[a("div",{staticClass:"api-main-content border-box"},[a("div",{staticClass:"search-wrap m-b-20"},[a("el-input",{staticClass:"w-320",attrs:{clearable:"",placeholder:"请输入发布版本"},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.searchData(a);var a}},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),t._v(" "),a("div",{staticClass:"table-wrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData}},[a("el-table-column",{attrs:{prop:"publishRecordId",label:"发布版本","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{label:"API名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.interfaceName)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"版本号","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.version)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"环境","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.sceneName)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"发布备注","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.remark)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"创建时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){t.handleShow(e.$index,e.row)}}},[t._v("查看")])]}}])})],1),t._v(" "),t.totalCount?a("div",{staticClass:"pagination text-right m-t-14"},[a("el-pagination",{attrs:{small:"","page-size":t.pageSize,"current-page":t.currentPage,layout:"prev, pager, next",total:t.totalCount},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])])])},staticRenderFns:[]};var c=a("VU/8")(s,i,!1,function(t){a("NDJm")},"data-v-76e7133f",null);e.default=c.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([16],{"1xx6":function(e,t){},vm6Q:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("mvHQ"),r=a.n(o),n=a("319J"),s=a("l46T"),l=a("Kkt8"),i=a("P9l9"),c=a("TUB1"),d=a("LlAa"),p={name:"createEnvSet",components:{navBread:n.a,limitInput:s.a,limitTextarea:l.a},data:function(){return{navPath:[{name:"环境管理",path:"/envManage"},{name:"环境列表",path:"/envManage"},{name:this.$route.query.backendProxyId?"修改配置":"新增配置",path:""}],formData:{backendProxyId:this.$route.query.backendProxyId||"",proxyType:this.$route.query.proxyType||"0",proxyCode:"",proxyName:"",description:"",envParams:""},rules:{proxyName:[{required:!0,message:"请输入配置名称",trigger:"blur"}],proxyCode:[{required:!0,message:"请输入配置code",trigger:"blur"}]},shoEnvFlag:!1,tableData:[{sceneCode:"",proxyParams:[{balence:"random",url:"",weight:"",zookeeperUrl:""}]}],envOptions:[]}},methods:{showEnvSet:function(){this.shoEnvFlag=!0},toDel:function(e,t,a){e.proxyParams.splice(a,1)},toAdd:function(e,t,a){e.proxyParams.push({balence:"",url:"",weight:"",zookeeperUrl:""})},handleDel:function(e,t){var a=this;a.$confirm("确定删除该环境?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.tableData.splice(e,1)}).catch(function(){})},toAddRow:function(){this.tableData.push({sceneCode:"",proxyParams:[{balence:"",url:"",weight:"",zookeeperUrl:""}]})},handleSave:function(e){var t=this;t.formData.proxyName=String(t.formData.proxyName).replace(/\s+/g,""),t.formData.proxyCode=String(t.formData.proxyCode).replace(/\s+/g,""),t.$refs[e].validate(function(e){if(!e)return!1;t.saveData()})},saveData:function(){var e=this,t=!0;if(e.tableData.forEach(function(a){""==a.sceneCode&&(t=!1),0==e.formData.proxyType?a.proxyParams.forEach(function(a){t=""!=a.url&&""!=a.weight,e.$delete(a,"zookeeperUrl")}):a.proxyParams.forEach(function(a){t=""!=a.zookeeperUrl,e.$delete(a,"balence"),e.$delete(a,"url"),e.$delete(a,"weight")})}),!t)return e.$message.error({duration:1e3,message:"请完善环境配置"}),!1;var a={backendProxyId:e.formData.backendProxyId,proxyType:e.formData.proxyType,proxyName:e.formData.proxyName,proxyCode:e.formData.proxyCode,description:e.formData.description,envParams:e.shoEnvFlag?r()(e.tableData):""};Object(i.a)(e.$route.query.backendProxyId?"/gateway-manage/update-proxy":"/gateway-manage/create-proxy",a).then(function(t){var a=t.data;if("0000"==a.code)return c.a.showmsg("保存成功","success"),void e.$router.push("/envManage?tabChildid=second");d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getEnvData:function(){var e=this;Object(i.a)("/gateway-manage/list-all-scene",{}).then(function(t){var a=t.data;"0000"!=a.code?d.a.errorMsg(a):e.envOptions=a.result||[]}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getData:function(){var e=this,t={backendProxyId:e.formData.backendProxyId};Object(i.a)("/gateway-manage/get-proxy",t).then(function(t){var a=t.data;if("0000"==a.code){e.formData=a.result;var o=JSON.parse(a.result.envParams);return o.forEach(function(e){e.proxyParams=JSON.parse(e.proxyParams)}),e.tableData=o,void(e.tableData.length&&(e.shoEnvFlag=!0))}d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{$route:{handler:function(e,t){},deep:!0}},mounted:function(){this.$emit("showTab",3),this.getEnvData(),this.$route.query.backendProxyId&&this.getData()}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"api-body-content border-box"},[a("div",{staticClass:"common-nav"},[a("nav-bread",{attrs:{navPath:e.navPath}})],1),e._v(" "),a("div",{staticClass:"api-body-main common-body-main border-box"},[a("div",{staticClass:"api-main-content border-box"},[a("div",{staticClass:"base-set-wrap"},[a("div",{staticClass:"set-title font-14 color-303133"},[e._v("基础配置")]),e._v(" "),a("el-form",{ref:"envForm",attrs:{model:e.formData,"label-width":"94px",rules:e.rules}},[a("el-form-item",{attrs:{label:"参数类型:"}},[e._v("\n "+e._s(0==e.formData.proxyType?"http":"dubbo")+"\n ")]),e._v(" "),a("el-form-item",{attrs:{label:"配置名称:",prop:"proxyName"}},[a("limitInput",{attrs:{inputWidth:440,inputValue:e.formData.proxyName,holder:"请输入配置名称",getByType:"word",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.formData,"proxyName",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"配置code:",prop:"proxyCode"}},[a("limitInput",{attrs:{inputWidth:440,disflag:!!e.formData.setId,inputValue:e.formData.proxyCode,holder:"请输入配置code",getByType:"word",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.formData,"proxyCode",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"备注:",prop:"description"}},[a("limit-textarea",{attrs:{inputWidth:440,inputValue:e.formData.description,holder:"请输入备注内容",getByType:"word",maxLength:100},on:{"update:inputValue":function(t){e.$set(e.formData,"description",t)}}})],1),e._v(" "),e.shoEnvFlag?e._e():a("el-form-item",{attrs:{label:""}},[a("div",{staticClass:"show-set-env",on:{click:e.showEnvSet}},[a("span",{staticClass:"font-14 color-5584FF"},[e._v("添加环境配置")]),a("i",{staticClass:"iconfont iconxiala1 font-14 color-5584FF p-l-10"})])])],1)],1),e._v(" "),e.shoEnvFlag?a("div",{staticClass:"env-set-wrap"},[a("div",{staticClass:"set-title font-14 color-303133"},[e._v("环境配置")]),e._v(" "),a("div",{staticClass:"env-set-body"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"envName",label:"配置名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-select",{attrs:{placeholder:"请选择"},model:{value:t.row.sceneCode,callback:function(a){e.$set(t.row,"sceneCode",a)},expression:"scope.row.sceneCode"}},e._l(e.envOptions,function(e){return a("el-option",{key:e.sceneCode,attrs:{label:e.sceneName,value:e.sceneCode}})}))]}}])}),e._v(" "),0==e.$route.query.proxyType?a("el-table-column",{attrs:{label:"IP地址",width:"550px"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.proxyParams,function(o,r){return a("div",{key:r,class:["ip-cell ",0==r?"":"m-t-18"]},[a("el-input",{staticClass:"w-200 font-14",attrs:{placeholder:"请输入ip地址"},model:{value:o.url,callback:function(t){e.$set(o,"url",t)},expression:"item.url"}}),a("el-input",{staticClass:"w-200 font-14 m-l-10",attrs:{placeholder:"请输入权重值"},model:{value:o.weight,callback:function(t){e.$set(o,"weight",t)},expression:"item.weight"}}),e._v(" "),t.row.proxyParams.length>1&&r<t.row.proxyParams.length-1?a("i",{staticClass:"inline-block vertical-middle pointer el-icon-minus font-14 p-l-10",on:{click:function(a){e.toDel(t.row,t.$index,r)}}}):e._e(),e._v(" "),t.row.proxyParams.length-1==r?a("i",{staticClass:"inline-block vertical-middle pointer el-icon-plus font-14 p-l-10",on:{click:function(a){e.toAdd(t.row,t.$index,r)}}}):e._e()],1)})}}])}):e._e(),e._v(" "),1==e.$route.query.proxyType?a("el-table-column",{attrs:{label:"注册中心",width:"550px"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.proxyParams,function(t,o){return a("div",{key:o,class:["ip-cell w-206",0==o?"":"m-t-18"]},[a("el-input",{staticClass:"font-14",attrs:{placeholder:""},model:{value:t.zookeeperUrl,callback:function(a){e.$set(t,"zookeeperUrl",a)},expression:"item.zookeeperUrl"}})],1)})}}])}):e._e(),e._v(" "),a("el-table-column",{attrs:{label:"操作","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e.tableData.length>1?a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleDel(t.$index,t.row)}}},[e._v("删除")]):e._e()]}}])})],1)],1),e._v(" "),a("div",{staticClass:"add-row text-center pointer",on:{click:e.toAddRow}},[a("i",{staticClass:"el-icon-circle-plus-outline font-14 color-5584FF"}),a("span",{staticClass:"font-14 color-5584FF p-l-4"},[e._v("添加行")])])]):e._e(),e._v(" "),a("div",{staticClass:"save-wrap",style:{"padding-left":e.shoEnvFlag?"0":"97px"}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.handleSave("envForm")}}},[e._v("保存")])],1)])])])},staticRenderFns:[]};var m=a("VU/8")(p,u,!1,function(e){a("1xx6")},"data-v-6914c59e",null);t.default=m.exports}}); webpackJsonp([17],{"1xx6":function(e,t){},vm6Q:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("mvHQ"),r=a.n(o),n=a("319J"),s=a("l46T"),l=a("Kkt8"),i=a("P9l9"),c=a("TUB1"),d=a("LlAa"),p={name:"createEnvSet",components:{navBread:n.a,limitInput:s.a,limitTextarea:l.a},data:function(){return{navPath:[{name:"环境管理",path:"/envManage"},{name:"环境列表",path:"/envManage"},{name:this.$route.query.backendProxyId?"修改配置":"新增配置",path:""}],formData:{backendProxyId:this.$route.query.backendProxyId||"",proxyType:this.$route.query.proxyType||"0",proxyCode:"",proxyName:"",description:"",envParams:""},rules:{proxyName:[{required:!0,message:"请输入配置名称",trigger:"blur"}],proxyCode:[{required:!0,message:"请输入配置code",trigger:"blur"}]},shoEnvFlag:!1,tableData:[{sceneCode:"",proxyParams:[{balence:"random",url:"",weight:"",zookeeperUrl:""}]}],envOptions:[]}},methods:{showEnvSet:function(){this.shoEnvFlag=!0},toDel:function(e,t,a){e.proxyParams.splice(a,1)},toAdd:function(e,t,a){e.proxyParams.push({balence:"",url:"",weight:"",zookeeperUrl:""})},handleDel:function(e,t){var a=this;a.$confirm("确定删除该环境?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.tableData.splice(e,1)}).catch(function(){})},toAddRow:function(){this.tableData.push({sceneCode:"",proxyParams:[{balence:"",url:"",weight:"",zookeeperUrl:""}]})},handleSave:function(e){var t=this;t.formData.proxyName=String(t.formData.proxyName).replace(/\s+/g,""),t.formData.proxyCode=String(t.formData.proxyCode).replace(/\s+/g,""),t.$refs[e].validate(function(e){if(!e)return!1;t.saveData()})},saveData:function(){var e=this,t=!0;if(e.tableData.forEach(function(a){""==a.sceneCode&&(t=!1),0==e.formData.proxyType?a.proxyParams.forEach(function(a){t=""!=a.url&&""!=a.weight,e.$delete(a,"zookeeperUrl")}):a.proxyParams.forEach(function(a){t=""!=a.zookeeperUrl,e.$delete(a,"balence"),e.$delete(a,"url"),e.$delete(a,"weight")})}),!t)return e.$message.error({duration:1e3,message:"请完善环境配置"}),!1;var a={backendProxyId:e.formData.backendProxyId,proxyType:e.formData.proxyType,proxyName:e.formData.proxyName,proxyCode:e.formData.proxyCode,description:e.formData.description,envParams:e.shoEnvFlag?r()(e.tableData):""};Object(i.a)(e.$route.query.backendProxyId?"/gateway-manage/update-proxy":"/gateway-manage/create-proxy",a).then(function(t){var a=t.data;if("0000"==a.code)return c.a.showmsg("保存成功","success"),void e.$router.push("/envManage?tabChildid=second");d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getEnvData:function(){var e=this;Object(i.a)("/gateway-manage/list-all-scene",{}).then(function(t){var a=t.data;"0000"!=a.code?d.a.errorMsg(a):e.envOptions=a.result||[]}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getData:function(){var e=this,t={backendProxyId:e.formData.backendProxyId};Object(i.a)("/gateway-manage/get-proxy",t).then(function(t){var a=t.data;if("0000"==a.code){e.formData=a.result;var o=JSON.parse(a.result.envParams);return o.forEach(function(e){e.proxyParams=JSON.parse(e.proxyParams)}),e.tableData=o,void(e.tableData.length&&(e.shoEnvFlag=!0))}d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{$route:{handler:function(e,t){},deep:!0}},mounted:function(){this.$emit("showTab",3),this.getEnvData(),this.$route.query.backendProxyId&&this.getData()}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"api-body-content border-box"},[a("div",{staticClass:"common-nav"},[a("nav-bread",{attrs:{navPath:e.navPath}})],1),e._v(" "),a("div",{staticClass:"api-body-main common-body-main border-box"},[a("div",{staticClass:"api-main-content border-box"},[a("div",{staticClass:"base-set-wrap"},[a("div",{staticClass:"set-title font-14 color-303133"},[e._v("基础配置")]),e._v(" "),a("el-form",{ref:"envForm",attrs:{model:e.formData,"label-width":"94px",rules:e.rules}},[a("el-form-item",{attrs:{label:"参数类型:"}},[e._v("\n "+e._s(0==e.formData.proxyType?"http":"dubbo")+"\n ")]),e._v(" "),a("el-form-item",{attrs:{label:"配置名称:",prop:"proxyName"}},[a("limitInput",{attrs:{inputWidth:440,inputValue:e.formData.proxyName,holder:"请输入配置名称",getByType:"word",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.formData,"proxyName",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"配置code:",prop:"proxyCode"}},[a("limitInput",{attrs:{inputWidth:440,disflag:!!e.formData.setId,inputValue:e.formData.proxyCode,holder:"请输入配置code",getByType:"word",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.formData,"proxyCode",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"备注:",prop:"description"}},[a("limit-textarea",{attrs:{inputWidth:440,inputValue:e.formData.description,holder:"请输入备注内容",getByType:"word",maxLength:100},on:{"update:inputValue":function(t){e.$set(e.formData,"description",t)}}})],1),e._v(" "),e.shoEnvFlag?e._e():a("el-form-item",{attrs:{label:""}},[a("div",{staticClass:"show-set-env",on:{click:e.showEnvSet}},[a("span",{staticClass:"font-14 color-5584FF"},[e._v("添加环境配置")]),a("i",{staticClass:"iconfont iconxiala1 font-14 color-5584FF p-l-10"})])])],1)],1),e._v(" "),e.shoEnvFlag?a("div",{staticClass:"env-set-wrap"},[a("div",{staticClass:"set-title font-14 color-303133"},[e._v("环境配置")]),e._v(" "),a("div",{staticClass:"env-set-body"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{prop:"envName",label:"配置名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-select",{attrs:{placeholder:"请选择"},model:{value:t.row.sceneCode,callback:function(a){e.$set(t.row,"sceneCode",a)},expression:"scope.row.sceneCode"}},e._l(e.envOptions,function(e){return a("el-option",{key:e.sceneCode,attrs:{label:e.sceneName,value:e.sceneCode}})}))]}}])}),e._v(" "),0==e.$route.query.proxyType?a("el-table-column",{attrs:{label:"IP地址",width:"550px"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.proxyParams,function(o,r){return a("div",{key:r,class:["ip-cell ",0==r?"":"m-t-18"]},[a("el-input",{staticClass:"w-200 font-14",attrs:{placeholder:"请输入ip地址"},model:{value:o.url,callback:function(t){e.$set(o,"url",t)},expression:"item.url"}}),a("el-input",{staticClass:"w-200 font-14 m-l-10",attrs:{placeholder:"请输入权重值"},model:{value:o.weight,callback:function(t){e.$set(o,"weight",t)},expression:"item.weight"}}),e._v(" "),t.row.proxyParams.length>1&&r<t.row.proxyParams.length-1?a("i",{staticClass:"inline-block vertical-middle pointer el-icon-minus font-14 p-l-10",on:{click:function(a){e.toDel(t.row,t.$index,r)}}}):e._e(),e._v(" "),t.row.proxyParams.length-1==r?a("i",{staticClass:"inline-block vertical-middle pointer el-icon-plus font-14 p-l-10",on:{click:function(a){e.toAdd(t.row,t.$index,r)}}}):e._e()],1)})}}])}):e._e(),e._v(" "),1==e.$route.query.proxyType?a("el-table-column",{attrs:{label:"注册中心",width:"550px"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.proxyParams,function(t,o){return a("div",{key:o,class:["ip-cell w-206",0==o?"":"m-t-18"]},[a("el-input",{staticClass:"font-14",attrs:{placeholder:""},model:{value:t.zookeeperUrl,callback:function(a){e.$set(t,"zookeeperUrl",a)},expression:"item.zookeeperUrl"}})],1)})}}])}):e._e(),e._v(" "),a("el-table-column",{attrs:{label:"操作","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e.tableData.length>1?a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleDel(t.$index,t.row)}}},[e._v("删除")]):e._e()]}}])})],1)],1),e._v(" "),a("div",{staticClass:"add-row text-center pointer",on:{click:e.toAddRow}},[a("i",{staticClass:"el-icon-circle-plus-outline font-14 color-5584FF"}),a("span",{staticClass:"font-14 color-5584FF p-l-4"},[e._v("添加行")])])]):e._e(),e._v(" "),a("div",{staticClass:"save-wrap",style:{"padding-left":e.shoEnvFlag?"0":"97px"}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.handleSave("envForm")}}},[e._v("保存")])],1)])])])},staticRenderFns:[]};var m=a("VU/8")(p,u,!1,function(e){a("1xx6")},"data-v-6914c59e",null);t.default=m.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([20],{"/NA0":function(e,n){},0:function(e,n,t){t("j1ja"),e.exports=t("NHnr")},"4qCZ":function(e,n){},"5tgt":function(e,n,t){e.exports=function(e,n){return function(o){t("Opzk")("./"+e+"/"+n+".vue").then(function(e){o(e)})}}},NHnr:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=t("fZjL"),a=t.n(o),r=(t("j1ja"),t("hKoQ")),i=t.n(r),u={render:function(){var e=this.$createElement,n=this._self._c||e;return n("div",{attrs:{id:"app"}},[n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view")],1)],1)},staticRenderFns:[]};var s=t("VU/8")({name:"App",data:function(){return{}}},u,!1,function(e){t("/NA0")},null,null).exports,c=t("lRwf"),p=t.n(c),g=t("pRNm"),f=t.n(g),m=t("5tgt"),l=t.n(m);p.a.use(f.a);var d,v=function(e){t.e(1).then(t.bind(null,"ODjX")).then(function(n){e(n)})},h=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:l()("login","index")},{path:"/index",name:"概览",redirect:"overview",component:l()("index","index"),children:[{path:"/overview",name:"概览",component:l()("index","overview")},{path:"/apiProgram",name:"项目列表",component:l()("index","apiProgram")},{path:"/apiProgramGroup",name:"分组列表",component:l()("index","apiProgramGroup")},{path:"/apiList",name:"API列表",component:l()("index","apiList")},{path:"/createApi",name:"创建API",component:l()("index","createApi")},{path:"/apiListManage",name:"API列表管理",component:l()("index","apiListManage")},{path:"/apiListManageShow",name:"API列表管理查看",component:l()("index","apiListManageShow")},{path:"/envManage",name:"环境管理",component:l()("index","envManage")},{path:"/createEnvSet",name:"新建配置",component:l()("index","createEnvSet")},{path:"/releaseRecords",name:"发布记录",component:l()("index","releaseRecords")},{path:"/pluginManage",name:"插件管理",component:l()("index","pluginManage")},{path:"/errorCode",name:"错误码",component:l()("index","errorCode")}]},{path:"/403",name:"无权访问",component:v},{path:"/404",name:"error404",component:v},{path:"/500",name:"error500",component:v},{path:"*",redirect:"/404",hidden:!0}],x=new f.a({routes:h,scrollBehavior:function(){return{y:0}}}),I=t("zL8q"),S=t.n(I),M=t("Rf8U"),w=t.n(M),k=t("mtWM"),D=t.n(k),R=t("bOdI"),A=t.n(R),P=t("mvHQ"),b=t.n(P),H=t("SJI6"),E=t.n(H);p.a.use(E.a);var L=new E.a.Store({state:{userInfo:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px",baseInfo:{},frontInfo:{},backInfo:{},resultInfo:{}},mutations:(d={},A()(d,"login",function(e,n){sessionStorage.token=n,e.token=n}),A()(d,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),A()(d,"title",function(e,n){e.title=n}),A()(d,"show",function(e,n){e.show=n}),A()(d,"saveUser",function(e,n){localStorage.removeItem("userInfo"),localStorage.setItem("userInfo",b()(n)),e.userInfo=JSON.parse(localStorage.getItem("userInfo"))}),A()(d,"clearUser",function(e){e.userInfo={},localStorage.getItem("userInfo")&&localStorage.removeItem("userInfo")}),A()(d,"saveBase",function(e,n){e.baseInfo=n}),A()(d,"saveFront",function(e,n){e.frontInfo=n}),A()(d,"saveBack",function(e,n){e.backInfo=n}),A()(d,"saveResult",function(e,n){e.resultInfo=n}),A()(d,"clearData",function(e){e.baseInfo={},e.frontInfo={},e.backInfo={},e.resultInfo={}}),d),actions:{saveUserInfo:function(e,n){e.commit("saveUser",n)},clearUserInfo:function(e,n){e.commit("clearUser",n)},saveBaseInfo:function(e,n){e.commit("saveBase",n)},saveFrontInfo:function(e,n){e.commit("saveFront",n)},saveBackInfo:function(e,n){e.commit("saveBack",n)},saveResultInfo:function(e,n){e.commit("saveResult",n)},clearApiData:function(e,n){e.commit("clearData")}}}),j=(t("4qCZ"),t("uKUT"),t("Xcu2"),{dateFormat:function(e,n){if(e){e=10===e.toString().length?1e3*e:e;var t=new Date(e),o={"M+":t.getMonth()+1,"D+":t.getDate(),W:"日一二三四五六".charAt(t.getDay()),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds(),"q+":Math.floor((t.getMonth()+3)/3),S:t.getMilliseconds()};for(var a in/(Y+)/.test(n)&&(n=n.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length))),o)new RegExp("("+a+")").test(n)&&(n=n.replace(RegExp.$1,1===RegExp.$1.length?o[a]:("00"+o[a]).substr((""+o[a]).length)));return n}},formatTimeStamp:function(e){var n=new Date(e),t=n.getMonth()+1,o=n.getDate()<10?"0"+n.getDate():n.getDate(),a=t<10?"0"+t:t,r=n.getHours()<10?"0"+n.getHours():n.getHours(),i=n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes(),u=n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds();return n.getFullYear()+"-"+a+"-"+o+" "+r+":"+i+":"+u},timeStampToYmd:function(e){var n=new Date(e),t=n.getMonth()+1,o=n.getDate()<10?"0"+n.getDate():n.getDate(),a=t<10?"0"+t:t;return n.getFullYear()+"-"+a+"-"+o},timeStampToHms:function(e){var n=new Date(e);return(n.getHours()<10?"0"+n.getHours():n.getHours())+":"+(n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes())+":"+(n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds())}});i.a.polyfill(),Vue.config.productionTip=!1,Vue.use(S.a,{size:"large"}),Vue.use(w.a,D.a),Vue.axios.defaults.withCredentials=!0,a()(j).forEach(function(e){Vue.filter(e,j[e])}),new Vue({el:"#app",router:x,store:L,components:{App:s},template:"<App/>"})},Opzk:function(e,n,t){var o={"./errorPage/403.vue":["6XGN",12],"./errorPage/404.vue":["AejC",14],"./errorPage/500.vue":["FskK",10],"./errorPage/index.vue":["ODjX",1],"./index/apiList.vue":["tiLT",0,8],"./index/apiListManage.vue":["dqHC",0,4],"./index/apiListManageShow.vue":["r4m9",0,3],"./index/apiProgram.vue":["kAqA",0,11],"./index/apiProgramGroup.vue":["G8l+",0,9],"./index/createApi.vue":["Yns/",0,2],"./index/createEnvSet.vue":["vm6Q",0,16],"./index/envManage.vue":["iGM1",0,7],"./index/errorCode.vue":["SGyq",0,13],"./index/index.vue":["JXTs",0,5],"./index/overview.vue":["EBdF",0,18],"./index/pluginManage.vue":["K0rJ",0,15],"./index/releaseRecords.vue":["OEJD",0,17],"./login/index.vue":["T+/8",0,6]};function a(e){var n=o[e];return n?Promise.all(n.slice(1).map(t.e)).then(function(){return t(n[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}a.keys=function(){return Object.keys(o)},a.id="Opzk",e.exports=a},SJI6:function(e,n){e.exports=Vuex},Xcu2:function(e,n){},lRwf:function(e,n){e.exports=Vue},pRNm:function(e,n){e.exports=VueRouter},uKUT:function(e,n){}},[0]); webpackJsonp([20],{"/NA0":function(e,n){},0:function(e,n,t){t("j1ja"),e.exports=t("NHnr")},"4qCZ":function(e,n){},"5tgt":function(e,n,t){e.exports=function(e,n){return function(o){t("Opzk")("./"+e+"/"+n+".vue").then(function(e){o(e)})}}},NHnr:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var o=t("fZjL"),a=t.n(o),r=(t("j1ja"),t("hKoQ")),i=t.n(r),u={render:function(){var e=this.$createElement,n=this._self._c||e;return n("div",{attrs:{id:"app"}},[n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view")],1)],1)},staticRenderFns:[]};var s=t("VU/8")({name:"App",data:function(){return{}}},u,!1,function(e){t("/NA0")},null,null).exports,c=t("lRwf"),p=t.n(c),g=t("pRNm"),f=t.n(g),m=t("5tgt"),l=t.n(m);p.a.use(f.a);var d,v=function(e){t.e(1).then(t.bind(null,"ODjX")).then(function(n){e(n)})},h=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:l()("login","index")},{path:"/index",name:"概览",redirect:"overview",component:l()("index","index"),children:[{path:"/overview",name:"概览",component:l()("index","overview")},{path:"/apiProgram",name:"项目列表",component:l()("index","apiProgram")},{path:"/apiProgramGroup",name:"分组列表",component:l()("index","apiProgramGroup")},{path:"/apiList",name:"API列表",component:l()("index","apiList")},{path:"/createApi",name:"创建API",component:l()("index","createApi")},{path:"/apiListManage",name:"API列表管理",component:l()("index","apiListManage")},{path:"/apiListManageShow",name:"API列表管理查看",component:l()("index","apiListManageShow")},{path:"/envManage",name:"环境管理",component:l()("index","envManage")},{path:"/createEnvSet",name:"新建配置",component:l()("index","createEnvSet")},{path:"/releaseRecords",name:"发布记录",component:l()("index","releaseRecords")},{path:"/pluginManage",name:"插件管理",component:l()("index","pluginManage")},{path:"/errorCode",name:"错误码",component:l()("index","errorCode")}]},{path:"/403",name:"无权访问",component:v},{path:"/404",name:"error404",component:v},{path:"/500",name:"error500",component:v},{path:"*",redirect:"/404",hidden:!0}],x=new f.a({routes:h,scrollBehavior:function(){return{y:0}}}),I=t("zL8q"),S=t.n(I),M=t("Rf8U"),w=t.n(M),k=t("mtWM"),D=t.n(k),R=t("bOdI"),A=t.n(R),P=t("mvHQ"),b=t.n(P),H=t("SJI6"),E=t.n(H);p.a.use(E.a);var L=new E.a.Store({state:{userInfo:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px",baseInfo:{},frontInfo:{},backInfo:{},resultInfo:{}},mutations:(d={},A()(d,"login",function(e,n){sessionStorage.token=n,e.token=n}),A()(d,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),A()(d,"title",function(e,n){e.title=n}),A()(d,"show",function(e,n){e.show=n}),A()(d,"saveUser",function(e,n){localStorage.removeItem("userInfo"),localStorage.setItem("userInfo",b()(n)),e.userInfo=JSON.parse(localStorage.getItem("userInfo"))}),A()(d,"clearUser",function(e){e.userInfo={},localStorage.getItem("userInfo")&&localStorage.removeItem("userInfo")}),A()(d,"saveBase",function(e,n){e.baseInfo=n}),A()(d,"saveFront",function(e,n){e.frontInfo=n}),A()(d,"saveBack",function(e,n){e.backInfo=n}),A()(d,"saveResult",function(e,n){e.resultInfo=n}),A()(d,"clearData",function(e){e.baseInfo={},e.frontInfo={},e.backInfo={},e.resultInfo={}}),d),actions:{saveUserInfo:function(e,n){e.commit("saveUser",n)},clearUserInfo:function(e,n){e.commit("clearUser",n)},saveBaseInfo:function(e,n){e.commit("saveBase",n)},saveFrontInfo:function(e,n){e.commit("saveFront",n)},saveBackInfo:function(e,n){e.commit("saveBack",n)},saveResultInfo:function(e,n){e.commit("saveResult",n)},clearApiData:function(e,n){e.commit("clearData")}}}),j=(t("4qCZ"),t("uKUT"),t("Xcu2"),{dateFormat:function(e,n){if(e){e=10===e.toString().length?1e3*e:e;var t=new Date(e),o={"M+":t.getMonth()+1,"D+":t.getDate(),W:"日一二三四五六".charAt(t.getDay()),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds(),"q+":Math.floor((t.getMonth()+3)/3),S:t.getMilliseconds()};for(var a in/(Y+)/.test(n)&&(n=n.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length))),o)new RegExp("("+a+")").test(n)&&(n=n.replace(RegExp.$1,1===RegExp.$1.length?o[a]:("00"+o[a]).substr((""+o[a]).length)));return n}},formatTimeStamp:function(e){var n=new Date(e),t=n.getMonth()+1,o=n.getDate()<10?"0"+n.getDate():n.getDate(),a=t<10?"0"+t:t,r=n.getHours()<10?"0"+n.getHours():n.getHours(),i=n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes(),u=n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds();return n.getFullYear()+"-"+a+"-"+o+" "+r+":"+i+":"+u},timeStampToYmd:function(e){var n=new Date(e),t=n.getMonth()+1,o=n.getDate()<10?"0"+n.getDate():n.getDate(),a=t<10?"0"+t:t;return n.getFullYear()+"-"+a+"-"+o},timeStampToHms:function(e){var n=new Date(e);return(n.getHours()<10?"0"+n.getHours():n.getHours())+":"+(n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes())+":"+(n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds())}});i.a.polyfill(),Vue.config.productionTip=!1,Vue.use(S.a,{size:"large"}),Vue.use(w.a,D.a),Vue.axios.defaults.withCredentials=!0,a()(j).forEach(function(e){Vue.filter(e,j[e])}),new Vue({el:"#app",router:x,store:L,components:{App:s},template:"<App/>"})},Opzk:function(e,n,t){var o={"./errorPage/403.vue":["6XGN",12],"./errorPage/404.vue":["AejC",14],"./errorPage/500.vue":["FskK",10],"./errorPage/index.vue":["ODjX",1],"./index/apiList.vue":["tiLT",0,8],"./index/apiListManage.vue":["dqHC",0,4],"./index/apiListManageShow.vue":["r4m9",0,3],"./index/apiProgram.vue":["kAqA",0,11],"./index/apiProgramGroup.vue":["G8l+",0,9],"./index/createApi.vue":["Yns/",0,2],"./index/createEnvSet.vue":["vm6Q",0,17],"./index/envManage.vue":["iGM1",0,7],"./index/errorCode.vue":["SGyq",0,13],"./index/index.vue":["JXTs",0,5],"./index/overview.vue":["EBdF",0,18],"./index/pluginManage.vue":["K0rJ",0,15],"./index/releaseRecords.vue":["OEJD",0,16],"./login/index.vue":["T+/8",0,6]};function a(e){var n=o[e];return n?Promise.all(n.slice(1).map(t.e)).then(function(){return t(n[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}a.keys=function(){return Object.keys(o)},a.id="Opzk",e.exports=a},SJI6:function(e,n){e.exports=Vuex},Xcu2:function(e,n){},lRwf:function(e,n){e.exports=Vue},pRNm:function(e,n){e.exports=VueRouter},uKUT:function(e,n){}},[0]);
\ No newline at end of file \ No newline at end of file
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,a,c){for(var f,b,i,u=0,d=[];u<r.length;u++)b=r[u],t[b]&&d.push(t[b][0]),t[b]=0;for(f in a)Object.prototype.hasOwnProperty.call(a,f)&&(e[f]=a[f]);for(n&&n(r,a,c);d.length;)d.shift()();if(c)for(u=0;u<c.length;u++)i=o(o.s=c[u]);return i};var r={},t={21:0};function o(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,o){n=t[e]=[r,o]});n[2]=r;var a=document.getElementsByTagName("head")[0],c=document.createElement("script");c.type="text/javascript",c.charset="utf-8",c.async=!0,c.timeout=12e4,o.nc&&c.setAttribute("nonce",o.nc),c.src=o.p+"static/js/"+e+"."+{0:"d2aeaa955782b02febee",1:"0ebe3ead93207dc78a78",2:"7185c0dd57d06a957688",3:"9d8da2e9b9ec2f268553",4:"7068a3032e228b58b8f2",5:"e704f35bae2785ada05b",6:"38bb4eb7a29698fb12bf",7:"c43b8ee3bf9b282281a7",8:"a041df608a170932edaf",9:"dc5f57f1065e479c7783",10:"638039a7b39908980436",11:"2c92b109a28bdd0cc6cc",12:"3b9c756b15cf547445f5",13:"2e223aea8aa7180fb838",14:"9825bb69e60b8030c230",15:"cb7b875c24b40e9cb6e0",16:"59c1113679bef2e96538",17:"b2dee7f6f3f3b82b19bf",18:"37321ffca9347a60b988"}[e]+".js";var f=setTimeout(b,12e4);function b(){c.onerror=c.onload=null,clearTimeout(f);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return c.onerror=c.onload=b,a.appendChild(c),r},o.m=e,o.c=r,o.d=function(e,n,r){o.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="./",o.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,o,c){for(var f,b,i,u=0,d=[];u<r.length;u++)b=r[u],t[b]&&d.push(t[b][0]),t[b]=0;for(f in o)Object.prototype.hasOwnProperty.call(o,f)&&(e[f]=o[f]);for(n&&n(r,o,c);d.length;)d.shift()();if(c)for(u=0;u<c.length;u++)i=a(a.s=c[u]);return i};var r={},t={21:0};function a(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,a),t.l=!0,t.exports}a.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,a){n=t[e]=[r,a]});n[2]=r;var o=document.getElementsByTagName("head")[0],c=document.createElement("script");c.type="text/javascript",c.charset="utf-8",c.async=!0,c.timeout=12e4,a.nc&&c.setAttribute("nonce",a.nc),c.src=a.p+"static/js/"+e+"."+{0:"d2aeaa955782b02febee",1:"0ebe3ead93207dc78a78",2:"7185c0dd57d06a957688",3:"9d8da2e9b9ec2f268553",4:"7068a3032e228b58b8f2",5:"e704f35bae2785ada05b",6:"38bb4eb7a29698fb12bf",7:"c43b8ee3bf9b282281a7",8:"a041df608a170932edaf",9:"dc5f57f1065e479c7783",10:"638039a7b39908980436",11:"2c92b109a28bdd0cc6cc",12:"3b9c756b15cf547445f5",13:"2e223aea8aa7180fb838",14:"9825bb69e60b8030c230",15:"cb7b875c24b40e9cb6e0",16:"3c8baa2b537d99cf9e54",17:"863c4fed80d4262dac49",18:"37321ffca9347a60b988"}[e]+".js";var f=setTimeout(b,12e4);function b(){c.onerror=c.onload=null,clearTimeout(f);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return c.onerror=c.onload=b,o.appendChild(c),r},a.m=e,a.c=r,a.d=function(e,n,r){a.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},a.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(n,"a",n),n},a.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},a.p="./",a.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
...@@ -35,8 +35,8 @@ ...@@ -35,8 +35,8 @@
</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">
<div class="color-606266 line-18">{{ scope.row.createDate | timeStampToYmd }}</div> <div class="color-606266 line-18">{{ scope.row.createTime | timeStampToYmd }}</div>
<div class="color-606266 line-18">{{ scope.row.createDate | timeStampToHms }}</div> <div class="color-606266 line-18">{{ scope.row.createTime | timeStampToHms }}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" show-overflow-tooltip> <el-table-column label="操作" show-overflow-tooltip>
......
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