chunk-de592f34.e1c20f7e.js 9.1 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-de592f34"],{c24f:function(t,e,n){"use strict";n.d(e,"w",(function(){return a})),n.d(e,"p",(function(){return u})),n.d(e,"q",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"v",(function(){return s})),n.d(e,"o",(function(){return c})),n.d(e,"r",(function(){return l})),n.d(e,"b",(function(){return d})),n.d(e,"z",(function(){return f})),n.d(e,"f",(function(){return h})),n.d(e,"j",(function(){return m})),n.d(e,"d",(function(){return b})),n.d(e,"h",(function(){return p})),n.d(e,"u",(function(){return g})),n.d(e,"s",(function(){return v})),n.d(e,"y",(function(){return _})),n.d(e,"t",(function(){return w})),n.d(e,"x",(function(){return O})),n.d(e,"l",(function(){return j})),n.d(e,"n",(function(){return C})),n.d(e,"c",(function(){return y})),n.d(e,"m",(function(){return k})),n.d(e,"k",(function(){return x})),n.d(e,"g",(function(){return L})),n.d(e,"e",(function(){return S})),n.d(e,"i",(function(){return F}));var r=n("b6bd");function a(){return Object(r["a"])({url:"user/user_label_cate",method:"get"})}function u(){return Object(r["a"])({url:"user/user_label_cate/create",method:"get"})}function i(t){return Object(r["a"])({url:"user/user_label_cate/".concat(t,"/edit"),method:"get"})}function o(t){return Object(r["a"])({url:"user/user_label",method:"get",params:t})}function s(){return Object(r["a"])({url:"user/user_label/create",method:"get"})}function c(t){return Object(r["a"])({url:"user/user_label/".concat(t,"/edit"),method:"get"})}function l(t){return Object(r["a"])({url:"user/get_list",method:"get",params:t})}function d(t){return Object(r["a"])({url:"user/cashier_list",method:"get",params:t})}function f(t){return Object(r["a"])({url:"user/search",method:"get",params:t})}function h(t){return Object(r["a"])({url:"user/label/".concat(t),method:"get"})}function m(t,e){return Object(r["a"])({url:"user/label/".concat(t),method:"post",data:e})}function b(t){return Object(r["a"])({url:"user/info/".concat(t),method:"get"})}function p(t){return Object(r["a"])({url:"user/record/".concat(t.id),method:"get",params:t.datas})}function g(t){return Object(r["a"])({url:"user/set_label",method:"post",data:t})}function v(){return Object(r["a"])({url:"store/recharge_info",method:"get"})}function _(){return Object(r["a"])({url:"user/member/ship",method:"get"})}function w(t){return Object(r["a"])({url:"store/recharge",method:"post",data:t})}function O(t){return Object(r["a"])({url:"/user/member",method:"post",data:t})}function j(t){return Object(r["a"])({url:"staff/binding/user",method:"post",data:t})}function C(t){return Object(r["a"])({url:"updatePwd",method:"PUT",data:t})}function y(t,e){return Object(r["a"])({url:"check_order_status/".concat(t),method:"post",data:e})}function k(){return Object(r["a"])({url:"user/cashier_info ",method:"get"})}function x(t){return Object(r["a"])({url:"user/read/".concat(t),method:"get"})}function L(t,e){return Object(r["a"])({url:"user/one_info/".concat(t),method:"get",params:e})}function S(t){return Object(r["a"])({url:"user/member_card",method:"get",params:t})}function F(t){return Object(r["a"])({url:"user/mer_recharge",method:"post",data:t})}},dfd9: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",[n("Row",{staticClass:"ivu-mt box-wrapper"},[n("Col",{staticClass:"left-wrapper",attrs:{span:"4"}},[n("Menu",{attrs:{theme:t.theme3,"active-name":t.sortName,width:"auto"}},[n("MenuGroup",t._l(t.labelSort,(function(e,r){return n("MenuItem",{key:r,staticClass:"menu-item",class:r===t.current?"showOn":"",attrs:{name:e.id},nativeOn:{click:function(n){return t.bindMenuItem(e.id,r)}}},[t._v("\n\t\t "+t._s(e.name)+"\n\t\t "),0!=r?n("div",{staticClass:"icon-box"},[n("Icon",{attrs:{type:"ios-more",size:"24"},on:{click:function(n){return n.stopPropagation(),t.showMenu(e)}}})],1):t._e(),0!=r?n("div",{directives:[{name:"show",rawName:"v-show",value:e.status,expression:"item.status"}],staticClass:"right-menu ivu-poptip-inner"},[n("div",{staticClass:"ivu-poptip-body",on:{click:function(n){return t.labelEdit(e)}}},[n("div",{staticClass:"ivu-poptip-body-content"},[n("div",{staticClass:"ivu-poptip-body-content-inner"},[t._v("编辑")])])]),n("div",{staticClass:"ivu-poptip-body",on:{click:function(n){return t.deleteSort(e,"删除分类",r)}}},[n("div",{staticClass:"ivu-poptip-body-content"},[n("div",{staticClass:"ivu-poptip-body-content-inner"},[t._v("删除")])])])]):t._e()])})),1)],1)],1),n("Col",{staticClass:"right-wrapper ",attrs:{span:"20"}},[0==t.tab?n("div",{staticClass:"bottom"},[n("Col",t._b({},"Col",t.grid,!1),[n("Button",{directives:[{name:"auth",rawName:"v-auth",value:["user-user_label-create"],expression:"['user-user_label-create']"}],attrs:{type:"primary",icon:"md-add"},on:{click:t.add}},[t._v("添加标签")]),n("Button",{directives:[{name:"auth",rawName:"v-auth",value:["user-user_label_cate-create"],expression:"['user-user_label_cate-create']"}],staticStyle:{"margin-left":"10px"},attrs:{type:"success",icon:"md-add"},on:{click:t.addSort}},[t._v("添加分类")])],1),n("div",{staticClass:"bottom-table"},[n("Table",{ref:"table",staticClass:"mt25",attrs:{columns:t.columns,data:t.labelLists,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"status",fn:function(e){var r=e.row;e.index;return[n("i-switch",{attrs:{value:r.status,"true-value":1,"false-value":0,size:"large"},on:{"on-change":function(e){return t.changeSwitch(r)}},model:{value:r.status,callback:function(e){t.$set(r,"status",e)},expression:"row.status"}},[n("span",{attrs:{slot:"open"},slot:"open"},[t._v("开启")]),n("span",{attrs:{slot:"close"},slot:"close"},[t._v("关闭")])])]}},{key:"action",fn:function(e){var r=e.row,a=e.index;return[n("a",{on:{click:function(e){return t.edit(r.id)}}},[t._v("编辑")]),n("Divider",{attrs:{type:"vertical"}}),n("a",{on:{click:function(e){return t.del(r,"删除标签",a)}}},[t._v("删除")])]}}],null,!1,1524578581)}),n("div",{staticClass:"acea-row row-right page"},[n("Page",{attrs:{total:t.total,current:t.labelFrom.page,"show-elevator":"","show-total":"","page-size":t.labelFrom.limit},on:{"on-change":t.pageChange}})],1)],1)],1):t._e()])],1)],1)},a=[],u=n("a34a"),i=n.n(u),o=n("c24f");function s(t,e,n,r,a,u,i){try{var o=t[u](i),s=o.value}catch(c){return void n(c)}o.done?e(s):Promise.resolve(s).then(r,a)}function c(t){return function(){var e=this,n=arguments;return new Promise((function(r,a){var u=t.apply(e,n);function i(t){s(u,r,a,i,o,"next",t)}function o(t){s(u,r,a,i,o,"throw",t)}i(void 0)}))}}var l={name:"ccc",data:function(){return{grid:{xl:7,lg:7,md:12,sm:24,xs:24},total:0,tab:0,theme3:"light",labelSort:[],labelFrom:{page:1,limit:15,label_cate:""},current:0,sortName:"",loading:!1,columns:[{title:"ID",key:"id",minWidth:120},{title:"标签名称",key:"label_name",minWidth:600},{title:"操作",slot:"action",fixed:"right",minWidth:120}],labelLists:[]}},mounted:function(){this.getUserLabelAll(),this.bindMenuItem("",0)},methods:{bindMenuItem:function(t,e){this.current=e,this.labelFrom.page=1,this.labelSort.forEach((function(t){t.status=!1})),this.labelFrom.label_cate=t,this.getList()},getUserLabelAll:function(t){var e=this;Object(o["w"])().then((function(n){var r={name:"全部",id:""};n.data.list.unshift(r),n.data.list.forEach((function(t){t.status=!1})),t||(e.sortName=n.data.list[0].id,e.labelFrom.label_cate=n.data.list[0].id),e.labelSort=n.data.list}))},showMenu:function(t){this.labelSort.forEach((function(e){e.id==t.id?e.status=!t.status:e.status=!1}))},labelEdit:function(t){var e=this;this.$modalForm(Object(o["q"])(t.id)).then((function(){return e.getUserLabelAll(1)}))},deleteSort:function(t,e,n){var r=this,a={title:e,num:n,url:"user/user_label_cate/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(a).then((function(t){r.$Message.success(t.msg),r.labelSort.splice(n,1),r.labelSort=[],r.getUserLabelAll()})).catch((function(t){r.$Message.error(t.msg)}))},addSort:function(){var t=this;this.$modalForm(Object(o["p"])()).then((function(){return t.getUserLabelAll()}))},add:function(){var t=this;this.$modalForm(Object(o["v"])(0)).then((function(){return t.getList()}))},changeSwitch:function(t){},getList:function(){var t=this;this.loading=!0,Object(o["a"])(this.labelFrom).then(function(){var e=c(i.a.mark((function e(n){var r;return i.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:r=n.data,t.labelLists=r.list,t.total=r.count,t.loading=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},edit:function(t){var e=this;this.$modalForm(Object(o["o"])(t)).then((function(){return e.getList()}))},del:function(t,e,n){var r=this,a={title:e,num:n,url:"user/user_label/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(a).then((function(t){r.$Message.success(t.msg),r.labelLists.splice(n,1),r.getList()})).catch((function(t){r.$Message.error(t.msg)}))},pageChange:function(t){this.labelFrom.page=t,this.getList()}}},d=l,f=(n("e756"),n("2877")),h=Object(f["a"])(d,r,a,!1,null,"9248a754",null);e["default"]=h.exports},e1ef:function(t,e,n){},e756:function(t,e,n){"use strict";var r=n("e1ef"),a=n.n(r);a.a}}]);