Commit 633a5c7d by 无尘

fix: 修改项目接口

parent 68ed8219
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>限流控制管理平台</title><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.28.css><link href=./static/css/app.70b71ec5d6637e1fe9d10eb42f273533.css rel=stylesheet></head><body style="min-width: 1400px;" class=damolish><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 src=//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js></script><script src=//web-1251519181.file.myqcloud.com/components/pagination.1.0.8.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.0ac0be69ec69fa4aecf1.js></script><script type=text/javascript src=./static/js/vendor.974b345fdbbde7ef3fff.js></script><script type=text/javascript src=./static/js/app.4d09775eda1c4bce7dc3.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>限流控制管理平台</title><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.28.css><link href=./static/css/app.0800f03e0fc8c14c44df0d7005b9bc56.css rel=stylesheet></head><body style="min-width: 1400px;" class=damolish><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 src=//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js></script><script src=//web-1251519181.file.myqcloud.com/components/pagination.1.0.8.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.1a83417a480ecce6c1c0.js></script><script type=text/javascript src=./static/js/vendor.974b345fdbbde7ef3fff.js></script><script type=text/javascript src=./static/js/app.2a1a160e44c2cc674b01.js></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([10],{KNtz:function(e,t){},"aZ+o":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=r("mvHQ"),a=r.n(s),i=r("3E4D"),n=r("Ch4/"),o=r("PI0u"),l=r("P9l9"),u={name:"unreview",data:function(){return{wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",auditName:localStorage.getItem("userInfos")&&JSON.parse(localStorage.getItem("userInfos")).staffDTO?JSON.parse(localStorage.getItem("userInfos")).staffDTO.staffName:"",filterValue:"",filterBrand:"",brandOptions:[],searchValue:"",loading:!1,tableData:[],options:[],currentPage:1,pageSize:20,total:0,showAdd:!1,ruleForm:{rateEnterpriseId:"",eids:[],count:""},rules:{eids:[{type:"array",required:!0,message:"请选择企业",trigger:"blur"}],count:[{required:!0,message:"请输入",trigger:"blur"}]}}},methods:{toCancel:function(){this.closeText(),this.$refs.ruleForm.resetFields()},handleClose:function(e){this.closeText(),this.$refs.ruleForm.resetFields()},submitForm:Object(o.a)(function(e){var t=this;t.$refs[e].validate(function(e){e&&t.postSave()})},300),postSave:function(){var e=this,t={rateId:e.$route.query.rateId,rateEnterpriseId:e.ruleForm.rateEnterpriseId,eids:e.ruleForm.rateEnterpriseId?"":e.ruleForm.eids.join(","),count:e.ruleForm.count};Object(l.b)(e.ruleForm.rateEnterpriseId?"/redis-limiter-web/redislimiter/save-rate-enterprise-single":"/redis-limiter-web/redislimiter/save-rate-enterprise",t).then(function(t){var r=t.data;1==r.errorCode?(i.a.showmsg("操作成功","success"),e.$refs.ruleForm.resetFields(),e.closeText()):n.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleAdd:function(e){e&&(e.eids=[e.enterpriseId],this.ruleForm=JSON.parse(a()(e))),this.getEntepriseList(),this.showAdd=!0},closeText:function(){this.ruleForm={rateEnterpriseId:"",eids:[],count:""},this.showAdd=!1,this.currentPage=1,this.getTableList()},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handlDel:function(e,t){var r=this;r.$confirm("确认是否删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){r.postApprove(t)}).catch(function(){})},postApprove:function(e){var t=this,r={rateEnterpriseId:e.rateEnterpriseId};Object(l.b)("/redis-limiter-web/redislimiter/del-rate-enterprise",r).then(function(e){var r=e.data;if(1==r.errorCode)return i.a.showmsg("操作成功","success"),t.currentPage=1,void t.getTableList();n.a.errorMsg(r)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getTableList:function(e){var t=this;e&&(t.currentPage=1),t.loading=!0;var r={rateId:t.$route.query.rateId,pageNum:t.currentPage,pageSize:t.pageSize};Object(l.a)("/redis-limiter-web/redislimiter/list-rate-enterprise",r).then(function(e){var r=e.data;t.loading=!1,1!=r.errorCode?n.a.errorMsg(r):t.tableData=r.result||[]}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})},getEntepriseList:function(){var e=this;Object(l.a)("/redis-limiter-web/redislimiter/list-enterprise",{}).then(function(t){var r=t.data;e.loading=!1,1!=r.errorCode?n.a.errorMsg(r):e.options=r.result||[]}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.$emit("showTab",1),this.getTableList()},components:{}},c={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"unreview-wrap common-set-wrap"},[r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 126px)"}},[r("div",{staticClass:"text-right m-b-20"},[r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleAdd("")}}},[e._v("新增企业关系")])],1),e._v(" "),r("div",{staticClass:"reviewed-body-content"},[r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[r("el-table-column",{attrs:{label:"企业名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.enterpriseName||"--")+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"count","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.count||"--")+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.handleAdd(t.row)}}},[e._v("编辑")]),e._v(" "),r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.handlDel(t.$index,t.row)}}},[e._v("删除")])]}}])})],1)],1)])]),e._v(" "),r("el-dialog",{attrs:{title:e.ruleForm.rateEnterpriseId?"编辑企业关系":"新建企业关系",visible:e.showAdd,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.showAdd=t}}},[r("div",{},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"选择企业",prop:"eids"}},[r("el-select",{staticClass:"w-220",attrs:{disabled:!!e.ruleForm.rateEnterpriseId,multiple:"",placeholder:"请选择"},model:{value:e.ruleForm.eids,callback:function(t){e.$set(e.ruleForm,"eids",t)},expression:"ruleForm.eids"}},e._l(e.options,function(e){return r("el-option",{key:e.enterpriseId,attrs:{label:e.enterpriseName,value:e.enterpriseId}})}),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"count",prop:"count"}},[r("el-input-number",{staticClass:"w-220",attrs:{placeholder:"请输入","controls-position":"right",min:1,max:9e7},model:{value:e.ruleForm.count,callback:function(t){e.$set(e.ruleForm,"count",t)},expression:"ruleForm.count"}})],1)],1)],1),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.toCancel}},[e._v("取消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("确定")])],1)])],1)},staticRenderFns:[]};var d=r("VU/8")(u,c,!1,function(e){r("KNtz")},"data-v-0b8cb5c6",null);t.default=d.exports}});
\ No newline at end of file
webpackJsonp([10],{SuWd:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o("mvHQ"),l=o.n(r),a=o("3E4D"),s=o("Ch4/"),n=o("PI0u"),i=o("P9l9"),u={name:"unreview",data:function(){return{wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",auditName:localStorage.getItem("userInfos")&&JSON.parse(localStorage.getItem("userInfos")).staffDTO?JSON.parse(localStorage.getItem("userInfos")).staffDTO.staffName:"",filterValue:"",filterBrand:"",brandOptions:[],searchValue:"",loading:!1,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,showAdd:!1,ruleForm:{moudleId:"",moudleName:"",moudleCode:""},rules:{moudleName:[{required:!0,message:"请输入模块名称",trigger:"blur"}],moudleCode:[{required:!0,message:"请输入code",trigger:"blur"}]}}},methods:{toNext:function(e){this.$router.push("/second?moudleId="+e.moudleId)},toCancel:function(){this.closeText(),this.$refs.ruleForm.resetFields()},handleClose:function(e){this.closeText(),this.$refs.ruleForm.resetFields()},submitForm:Object(n.a)(function(e){var t=this;t.$refs[e].validate(function(e){e&&t.postSave()})},300),postSave:function(){var e=this,t={moudleId:e.ruleForm.moudleId,moudleName:e.ruleForm.moudleName,moudleCode:e.ruleForm.moudleCode};Object(i.b)("/redis-limiter-web/redislimiter/save-module",t).then(function(t){var o=t.data;1==o.errorCode?(a.a.showmsg("操作成功","success"),e.$refs.ruleForm.resetFields(),e.closeText()):s.a.errorMsg(o)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleAdd:function(e){e&&(this.ruleForm=JSON.parse(l()(e))),this.showAdd=!0},closeText:function(){this.ruleForm={id:"",name:"",code:""},this.showAdd=!1,this.currentPage=1,this.getTableList()},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handlDel:function(e,t){var o=this;o.$confirm("确认是否删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){o.postApprove(t)}).catch(function(){})},postApprove:function(e){var t=this,o={moudleId:e.moudleId};Object(i.b)("/redis-limiter-web/redislimiter/del-module",o).then(function(e){var o=e.data;if(1==o.errorCode)return a.a.showmsg("操作成功","success"),t.currentPage=1,void t.getTableList();s.a.errorMsg(o)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getTableList:function(e){var t=this;e&&(t.currentPage=1),t.loading=!0;var o={pageNum:t.currentPage,pageSize:t.pageSize};Object(i.a)("/redis-limiter-web/redislimiter/list-module",o).then(function(e){var o=e.data;t.loading=!1,1!=o.errorCode?s.a.errorMsg(o):t.tableData=o.result||[]}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.$emit("showTab",1),this.getTableList()},components:{}},d={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"unreview-wrap common-set-wrap"},[o("div",{staticClass:"right-content"},[o("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 126px)"}},[o("div",{staticClass:"text-right m-b-20"},[o("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleAdd("")}}},[e._v("新增模块")])],1),e._v(" "),o("div",{staticClass:"reviewed-body-content"},[o("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[o("el-table-column",{attrs:{label:"模块名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.moudleName||"--")+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"Code","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.moudleCode||"--")+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-button",{attrs:{type:"text"},on:{click:function(o){return e.toNext(t.row)}}},[e._v("查看详情")]),e._v(" "),o("el-button",{attrs:{type:"text"},on:{click:function(o){return e.handleAdd(t.row)}}},[e._v("编辑")]),e._v(" "),o("el-button",{attrs:{type:"text"},on:{click:function(o){return e.handlDel(t.$index,t.row)}}},[e._v("删除")])]}}])})],1)],1)])]),e._v(" "),o("el-dialog",{attrs:{title:e.ruleForm.moudleId?"编辑模块":"新建模块",visible:e.showAdd,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.showAdd=t}}},[o("div",{},[o("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[o("el-form-item",{attrs:{label:"模块名称",prop:"moudleName"}},[o("el-input",{attrs:{placeholder:"请输入模块名称"},model:{value:e.ruleForm.moudleName,callback:function(t){e.$set(e.ruleForm,"moudleName",t)},expression:"ruleForm.moudleName"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"Code",prop:"moudleCode"}},[o("el-input",{attrs:{placeholder:"请输入code"},model:{value:e.ruleForm.moudleCode,callback:function(t){e.$set(e.ruleForm,"moudleCode",t)},expression:"ruleForm.moudleCode"}})],1)],1)],1),e._v(" "),o("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:e.toCancel}},[e._v("取消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("确定")])],1)])],1)},staticRenderFns:[]};var c=o("VU/8")(u,d,!1,function(e){o("vP5X")},"data-v-cc4e57ba",null);t.default=c.exports},vP5X:function(e,t){}});
\ No newline at end of file
webpackJsonp([4],{DDKZ:function(e,t){},Sf53:function(e,t){},VTBp:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("mvHQ"),n=r.n(a),o=r("bzW+"),s=r("3E4D"),i=r("Ch4/"),l=r("PI0u"),u=r("P9l9"),d={name:"unreview",components:{navCrumb:o.a},data:function(){return{wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",auditName:localStorage.getItem("userInfos")&&JSON.parse(localStorage.getItem("userInfos")).staffDTO?JSON.parse(localStorage.getItem("userInfos")).staffDTO.staffName:"",navpath:[{name:"模块",path:"/index"},{name:"限流",path:""}],loading:!1,tableData:[],options:[{value:"选项1",label:"黄金糕"}],currentPage:1,pageSize:20,total:0,showAdd:!1,ruleForm:{rateId:"",rateName:"",rateCode:""},rules:{rateName:[{required:!0,message:"请输入限流名称",trigger:"blur"}],rateCode:[{required:!0,message:"请输入限流code",trigger:"blur"}]}}},methods:{toNext:function(e){this.$router.push("/third?rateId="+e.rateId+"&moudleId="+this.$route.query.moudleId)},toCancel:function(){this.closeText(),this.$refs.ruleForm.resetFields()},handleClose:function(e){this.closeText(),this.$refs.ruleForm.resetFields()},submitForm:Object(l.a)(function(e){var t=this;t.$refs[e].validate(function(e){e&&t.postSave()})},300),postSave:function(){var e=this,t={rateId:e.ruleForm.rateId,rateName:e.ruleForm.rateName,rateCode:e.ruleForm.rateCode,moudleId:e.$route.query.moudleId};Object(u.b)("/redis-limiter-web/redislimiter/save-rate",t).then(function(t){var r=t.data;1==r.errorCode?(s.a.showmsg("操作成功","success"),e.$refs.ruleForm.resetFields(),e.closeText()):i.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleAdd:function(e){e&&(this.ruleForm=JSON.parse(n()(e))),this.showAdd=!0},closeText:function(){this.ruleForm={rateId:"",rateName:"",rateCode:""},this.showAdd=!1,this.currentPage=1,this.getTableList()},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handlDel:function(e,t){var r=this;r.$confirm("确认是否删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){r.postApprove(t)}).catch(function(){})},postApprove:function(e){var t=this,r={rateId:e.rateId};Object(u.b)("/redis-limiter-web/redislimiter/del-rate",r).then(function(e){var r=e.data;if(1==r.errorCode)return s.a.showmsg("操作成功","success"),t.currentPage=1,void t.getTableList();i.a.errorMsg(r)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getTableList:function(e){var t=this;e&&(t.currentPage=1),t.loading=!0;var r={moudleId:t.$route.query.moudleId,pageNum:t.currentPage,pageSize:t.pageSize};Object(u.a)("/redis-limiter-web/redislimiter/list-rate",r).then(function(e){var r=e.data;t.loading=!1,1!=r.errorCode?i.a.errorMsg(r):t.tableData=r.result||[]}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.$emit("showTab",1),this.getTableList()}},c={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"unreview-wrap common-set-wrap"},[r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 126px)"}},[r("div",{staticClass:"m-b-20"},[r("nav-crumb",{attrs:{navpath:e.navpath}})],1),e._v(" "),r("div",{staticClass:"text-right m-b-20"},[r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleAdd("")}}},[e._v("新增限流")])],1),e._v(" "),r("div",{staticClass:"reviewed-body-content"},[r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[r("el-table-column",{attrs:{label:"限流名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.rateName||"--")+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"Code","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.rateCode||"--")+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.toNext(t.row)}}},[e._v("查看详情")]),e._v(" "),r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.handleAdd(t.row)}}},[e._v("编辑")]),e._v(" "),r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.handlDel(t.$index,t.row)}}},[e._v("删除")])]}}])})],1)],1)])]),e._v(" "),r("el-dialog",{attrs:{title:e.ruleForm.rateId?"编辑限流":"新建限流",visible:e.showAdd,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.showAdd=t}}},[r("div",{},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"限流名称",prop:"rateName"}},[r("el-input",{attrs:{placeholder:"请输入限流"},model:{value:e.ruleForm.rateName,callback:function(t){e.$set(e.ruleForm,"rateName",t)},expression:"ruleForm.rateName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"Code",prop:"rateCode"}},[r("el-input",{attrs:{placeholder:"请输入code"},model:{value:e.ruleForm.rateCode,callback:function(t){e.$set(e.ruleForm,"rateCode",t)},expression:"ruleForm.rateCode"}})],1)],1)],1),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.toCancel}},[e._v("取消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("确定")])],1)])],1)},staticRenderFns:[]};var m=r("VU/8")(d,c,!1,function(e){r("Sf53")},"data-v-d5a1a898",null);t.default=m.exports},"bzW+":function(e,t,r){"use strict";var a=r("P9l9"),n=r("Ch4/"),o={name:"navpath",data:function(){return{projectName:"haoban",activeBrand:"",brandListData:[]}},props:{navpath:{type:Array,default:function(){return[]}},slotFlag:{type:Boolean,default:!1},navtip:{type:Boolean,default:!1},subNavText:{type:String,default:""}},watch:{brandId:function(e,t){this.getBrandData()}},methods:{changeRoute:function(e,t){t?window.location.href=e:this.$router.push(e)},changeSelect:function(e){var t="";this.brandListData.forEach(function(r){r.enterpriseId==e&&(t=r.enterpriseId)}),this.$emit("selectBrandId",e,t)},getBrandData:function(){var e=this;Object(a.b)("/haoban-manage3-web/wx-enterprise-list",{}).then(function(t){var r=t.data;if(1!=r.errorCode)n.a.errorMsg(r);else if(r.result&&r.result.length){if(e.brandListData=r.result,e.$route.query.enterpriseId)return e.activeBrand=e.$route.query.enterpriseId,e.$emit("selectBrandId",e.$route.query.enterpriseId),!1;e.activeBrand=e.brandListData[0].enterpriseId,e.$emit("selectBrandId",e.brandListData[0].enterpriseId,e.brandListData[0].enterpriseId)}}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){}},s={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"navwrap border-box flex flex-space-between"},[r("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[e._l(e.navpath,function(t,a){return[t.path?[r("el-breadcrumb-item",{key:"nav"+a,attrs:{to:{path:t.path}},on:{click:function(r){return e.changeRoute(t.path,t.relocation)}}},[r("span",{staticClass:"el-breadcrumb__inner is-link",on:{click:function(r){return e.changeRoute(t.path,t.relocation)}}},[e._v("\n "+e._s(t.name)+"\n ")])])]:[r("el-breadcrumb-item",{key:"nav"+a},[e._v(e._s(t.name))])]]})],2),e._v(" "),r("div",{staticClass:"my-customer-brand"})],1)},staticRenderFns:[]};var i=r("VU/8")(o,s,!1,function(e){r("DDKZ")},"data-v-079a362d",null);t.a=i.exports}});
\ No newline at end of file
webpackJsonp([5],{CoBO:function(e,t){},DDKZ:function(e,t){},"aZ+o":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("mvHQ"),n=r.n(a),s=r("bzW+"),i=r("3E4D"),o=r("Ch4/"),l=r("PI0u"),u=r("P9l9"),c={name:"unreview",components:{navCrumb:s.a},data:function(){return{wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",auditName:localStorage.getItem("userInfos")&&JSON.parse(localStorage.getItem("userInfos")).staffDTO?JSON.parse(localStorage.getItem("userInfos")).staffDTO.staffName:"",navpath:[{name:"模块",path:"/index"},{name:"限流",path:"/second?moudleId="+this.$route.query.moudleId},{name:"企业关系",path:""}],loading:!1,tableData:[],options:[],currentPage:1,pageSize:20,total:0,showAdd:!1,ruleForm:{rateEnterpriseId:"",eids:[],count:""},rules:{eids:[{type:"array",required:!0,message:"请选择企业",trigger:"blur"}],count:[{required:!0,message:"请输入",trigger:"blur"}]}}},methods:{toCancel:function(){this.closeText(),this.$refs.ruleForm.resetFields()},handleClose:function(e){this.closeText(),this.$refs.ruleForm.resetFields()},submitForm:Object(l.a)(function(e){var t=this;t.$refs[e].validate(function(e){e&&t.postSave()})},300),postSave:function(){var e=this,t={rateId:e.$route.query.rateId,rateEnterpriseId:e.ruleForm.rateEnterpriseId,eids:e.ruleForm.rateEnterpriseId?"":e.ruleForm.eids.join(","),count:e.ruleForm.count};Object(u.b)(e.ruleForm.rateEnterpriseId?"/redis-limiter-web/redislimiter/save-rate-enterprise-single":"/redis-limiter-web/redislimiter/save-rate-enterprise",t).then(function(t){var r=t.data;1==r.errorCode?(i.a.showmsg("操作成功","success"),e.$refs.ruleForm.resetFields(),e.closeText()):o.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleAdd:function(e){e&&(e.eids=[e.enterpriseId],this.ruleForm=JSON.parse(n()(e))),this.getEntepriseList(),this.showAdd=!0},closeText:function(){this.ruleForm={rateEnterpriseId:"",eids:[],count:""},this.showAdd=!1,this.currentPage=1,this.getTableList()},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handlDel:function(e,t){var r=this;r.$confirm("确认是否删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){r.postApprove(t)}).catch(function(){})},postApprove:function(e){var t=this,r={rateEnterpriseId:e.rateEnterpriseId};Object(u.b)("/redis-limiter-web/redislimiter/del-rate-enterprise",r).then(function(e){var r=e.data;if(1==r.errorCode)return i.a.showmsg("操作成功","success"),t.currentPage=1,void t.getTableList();o.a.errorMsg(r)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getTableList:function(e){var t=this;e&&(t.currentPage=1),t.loading=!0;var r={rateId:t.$route.query.rateId,pageNum:t.currentPage,pageSize:t.pageSize};Object(u.a)("/redis-limiter-web/redislimiter/list-rate-enterprise",r).then(function(e){var r=e.data;t.loading=!1,1!=r.errorCode?o.a.errorMsg(r):t.tableData=r.result||[]}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})},getEntepriseList:function(){var e=this;Object(u.a)("/redis-limiter-web/redislimiter/list-enterprise",{}).then(function(t){var r=t.data;e.loading=!1,1!=r.errorCode?o.a.errorMsg(r):e.options=r.result||[]}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.$emit("showTab",1),this.getTableList()}},d={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"unreview-wrap common-set-wrap"},[r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 126px)"}},[r("div",{staticClass:"m-b-20"},[r("nav-crumb",{attrs:{navpath:e.navpath}})],1),e._v(" "),r("div",{staticClass:"text-right m-b-20"},[r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleAdd("")}}},[e._v("新增企业关系")])],1),e._v(" "),r("div",{staticClass:"reviewed-body-content"},[r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[r("el-table-column",{attrs:{label:"企业名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.enterpriseName||"--")+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"count","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.count||"--")+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.handleAdd(t.row)}}},[e._v("编辑")]),e._v(" "),r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.handlDel(t.$index,t.row)}}},[e._v("删除")])]}}])})],1)],1)])]),e._v(" "),r("el-dialog",{attrs:{title:e.ruleForm.rateEnterpriseId?"编辑企业关系":"新建企业关系",visible:e.showAdd,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.showAdd=t}}},[r("div",{},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"选择企业",prop:"eids"}},[r("el-select",{staticClass:"w-220",attrs:{disabled:!!e.ruleForm.rateEnterpriseId,multiple:"",placeholder:"请选择"},model:{value:e.ruleForm.eids,callback:function(t){e.$set(e.ruleForm,"eids",t)},expression:"ruleForm.eids"}},e._l(e.options,function(e){return r("el-option",{key:e.enterpriseId,attrs:{label:e.enterpriseName,value:e.enterpriseId}})}),1)],1),e._v(" "),r("el-form-item",{attrs:{label:"count",prop:"count"}},[r("el-input-number",{staticClass:"w-220",attrs:{placeholder:"请输入","controls-position":"right",min:1,max:9e7},model:{value:e.ruleForm.count,callback:function(t){e.$set(e.ruleForm,"count",t)},expression:"ruleForm.count"}})],1)],1)],1),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.toCancel}},[e._v("取消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("确定")])],1)])],1)},staticRenderFns:[]};var m=r("VU/8")(c,d,!1,function(e){r("CoBO")},"data-v-73ea9282",null);t.default=m.exports},"bzW+":function(e,t,r){"use strict";var a=r("P9l9"),n=r("Ch4/"),s={name:"navpath",data:function(){return{projectName:"haoban",activeBrand:"",brandListData:[]}},props:{navpath:{type:Array,default:function(){return[]}},slotFlag:{type:Boolean,default:!1},navtip:{type:Boolean,default:!1},subNavText:{type:String,default:""}},watch:{brandId:function(e,t){this.getBrandData()}},methods:{changeRoute:function(e,t){t?window.location.href=e:this.$router.push(e)},changeSelect:function(e){var t="";this.brandListData.forEach(function(r){r.enterpriseId==e&&(t=r.enterpriseId)}),this.$emit("selectBrandId",e,t)},getBrandData:function(){var e=this;Object(a.b)("/haoban-manage3-web/wx-enterprise-list",{}).then(function(t){var r=t.data;if(1!=r.errorCode)n.a.errorMsg(r);else if(r.result&&r.result.length){if(e.brandListData=r.result,e.$route.query.enterpriseId)return e.activeBrand=e.$route.query.enterpriseId,e.$emit("selectBrandId",e.$route.query.enterpriseId),!1;e.activeBrand=e.brandListData[0].enterpriseId,e.$emit("selectBrandId",e.brandListData[0].enterpriseId,e.brandListData[0].enterpriseId)}}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){}},i={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"navwrap border-box flex flex-space-between"},[r("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[e._l(e.navpath,function(t,a){return[t.path?[r("el-breadcrumb-item",{key:"nav"+a,attrs:{to:{path:t.path}},on:{click:function(r){return e.changeRoute(t.path,t.relocation)}}},[r("span",{staticClass:"el-breadcrumb__inner is-link",on:{click:function(r){return e.changeRoute(t.path,t.relocation)}}},[e._v("\n "+e._s(t.name)+"\n ")])])]:[r("el-breadcrumb-item",{key:"nav"+a},[e._v(e._s(t.name))])]]})],2),e._v(" "),r("div",{staticClass:"my-customer-brand"})],1)},staticRenderFns:[]};var o=r("VU/8")(s,i,!1,function(e){r("DDKZ")},"data-v-079a362d",null);t.a=o.exports}});
\ No newline at end of file
webpackJsonp([4],{B9Yg:function(t,s,e){t.exports=e.p+"static/img/gic-error.8aba914.png"},"Q3j/":function(t,s,e){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var i=e("B9Yg"),a=e.n(i),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:"100vh"}},[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:"#/login",rel:"noopener noreferrer"}},[this._v("返回好办登录页")])])])])},staticRenderFns:[]};var c=e("VU/8")(n,r,!1,function(t){e("t6ek")},"data-v-b1dca366",null);s.default=c.exports},t6ek:function(t,s){}});
\ No newline at end of file
webpackJsonp([6],{B9Yg:function(t,s,e){t.exports=e.p+"static/img/gic-error.8aba914.png"},"Q3j/":function(t,s,e){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var i=e("B9Yg"),a=e.n(i),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:"100vh"}},[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:"#/login",rel:"noopener noreferrer"}},[this._v("返回好办登录页")])])])])},staticRenderFns:[]};var c=e("VU/8")(n,r,!1,function(t){e("t6ek")},"data-v-b1dca366",null);s.default=c.exports},t6ek:function(t,s){}});
\ No newline at end of file
webpackJsonp([5],{"2X9c":function(t,s,i){t.exports=i.p+"static/img/error_500.ed0cba4.svg"},FskK:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a=i("2X9c"),e=i.n(a),n={name:"page500",data:function(){return{img_500:e.a}},computed:{message:function(){return"抱歉,服务器出错了"}}},c={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_500,alt:"500"}})]),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 r=i("VU/8")(n,c,!1,function(t){i("u9CB")},"data-v-a27616c0",null);s.default=r.exports},u9CB:function(t,s){}});
\ No newline at end of file
webpackJsonp([7],{"2X9c":function(t,s,i){t.exports=i.p+"static/img/error_500.ed0cba4.svg"},FskK:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a=i("2X9c"),e=i.n(a),n={name:"page500",data:function(){return{img_500:e.a}},computed:{message:function(){return"抱歉,服务器出错了"}}},c={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_500,alt:"500"}})]),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 r=i("VU/8")(n,c,!1,function(t){i("u9CB")},"data-v-a27616c0",null);s.default=r.exports},u9CB:function(t,s){}});
\ No newline at end of file
webpackJsonp([8],{SuWd:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o("mvHQ"),l=o.n(r),a=o("3E4D"),s=o("Ch4/"),n=o("PI0u"),i=o("P9l9"),u={name:"unreview",data:function(){return{wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",auditName:localStorage.getItem("userInfos")&&JSON.parse(localStorage.getItem("userInfos")).staffDTO?JSON.parse(localStorage.getItem("userInfos")).staffDTO.staffName:"",filterValue:"",filterBrand:"",brandOptions:[],searchValue:"",loading:!1,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,showAdd:!1,ruleForm:{moudleId:"",moudleName:"",moudleCode:""},rules:{moudleName:[{required:!0,message:"请输入模块名称",trigger:"blur"}],moudleCode:[{required:!0,message:"请输入code",trigger:"blur"}]}}},methods:{toNext:function(e){this.$router.push("/second?moudleId="+e.moudleId)},toCancel:function(){this.closeText(),this.$refs.ruleForm.resetFields()},handleClose:function(e){this.closeText(),this.$refs.ruleForm.resetFields()},submitForm:Object(n.a)(function(e){var t=this;t.$refs[e].validate(function(e){e&&t.postSave()})},300),postSave:function(){var e=this,t={moudleId:e.ruleForm.moudleId,moudleName:e.ruleForm.moudleName,moudleCode:e.ruleForm.moudleCode};Object(i.b)("/redis-limiter-web/redislimiter/save-module",t).then(function(t){var o=t.data;1==o.errorCode?(a.a.showmsg("操作成功","success"),e.$refs.ruleForm.resetFields(),e.closeText()):s.a.errorMsg(o)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleAdd:function(e){e&&(this.ruleForm=JSON.parse(l()(e))),this.showAdd=!0},closeText:function(){this.ruleForm={id:"",name:"",code:""},this.showAdd=!1,this.currentPage=1,this.getTableList()},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handlDel:function(e,t){var o=this;o.$confirm("确认是否删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){o.postApprove(t)}).catch(function(){})},postApprove:function(e){var t=this,o={moudleId:e.moudleId};Object(i.b)("/redis-limiter-web/redislimiter/del-module",o).then(function(e){var o=e.data;if(1==o.errorCode)return a.a.showmsg("操作成功","success"),t.currentPage=1,void t.getTableList();s.a.errorMsg(o)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getTableList:function(e){var t=this;e&&(t.currentPage=1),t.loading=!0;var o={pageNum:t.currentPage,pageSize:t.pageSize};Object(i.a)("/redis-limiter-web/redislimiter/list-module",o).then(function(e){var o=e.data;t.loading=!1,1!=o.errorCode?s.a.errorMsg(o):t.tableData=o.result||[]}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.$emit("showTab",1),this.getTableList()},components:{}},d={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"unreview-wrap common-set-wrap"},[o("div",{staticClass:"right-content"},[o("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 126px)"}},[o("div",{staticClass:"text-right m-b-20"},[o("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleAdd("")}}},[e._v("新增模块")])],1),e._v(" "),o("div",{staticClass:"reviewed-body-content"},[o("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[o("el-table-column",{attrs:{label:"模块名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.moudleName||"--")+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"Code","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.moudleCode||"--")+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("el-button",{attrs:{type:"text"},on:{click:function(o){return e.toNext(t.row)}}},[e._v("查看详情")]),e._v(" "),o("el-button",{attrs:{type:"text"},on:{click:function(o){return e.handleAdd(t.row)}}},[e._v("编辑")]),e._v(" "),o("el-button",{attrs:{type:"text"},on:{click:function(o){return e.handlDel(t.$index,t.row)}}},[e._v("删除")])]}}])})],1)],1)])]),e._v(" "),o("el-dialog",{attrs:{title:e.ruleForm.moudleId?"编辑模块":"新建模块",visible:e.showAdd,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.showAdd=t}}},[o("div",{},[o("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[o("el-form-item",{attrs:{label:"模块名称",prop:"moudleName"}},[o("el-input",{attrs:{placeholder:"请输入模块名称"},model:{value:e.ruleForm.moudleName,callback:function(t){e.$set(e.ruleForm,"moudleName",t)},expression:"ruleForm.moudleName"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"Code",prop:"moudleCode"}},[o("el-input",{attrs:{placeholder:"请输入code"},model:{value:e.ruleForm.moudleCode,callback:function(t){e.$set(e.ruleForm,"moudleCode",t)},expression:"ruleForm.moudleCode"}})],1)],1)],1),e._v(" "),o("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:e.toCancel}},[e._v("取消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("确定")])],1)])],1)},staticRenderFns:[]};var c=o("VU/8")(u,d,!1,function(e){o("vP5X")},"data-v-cc4e57ba",null);t.default=c.exports},vP5X:function(e,t){}});
\ No newline at end of file
webpackJsonp([9],{VTBp:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("mvHQ"),o=r.n(a),s=r("3E4D"),n=r("Ch4/"),l=r("PI0u"),i=r("P9l9"),u={name:"unreview",data:function(){return{wxEnterpriseId:localStorage.getItem("userInfos")?JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId:"",auditName:localStorage.getItem("userInfos")&&JSON.parse(localStorage.getItem("userInfos")).staffDTO?JSON.parse(localStorage.getItem("userInfos")).staffDTO.staffName:"",filterValue:"",filterBrand:"",brandOptions:[],searchValue:"",loading:!1,tableData:[],options:[{value:"选项1",label:"黄金糕"}],currentPage:1,pageSize:20,total:0,showAdd:!1,ruleForm:{rateId:"",rateName:"",rateCode:""},rules:{rateName:[{required:!0,message:"请输入限流名称",trigger:"blur"}],rateCode:[{required:!0,message:"请输入限流code",trigger:"blur"}]}}},methods:{toNext:function(e){this.$router.push("/third?rateId="+e.rateId)},toCancel:function(){this.closeText(),this.$refs.ruleForm.resetFields()},handleClose:function(e){this.closeText(),this.$refs.ruleForm.resetFields()},submitForm:Object(l.a)(function(e){var t=this;t.$refs[e].validate(function(e){e&&t.postSave()})},300),postSave:function(){var e=this,t={rateId:e.ruleForm.rateId,rateName:e.ruleForm.rateName,rateCode:e.ruleForm.rateCode,moudleId:e.$route.query.moudleId};Object(i.b)("/redis-limiter-web/redislimiter/save-rate",t).then(function(t){var r=t.data;1==r.errorCode?(s.a.showmsg("操作成功","success"),e.$refs.ruleForm.resetFields(),e.closeText()):n.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleAdd:function(e){e&&(this.ruleForm=JSON.parse(o()(e))),this.showAdd=!0},closeText:function(){this.ruleForm={rateId:"",rateName:"",rateCode:""},this.showAdd=!1,this.currentPage=1,this.getTableList()},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handlDel:function(e,t){var r=this;r.$confirm("确认是否删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){r.postApprove(t)}).catch(function(){})},postApprove:function(e){var t=this,r={rateId:e.rateId};Object(i.b)("/redis-limiter-web/redislimiter/del-rate",r).then(function(e){var r=e.data;if(1==r.errorCode)return s.a.showmsg("操作成功","success"),t.currentPage=1,void t.getTableList();n.a.errorMsg(r)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getTableList:function(e){var t=this;e&&(t.currentPage=1),t.loading=!0;var r={moudleId:t.$route.query.moudleId,pageNum:t.currentPage,pageSize:t.pageSize};Object(i.a)("/redis-limiter-web/redislimiter/list-rate",r).then(function(e){var r=e.data;t.loading=!1,1!=r.errorCode?n.a.errorMsg(r):t.tableData=r.result||[]}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.$emit("showTab",1),this.getTableList()},components:{}},d={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"unreview-wrap common-set-wrap"},[r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 126px)"}},[r("div",{staticClass:"text-right m-b-20"},[r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.handleAdd("")}}},[e._v("新增限流")])],1),e._v(" "),r("div",{staticClass:"reviewed-body-content"},[r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[r("el-table-column",{attrs:{label:"限流名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.rateName||"--")+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"Code","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.rateCode||"--")+"\n ")]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.toNext(t.row)}}},[e._v("查看详情")]),e._v(" "),r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.handleAdd(t.row)}}},[e._v("编辑")]),e._v(" "),r("el-button",{attrs:{type:"text"},on:{click:function(r){return e.handlDel(t.$index,t.row)}}},[e._v("删除")])]}}])})],1)],1)])]),e._v(" "),r("el-dialog",{attrs:{title:e.ruleForm.rateId?"编辑限流":"新建限流",visible:e.showAdd,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.showAdd=t}}},[r("div",{},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"限流名称",prop:"rateName"}},[r("el-input",{attrs:{placeholder:"请输入限流"},model:{value:e.ruleForm.rateName,callback:function(t){e.$set(e.ruleForm,"rateName",t)},expression:"ruleForm.rateName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"Code",prop:"rateCode"}},[r("el-input",{attrs:{placeholder:"请输入code"},model:{value:e.ruleForm.rateCode,callback:function(t){e.$set(e.ruleForm,"rateCode",t)},expression:"ruleForm.rateCode"}})],1)],1)],1),e._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.toCancel}},[e._v("取消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("确定")])],1)])],1)},staticRenderFns:[]};var c=r("VU/8")(u,d,!1,function(e){r("ivvj")},"data-v-a5b3a01e",null);t.default=c.exports},ivvj:function(e,t){}});
\ No newline at end of file
webpackJsonp([7],{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("Ku61")},"data-v-0df4090e",null);s.default=c.exports},Ku61: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([9],{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("Ku61")},"data-v-0df4090e",null);s.default=c.exports},Ku61: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,a){for(var i,u,f,b=0,d=[];b<r.length;b++)u=r[b],t[u]&&d.push(t[u][0]),t[u]=0;for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(e[i]=c[i]);for(n&&n(r,c,a);d.length;)d.shift()();if(a)for(b=0;b<a.length;b++)f=o(o.s=a[b]);return f};var r={},t={13: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 c=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,o.nc&&a.setAttribute("nonce",o.nc),a.src=o.p+"static/js/"+e+"."+{0:"258c0dc8f9a0c39d1b3a",1:"80ec7107adf684998411",2:"6a514b3660ba50e795d6",3:"4162994bc87b6cd26444",4:"0b6ec94b090312be1b81",5:"16127872576e4b1a2c5d",6:"0cc90d579248bd729bc5",7:"43b6f1b174996571bc20",8:"58bef8eaa4febf2775fd",9:"a5b88415e2cb02a41714",10:"74021554859f0147df4e"}[e]+".js";var i=setTimeout(u,12e4);function u(){a.onerror=a.onload=null,clearTimeout(i);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return a.onerror=a.onload=u,c.appendChild(a),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,c,a){for(var f,i,u,d=0,s=[];d<r.length;d++)i=r[d],t[i]&&s.push(t[i][0]),t[i]=0;for(f in c)Object.prototype.hasOwnProperty.call(c,f)&&(e[f]=c[f]);for(n&&n(r,c,a);s.length;)s.shift()();if(a)for(d=0;d<a.length;d++)u=o(o.s=a[d]);return u};var r={},t={13: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 c=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,o.nc&&a.setAttribute("nonce",o.nc),a.src=o.p+"static/js/"+e+"."+{0:"258c0dc8f9a0c39d1b3a",1:"80ec7107adf684998411",2:"6a514b3660ba50e795d6",3:"4162994bc87b6cd26444",4:"4e352f0e8625ff4613b6",5:"13fe914427d8a95a591e",6:"631f8d2a13b795632991",7:"6cf36468bc1e382c36b8",8:"a22243bef9dc0f14dc45",9:"bfd5c30f9e3ee88b551c",10:"cf00075cff8327b12715"}[e]+".js";var f=setTimeout(i,12e4);function i(){a.onerror=a.onload=null,clearTimeout(f);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return a.onerror=a.onload=i,c.appendChild(a),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
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2018-10-10 14:44:45
* @LastEditors: 无尘
* @LastEditTime: 2020-09-22 11:05:51
* @LastEditTime: 2020-12-04 17:17:06
-->
<template>
<div class="navwrap border-box flex flex-space-between">
......@@ -23,12 +23,12 @@
</template>
</el-breadcrumb>
<div class="my-customer-brand">
<el-tooltip class="item" effect="dark" content="不同品牌的工作台可分别进行管理。点击后切换,可以管理不同品牌下的应用" placement="top-start">
<!-- <el-tooltip class="item" effect="dark" content="不同品牌的工作台可分别进行管理。点击后切换,可以管理不同品牌下的应用" placement="top-start">
<span class="font-14 color-606266" style="cursor: pointer;padding-bottom: 2px; border-bottom: 1px dashed #2F54EB;">授权商户名称 </span>
</el-tooltip>
<el-select class="p-l-10" v-model="activeBrand" placeholder="请选择" @change="changeSelect">
</el-tooltip> -->
<!-- <el-select class="p-l-10" v-model="activeBrand" placeholder="请选择" @change="changeSelect">
<el-option v-for="item in brandListData" :key="item.enterpriseId" :label="item.enterpriseName" :value="item.enterpriseId"> </el-option>
</el-select>
</el-select> -->
</div>
</div>
</template>
......@@ -127,8 +127,8 @@ export default {
}
},
mounted() {
const that = this;
that.getBrandData();
// const that = this;
// that.getBrandData();
}
};
</script>
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2018-10-10 14:44:45
* @LastEditors: 无尘
* @LastEditTime: 2020-03-11 17:32:16
* @LastEditTime: 2020-12-04 17:09:57
-->
<template>
<div class="navwrap border-box">
......@@ -75,71 +75,7 @@ export default {
that.$router.push(path);
}
},
// get nav path
getNavPath() {
let that = this;
let para = {
project: that.projectName,
path: that.$route.path.split('/')[1]
};
postRequest('/api-auth/get-current-memu-data', para)
.then(res => {
// console.log(res,res.data,res.data.errorCode)
var resData = res.data;
if (resData.errorCode == 0) {
if (!resData.result) {
return false;
}
that.navpath = [];
if (!!resData.result.list && !!resData.result.list.length) {
resData.result.list.forEach(function(ele, index) {
ele.name = ele.menuName;
ele.path = '';
if (index == resData.result.list.length - 1) {
ele.path = '/' + ele.menuUrl;
}
if (index > 0) {
that.navpath.push(ele);
}
});
// that.navpath = resData.result.list
}
// that.navpath[0].name = resData.result.level2.menuName;
// that.navpath[0].path = ''
// that.navpath[1].name = resData.result.level3.menuName;
// that.navpath[1].path = ''
// if (!!resData.result.level4) {
// that.navpath[2] = {
// name:'',
// path: ''
// }
// that.navpath[2].name = resData.result.level4.menuName;
// that.navpath[2].path = ''
// }
return;
}
errMsg.errorMsg(resData);
})
.catch(function(error) {
// that.toLogin()
that.$message.error({
duration: 1000,
message: error.message
});
});
}
},
/* eslint-disable */
mounted() {
// var that = this;
// that.getNavPath();
}
};
</script>
......
......@@ -4,12 +4,15 @@
* @Author: 无尘
* @Date: 2018-10-10 14:44:45
* @LastEditors: 无尘
* @LastEditTime: 2020-12-04 16:43:13
* @LastEditTime: 2020-12-04 17:15:25
-->
<template>
<div class="unreview-wrap common-set-wrap">
<div class="right-content">
<div class="right-box" style="min-height: calc(100vh - 126px)">
<div class="m-b-20">
<nav-crumb :navpath="navpath"> </nav-crumb>
</div>
<div class="text-right m-b-20"><el-button @click="handleAdd('')" type="primary">新增限流</el-button></div>
<div class="reviewed-body-content">
<el-table ref="multipleTable" v-loading="loading" :data="tableData" tooltip-effect="dark" style="width: 100%" @selection-change="handleSelectionChange">
......@@ -66,20 +69,29 @@
</div>
</template>
<script>
import navCrumb from '@/components/nav/nav-app.vue';
import showMsg from '@/common/js/showmsg';
import errMsg from '@/common/js/error';
import { _debounce } from '@/common/js/public';
import { getRequest, postRequest } from '@/api/api';
export default {
name: 'unreview',
components: { navCrumb },
data() {
return {
wxEnterpriseId: localStorage.getItem('userInfos') ? JSON.parse(localStorage.getItem('userInfos')).wxEnterpriseId : '',
auditName: localStorage.getItem('userInfos') && JSON.parse(localStorage.getItem('userInfos')).staffDTO ? JSON.parse(localStorage.getItem('userInfos')).staffDTO.staffName : '',
filterValue: '',
filterBrand: '',
brandOptions: [], // 品牌
searchValue: '',
// 面包屑参数
navpath: [
{
name: '模块',
path: '/index'
},
{
name: '限流',
path: ''
}
],
loading: false,
tableData: [],
......@@ -112,7 +124,7 @@ export default {
*/
toNext(row) {
const that = this;
that.$router.push(`/third?rateId=${row.rateId}`);
that.$router.push(`/third?rateId=${row.rateId}&moudleId=${that.$route.query.moudleId}`);
},
/**
* 弹窗操作
......@@ -285,8 +297,7 @@ export default {
that.$emit('showTab', 1);
// that.wxEnterpriseId = await that.toLogin();
that.getTableList();
},
components: {}
}
};
</script>
<style lang="scss" scoped>
......
......@@ -4,12 +4,15 @@
* @Author: 无尘
* @Date: 2018-10-10 14:44:45
* @LastEditors: 无尘
* @LastEditTime: 2020-12-04 16:37:51
* @LastEditTime: 2020-12-04 17:14:41
-->
<template>
<div class="unreview-wrap common-set-wrap">
<div class="right-content">
<div class="right-box" style="min-height: calc(100vh - 126px)">
<div class="m-b-20">
<nav-crumb :navpath="navpath"> </nav-crumb>
</div>
<div class="text-right m-b-20"><el-button @click="handleAdd('')" type="primary">新增企业关系</el-button></div>
<div class="reviewed-body-content">
<el-table ref="multipleTable" v-loading="loading" :data="tableData" tooltip-effect="dark" style="width: 100%" @selection-change="handleSelectionChange">
......@@ -66,20 +69,33 @@
</div>
</template>
<script>
import navCrumb from '@/components/nav/nav-app.vue';
import showMsg from '@/common/js/showmsg';
import errMsg from '@/common/js/error';
import { _debounce } from '@/common/js/public';
import { getRequest, postRequest } from '@/api/api';
export default {
name: 'unreview',
components: { navCrumb },
data() {
return {
wxEnterpriseId: localStorage.getItem('userInfos') ? JSON.parse(localStorage.getItem('userInfos')).wxEnterpriseId : '',
auditName: localStorage.getItem('userInfos') && JSON.parse(localStorage.getItem('userInfos')).staffDTO ? JSON.parse(localStorage.getItem('userInfos')).staffDTO.staffName : '',
filterValue: '',
filterBrand: '',
brandOptions: [], // 品牌
searchValue: '',
// 面包屑参数
navpath: [
{
name: '模块',
path: '/index'
},
{
name: '限流',
path: `/second?moudleId=${this.$route.query.moudleId}`
},
{
name: '企业关系',
path: ''
}
],
loading: false,
tableData: [],
......@@ -299,8 +315,7 @@ export default {
that.$emit('showTab', 1);
// that.wxEnterpriseId = await that.toLogin();
that.getTableList();
},
components: {}
}
};
</script>
<style lang="scss" scoped>
......
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