徐总多门店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jiuhaoshenghuo/public/view_admin/js/chunk-c71fa76a.b0784b13.js

1 line
8.5 KiB

4 months ago
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-c71fa76a"],{"0b65":function(t,e,a){"use strict";e.a={shortcuts:[{text:"今天",value:function(){var t=new Date,e=new Date;return e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),[e,t]}},{text:"昨天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),[e,t]}},{text:"最近7天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-6))),[e,t]}},{text:"最近30天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-29))),[e,t]}},{text:"上月",value:function(){var t=new Date,e=new Date,a=new Date(e.getFullYear(),e.getMonth(),0).getDate();return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth()-1,1))),t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth()-1,a))),[e,t]}},{text:"本月",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),[e,t]}},{text:"本年",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),0,1))),[e,t]}}]}},a612:function(t,e,a){"use strict";a.r(e);var i=a("2f62"),n=a("b7be"),s=a("0b65"),r=a("d708");function o(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,i)}return a}function l(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var c={data:function(){return{roterPre:r.a.roterPre,options:s.a,timeVal:[],dataTimeVal:[],formValidate:{name:"",status:"",time:"",create_time:"",page:1,limit:15},list:[{status:0,title:"未开始"},{status:1,title:"进行中"},{status:-1,title:"已结束"}],columns:[{title:"ID",key:"id",width:80},{title:"活动名称",key:"name",minWidth:170},{title:"活动时间",slot:"time",minWidth:260},{title:"参与商品数",key:"product_count",minWidth:100},{title:"活动状态",slot:"start_status",minWidth:100},{title:"是否开启",slot:"status",minWidth:100},{title:"创建时间",key:"add_time",minWidth:140},{title:"操作",slot:"action",minWidth:110,fixed:"right"}],dataList:[],loading:!1,total:0}},computed:function(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?o(a,!0).forEach((function(e){l(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):o(a).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}({},Object(i.e)("admin/layout",["isMobile"]),{labelWidth:function(){return this.isMobile?void 0:96},labelPosition:function(){return this.isMobile?"top":"right"}}),created:function(){this.activityFrameList()},methods:{createTime:function(t){this.timeVal=t,this.formValidate.create_time=this.timeVal.join("-"),this.selChange()},dataTime:function(t){this.dataTimeVal=t,this.formValidate.time=this.dataTimeVal.join("-"),this.selChange()},del:function(t,e,a){var i=this,n={title:e,num:a,url:"marketing/activity_frame/del/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(n).then((function(t){i.$Message.success(t.msg),i.dataList.splice(a,1),i.dataList.length||(i.formValidate.page=1==i.formValidate.page?1:i.formValidate.page-1),i.activityFrameList()})).catch((function(t){i.$Message.error(t.msg)}))},onchangeIsShow:function(t){var e=this;Object(n.h)(t.id,t.status).then((function(t){e.$Message.success(t.msg),e.activityFrameList()})).catch((function(t){e.$Message.error(t.msg)}))},edit:function(t){this.$router.push({path:this.roterPre+"/marketing/activity_frame/create/"+t})},add:function(){this.$router.push