chunk-04dc1de0.688dd8c4.js 6.0 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-04dc1de0"],{"09f4":function(t,e,a){"use strict";a.d(e,"a",(function(){return s})),Math.easeInOutQuad=function(t,e,a,n){return t/=n/2,t<1?a/2*t*t+e:(t--,-a/2*(t*(t-2)-1)+e)};var n=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function r(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function s(t,e,a){var s=o(),i=t-s,c=20,u=0;e="undefined"===typeof e?500:e;var l=function t(){u+=c;var o=Math.easeInOutQuad(u,s,i,e);r(o),u<e?n(t):a&&"function"===typeof a&&a()};l()}},"8d79":function(t,e,a){},c674:function(t,e,a){"use strict";a("8d79")},cfc3:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"m-container"},[t._m(0),t._v(" "),a("save-form",{ref:"searchForm",staticClass:"searchForm",attrs:{inline:!0,saveKey:"platformProductManager",model:t.searchForm},on:{submit:t.search,reset:t.reset,"update:model":function(e){t.searchForm=e}}},[a("el-form-item",{attrs:{rules:[]}},[a("el-input",{attrs:{placeholder:"产品名称"},model:{value:t.searchForm.search,callback:function(e){t.$set(t.searchForm,"search",e)},expression:"searchForm.search"}})],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{"native-type":"submit",type:"danger"}},[t._v("搜索")]),t._v(" "),a("el-button",{attrs:{"native-type":"reset",type:"primary"}},[t._v("重置")])],1)],1),t._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"platformProduct/add",expression:"'platformProduct/add'"}],staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary",icon:"el-icon-plus"},on:{click:function(e){return t.openProduct("create")}}},[t._v("添加")]),t._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:t.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",label:"产品编号",prop:"id"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"name",label:"产品名称"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"产品描述",prop:"remark"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("tooltip",{attrs:{content:t.row.remark}})]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"platformProduct/update",expression:"'platformProduct/update'"}],attrs:{type:"text"},on:{click:function(a){return t.resetProduct(e.row)}}},[t._v("修改")]),t._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"platformProduct/delete",expression:"'platformProduct/delete'"}],attrs:{type:"text"},on:{click:function(a){return t.delProduct(e.row)}}},[t._v("删除")])]}}])})],1),t._v(" "),a("pagination",{attrs:{saveKey:"platformProductManager",sync:"",total:t.pageInfo.total,page:t.pageInfo.page,limit:t.pageInfo.limit,"page-sizes":t.pageInfo.page_size},on:{"update:total":function(e){return t.$set(t.pageInfo,"total",e)},"update:page":function(e){return t.$set(t.pageInfo,"page",e)},"update:limit":function(e){return t.$set(t.pageInfo,"limit",e)},pagination:t.getList}})],1)],1)},r=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("h2",[a("div",{staticClass:"squrt"}),t._v("\n 机构协议管理\n ")])}],o=(a("386d"),a("c80c")),s=(a("96cf"),a("3b8d")),i=a("db72"),c=a("333d"),u=a("829b"),l=function(t){return Object(u["a"])({url:"/api-web/platformProduct/delete/"+t.id,method:"get"})},p=function(t){return Object(u["a"])({url:"/api-web/platformProduct/queryPage",method:"get",params:t})},d={search:null},m={components:{pagination:c["a"]},data:function(){return{tableList:[],pageType:"create",pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},searchForm:Object(i["a"])({},d),isAdd:!0,courseVisible:!1,activeRow:null}},mounted:function(){this.$store.dispatch("setBranchs"),this.getList()},methods:{getList:function(){var t=Object(s["a"])(Object(o["a"])().mark((function t(){var e;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,p(Object(i["a"])(Object(i["a"])({},this.searchForm),{},{page:this.pageInfo.page,rows:this.pageInfo.limit}));case 3:e=t.sent,this.pageInfo.total=e.data.total,this.tableList=e.data.rows,t.next=10;break;case 8:t.prev=8,t.t0=t["catch"](0);case 10:case"end":return t.stop()}}),t,this,[[0,8]])})));function e(){return t.apply(this,arguments)}return e}(),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"])({},d),this.search()},resetProduct:function(t){this.isAdd=!1,this.activeRow=t,this.pageType="update",this.courseVisible=!0},submitInfo:function(){var t=this.isAdd?"create":"update";this.$refs.operationModel.submitInfo(t)},close:function(){this.courseVisible=!1,this.getList()},openProduct:function(){this.isAdd=!0,this.activeRow=null,this.pageType="create",this.courseVisible=!0},delProduct:function(){var t=Object(s["a"])(Object(o["a"])().mark((function t(e){var a=this;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.$confirm("是否删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(s["a"])(Object(o["a"])().mark((function t(){return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,l({id:e.id});case 3:t.sent,a.$message.success("删除成功"),a.getList(),t.next=10;break;case 8:t.prev=8,t.t0=t["catch"](0);case 10:case"end":return t.stop()}}),t,null,[[0,8]])}))));case 1:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}()}},f=m,h=(a("c674"),a("2877")),b=Object(h["a"])(f,n,r,!1,null,"097146a6",null);e["default"]=b.exports}}]);