easypay-admin/crmebadmin/static/js/chunk-58aca897.2c973ccc.js
2023-12-20 21:43:49 +08:00

1 line
18 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-58aca897"],{2638:function(t,e,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e,n=1;n<arguments.length;n++)for(var r in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},r.apply(this,arguments)}var i=["attrs","props","domProps"],a=["class","style","directives"],o=["on","nativeOn"],s=function(t){return t.reduce((function(t,e){for(var n in e)if(t[n])if(-1!==i.indexOf(n))t[n]=r({},t[n],e[n]);else if(-1!==a.indexOf(n)){var s=t[n]instanceof Array?t[n]:[t[n]],c=e[n]instanceof Array?e[n]:[e[n]];t[n]=[].concat(s,c)}else if(-1!==o.indexOf(n))for(var u in e[n])if(t[n][u]){var f=t[n][u]instanceof Array?t[n][u]:[t[n][u]],d=e[n][u]instanceof Array?e[n][u]:[e[n][u]];t[n][u]=[].concat(f,d)}else t[n][u]=e[n][u];else if("hook"===n)for(var h in e[n])t[n][h]=t[n][h]?l(t[n][h],e[n][h]):e[n][h];else t[n]=e[n];else t[n]=e[n];return t}),{})},l=function(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}};t.exports=s},"92c6":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"d",(function(){return o})),n.d(e,"a",(function(){return s})),n.d(e,"f",(function(){return l})),n.d(e,"g",(function(){return c})),n.d(e,"j",(function(){return u})),n.d(e,"h",(function(){return f})),n.d(e,"e",(function(){return d})),n.d(e,"i",(function(){return h}));var r=n("b775");function i(t){var e={id:t.id};return Object(r["a"])({url:"/admin/system/form/temp/info",method:"GET",params:e})}function a(t){var e={keywords:t.keywords,page:t.page,limit:t.limit};return Object(r["a"])({url:"/admin/system/form/temp/list",method:"GET",params:e})}function o(t){var e={content:t.content,info:t.info,name:t.name};return Object(r["a"])({url:"/admin/system/form/temp/save",method:"POST",data:e})}function s(t){var e={id:t.id},n={content:t.content,info:t.info,name:t.name};return Object(r["a"])({url:"/admin/system/form/temp/update",method:"POST",params:e,data:n})}function l(t){var e={sendType:t.sendType};return Object(r["a"])({url:"/admin/system/notification/list",method:"GET",params:e})}function c(t){return Object(r["a"])({url:"/admin/system/notification/routine/switch/".concat(t),method:"post"})}function u(t){return Object(r["a"])({url:"/admin/system/notification/wechat/switch/".concat(t),method:"post"})}function f(t){return Object(r["a"])({url:"/admin/system/notification/sms/switch/".concat(t),method:"post"})}function d(t){var e={detailType:t.type,id:t.id};return Object(r["a"])({url:"/admin/system/notification/detail",method:"get",params:e})}function h(t){var e={detailType:t.type,id:t.id,status:t.status,tempId:t.tempId};return Object(r["a"])({url:"/admin/system/notification/update",method:"post",data:e})}},f4b0:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("el-card",{staticClass:"box-card"},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[n("div",{staticClass:"container"},[n("el-form",{attrs:{inline:""}},[n("el-form-item",{attrs:{label:"是否显示"}},[n("el-select",{staticClass:"filter-item selWidth mr20",attrs:{placeholder:"请选择",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.status,callback:function(e){t.$set(t.tableFrom,"status",e)},expression:"tableFrom.status"}},[n("el-option",{attrs:{label:"关闭",value:0}}),t._v(" "),n("el-option",{attrs:{label:"开启",value:1}})],1)],1),t._v(" "),n("el-form-item",{attrs:{label:"秒杀名称:"}},[n("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入秒杀名称",clearable:""},model:{value:t.tableFrom.name,callback:function(e){t.$set(t.tableFrom,"name",e)},expression:"tableFrom.name"}},[n("el-button",{attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1)],1)],1),t._v(" "),n("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["admin:seckill:manger:save"],expression:"['admin:seckill:manger:save']"}],attrs:{size:"mini",type:"primary"},on:{click:t.add}},[t._v("添加秒杀配置")])],1),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"mini","header-cell-style":{fontWeight:"bold"}}},[n("el-table-column",{attrs:{prop:"id",label:"ID","min-width":"50"}}),t._v(" "),n("el-table-column",{attrs:{label:"秒杀名称","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("router-link",{attrs:{to:{path:"/marketing/seckill/list/"+e.row.id}}},[n("el-button",{attrs:{type:"text",size:"small"}},[t._v(t._s(e.row.name))])],1)]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"name",label:"秒杀时段","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.time.split(",").join(" - "))+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"轮播图","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.silderImgs?n("div",{staticClass:"acea-row"},t._l(JSON.parse(e.row.silderImgs),(function(t){return n("div",{key:t.attId,staticClass:"demo-image__preview mr5"},[n("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:t.sattDir,"preview-src-list":[t.sattDir]}})],1)})),0):n("span",[t._v("无")])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"状态","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.checkPermi(["admin:seckill:manger:update:status"])?n("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"开启","inactive-text":"关闭"},on:{change:function(n){return t.onchangeIsShow(e.row)}},model:{value:e.row.status,callback:function(n){t.$set(e.row,"status",n)},expression:"scope.row.status"}}):n("span",[t._v(t._s(e.row.status?"开启":"关闭"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"createTime",label:"创建时间","min-width":"130"}}),t._v(" "),n("el-table-column",{attrs:{label:"操作","min-width":"150",fixed:"right",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["admin:seckill:manger:info","admin:seckill:manger:update"],expression:"['admin:seckill:manger:info', 'admin:seckill:manger:update']"}],attrs:{type:"text",size:"small"},on:{click:function(n){return t.handleEdit(e.row.id)}}},[t._v("编辑")]),t._v(" "),n("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["admin:seckill:manger:delete"],expression:"['admin:seckill:manger:delete']"}],staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(n){return t.handleDelete(e.row.id,e.$index)}}},[t._v("删除")]),t._v(" "),n("router-link",{attrs:{to:{path:"/marketing/seckill/creatSeckill/creat/"+e.row.id}}},[n("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["admin:seckill:save"],expression:"['admin:seckill:save']"}],attrs:{type:"text",size:"small"}},[t._v("添加商品")])],1)]}}])})],1),t._v(" "),n("div",{staticClass:"block mb20"},[n("el-pagination",{attrs:{"page-sizes":[10,20,30,40],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),n("el-dialog",{attrs:{title:0===t.isCreate?"添加数据":"编辑数据",visible:t.dialogVisible,width:"700px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[t.dialogVisible?n("zb-parser",{attrs:{"form-id":t.formId,"is-create":t.isCreate,"edit-data":t.editData},on:{submit:t.handlerSubmit,resetForm:t.resetForm}}):t._e()],1)])],1)},i=[],a=n("a356"),o=(n("2b9b"),n("b7be")),s=n("e350"),l=n("61f7");function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */u=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,n){return t[e]=n}}function d(t,e,n,r){var a=e&&e.prototype instanceof y?e:y,o=Object.create(a.prototype),s=new D(r||[]);return i(o,"_invoke",{value:S(t,n,s)}),o}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var m="suspendedStart",p="suspendedYield",v="executing",g="completed",b={};function y(){}function w(){}function x(){}var k={};f(k,o,(function(){return this}));var _=Object.getPrototypeOf,O=_&&_(_(I([])));O&&O!==n&&r.call(O,o)&&(k=O);var j=x.prototype=y.prototype=Object.create(k);function L(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function n(i,a,o,s){var l=h(t[i],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==c(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,o,s)}),(function(t){n("throw",t,o,s)})):e.resolve(f).then((function(t){u.value=t,o(u)}),(function(t){return n("throw",t,o,s)}))}s(l.arg)}var a;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return a=a?a.then(i,i):i()}})}function S(e,n,r){var i=m;return function(a,o){if(i===v)throw new Error("Generator is already running");if(i===g){if("throw"===a)throw o;return{value:t,done:!0}}for(r.method=a,r.arg=o;;){var s=r.delegate;if(s){var l=F(s,r);if(l){if(l===b)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===m)throw i=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=v;var c=h(e,n,r);if("normal"===c.type){if(i=r.done?g:p,c.arg===b)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=g,r.method="throw",r.arg=c.arg)}}}function F(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,F(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var a=h(i,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,b;var o=a.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,b):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function I(e){if(e||""===e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(c(e)+" is not iterable")}return w.prototype=x,i(j,"constructor",{value:x,configurable:!0}),i(x,"constructor",{value:w,configurable:!0}),w.displayName=f(x,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,f(t,l,"GeneratorFunction")),t.prototype=Object.create(j),t},e.awrap=function(t){return{__await:t}},L(E.prototype),f(E.prototype,s,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var o=new E(d(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then((function(t){return t.done?t.value:o.next()}))},L(j),f(j,l,"Generator"),f(j,o,(function(){return this})),f(j,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=I,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(P),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var l=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,b):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),P(n),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;P(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),b}},e}function f(t,e,n,r,i,a,o){try{var s=t[a](o),l=s.value}catch(c){return void n(c)}s.done?e(l):Promise.resolve(l).then(r,i)}function d(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var a=t.apply(e,n);function o(t){f(a,r,i,o,s,"next",t)}function s(t){f(a,r,i,o,s,"throw",t)}o(void 0)}))}}var h={name:"SeckillConfig",components:{zbParser:a["a"]},data:function(){return{dialogVisible:!1,isShow:!0,isCreate:0,editData:{},formId:123,listLoading:!0,tableData:{data:[],total:0},tableFrom:{page:1,limit:20,name:"",isDel:!1,status:""},seckillId:"",loading:!1}},mounted:function(){this.getList()},methods:{checkPermi:s["a"],resetForm:function(t){this.dialogVisible=!1},handleDelete:function(t,e){var n=this;this.$modalSure().then((function(){Object(o["H"])({id:t}).then((function(){n.$message.success("删除成功"),1===n.tableData.data.length&&n.tableFrom.page>1&&(n.tableFrom.page=n.tableFrom.page-1),n.getList()}))}))},onchangeIsShow:function(t){var e=this;Object(o["G"])(t.id,{status:t.status}).then(d(u().mark((function t(){return u().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$message.success("修改成功"),e.getList();case 2:case"end":return t.stop()}}),t)})))).catch((function(){t.status=!t.status}))},onEditSort:function(t){this.$set(t,"isEdit",!0)},onBlur:function(t){this.$set(t,"isEdit",!1),this.onEdit(t.id,t)},getFormInfo:function(t){var e=this;this.loading=!0,Object(o["I"])({id:t}).then((function(t){e.editData=t,e.dialogVisible=!0,e.loading=!1})).catch((function(){e.loading=!1}))},handleEdit:function(t){this.seckillId=t,this.getFormInfo(t),this.isCreate=1},onEdit:function(t,e){var n=this,r=e||this.editData;Object(o["R"])({id:t},r).then((function(t){n.isSuccess()})).catch((function(t){n.listLoading=!1}))},handlerSubmit:Object(l["a"])((function(t){var e=this;if(t.time.split(",")[0].split(":")[0]>t.time.split(",")[1].split(":")[0])return this.$message.error("请填写正确的时间范围");0===this.isCreate?Object(o["K"])(t).then((function(t){e.isSuccess()})):Object(o["R"])({id:this.seckillId},t).then((function(t){e.isSuccess()}))})),isSuccess:function(){this.$message.success("操作成功"),this.dialogVisible=!1,this.getList()},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(o["J"])(this.tableFrom).then((function(t){e.tableData.data=t.list,e.tableData.total=t.total,e.tableData.data.map((function(t){return e.$set(t,"isEdit",!1)})),e.listLoading=!1})).catch((function(t){e.listLoading=!1}))},pageChange:function(t){this.tableFrom.page=t,this.getList()},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList()},add:function(){this.isCreate=0,this.dialogVisible=!0},handleClose:function(){this.dialogVisible=!1,this.editData={}}}},m=h,p=n("2877"),v=Object(p["a"])(m,r,i,!1,null,"6defc530",null);e["default"]=v.exports},fb9d:function(t,e,n){var r={"./el-button.js":"64b1","./el-checkbox-group.js":"cc1a","./el-input.js":"373c","./el-radio-group.js":"afca","./el-select.js":"a938","./el-upload.js":"73ee"};function i(t){var e=a(t);return n(e)}function a(t){var e=r[t];if(!(e+1)){var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n}return e}i.keys=function(){return Object.keys(r)},i.resolve=a,t.exports=i,i.id="fb9d"}}]);