Commit 17b7b495 by 无尘

fix: 修改新建

parent 4f2de7eb
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>API网关管理平台</title><link href=./static/css/app.0184fee27f97bbd58262c8b14f47a8f6.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 src=//web-1251519181.file.myqcloud.com/components/input.2.0.15.js></script><script src=//web-1251519181.file.myqcloud.com/components/delete.2.0.01.js></script><script type=text/javascript src=./static/js/manifest.3383cf2e0cb519aa167c.js></script><script type=text/javascript src=./static/js/vendor.0af499866de7ef505f4c.js></script><script type=text/javascript src=./static/js/app.6299850f8dcda3c173c8.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>API网关管理平台</title><link href=./static/css/app.72528aeb7e2de043f8c70eae5de12894.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 src=//web-1251519181.file.myqcloud.com/components/input.2.0.15.js></script><script src=//web-1251519181.file.myqcloud.com/components/delete.2.0.01.js></script><script type=text/javascript src=./static/js/manifest.011dcdd75b5b61f2d98a.js></script><script type=text/javascript src=./static/js/vendor.0af499866de7ef505f4c.js></script><script type=text/javascript src=./static/js/app.89eba62958dacdc24b81.js></script></body></html>
\ No newline at end of file
webpackJsonp([10],{arKS:function(t,e){},f2i8:function(t,e,a){"use strict";var r=a("mvHQ"),o=a.n(r),i=a("fZjL"),n=a.n(i),s=a("l46T"),l=a("Kkt8"),u=a("P9l9"),c=a("TUB1"),p=a("LlAa"),m={name:"new-api-group",props:{showDialog:{type:Boolean,default:!1},editRow:{type:Object,default:function(){return{interfaceGroupId:"",groupName:"",remark:""}}}},components:{limitInput:s.a,limitTextarea:l.a},data:function(){return{customDialog:!1,formData:{interfaceGroupId:"",groupName:"",remark:""},rules:{groupName:[{required:!0,message:"请输入分组名称",trigger:"blur"}],remark:[{required:!0,message:"请输入描述",trigger:"blur"}]}}},methods:{handleClose:function(t){this.$refs.programGroupForm.resetFields(),t(),this.hideDialog()},customCancel:function(){this.$refs.programGroupForm.resetFields(),this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.formData.groupName="",this.formData.remark="",this.$emit("hideDialog","")},customConfirm:function(t){var e=this;e.formData.groupName=e.formData.groupName?String(e.formData.groupName).replace(/\s+/g,""):"",e.formData.remark=e.formData.remark?String(e.formData.remark).replace(/\s+/g,""):"",e.$refs[t].validate(function(t){if(!t)return!1;e.postEditData()})},postEditData:function(){var t=this,e={interfaceGroupId:t.formData.interfaceGroupId,groupName:t.formData.groupName,remark:t.formData.remark,projectId:t.$route.query.projectId};Object(u.a)(t.editRow.interfaceGroupId?"/gateway-manage/update-api-group":"/gateway-manage/create-api-group",e).then(function(e){var a=e.data;if("0000"==a.code)return c.a.showmsg("保存成功","success"),void t.setData();p.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},setData:function(t){var e=this;e.$emit("hideDialog",e.formData),e.$nextTick(function(){e.formData.groupName="",e.formData.remark=""})}},watch:{showDialog:function(t,e){this.customDialog=t},editRow:function(t,e){n()(t).length&&(this.formData=JSON.parse(o()(t)))}},mounted:function(){this.customDialog=this.showDialog,n()(this.editRow).length&&(this.formData=JSON.parse(o()(this.editRow)))}},f={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"show",rawName:"v-show",value:t.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:t.formData.interfaceGroupId?"编辑分组":"新建分组",visible:t.customDialog,width:"600px","before-close":t.handleClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"edit-dialog-body"},[a("el-form",{ref:"programGroupForm",attrs:{model:t.formData,"label-width":"94px",rules:t.rules}},[a("el-form-item",{attrs:{label:"分组名称:",prop:"groupName"}},[a("limitInput",{attrs:{inputWidth:440,inputValue:t.formData.groupName,holder:"请输入分组名称",getByType:"word",maxLength:20},on:{"update:inputValue":function(e){t.$set(t.formData,"groupName",e)}}})],1),t._v(" "),a("el-form-item",{attrs:{label:"描述:"}},[a("limit-textarea",{attrs:{inputWidth:440,inputValue:t.formData.remark,holder:"请输入描述内容",getByType:"word",maxLength:100},on:{"update:inputValue":function(e){t.$set(t.formData,"remark",e)}}})],1)],1)],1),t._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{"padding-bottom":"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.customCancel}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.customConfirm("programGroupForm")}}},[t._v(t._s(t.formData.interfaceGroupId?"保 存":"新 建"))])],1)])],1)},staticRenderFns:[]};var d=a("VU/8")(m,f,!1,function(t){a("arKS")},"data-v-78ce30dc",null);e.a=d.exports},pJor:function(t,e){},tiLT:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a("319J"),o=a("f2i8"),i=a("P9l9"),n=a("jvWE"),s=a("LlAa"),l={name:"apiProgramGroup",components:{navBread:r.a,newApiGroup:o.a},data:function(){return{navPath:[{name:"API管理",path:"/apiProgram"},{name:"API列表",path:""}],projectId:this.$route.query.projectId||"",interfaceGroupId:this.$route.query.interfaceGroupId||"",searchValue:"",targetType:"-1",targetTypeOptions:[{value:"-1",label:"所有"},{value:"0",label:"私有"},{value:"1",label:"公开"}],tableData:[],pageSize:20,currentPage:1,totalCount:0,showDialog:!1,editIndex:"",editRow:{}}},methods:{searchData:Object(n.a)(function(t){this.currentPage,this.getData()},500),clearInput:function(){this.currentPage=1,this.getData()},changeTargetType:function(t){this.currentPage=1,this.getData()},handleSizeChange:function(t){this.pageSize=t,this.getData()},handleCurrentChange:function(t){this.currentPage=t,this.getData()},toApiListManage:function(t,e){this.$router.push("/apiListManage?interfaceId="+e.interfaceId+"&interfaceName="+e.interfaceName)},getData:function(){var t=this,e={projectId:t.projectId,interfaceGroupId:t.interfaceGroupId,search:t.searchValue,target:t.targetType,pageSize:t.pageSize,pageNum:t.currentPage};Object(i.a)("/gateway-manage/page-api",e).then(function(e){var a=e.data;if("0000"==a.code)return t.tableData=a.result.result,void(t.totalCount=a.result.totalCount);s.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",22),this.getData()}},u={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 flex flex-space-between"},[a("div",{staticStyle:{"font-size":"0"}},[a("el-input",{staticClass:"w-320",attrs:{clearable:"",placeholder:"请输入API名称"},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"})]),t._v(" "),a("el-select",{staticClass:"w-137 margin-left10",attrs:{placeholder:"请选择"},on:{change:t.changeTargetType},model:{value:t.targetType,callback:function(e){t.targetType=e},expression:"targetType"}},t._l(t.targetTypeOptions,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}))],1)]),t._v(" "),a("div",{staticClass:"table-wrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData}},[a("el-table-column",{attrs:{prop:"interfaceName",label:"API名称","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("0"==e.row.interfaceType?"http":"1"==e.row.interfaceType?"dubbo ":"自定义返回")+"\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.interfaceUrl)+"\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.optType)+"\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.interfaceGroupName)+"\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.toApiListManage(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)])]),t._v(" "),a("new-api-group",{attrs:{editRow:t.editRow,showDialog:t.showDialog},on:{hideDialog:t.hideDialog}})],1)},staticRenderFns:[]};var c=a("VU/8")(l,u,!1,function(t){a("pJor")},"data-v-c098c8c8",null);e.default=c.exports}});
\ No newline at end of file
webpackJsonp([10],{f2i8:function(t,e,a){"use strict";var o=a("mvHQ"),r=a.n(o),i=a("fZjL"),n=a.n(i),s=a("l46T"),l=a("Kkt8"),u=a("P9l9"),c=a("TUB1"),p=a("LlAa"),m={name:"new-api-group",props:{showDialog:{type:Boolean,default:!1},editRow:{type:Object,default:function(){return{interfaceGroupId:"",groupName:"",remark:""}}}},components:{limitInput:s.a,limitTextarea:l.a},data:function(){return{customDialog:!1,formData:{interfaceGroupId:"",groupName:"",remark:""},rules:{groupName:[{required:!0,message:"请输入分组名称",trigger:"blur"}],remark:[{required:!0,message:"请输入描述",trigger:"blur"}]}}},methods:{handleClose:function(t){this.$refs.programGroupForm.resetFields(),t(),this.hideDialog()},customCancel:function(){this.$refs.programGroupForm.resetFields(),this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.formData.groupName="",this.formData.remark="",this.$emit("hideDialog","")},customConfirm:function(t){var e=this;e.formData.groupName=e.formData.groupName?String(e.formData.groupName).replace(/\s+/g,""):"",e.formData.remark=e.formData.remark?String(e.formData.remark).replace(/\s+/g,""):"",e.$refs[t].validate(function(t){if(!t)return!1;e.postEditData()})},postEditData:function(){var t=this,e={interfaceGroupId:t.formData.interfaceGroupId,groupName:t.formData.groupName,remark:t.formData.remark,projectId:t.$route.query.projectId};Object(u.a)(t.editRow.interfaceGroupId?"/gateway-manage/update-api-group":"/gateway-manage/create-api-group",e).then(function(e){var a=e.data;if("0000"==a.code)return c.a.showmsg("保存成功","success"),void t.setData();p.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},setData:function(t){this.$emit("hideDialog",this.formData)}},watch:{showDialog:function(t,e){this.customDialog=t},editRow:function(t,e){n()(t).length&&(this.formData=JSON.parse(r()(t)))}},mounted:function(){this.customDialog=this.showDialog,n()(this.editRow).length&&(this.formData=JSON.parse(r()(this.editRow)))}},f={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"show",rawName:"v-show",value:t.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:t.formData.interfaceGroupId?"编辑分组":"新建分组",visible:t.customDialog,width:"600px","before-close":t.handleClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"edit-dialog-body"},[a("el-form",{ref:"programGroupForm",attrs:{model:t.formData,"label-width":"94px",rules:t.rules}},[a("el-form-item",{attrs:{label:"分组名称:",prop:"groupName"}},[a("limitInput",{attrs:{inputWidth:440,inputValue:t.formData.groupName,holder:"请输入分组名称",getByType:"word",maxLength:20},on:{"update:inputValue":function(e){t.$set(t.formData,"groupName",e)}}})],1),t._v(" "),a("el-form-item",{attrs:{label:"描述:"}},[a("limit-textarea",{attrs:{inputWidth:440,inputValue:t.formData.remark,holder:"请输入描述内容",getByType:"word",maxLength:100},on:{"update:inputValue":function(e){t.$set(t.formData,"remark",e)}}})],1)],1)],1),t._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{"padding-bottom":"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.customCancel}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.customConfirm("programGroupForm")}}},[t._v(t._s(t.formData.interfaceGroupId?"保 存":"新 建"))])],1)])],1)},staticRenderFns:[]};var d=a("VU/8")(m,f,!1,function(t){a("ikRa")},"data-v-270094c2",null);e.a=d.exports},ikRa:function(t,e){},pJor:function(t,e){},tiLT:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("319J"),r=a("f2i8"),i=a("P9l9"),n=a("jvWE"),s=a("LlAa"),l={name:"apiProgramGroup",components:{navBread:o.a,newApiGroup:r.a},data:function(){return{navPath:[{name:"API管理",path:"/apiProgram"},{name:"API列表",path:""}],projectId:this.$route.query.projectId||"",interfaceGroupId:this.$route.query.interfaceGroupId||"",searchValue:"",targetType:"-1",targetTypeOptions:[{value:"-1",label:"所有"},{value:"0",label:"私有"},{value:"1",label:"公开"}],tableData:[],pageSize:20,currentPage:1,totalCount:0,showDialog:!1,editIndex:"",editRow:{}}},methods:{searchData:Object(n.a)(function(t){this.currentPage,this.getData()},500),clearInput:function(){this.currentPage=1,this.getData()},changeTargetType:function(t){this.currentPage=1,this.getData()},handleSizeChange:function(t){this.pageSize=t,this.getData()},handleCurrentChange:function(t){this.currentPage=t,this.getData()},toApiListManage:function(t,e){this.$router.push("/apiListManage?interfaceId="+e.interfaceId+"&interfaceName="+e.interfaceName)},getData:function(){var t=this,e={projectId:t.projectId,interfaceGroupId:t.interfaceGroupId,search:t.searchValue,target:t.targetType,pageSize:t.pageSize,pageNum:t.currentPage};Object(i.a)("/gateway-manage/page-api",e).then(function(e){var a=e.data;if("0000"==a.code)return t.tableData=a.result.result,void(t.totalCount=a.result.totalCount);s.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",22),this.getData()}},u={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 flex flex-space-between"},[a("div",{staticStyle:{"font-size":"0"}},[a("el-input",{staticClass:"w-320",attrs:{clearable:"",placeholder:"请输入API名称"},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"})]),t._v(" "),a("el-select",{staticClass:"w-137 margin-left10",attrs:{placeholder:"请选择"},on:{change:t.changeTargetType},model:{value:t.targetType,callback:function(e){t.targetType=e},expression:"targetType"}},t._l(t.targetTypeOptions,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}))],1)]),t._v(" "),a("div",{staticClass:"table-wrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData}},[a("el-table-column",{attrs:{prop:"interfaceName",label:"API名称","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("0"==e.row.interfaceType?"http":"1"==e.row.interfaceType?"dubbo ":"自定义返回")+"\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.interfaceUrl)+"\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.optType)+"\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.interfaceGroupName)+"\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.toApiListManage(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)])]),t._v(" "),a("new-api-group",{attrs:{editRow:t.editRow,showDialog:t.showDialog},on:{hideDialog:t.hideDialog}})],1)},staticRenderFns:[]};var c=a("VU/8")(l,u,!1,function(t){a("pJor")},"data-v-c098c8c8",null);e.default=c.exports}});
\ No newline at end of file
webpackJsonp([14],{"C/ih":function(t,e){},auIj:function(t,e){},kAqA:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("319J"),r=a("mvHQ"),i=a.n(r),n=a("fZjL"),s=a.n(n),c=a("l46T"),l=a("Kkt8"),u=a("P9l9"),d=a("TUB1"),p=a("LlAa"),m={name:"new-env",props:{showDialog:{type:Boolean,default:!1},editRow:{type:Object,default:function(){return{projectId:"",projectName:"",projectDescribe:""}}}},components:{limitInput:c.a,limitTextarea:l.a},data:function(){return{customDialog:!1,formData:{projectId:"",projectName:"",projectDescribe:""},rules:{projectName:[{required:!0,message:"请输入项目名称",trigger:"blur"}],projectDescribe:[{required:!0,message:"请输入描述",trigger:"blur"}]}}},methods:{handleClose:function(t){this.$refs.programForm.resetFields(),t(),this.hideDialog()},customCancel:function(){this.$refs.programForm.resetFields(),this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.formData.projectName="",this.formData.projectDescribe="",this.$emit("hideDialog","")},customConfirm:function(t){var e=this;e.formData.projectName=e.formData.projectName?String(e.formData.projectName).replace(/\s+/g,""):"",e.formData.projectDescribe=e.formData.projectDescribe?String(e.formData.projectDescribe).replace(/\s+/g,""):"",e.$refs[t].validate(function(t){if(!t)return!1;e.postEditData()})},postEditData:function(){var t=this,e={projectId:t.formData.projectId,projectName:t.formData.projectName,projectDescribe:t.formData.projectDescribe};Object(u.a)(t.editRow.projectId?"/gateway-manage/update-project":"/gateway-manage/create-project",e).then(function(e){var a=e.data;if("0000"==a.code)return d.a.showmsg("保存成功","success"),void t.setData();p.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},setData:function(t){var e=this;e.$emit("hideDialog",e.formData),e.$nextTick(function(){e.formData.projectName="",e.formData.projectDescribe=""})}},watch:{showDialog:function(t,e){this.customDialog=t},editRow:function(t,e){s()(t).length&&(this.formData=JSON.parse(i()(t)))}},mounted:function(){this.customDialog=this.showDialog,s()(this.editRow).length&&(this.formData=JSON.parse(i()(this.editRow)))}},h={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"show",rawName:"v-show",value:t.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:t.formData.projectId?"编辑项目":"新建项目",visible:t.customDialog,width:"600px","before-close":t.handleClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"edit-dialog-body"},[a("el-form",{ref:"programForm",attrs:{model:t.formData,"label-width":"94px",rules:t.rules}},[a("el-form-item",{attrs:{label:"项目名称:",prop:"projectName"}},[a("limitInput",{attrs:{inputWidth:440,inputValue:t.formData.projectName,holder:"请输入项目名称",getByType:"word",maxLength:20},on:{"update:inputValue":function(e){t.$set(t.formData,"projectName",e)}}})],1),t._v(" "),a("el-form-item",{attrs:{label:"描述:"}},[a("limit-textarea",{attrs:{inputWidth:440,inputValue:t.formData.projectDescribe,holder:"请输入描述内容",getByType:"word",maxLength:100},on:{"update:inputValue":function(e){t.$set(t.formData,"projectDescribe",e)}}})],1)],1)],1),t._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{"padding-bottom":"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.customCancel}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.customConfirm("programForm")}}},[t._v(t._s(t.formData.projectId?"保 存":"新 建"))])],1)])],1)},staticRenderFns:[]};var f=a("VU/8")(m,h,!1,function(t){a("auIj")},"data-v-255c0ab0",null).exports,g=a("jvWE"),D={name:"apiProgram",components:{navBread:o.a,newProgram:f},data:function(){return{navPath:[{name:"API管理",path:"/apiProgram"},{name:"项目列表",path:""}],searchValue:"",tableData:[],pageSize:20,currentPage:1,totalCount:0,showDialog:!1,editIndex:"",editRow:{}}},methods:{editProgram:function(){this.showDialog=!0},hideDialog:function(t){if(!t)return this.editIndex="",this.editRow={},this.showDialog=!1,!1;this.currentPage=1,this.getData(),this.editIndex="",this.editRow={},this.showDialog=!1,this.$forceUpdate()},searchData:Object(g.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()},toGroupList:function(t,e){this.$router.push("/apiProgramGroup?projectId="+e.projectId)},handleEdit:function(t,e){this.editIndex=t,this.editRow=e,this.showDialog=!0},handleDel:function(t,e){var a=this;a.$confirm("【"+e.projectName+"】下的接口将全部被删除,确认删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDelData(t,e)}).catch(function(){})},postDelData:function(t,e){var a=this,o={projectId:e.projectId};Object(u.a)("/gateway-manage/delete-project",o).then(function(e){var o=e.data;if("0000"==o.code)return d.a.showmsg("删除成功","success"),void a.tableData.splice(t,1);p.a.errorMsg(o)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},getData:function(){var t=this,e={search:t.searchValue,pageSize:t.pageSize,pageNum:t.currentPage};Object(u.a)("/gateway-manage/page-project",e).then(function(e){var a=e.data;if("0000"==a.code)return t.tableData=a.result.result,void(t.totalCount=a.result.totalCount);p.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",21),this.getData()}},v={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 flex flex-space-between"},[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"})]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.editProgram}},[t._v("新建项目")])],1),t._v(" "),a("div",{staticClass:"table-wrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData}},[a("el-table-column",{attrs:{prop:"projectName",label:"项目名称","show-overflow-tooltip":""}}),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.projectDescribe)+"\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.toGroupList(e.$index,e.row)}}},[t._v("分组列表")]),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){t.handleEdit(e.$index,e.row)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){t.handleDel(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)])]),t._v(" "),a("new-program",{attrs:{editRow:t.editRow,showDialog:t.showDialog},on:{hideDialog:t.hideDialog}})],1)},staticRenderFns:[]};var b=a("VU/8")(D,v,!1,function(t){a("C/ih")},"data-v-b5e9cbcc",null);e.default=b.exports}});
\ No newline at end of file
webpackJsonp([14],{"C/ih":function(t,e){},"WE+5":function(t,e){},kAqA:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("319J"),r=a("mvHQ"),i=a.n(r),n=a("fZjL"),s=a.n(n),c=a("l46T"),l=a("Kkt8"),u=a("P9l9"),d=a("TUB1"),p=a("LlAa"),m={name:"new-env",props:{showDialog:{type:Boolean,default:!1},editRow:{type:Object,default:function(){return{projectId:"",projectName:"",projectDescribe:""}}}},components:{limitInput:c.a,limitTextarea:l.a},data:function(){return{customDialog:!1,formData:{projectId:"",projectName:"",projectDescribe:""},rules:{projectName:[{required:!0,message:"请输入项目名称",trigger:"blur"}],projectDescribe:[{required:!0,message:"请输入描述",trigger:"blur"}]}}},methods:{handleClose:function(t){this.$refs.programForm.resetFields(),t(),this.hideDialog()},customCancel:function(){this.$refs.programForm.resetFields(),this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.formData.projectName="",this.formData.projectDescribe="",this.$emit("hideDialog","")},customConfirm:function(t){var e=this;e.formData.projectName=e.formData.projectName?String(e.formData.projectName).replace(/\s+/g,""):"",e.formData.projectDescribe=e.formData.projectDescribe?String(e.formData.projectDescribe).replace(/\s+/g,""):"",e.$refs[t].validate(function(t){if(!t)return!1;e.postEditData()})},postEditData:function(){var t=this,e={projectId:t.formData.projectId,projectName:t.formData.projectName,projectDescribe:t.formData.projectDescribe};Object(u.a)(t.editRow.projectId?"/gateway-manage/update-project":"/gateway-manage/create-project",e).then(function(e){var a=e.data;if("0000"==a.code)return d.a.showmsg("保存成功","success"),void t.setData();p.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},setData:function(t){this.$emit("hideDialog",this.formData)}},watch:{showDialog:function(t,e){this.customDialog=t},editRow:function(t,e){s()(t).length&&(this.formData=JSON.parse(i()(t)))}},mounted:function(){this.customDialog=this.showDialog,s()(this.editRow).length&&(this.formData=JSON.parse(i()(this.editRow)))}},h={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"show",rawName:"v-show",value:t.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:t.formData.projectId?"编辑项目":"新建项目",visible:t.customDialog,width:"600px","before-close":t.handleClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"edit-dialog-body"},[a("el-form",{ref:"programForm",attrs:{model:t.formData,"label-width":"94px",rules:t.rules}},[a("el-form-item",{attrs:{label:"项目名称:",prop:"projectName"}},[a("limitInput",{attrs:{inputWidth:440,inputValue:t.formData.projectName,holder:"请输入项目名称",getByType:"word",maxLength:20},on:{"update:inputValue":function(e){t.$set(t.formData,"projectName",e)}}})],1),t._v(" "),a("el-form-item",{attrs:{label:"描述:"}},[a("limit-textarea",{attrs:{inputWidth:440,inputValue:t.formData.projectDescribe,holder:"请输入描述内容",getByType:"word",maxLength:100},on:{"update:inputValue":function(e){t.$set(t.formData,"projectDescribe",e)}}})],1)],1)],1),t._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{"padding-bottom":"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.customCancel}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.customConfirm("programForm")}}},[t._v(t._s(t.formData.projectId?"保 存":"新 建"))])],1)])],1)},staticRenderFns:[]};var f=a("VU/8")(m,h,!1,function(t){a("WE+5")},"data-v-194e1254",null).exports,g=a("jvWE"),D={name:"apiProgram",components:{navBread:o.a,newProgram:f},data:function(){return{navPath:[{name:"API管理",path:"/apiProgram"},{name:"项目列表",path:""}],searchValue:"",tableData:[],pageSize:20,currentPage:1,totalCount:0,showDialog:!1,editIndex:"",editRow:{}}},methods:{editProgram:function(){this.showDialog=!0},hideDialog:function(t){if(!t)return this.editIndex="",this.editRow={},this.showDialog=!1,!1;this.currentPage=1,this.getData(),this.editIndex="",this.editRow={},this.showDialog=!1,this.$forceUpdate()},searchData:Object(g.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()},toGroupList:function(t,e){this.$router.push("/apiProgramGroup?projectId="+e.projectId)},handleEdit:function(t,e){this.editIndex=t,this.editRow=e,this.showDialog=!0},handleDel:function(t,e){var a=this;a.$confirm("【"+e.projectName+"】下的接口将全部被删除,确认删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDelData(t,e)}).catch(function(){})},postDelData:function(t,e){var a=this,o={projectId:e.projectId};Object(u.a)("/gateway-manage/delete-project",o).then(function(e){var o=e.data;if("0000"==o.code)return d.a.showmsg("删除成功","success"),void a.tableData.splice(t,1);p.a.errorMsg(o)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},getData:function(){var t=this,e={search:t.searchValue,pageSize:t.pageSize,pageNum:t.currentPage};Object(u.a)("/gateway-manage/page-project",e).then(function(e){var a=e.data;if("0000"==a.code)return t.tableData=a.result.result,void(t.totalCount=a.result.totalCount);p.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",21),this.getData()}},v={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 flex flex-space-between"},[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"})]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.editProgram}},[t._v("新建项目")])],1),t._v(" "),a("div",{staticClass:"table-wrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData}},[a("el-table-column",{attrs:{prop:"projectName",label:"项目名称","show-overflow-tooltip":""}}),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.projectDescribe)+"\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.toGroupList(e.$index,e.row)}}},[t._v("分组列表")]),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){t.handleEdit(e.$index,e.row)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){t.handleDel(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)])]),t._v(" "),a("new-program",{attrs:{editRow:t.editRow,showDialog:t.showDialog},on:{hideDialog:t.hideDialog}})],1)},staticRenderFns:[]};var b=a("VU/8")(D,v,!1,function(t){a("C/ih")},"data-v-b5e9cbcc",null);e.default=b.exports}});
\ No newline at end of file
webpackJsonp([15],{"OBz+":function(e,t){},SGyq:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("319J"),o=r("mvHQ"),n=r.n(o),i=r("fZjL"),s=r.n(i),l=r("P9l9"),c=r("TUB1"),d=r("LlAa"),u={name:"error-code-edit",props:{showDialog:{type:Boolean,default:!1},editRow:{type:Object,default:function(){return{errorSettingId:"",interfaceName:"",projectAndGroup:"",errorCode:"",errorInfo:""}}}},data:function(){return{customDialog:!1,formData:{errorSettingId:"",interfaceName:"",projectAndGroup:"",errorCode:"",errorInfo:""},rules:{errorCode:[{required:!0,message:"请输入错误码",trigger:"blur"}],errorInfo:[{required:!0,message:"请输入错误消息",trigger:"blur"}]}}},methods:{handleClose:function(e){e(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.formData.errorCode="",this.formData.errorInfo="",this.$emit("hideDialog","")},customConfirm:function(e){var t=this;t.formData.errorCode=t.formData.errorCode?String(t.formData.errorCode).replace(/\s+/g,""):"",t.formData.errorInfo=t.formData.errorInfo?String(t.formData.errorInfo).replace(/\s+/g,""):"",t.$refs[e].validate(function(e){if(!e)return!1;t.postEditData()})},postEditData:function(){var e=this,t={errorSettingId:e.formData.errorSettingId,errorCode:e.formData.errorCode,errorInfo:e.formData.errorInfo};Object(l.b)(e.editRow.errorSettingId?"/gateway-manage/update-error-setting":"/gateway-manage/create-error-setting",t).then(function(t){var r=t.data;if("0000"==r.code)return c.a.showmsg("保存成功","success"),void e.setData();d.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},setData:function(e){var t=this;t.$emit("hideDialog",t.formData),t.$nextTick(function(){t.formData.errorCode="",t.formData.errorInfo=""})}},watch:{showDialog:function(e,t){this.customDialog=e},editRow:function(e,t){s()(e).length&&(this.formData=JSON.parse(n()(e)))}},mounted:function(){this.customDialog=this.showDialog,s()(this.editRow).length&&(this.formData=JSON.parse(n()(this.editRow)))}},f={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{directives:[{name:"show",rawName:"v-show",value:e.customDialog,expression:"customDialog"}]},[r("el-dialog",{staticClass:"edit-dialog",attrs:{title:"编辑",visible:e.customDialog,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.customDialog=t}}},[r("div",{staticClass:"edit-dialog-body"},[r("el-form",{ref:"errorCodeForm",attrs:{model:e.formData,"label-width":"94px",rules:e.rules}},[e.formData.interfaceName?r("el-form-item",{attrs:{label:"接口名称:"}},[e._v("\n "+e._s(e.formData.interfaceName)+"\n ")]):e._e(),e._v(" "),e.formData.projectAndGroup?r("el-form-item",{attrs:{label:"项目分组:"}},[e._v("\n "+e._s(e.formData.projectAndGroup)+"\n ")]):e._e(),e._v(" "),r("el-form-item",{attrs:{label:"错误码:",prop:"errorCode"}},[r("el-input",{model:{value:e.formData.errorCode,callback:function(t){e.$set(e.formData,"errorCode",t)},expression:"formData.errorCode"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"错误消息:",prop:"errorCode"}},[r("el-input",{model:{value:e.formData.errorInfo,callback:function(t){e.$set(e.formData,"errorInfo",t)},expression:"formData.errorInfo"}})],1)],1)],1),e._v(" "),r("div",{staticClass:"dialog-footer",staticStyle:{"padding-bottom":"10px"},attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.customCancel}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.customConfirm("errorCodeForm")}}},[e._v("保 存")])],1)])],1)},staticRenderFns:[]};var h=r("VU/8")(u,f,!1,function(e){r("SymU")},"data-v-20bc08a0",null).exports,m=r("jvWE"),g={name:"errorCode",components:{navBread:a.a,errorCodeEdit:h},data:function(){return{navPath:[{name:"错误码",path:""}],searchValue:"",tableData:[{errorSettingId:"1",interfaceName:"测试",projectAndGroup:"会员",errorCode:"404",errorInfo:"页面不存在"}],pageSize:20,currentPage:1,totalCount:0,showDialog:!1,editIndex:"",editRow:{}}},methods:{searchData:Object(m.a)(function(e){this.currentPage,this.getData()},500),clearInput:function(){this.currentPage=1,this.getData()},handleSizeChange:function(e){this.pageSize=e,this.getData()},handleCurrentChange:function(e){this.currentPage=e,this.getData()},handleEdit:function(e,t){this.editIndex=e,this.editRow=t,this.showDialog=!0},hideDialog:function(e){if(!e)return this.editIndex="",this.editRow={},this.showDialog=!1,!1;this.currentPage,this.getData(),this.editIndex="",this.editRow={},this.showDialog=!1,this.$forceUpdate()},handleDel:function(e,t){var r=this;r.$confirm("确认删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){r.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var r=this,a={errorSettingId:t.errorSettingId};Object(l.b)("/gateway-manage/delete-error-setting",a).then(function(e){var t=e.data;if("0000"==t.code)return c.a.showmsg("删除成功","success"),void r.getData();d.a.errorMsg(t)}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})},getData:function(){var e=this,t={search:e.searchValue,pageNum:e.currentPage,pageSize:e.pageSize};Object(l.b)("/gateway-manage/page-error-setting",t).then(function(t){var r=t.data;if("0000"==r.code)return e.tableData=r.result.result||[],void(e.totalCount=r.result.totalCount);d.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{$route:{handler:function(e,t){},deep:!0}},mounted:function(){this.$emit("showTab",6),this.getData()}},p={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"api-body-content border-box"},[r("div",{staticClass:"common-nav"},[r("nav-bread",{attrs:{navPath:e.navPath}})],1),e._v(" "),r("div",{staticClass:"api-body-main common-body-main border-box"},[r("div",{staticClass:"api-main-content border-box"},[r("div",{staticClass:"search-wrap m-b-20 flex flex-space-between"},[r("el-input",{staticClass:"w-320",attrs:{clearable:"",placeholder:"请输入接口名称/错误码"},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return r=t,e.searchData(r);var r}},model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}},[r("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.handleEdit}},[e._v("新建错误码")])],1),e._v(" "),r("div",{staticClass:"table-wrap"},[r("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[r("el-table-column",{attrs:{label:"错误码","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.errorCode)+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"错误消息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.errorInfo)+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"操作","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{attrs:{type:"text"},on:{click:function(r){e.handleEdit(t.$index,t.row)}}},[e._v("编辑")])]}}])})],1),e._v(" "),e.totalCount?r("div",{staticClass:"pagination text-right m-t-14"},[r("el-pagination",{attrs:{small:"","page-size":e.pageSize,"current-page":e.currentPage,layout:"prev, pager, next",total:e.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])]),e._v(" "),r("error-code-edit",{attrs:{editRow:e.editRow,showDialog:e.showDialog},on:{hideDialog:e.hideDialog}})],1)},staticRenderFns:[]};var v=r("VU/8")(g,p,!1,function(e){r("OBz+")},"data-v-475b60a0",null);t.default=v.exports},SymU:function(e,t){}});
\ No newline at end of file
webpackJsonp([16],{"OBz+":function(e,t){},SGyq:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("319J"),o=a("mvHQ"),n=a.n(o),i=a("fZjL"),s=a.n(i),l=a("P9l9"),c=a("TUB1"),d=a("LlAa"),u={name:"error-code-edit",props:{showDialog:{type:Boolean,default:!1},editRow:{type:Object,default:function(){return{errorSettingId:"",interfaceName:"",projectAndGroup:"",errorCode:"",errorInfo:""}}}},data:function(){return{customDialog:!1,formData:{errorSettingId:"",interfaceName:"",projectAndGroup:"",errorCode:"",errorInfo:""},rules:{errorCode:[{required:!0,message:"请输入错误码",trigger:"blur"}],errorInfo:[{required:!0,message:"请输入错误消息",trigger:"blur"}]}}},methods:{handleClose:function(e){e(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.formData.errorCode="",this.formData.errorInfo="",this.$emit("hideDialog","")},customConfirm:function(e){var t=this;t.formData.errorCode=t.formData.errorCode?String(t.formData.errorCode).replace(/\s+/g,""):"",t.formData.errorInfo=t.formData.errorInfo?String(t.formData.errorInfo).replace(/\s+/g,""):"",t.$refs[e].validate(function(e){if(!e)return!1;t.postEditData()})},postEditData:function(){var e=this,t={errorSettingId:e.formData.errorSettingId,errorCode:e.formData.errorCode,errorInfo:e.formData.errorInfo};Object(l.b)(e.editRow.errorSettingId?"/gateway-manage/update-error-setting":"/gateway-manage/create-error-setting",t).then(function(t){var a=t.data;if("0000"==a.code)return c.a.showmsg("保存成功","success"),void e.setData();d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},setData:function(e){this.$emit("hideDialog",this.formData)}},watch:{showDialog:function(e,t){this.customDialog=e},editRow:function(e,t){s()(e).length&&(this.formData=JSON.parse(n()(e)))}},mounted:function(){this.customDialog=this.showDialog,s()(this.editRow).length&&(this.formData=JSON.parse(n()(this.editRow)))}},f={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:"编辑",visible:e.customDialog,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"edit-dialog-body"},[a("el-form",{ref:"errorCodeForm",attrs:{model:e.formData,"label-width":"94px",rules:e.rules}},[e.formData.interfaceName?a("el-form-item",{attrs:{label:"接口名称:"}},[e._v("\n "+e._s(e.formData.interfaceName)+"\n ")]):e._e(),e._v(" "),e.formData.projectAndGroup?a("el-form-item",{attrs:{label:"项目分组:"}},[e._v("\n "+e._s(e.formData.projectAndGroup)+"\n ")]):e._e(),e._v(" "),a("el-form-item",{attrs:{label:"错误码:",prop:"errorCode"}},[a("el-input",{model:{value:e.formData.errorCode,callback:function(t){e.$set(e.formData,"errorCode",t)},expression:"formData.errorCode"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"错误消息:",prop:"errorCode"}},[a("el-input",{model:{value:e.formData.errorInfo,callback:function(t){e.$set(e.formData,"errorInfo",t)},expression:"formData.errorInfo"}})],1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",staticStyle:{"padding-bottom":"10px"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.customCancel}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.customConfirm("errorCodeForm")}}},[e._v("保 存")])],1)])],1)},staticRenderFns:[]};var h=a("VU/8")(u,f,!1,function(e){a("sYuU")},"data-v-014c17bb",null).exports,m=a("jvWE"),g={name:"errorCode",components:{navBread:r.a,errorCodeEdit:h},data:function(){return{navPath:[{name:"错误码",path:""}],searchValue:"",tableData:[{errorSettingId:"1",interfaceName:"测试",projectAndGroup:"会员",errorCode:"404",errorInfo:"页面不存在"}],pageSize:20,currentPage:1,totalCount:0,showDialog:!1,editIndex:"",editRow:{}}},methods:{searchData:Object(m.a)(function(e){this.currentPage,this.getData()},500),clearInput:function(){this.currentPage=1,this.getData()},handleSizeChange:function(e){this.pageSize=e,this.getData()},handleCurrentChange:function(e){this.currentPage=e,this.getData()},handleEdit:function(e,t){this.editIndex=e,this.editRow=t,this.showDialog=!0},hideDialog:function(e){if(!e)return this.editIndex="",this.editRow={},this.showDialog=!1,!1;this.currentPage,this.getData(),this.editIndex="",this.editRow={},this.showDialog=!1,this.$forceUpdate()},handleDel:function(e,t){var a=this;a.$confirm("确认删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,r={errorSettingId:t.errorSettingId};Object(l.b)("/gateway-manage/delete-error-setting",r).then(function(e){var t=e.data;if("0000"==t.code)return c.a.showmsg("删除成功","success"),void a.getData();d.a.errorMsg(t)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},getData:function(){var e=this,t={search:e.searchValue,pageNum:e.currentPage,pageSize:e.pageSize};Object(l.b)("/gateway-manage/page-error-setting",t).then(function(t){var a=t.data;if("0000"==a.code)return e.tableData=a.result.result||[],void(e.totalCount=a.result.totalCount);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",6),this.getData()}},p={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:"search-wrap m-b-20 flex flex-space-between"},[a("el-input",{staticClass:"w-320",attrs:{clearable:"",placeholder:"请输入接口名称/错误码"},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.searchData(a);var a}},model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.handleEdit}},[e._v("新建错误码")])],1),e._v(" "),a("div",{staticClass:"table-wrap"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{label:"错误码","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.errorCode)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"错误消息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.errorInfo)+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){e.handleEdit(t.$index,t.row)}}},[e._v("编辑")])]}}])})],1),e._v(" "),e.totalCount?a("div",{staticClass:"pagination text-right m-t-14"},[a("el-pagination",{attrs:{small:"","page-size":e.pageSize,"current-page":e.currentPage,layout:"prev, pager, next",total:e.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])]),e._v(" "),a("error-code-edit",{attrs:{editRow:e.editRow,showDialog:e.showDialog},on:{hideDialog:e.hideDialog}})],1)},staticRenderFns:[]};var v=a("VU/8")(g,p,!1,function(e){a("OBz+")},"data-v-475b60a0",null);t.default=v.exports},sYuU:function(e,t){}});
\ No newline at end of file
webpackJsonp([15],{AejC:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var e=i("Minx"),a=i.n(e),n={name:"page404",data:function(){return{img_404:a.a}},computed:{message:function(){return"抱歉,你访问的页面不存在"}},mounted:function(){}},r={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_404,alt:"404"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var c=i("VU/8")(n,r,!1,function(t){i("AsY3")},"data-v-18a2f51c",null);s.default=c.exports},AsY3:function(t,s){},Minx:function(t,s,i){t.exports=i.p+"static/img/error_404.bf58747.svg"}});
\ No newline at end of file
webpackJsonp([16],{AejC:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var e=i("Minx"),a=i.n(e),n={name:"page404",data:function(){return{img_404:a.a}},computed:{message:function(){return"抱歉,你访问的页面不存在"}},mounted:function(){}},r={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_404,alt:"404"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var c=i("VU/8")(n,r,!1,function(t){i("AsY3")},"data-v-18a2f51c",null);s.default=c.exports},AsY3:function(t,s){},Minx:function(t,s,i){t.exports=i.p+"static/img/error_404.bf58747.svg"}});
\ No newline at end of file
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,o){for(var f,d,i,u=0,b=[];u<r.length;u++)d=r[u],t[d]&&b.push(t[d][0]),t[d]=0;for(f in c)Object.prototype.hasOwnProperty.call(c,f)&&(e[f]=c[f]);for(n&&n(r,c,o);b.length;)b.shift()();if(o)for(u=0;u<o.length;u++)i=a(a.s=o[u]);return i};var r={},t={23: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 c=document.getElementsByTagName("head")[0],o=document.createElement("script");o.type="text/javascript",o.charset="utf-8",o.async=!0,o.timeout=12e4,a.nc&&o.setAttribute("nonce",a.nc),o.src=a.p+"static/js/"+e+"."+{0:"ec5db7aec77791a6ab55",1:"0ebe3ead93207dc78a78",2:"2c3e3f3c3389e6ef348e",3:"a8d420228e979157d71a",4:"6ee5676b60e1cd6d55bf",5:"61455822347fda4022ec",6:"7a4f7f41cea5405e209f",7:"b2a85a42ddd430235a63",8:"6c8d2d1200312f7a028e",9:"9c96ae683c51b04359d0",10:"d9430de1e22c0094bff4",11:"aeac1d90d918d5d5c082",12:"1485471e961ae619c2aa",13:"3f70345d9260ae04ca59",14:"9ff0d273db88566fdb79",15:"e780a9302ed89095559c",16:"3e56a89d3e873e7fb60f",17:"d9cbca5f2fdb5b14e1b4",18:"37321ffca9347a60b988",19:"03cbfddf207d95b51065",20:"0f4e26c8c5cbbfaffbaa"}[e]+".js";var f=setTimeout(d,12e4);function d(){o.onerror=o.onload=null,clearTimeout(f);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return o.onerror=o.onload=d,c.appendChild(o),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
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,o){for(var f,d,i,u=0,b=[];u<r.length;u++)d=r[u],t[d]&&b.push(t[d][0]),t[d]=0;for(f in c)Object.prototype.hasOwnProperty.call(c,f)&&(e[f]=c[f]);for(n&&n(r,c,o);b.length;)b.shift()();if(o)for(u=0;u<o.length;u++)i=a(a.s=o[u]);return i};var r={},t={23: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 c=document.getElementsByTagName("head")[0],o=document.createElement("script");o.type="text/javascript",o.charset="utf-8",o.async=!0,o.timeout=12e4,a.nc&&o.setAttribute("nonce",a.nc),o.src=a.p+"static/js/"+e+"."+{0:"ec5db7aec77791a6ab55",1:"0ebe3ead93207dc78a78",2:"2c3e3f3c3389e6ef348e",3:"a8d420228e979157d71a",4:"6ee5676b60e1cd6d55bf",5:"61455822347fda4022ec",6:"7a4f7f41cea5405e209f",7:"b2a85a42ddd430235a63",8:"81460c8c66d06cfea732",9:"9c96ae683c51b04359d0",10:"00b5cb52af41eef87b8e",11:"32590d64e6a2596dc470",12:"1485471e961ae619c2aa",13:"3f70345d9260ae04ca59",14:"8ac6c7a502d766777382",15:"017813cd47956e42ab00",16:"67a2914524ec26eb9128",17:"d9cbca5f2fdb5b14e1b4",18:"37321ffca9347a60b988",19:"03cbfddf207d95b51065",20:"0f4e26c8c5cbbfaffbaa"}[e]+".js";var f=setTimeout(d,12e4);function d(){o.onerror=o.onload=null,clearTimeout(f);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return o.onerror=o.onload=d,c.appendChild(o),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
......@@ -156,9 +156,11 @@ export default {
setData(list) {
const that = this;
that.$emit('hideDialog', that.formData);
/* that.$nextTick(() => {
that.formData.classifyName = '';
}); */
that.$nextTick(() => {
that.formData.sceneName = '';
that.formData.sceneCode = '';
that.formData.domainUrl = '';
});
}
},
watch: {
......
......@@ -148,9 +148,10 @@ export default {
setData(list) {
const that = this;
that.$emit('hideDialog', that.formData);
/* that.$nextTick(() => {
that.formData.classifyName = '';
}); */
that.$nextTick(() => {
that.formData.errorCode = '';
that.formData.errorInfo = '';
});
}
},
watch: {
......
......@@ -147,9 +147,10 @@ export default {
setData(list) {
const that = this;
that.$emit('hideDialog', that.formData);
/* that.$nextTick(() => {
that.formData.classifyName = '';
}); */
that.$nextTick(() => {
that.formData.groupName = '';
that.formData.remark = '';
});
}
},
watch: {
......
......@@ -146,9 +146,10 @@ export default {
setData(list) {
const that = this;
that.$emit('hideDialog', that.formData);
/* that.$nextTick(() => {
that.formData.classifyName = '';
}); */
that.$nextTick(() => {
that.formData.projectName = '';
that.formData.projectDescribe = '';
});
}
},
watch: {
......
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