chunk-d5235734.45083c23.js 6.4 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d5235734"],{"09f4":function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),Math.easeInOutQuad=function(e,t,r,n){return e/=n/2,e<1?r/2*e*e+t:(e--,-r/2*(e*(e-2)-1)+t)};var n=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function a(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(e,t,r){var i=o(),s=e-i,c=20,u=0;t="undefined"===typeof t?500:t;var l=function e(){u+=c;var o=Math.easeInOutQuad(u,i,s,t);a(o),u<t?n(e):r&&"function"===typeof r&&r()};l()}},"4cab":function(e,t,r){"use strict";r.d(t,"e",(function(){return a})),r.d(t,"a",(function(){return o})),r.d(t,"f",(function(){return i})),r.d(t,"b",(function(){return s})),r.d(t,"c",(function(){return c})),r.d(t,"d",(function(){return u}));var n=r("829b"),a=function(e){return Object(n["a"])({url:"/api-web/platformServe/queryPage",method:"get",params:e})},o=function(e){return Object(n["a"])({url:"/api-web/platformServe/add",method:"post",data:e})},i=function(e){return Object(n["a"])({url:"/api-web/platformServe/update",method:"post",data:e})},s=function(e){return Object(n["a"])({url:"/api-web/platformServe/delete/"+e.id,method:"get"})},c=function(e){return Object(n["a"])({url:"/api-web/platformServe/queryInfo/"+e.id,method:"get"})},u=function(e){return Object(n["a"])({url:"/api-web/platformServe/queryModeDetail/"+e.id,method:"get"})}},"5db5":function(e,t,r){"use strict";r("6866")},6866:function(e,t,r){},"69fb5":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"m-container"},[e._m(0),e._v(" "),r("div",{staticClass:"m-core"},[r("save-form",{ref:"searchForm",staticClass:"searchForm",attrs:{inline:!0,saveKey:"serviceManager",model:e.searchForm},on:{submit:e.search,reset:e.reset,"update:model":function(t){e.searchForm=t}}},[r("el-form-item",{attrs:{rules:[]}},[r("el-input",{attrs:{placeholder:"服务名称"},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search",t)},expression:"searchForm.search"}})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")]),e._v(" "),r("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],1),e._v(" "),r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"platformServe/add",expression:"'platformServe/add'"}],staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary",icon:"el-icon-plus"},on:{click:function(t){return e.openService("create")}}},[e._v("新增服务")]),e._v(" "),r("div",{staticClass:"tableWrap"},[r("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[r("el-table-column",{attrs:{align:"center",prop:"id",label:"服务编号"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"服务名称",prop:"serveName"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"产品服务",prop:"productName"}}),e._v(" "),r("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"platformServe/update",expression:"'platformServe/update'"}],attrs:{type:"text"},on:{click:function(r){return e.openService("update",t.row)}}},[e._v("修改")]),e._v(" "),r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"platformServe/delete",expression:"'platformServe/delete'"}],attrs:{type:"text"},on:{click:function(r){return e.delService(t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),r("pagination",{attrs:{saveKey:"serviceManager",sync:"",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1)],1)])},a=[function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("h2",[r("div",{staticClass:"squrt"}),e._v("\n 服务管理\n ")])}],o=(r("386d"),r("96cf"),r("1da1")),i=r("5530"),s=r("333d"),c=r("4cab"),u={search:null},l={components:{pagination:s["a"]},data:function(){return{tableList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},searchForm:Object(i["a"])({},u)}},mounted:function(){this.getList()},methods:{getList:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(c["e"])(Object(i["a"])(Object(i["a"])({},this.searchForm),{},{page:this.pageInfo.page,rows:this.pageInfo.limit}));case 3:t=e.sent,this.pageInfo.total=t.data.total,this.tableList=t.data.rows,e.next=10;break;case 8:e.prev=8,e.t0=e["catch"](0);case 10:case"end":return e.stop()}}),e,this,[[0,8]])})));function t(){return e.apply(this,arguments)}return t}(),search:function(){this.pageInfo.page=1,this.$refs.searchForm.save(this.searchForm),this.$refs.searchForm.save(this.pageInfo,"page"),this.getList()},reset:function(){this.searchForm=Object(i["a"])({},u),this.search()},openService:function(e,t){var r="update"==e?"修改":"创建";this.$router.push({path:"/platformManager/serviceOperation",query:{type:e,id:(null===t||void 0===t?void 0:t.id)||null}},(function(e){e.meta.title=r+"服务"}))},delService:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(t){var r=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$confirm("是否删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(c["b"])({id:t.id});case 3:r.$message.success("删除成功"),r.getList(),e.next=9;break;case 7:e.prev=7,e.t0=e["catch"](0);case 9:case"end":return e.stop()}}),e,null,[[0,7]])}))));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}},p=l,m=(r("5db5"),r("2877")),d=Object(m["a"])(p,n,a,!1,null,"452e7d64",null);t["default"]=d.exports}}]);