chunk-66568257.65eff9e2.js 7.8 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-66568257"],{"09f4":function(t,e,n){"use strict";n.d(e,"a",function(){return i}),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 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 i(t,e,n){var i=o(),s=t-i,u=20,l=0;e="undefined"===typeof e?500:e;var c=function t(){l+=u;var o=Math.easeInOutQuad(l,i,s,e);r(o),l<e?a(t):n&&"function"===typeof n&&n()};c()}},3607:function(t,e,n){"use strict";n.d(e,"g",function(){return s}),n.d(e,"d",function(){return u}),n.d(e,"f",function(){return l}),n.d(e,"e",function(){return c}),n.d(e,"i",function(){return d}),n.d(e,"j",function(){return p}),n.d(e,"h",function(){return f}),n.d(e,"l",function(){return m}),n.d(e,"m",function(){return g}),n.d(e,"k",function(){return h}),n.d(e,"n",function(){return b}),n.d(e,"b",function(){return v}),n.d(e,"a",function(){return _}),n.d(e,"c",function(){return y});var a=n("b775"),r=n("4328"),o=n.n(r),i="/api-web";function s(t){return Object(a["a"])({url:i+"/tenantEntryActivities/queryPage",method:"get",params:t})}function u(t){return Object(a["a"])({url:i+"/tenantEntryActivities/merge",method:"post",data:t})}function l(t){return Object(a["a"])({url:i+"/tenantEntryActivities/updateDelFlag",method:"post",data:o.a.stringify(t)})}function c(t){return Object(a["a"])({url:i+"/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:o.a.stringify(t)})}function f(t){return Object(a["a"])({url:"/api-cms/helpCenterCatalog/delete",method:"post",data:o.a.stringify(t)})}function m(t){return Object(a["a"])({url:"/api-cms/helpCenterContent/list",method:"get",params:t})}function g(t){return Object(a["a"])({url:"/api-cms/helpCenterContent/modify",method:"post",data:o.a.stringify(t)})}function h(t){return Object(a["a"])({url:"/api-cms/helpCenterContent/delete",method:"post",data:o.a.stringify(t)})}function b(t){return Object(a["a"])({url:"/api-web/sysSuggestion/queryPage",method:"get",params:t})}function v(t){return Object(a["a"])({method:"get",url:"/api-web/employeeInfo/queryPage",params:t})}function _(t){return Object(a["a"])({method:"post",url:"/api-web/employeeInfo/insert",data:t})}function y(t){return Object(a["a"])({method:"post",url:"/api-web/employeeInfo/update",data:t})}},"46b3":function(t,e,n){"use strict";var a=n("547b"),r=n.n(a);r.a},"547b":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)])},r=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("h2",[n("div",{staticClass:"squrt"}),t._v("时间充值活动\n ")])}],o=n("333d"),i=n("3607"),s={components:{pagination:o["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(i["f"])({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(i["g"])(e).then(function(e){200==e.code&&(t.dataList=e.data.rows,t.pageInfo.total=e.data.total)})}}},u=s,l=(n("46b3"),n("2877")),c=Object(l["a"])(u,a,r,!1,null,"f3a9e9e0",null);e["default"]=c.exports}}]);