1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-28bff946"],{"25da":function(t,e,r){},"51de":function(t,e,r){"use strict";var n=r("25da"),a=r.n(n);a.a},c4c8:function(t,e,r){"use strict";r.d(e,"Z",(function(){return a})),r.d(e,"X",(function(){return o})),r.d(e,"bb",(function(){return i})),r.d(e,"Y",(function(){return s})),r.d(e,"ab",(function(){return l})),r.d(e,"l",(function(){return c})),r.d(e,"j",(function(){return u})),r.d(e,"n",(function(){return d})),r.d(e,"k",(function(){return f})),r.d(e,"m",(function(){return m})),r.d(e,"q",(function(){return p})),r.d(e,"o",(function(){return g})),r.d(e,"s",(function(){return b})),r.d(e,"p",(function(){return _})),r.d(e,"r",(function(){return v})),r.d(e,"I",(function(){return y})),r.d(e,"T",(function(){return h})),r.d(e,"t",(function(){return w})),r.d(e,"x",(function(){return V})),r.d(e,"H",(function(){return k})),r.d(e,"S",(function(){return x})),r.d(e,"K",(function(){return C})),r.d(e,"V",(function(){return L})),r.d(e,"w",(function(){return F})),r.d(e,"Q",(function(){return S})),r.d(e,"O",(function(){return $})),r.d(e,"M",(function(){return z})),r.d(e,"N",(function(){return O})),r.d(e,"v",(function(){return j})),r.d(e,"y",(function(){return D})),r.d(e,"R",(function(){return M})),r.d(e,"J",(function(){return T})),r.d(e,"U",(function(){return N})),r.d(e,"L",(function(){return W})),r.d(e,"W",(function(){return q})),r.d(e,"u",(function(){return B})),r.d(e,"P",(function(){return E})),r.d(e,"cb",(function(){return J})),r.d(e,"A",(function(){return R})),r.d(e,"z",(function(){return P})),r.d(e,"D",(function(){return A})),r.d(e,"G",(function(){return G})),r.d(e,"E",(function(){return H})),r.d(e,"F",(function(){return I})),r.d(e,"B",(function(){return K})),r.d(e,"C",(function(){return Q})),r.d(e,"d",(function(){return U})),r.d(e,"e",(function(){return X})),r.d(e,"c",(function(){return Y})),r.d(e,"f",(function(){return Z})),r.d(e,"i",(function(){return tt})),r.d(e,"b",(function(){return et})),r.d(e,"a",(function(){return rt})),r.d(e,"h",(function(){return nt})),r.d(e,"g",(function(){return at}));var n=r("0c6d");function a(){return n["a"].get("store/category/lst")}function o(){return n["a"].get("store/category/create/form")}function i(t){return n["a"].get("store/category/update/form/".concat(t))}function s(t){return n["a"].delete("store/category/delete/".concat(t))}function l(t,e){return n["a"].post("store/category/status/".concat(t),{status:e})}function c(t){return n["a"].get("store/brand/category/lst",t)}function u(){return n["a"].get("store/brand/category/create/form")}function d(t){return n["a"].get("store/brand/category/update/form/".concat(t))}function f(t){return n["a"].delete("store/brand/category/delete/".concat(t))}function m(t,e){return n["a"].post("store/brand/category/status/".concat(t),{status:e})}function p(t){return n["a"].get("store/brand/lst",t)}function g(){return n["a"].get("store/brand/create/form")}function b(t){return n["a"].get("store/brand/update/form/".concat(t))}function _(t){return n["a"].delete("store/brand/delete/".concat(t))}function v(t,e){return n["a"].post("store/brand/status/".concat(t),{status:e})}function y(t){return n["a"].get("store/product/lst",t)}function h(t){return n["a"].get("seckill/product/lst",t)}function w(){return n["a"].get("store/category/list")}function V(){return n["a"].get("system/merchant/category_lst")}function k(t){return n["a"].get("store/product/detail/".concat(t))}function x(t){return n["a"].get("seckill/product/detail/".concat(t))}function C(t){return n["a"].post("store/product/status",t)}function L(t){return n["a"].post("seckill/product/status",t)}function F(){return n["a"].get("store/product/lst_filter")}function S(){return n["a"].get("seckill/product/lst_filter")}function $(t){return n["a"].get("store/reply/lst",t)}function z(t){return n["a"].get(t?"store/reply/create/form/".concat(t):"store/reply/create/form")}function O(t){return n["a"].delete("store/reply/delete/".concat(t))}function j(t){return n["a"].get("store/product/list",t)}function D(){return n["a"].get("store/product/mer_select")}function M(){return n["a"].get("seckill/product/mer_select")}function T(t){return n["a"].post("store/product/status",t)}function N(t){return n["a"].post("seckill/product/status",t)}function W(t,e){return n["a"].post("store/product/update/".concat(t),e)}function q(t,e){return n["a"].post("seckill/product/update/".concat(t),e)}function B(t,e){return n["a"].post("store/product/change/".concat(t),{status:e})}function E(t,e){return n["a"].post("seckill/product/change/".concat(t),{status:e})}function J(t){return n["a"].get("store/product/ficti/form/".concat(t))}function R(t){return n["a"].get("store/product/presell/lst",t)}function P(t){return n["a"].get("store/product/presell/get/".concat(t))}function A(t){return n["a"].get("store/product/presell/detail/".concat(t))}function G(t,e){return n["a"].post("store/product/presell/update/".concat(t),e)}function H(t){return n["a"].post("store/product/presell/status",t)}function I(t,e){return n["a"].post("store/product/presell/is_show/".concat(t),{status:e})}function K(){return n["a"].get("store/product/presell/agree")}function Q(t){return n["a"].post("store/product/presell/agree",t)}function U(t){return n["a"].get("store/product/assist/lst",t)}function X(t){return n["a"].get("store/product/assist/get/".concat(t))}function Y(t){return n["a"].get("store/product/assist/detail/".concat(t))}function Z(t){return n["a"].post("store/product/assist/status",t)}function tt(t,e){return n["a"].post("store/product/assist/is_show/".concat(t),{status:e})}function et(t){return n["a"].get("store/product/assist/set/lst",t)}function rt(t,e){return n["a"].get("store/product/assist/set/detail/".concat(t),e)}function nt(t){return n["a"].get("store/product/assist/get/".concat(t))}function at(t,e){return n["a"].post("store/product/assist/update/".concat(t),e)}},d2e8:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"divBox"},[r("el-card",{staticClass:"box-card"},[r("div",{staticClass:"filter-container"},[r("div",{staticClass:"demo-input-suffix acea-row"},[r("el-form",{attrs:{inline:"",size:"small"}},[r("el-form-item",{staticClass:"width100",staticStyle:{display:"block"},attrs:{label:"时间选择:"}},[r("el-radio-group",{staticClass:"mr20",attrs:{type:"button",size:"small"},on:{change:function(e){return t.selectChange(t.tableFrom.date)}},model:{value:t.tableFrom.date,callback:function(e){t.$set(t.tableFrom,"date",e)},expression:"tableFrom.date"}},t._l(t.fromList.fromTxt,(function(e,n){return r("el-radio-button",{key:n,attrs:{label:e.val}},[t._v(t._s(e.text))])})),1),t._v(" "),r("el-date-picker",{staticStyle:{width:"250px"},attrs:{"value-format":"yyyy/MM/dd",format:"yyyy/MM/dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间"},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),t._v(" "),r("el-form-item",{attrs:{label:"消息名称:"}},[r("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入消息名称搜索"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.keyword,callback:function(e){t.$set(t.tableFrom,"keyword",e)},expression:"tableFrom.keyword"}},[r("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1),t._v(" "),r("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.createNews}},[t._v("发布消息")])],1)],1)]),t._v(" "),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"small"}},[r("el-table-column",{attrs:{label:"序号","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.$index+(t.tableFrom.page-1)*t.tableFrom.limit+1))])]}}])}),t._v(" "),r("el-table-column",{attrs:{prop:"notice_title",label:"消息名称","min-width":"150"}}),t._v(" "),r("el-table-column",{attrs:{prop:"create_time",label:"发送日期","min-width":"180"}}),t._v(" "),r("el-table-column",{attrs:{type:"expand"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-form",{staticClass:"demo-table-expand",attrs:{"label-position":"left",inline:""}},[r("el-form-item",[r("span",[t._v(t._s(e.row.notice_content))])]),t._v(" "),3===e.row.type||4===e.row.type?r("el-form-item",{attrs:{label:"商户分类:"}},[r("span",{staticClass:"mr10"},[t._v(t._s(e.row.type_str?e.row.type_str:"-"))])]):t._e(),t._v(" "),1===e.row.type||4===e.row.type?r("el-form-item",{attrs:{label:"商户名称:"}},[e.row.type_str?r("span",{staticClass:"mr10"},[t._v(t._s(e.row.type_str?e.row.type_str:"-"))]):r("span",[t._v("-")])]):t._e(),t._v(" "),2===e.row.type||4===e.row.type?r("el-form-item",{attrs:{label:"商户类别:"}},[e.row.type_str?r("span",{staticClass:"mr10"},[t._v(t._s(e.row.type_str?e.row.type_str:"-"))]):r("span",[t._v("-")])]):t._e()],1)]}}])})],1),t._v(" "),r("div",{staticClass:"block"},[r("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"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(" "),r("el-dialog",{attrs:{title:"发布消息",visible:t.dialogVisible,width:"600px"},on:{"update:visible":function(e){t.dialogVisible=e}}},[r("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.fullscreenLoading,expression:"fullscreenLoading"}],ref:"formValidate",staticClass:"formValidate mt20",attrs:{rules:t.ruleValidate,model:t.formValidate,"label-width":"100px"},nativeOn:{submit:function(t){t.preventDefault()}}},[r("el-form-item",{attrs:{label:"消息名称:",prop:"notice_title"}},[r("el-input",{attrs:{placeholder:"请输入消息名称"},model:{value:t.formValidate.notice_title,callback:function(e){t.$set(t.formValidate,"notice_title",e)},expression:"formValidate.notice_title"}})],1),t._v(" "),r("el-form-item",{attrs:{label:"消息内容:",prop:"notice_content"}},[r("el-input",{attrs:{maxLength:"500",placeholder:"仅限500字",type:"textarea",rows:2},model:{value:t.formValidate.notice_content,callback:function(e){t.$set(t.formValidate,"notice_content",e)},expression:"formValidate.notice_content"}})],1),t._v(" "),r("el-form-item",{attrs:{label:"选择商户"}},[r("el-radio-group",{model:{value:t.formValidate.type,callback:function(e){t.$set(t.formValidate,"type",e)},expression:"formValidate.type"}},[r("el-radio",{attrs:{label:4}},[t._v("全部")]),t._v(" "),r("el-radio",{attrs:{label:1}},[t._v("商户名称")]),t._v(" "),r("el-radio",{attrs:{label:2}},[t._v("商户类别")]),t._v(" "),r("el-radio",{attrs:{label:3}},[t._v("商户分类")])],1)],1),t._v(" "),1===t.formValidate.type?r("el-form-item",{attrs:{label:"商户名称:"}},[r("el-select",{staticClass:"selWidth",attrs:{multiple:"",clearable:"",filterable:"",placeholder:"请选择"},on:{change:function(e){return t.getList(1)}},model:{value:t.formValidate.mer_id,callback:function(e){t.$set(t.formValidate,"mer_id",e)},expression:"formValidate.mer_id"}},t._l(t.merSelect,(function(t){return r("el-option",{key:t.mer_id,attrs:{label:t.mer_name,value:t.mer_id}})})),1)],1):t._e(),t._v(" "),2===t.formValidate.type?r("el-form-item",{attrs:{label:"商户类别:"}},[r("el-select",{staticClass:"selWidth",attrs:{clearable:"",placeholder:"请选择"},model:{value:t.formValidate.is_trader,callback:function(e){t.$set(t.formValidate,"is_trader",e)},expression:"formValidate.is_trader"}},[r("el-option",{attrs:{label:"自营",value:"1"}}),t._v(" "),r("el-option",{attrs:{label:"非自营",value:"0"}})],1)],1):t._e(),t._v(" "),3===t.formValidate.type?r("el-form-item",{attrs:{label:"商户分类:"}},[r("el-select",{staticClass:"filter-item selWidth mr20",attrs:{multiple:"",placeholder:"请选择",clearable:""},on:{change:function(e){return t.getList()}},model:{value:t.formValidate.category_id,callback:function(e){t.$set(t.formValidate,"category_id",e)},expression:"formValidate.category_id"}},t._l(t.merCateList,(function(t){return r("el-option",{key:t.merchant_category_id,attrs:{label:t.category_name,value:t.merchant_category_id}})})),1)],1):t._e()],1),t._v(" "),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取 消")]),t._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.handleSubmit("formValidate")}}},[t._v("确 定")])],1)],1)],1)},a=[],o=(r("96cf"),r("3b8d")),i=(r("7f7f"),r("8593")),s=r("c4c8"),l=r("e572"),c={name:"SystemLog",data:function(){return{props:{emitPath:!1},listLoading:!0,tableData:{data:[],total:0},fromList:l["a"],dialogVisible:!1,categoryList:[],merCateList:[],merSelect:[],fullscreenLoading:!1,tableFrom:{page:1,limit:20,store_name:"",keyword:"",date:""},formValidate:{type:4,notice_title:"",notice_content:"",is_trader:"",mer_id:[],category_id:[]},timeVal:"",ruleValidate:{notice_title:[{required:!0,message:"请输入消息名称",trigger:"blur"}],notice_content:[{required:!0,message:"请输入消息内容",trigger:"blur"}]}}},mounted:function(){this.getCategorySelect(),this.getMerSelect(),this.getList("")},methods:{getCategorySelect:function(){var t=this;Object(s["x"])().then((function(e){t.merCateList=e.data.list})).catch((function(e){t.$message.error(e.message)}))},getMerSelect:function(){var t=this;Object(s["y"])().then((function(e){t.merSelect=e.data})).catch((function(e){t.$message.error(e.message)}))},onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=t?this.timeVal.join("-"):"",this.getList(1)},selectChange:function(t){this.tableFrom.date=t,this.tableFrom.page=1,this.timeVal=[],this.getList(1)},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(i["B"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList(1)},createNews:function(){this.dialogVisible=!0,this.formValidate={type:4,notice_title:"",notice_content:"",is_trader:"",category_id:""}},handleSubmit:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return!1;Object(i["o"])(e.formValidate).then(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.fullscreenLoading=!1,e.$message.success(r.message),e.dialogVisible=!1,e.getList(1);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.fullscreenLoading=!1,e.$message.error(t.message)}))}))}}},u=c,d=(r("51de"),r("2877")),f=Object(d["a"])(u,n,a,!1,null,"697dce2e",null);e["default"]=f.exports},e572:function(t,e,r){"use strict";r.d(e,"c",(function(){return n})),r.d(e,"a",(function(){return a})),r.d(e,"b",(function(){return o}));var n=[{label:"开启",value:1},{label:"关闭",value:0}],a={title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"今天",val:"today"},{text:"昨天",val:"yesterday"},{text:"最近7天",val:"lately7"},{text:"最近30天",val:"lately30"},{text:"本月",val:"month"},{text:"本年",val:"year"}]},o={title:"状态",custom:!0,fromTxt:[{text:"全部",val:""},{text:"待审核",val:"0"},{text:"审核已通过",val:"1"},{text:"审核未通过",val:"2"}]}}}]);
|