chunk-0c95e041.ce1881ea.js 8.4 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0c95e041"],{"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(),u=t-i,s=20,l=0;e="undefined"===typeof e?500:e;var c=function t(){l+=s;var o=Math.easeInOutQuad(l,i,u,e);r(o),l<e?a(t):n&&"function"===typeof n&&n()};c()}},3607:function(t,e,n){"use strict";n.d(e,"h",(function(){return u})),n.d(e,"e",(function(){return s})),n.d(e,"g",(function(){return l})),n.d(e,"f",(function(){return c})),n.d(e,"j",(function(){return d})),n.d(e,"k",(function(){return p})),n.d(e,"i",(function(){return f})),n.d(e,"m",(function(){return m})),n.d(e,"n",(function(){return g})),n.d(e,"l",(function(){return h})),n.d(e,"q",(function(){return b})),n.d(e,"b",(function(){return v})),n.d(e,"a",(function(){return y})),n.d(e,"d",(function(){return _})),n.d(e,"o",(function(){return w})),n.d(e,"c",(function(){return O})),n.d(e,"p",(function(){return F}));var a=n("b775"),r=n("4328"),o=n.n(r),i="/api-web";function u(t){return Object(a["a"])({url:i+"/tenantEntryActivities/queryPage",method:"get",params:t})}function s(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 y(t){return Object(a["a"])({method:"post",url:"/api-web/employeeInfo/insert",data:t})}function _(t){return Object(a["a"])({method:"post",url:"/api-web/employeeInfo/update",data:t})}function w(t){return Object(a["a"])({method:"post",url:"/api-web/employeeInfo/insertVisit",data:t})}function O(t){return Object(a["a"])({method:"get",url:"/api-web/employeeInfo/queryDetail",params:t})}function F(t){return Object(a["a"])({method:"get",url:"/api-web/employee/queryEmployeeByRole",params:t})}},"3e2c":function(t,e,n){},8879:function(t,e,n){"use strict";n("3e2c")},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:"tenantEntryActivities/merge",expression:"'tenantEntryActivities/merge'"}],staticClass:"newBand",on:{click:function(e){return t.onChargeOperation("create")}}},[t._v("添加")]),t._v(" "),n("save-form",{attrs:{inline:!0,model:t.searchForm},on:{submit:t.search}},[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","native-type":"submit"}},[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[t.$helpers.permission("tenantEntryActivities/query")?n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.onChargeOperation("look",e.row)}}},[t._v("查看")]):t._e(),t._v(" "),t.$helpers.permission(e.row.delFlag?"tenantEntryActivities/updateDelFlag/open":"tenantEntryActivities/updateDelFlag/stop")?n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.onChargeOperation("update",e.row)}}},[t._v(t._s(e.row.delFlag?"启用":"停用"))]):t._e()]}}])})],1),t._v(" "),n("pagination",{attrs:{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,n=t._self._c||e;return n("h2",[n("div",{staticClass:"squrt"}),t._v("时间充值活动\n ")])}],o=n("333d"),i=n("3607"),u={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:{search:function(){this.pageInfo.page=1,this.getList()},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["g"])({delFlag:!e.delFlag,id:e.id}).then((function(t){n.messageTips(a,t)}))})).catch((function(){}))}else"create"==t?this.$router.push({path:"/systemManager/entryOperation",query:{type:"create"}},(function(t){t.meta.title="添加活动充值活动"})):"look"==t&&this.$router.push({path:"/systemManager/entryOperation",query:{id:e.id,type:"look"}},(function(t){t.meta.title="查看活动充值活动"}))},getList:function(){var t=this,e={delFlag:this.searchForm.delFlag?this.searchForm.delFlag:null,rows:this.pageInfo.limit,page:this.pageInfo.page};Object(i["h"])(e).then((function(e){200==e.code&&(t.dataList=e.data.rows,t.pageInfo.total=e.data.total)}))}}},s=u,l=(n("8879"),n("2877")),c=Object(l["a"])(s,a,r,!1,null,"c76cad24",null);e["default"]=c.exports}}]);