chunk-5f0549de.e4141d15.js 9.0 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5f0549de"],{"09f4":function(t,e,n){"use strict";n.d(e,"a",function(){return o}),Math.easeInOutQuad=function(t,e,n,a){return t/=a/2,t<1?n/2*t*t+e:(t--,-n/2*(t*(t-2)-1)+e)};var a=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function i(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function r(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function o(t,e,n){var o=r(),u=t-o,s=20,l=0;e="undefined"===typeof e?500:e;var c=function t(){l+=s;var r=Math.easeInOutQuad(l,o,u,e);i(r),l<e?a(t):n&&"function"===typeof n&&n()};c()}},"30e0":function(t,e,n){"use strict";var a=n("e330"),i=n.n(a);i.a},"333d":function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"pagination-container",class:{hidden:t.hidden}},[n("el-pagination",t._b({attrs:{"current-page":t.currentPage,"page-size":t.pageSize,layout:t.layout,"page-sizes":t.pageSizes,total:t.total},on:{"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e},"update:pageSize":function(e){t.pageSize=e},"update:page-size":function(e){t.pageSize=e},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}},"el-pagination",t.$attrs,!1))],1)},i=[],r=(n("c5f6"),n("09f4")),o={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:10},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total,sizes,prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(t){this.$emit("update:page",t)}},pageSize:{get:function(){return this.limit},set:function(t){this.$emit("update:limit",t)}}},methods:{handleSizeChange:function(t){this.$emit("pagination",{page:this.currentPage,limit:t}),this.autoScroll&&Object(r["a"])(0,800)},handleCurrentChange:function(t){this.$emit("pagination",{page:t,limit:this.pageSize}),this.autoScroll&&Object(r["a"])(0,800)}}},u=o,s=(n("c0b9"),n("2877")),l=Object(s["a"])(u,a,i,!1,null,"31cb099a",null);e["a"]=l.exports},3607:function(t,e,n){"use strict";n.d(e,"d",function(){return u}),n.d(e,"a",function(){return s}),n.d(e,"c",function(){return l}),n.d(e,"b",function(){return c}),n.d(e,"f",function(){return d}),n.d(e,"g",function(){return p}),n.d(e,"e",function(){return f}),n.d(e,"i",function(){return g}),n.d(e,"j",function(){return m}),n.d(e,"h",function(){return h}),n.d(e,"k",function(){return v});var a=n("b775"),i=n("4328"),r=n.n(i),o="/api-web";function u(t){return Object(a["a"])({url:o+"/tenantEntryActivities/queryPage",method:"get",params:t})}function s(t){return Object(a["a"])({url:o+"/tenantEntryActivities/merge",method:"post",data:t})}function l(t){return Object(a["a"])({url:o+"/tenantEntryActivities/updateDelFlag",method:"post",data:r.a.stringify(t)})}function c(t){return Object(a["a"])({url:o+"/tenantEntryActivities/query",method:"get",params:t})}function d(t){return Object(a["a"])({url:"/api-cms/helpCenterCatalog/list",method:"get",params:t})}function p(t){return Object(a["a"])({url:"/api-cms/helpCenterCatalog/modify",method:"post",data:r.a.stringify(t)})}function f(t){return Object(a["a"])({url:"/api-cms/helpCenterCatalog/delete",method:"post",data:r.a.stringify(t)})}function g(t){return Object(a["a"])({url:"/api-cms/helpCenterContent/list",method:"get",params:t})}function m(t){return Object(a["a"])({url:"/api-cms/helpCenterContent/modify",method:"post",data:r.a.stringify(t)})}function h(t){return Object(a["a"])({url:"/api-cms/helpCenterContent/delete",method:"post",data:r.a.stringify(t)})}function v(t){return Object(a["a"])({url:"/api-web/sysSuggestion/queryPage",method:"get",params:t})}},c0b9:function(t,e,n){"use strict";var a=n("de4e"),i=n.n(a);i.a},de4e:function(t,e,n){},de83:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"m-container"},[t._m(0),t._v(" "),n("div",{staticClass:"m-core"},[n("div",{directives:[{name:"permission",rawName:"v-permission",value:"/entryOperation",expression:"'/entryOperation'"}],staticClass:"newBand",on:{click:function(e){return t.onChargeOperation("create")}}},[t._v("添加")]),t._v(" "),n("el-form",{attrs:{inline:!0,model:t.searchForm}},[n("el-form-item",[n("el-select",{attrs:{clearable:"",placeholder:"请选择活动状态"},model:{value:t.searchForm.delFlag,callback:function(e){t.$set(t.searchForm,"delFlag",e)},expression:"searchForm.delFlag"}},[n("el-option",{attrs:{value:"false",label:"启用"}}),t._v(" "),n("el-option",{attrs:{value:"true",label:"停止"}})],1)],1),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"danger"},on:{click:t.getList}},[t._v("搜索")])],1)],1),t._v(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{attrs:{data:t.dataList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[n("el-table-column",{attrs:{align:"center",prop:"id",label:"活动编号"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"name",label:"活动名称"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"适用范围"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s("NEW"==e.row.suitableUser?"新用户":"")+"\n "+t._s("ALL"==e.row.suitableUser?"全部":"")+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"有效期",width:"225px"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n 开始时间:"+t._s(e.row.startDate)+" "),n("br"),t._v(" 结束时间:"+t._s(e.row.endDate)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"价格/元"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n 原价:"+t._s(e.row.totalPrice)+"元 "),n("br"),t._v(" 折扣价:"+t._s(e.row.discountPrice?e.row.discountPrice:0)+"元\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"时间/分钟"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n 购买:"+t._s(e.row.purchaseMinutes)+"分钟 "),n("br"),t._v(" 赠送:"+t._s(e.row.giveMinutes?e.row.giveMinutes:0)+"分钟\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"活动状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.delFlag?"停用":"启用")+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"/entryOperationLook",expression:"'/entryOperationLook'"}],attrs:{type:"text"},on:{click:function(n){return t.onChargeOperation("look",e.row)}}},[t._v("查看")]),t._v(" "),n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"tenantEntryActivities/updateDelFlag",expression:"'tenantEntryActivities/updateDelFlag'"}],attrs:{type:"text"},on:{click:function(n){return t.onChargeOperation("update",e.row)}}},[t._v(t._s(e.row.delFlag?"启用":"停用"))])]}}])})],1),t._v(" "),n("pagination",{attrs:{total:t.pageInfo.total,page:t.pageInfo.page,limit:t.pageInfo.limit,"page-sizes":t.pageInfo.page_size},on:{"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)])},i=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("h2",[n("div",{staticClass:"squrt"}),t._v("时间充值活动")])}],r=n("333d"),o=n("3607"),u={components:{pagination:r["a"]},name:"chargesList",data:function(){return{id:null,dataList:[],searchForm:{delFlag:null},pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]}}},activated:function(){this.getList()},mounted:function(){this.getList()},methods:{messageTips:function(t,e){200==e.code?(this.$message.success(t+"成功"),this.chargeStatus=!1,this.getList()):this.$message.error(e.msg)},onChargeOperation:function(t,e){var n=this;if("update"==t){var a=e.delFlag?"启用":"停用";this.$confirm("是否".concat(a,"该活动?"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o["c"])({delFlag:!e.delFlag,id:e.id}).then(function(t){n.messageTips(a,t)})}).catch(function(){})}else"create"==t?this.$router.push({path:"/insideSetting/entryOperation",query:{type:"create"}}):"look"==t&&this.$router.push({path:"/insideSetting/entryOperation",query:{id:e.id,type:"look"}})},getList:function(){var t=this,e={delFlag:this.searchForm.delFlag?this.searchForm.delFlag:null,rows:this.pageInfo.limit,page:this.pageInfo.page};Object(o["d"])(e).then(function(e){200==e.code&&(t.dataList=e.data.rows,t.pageInfo.total=e.data.total)})}}},s=u,l=(n("30e0"),n("2877")),c=Object(l["a"])(s,a,i,!1,null,"166f91a0",null);e["default"]=c.exports},e330:function(t,e,n){}}]);