chunk-ee166a1e.dfe375c0.js 6.4 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ee166a1e"],{"09f4":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),Math.easeInOutQuad=function(e,t,n,r){return e/=r/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var r=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,n){var i=o(),c=e-i,s=20,u=0;t="undefined"===typeof t?500:t;var l=function e(){u+=s;var o=Math.easeInOutQuad(u,i,c,t);a(o),u<t?r(e):n&&"function"===typeof n&&n()};l()}},"4cab":function(e,t,n){"use strict";n.d(t,"e",(function(){return a})),n.d(t,"a",(function(){return o})),n.d(t,"f",(function(){return i})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return u}));var r=n("829b"),a=function(e){return Object(r["a"])({url:"/api-web/platformServe/queryPage",method:"get",params:e})},o=function(e){return Object(r["a"])({url:"/api-web/platformServe/add",method:"post",data:e})},i=function(e){return Object(r["a"])({url:"/api-web/platformServe/update",method:"post",data:e})},c=function(e){return Object(r["a"])({url:"/api-web/platformServe/delete/"+e.id,method:"get"})},s=function(e){return Object(r["a"])({url:"/api-web/platformServe/queryInfo/"+e.id,method:"get"})},u=function(e){return Object(r["a"])({url:"/api-web/platformServe/queryModeDetail/"+e.id,method:"get"})}},"5db5":function(e,t,n){"use strict";n("6866")},6866:function(e,t,n){},"69fb":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"m-container"},[e._m(0),e._v(" "),n("div",{staticClass:"m-core"},[n("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}}},[n("el-form-item",{attrs:{rules:[]}},[n("el-input",{attrs:{placeholder:"服务名称"},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search",t)},expression:"searchForm.search"}})],1),e._v(" "),n("el-form-item",[n("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")]),e._v(" "),n("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],1),e._v(" "),n("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(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[n("el-table-column",{attrs:{align:"center",prop:"id",label:"服务编号"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"服务名称",prop:"serveName"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"产品服务",prop:"productName"}}),e._v(" "),n("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"platformServe/update",expression:"'platformServe/update'"}],attrs:{type:"text"},on:{click:function(n){return e.openService("update",t.row)}}},[e._v("修改")]),e._v(" "),n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"platformServe/delete",expression:"'platformServe/delete'"}],attrs:{type:"text"},on:{click:function(n){return e.delService(t.row)}}},[e._v("删除")])]}}])})],1),e._v(" "),n("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,n=e._self._c||t;return n("h2",[n("div",{staticClass:"squrt"}),e._v("\n 服务管理\n ")])}],o=(n("386d"),n("c7eb")),i=(n("96cf"),n("1da1")),c=n("5530"),s=n("333d"),u=n("4cab"),l={search:null},p={components:{pagination:s["a"]},data:function(){return{tableList:[],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},searchForm:Object(c["a"])({},l)}},mounted:function(){this.getList()},methods:{getList:function(){var e=Object(i["a"])(Object(o["a"])().mark((function e(){var t;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(u["e"])(Object(c["a"])(Object(c["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(c["a"])({},l),this.search()},openService:function(e,t){var n="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=n+"服务"}))},delService:function(){var e=Object(i["a"])(Object(o["a"])().mark((function e(t){var n=this;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.$confirm("是否删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(i["a"])(Object(o["a"])().mark((function e(){return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Object(u["b"])({id:t.id});case 3:n.$message.success("删除成功"),n.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}()}},d=p,m=(n("5db5"),n("2877")),f=Object(m["a"])(d,r,a,!1,null,"452e7d64",null);t["default"]=f.exports}}]);