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.
1 lines
8.6 KiB
1 lines
8.6 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b872e81c"],{"1cda":function(t,e,n){"use strict";var r=n("d9ff"),a=n.n(r);a.a},c24f:function(t,e,n){"use strict";n.d(e,"r",(function(){return a})),n.d(e,"k",(function(){return i})),n.d(e,"l",(function(){return s})),n.d(e,"a",(function(){return o})),n.d(e,"q",(function(){return u})),n.d(e,"j",(function(){return c})),n.d(e,"m",(function(){return l})),n.d(e,"u",(function(){return d})),n.d(e,"d",(function(){return f})),n.d(e,"f",(function(){return h})),n.d(e,"c",(function(){return m})),n.d(e,"e",(function(){return b})),n.d(e,"p",(function(){return p})),n.d(e,"n",(function(){return g})),n.d(e,"t",(function(){return v})),n.d(e,"o",(function(){return _})),n.d(e,"s",(function(){return w})),n.d(e,"g",(function(){return j})),n.d(e,"i",(function(){return O})),n.d(e,"b",(function(){return C})),n.d(e,"h",(function(){return k}));var r=n("b6bd");function a(){return Object(r["a"])({url:"user/user_label_cate",method:"get"})}function i(){return Object(r["a"])({url:"user/user_label_cate/create",method:"get"})}function s(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 u(){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/user",method:"get",params:t})}function d(t){return Object(r["a"])({url:"user/search",method:"get",params:t})}function f(t){return Object(r["a"])({url:"user/label/".concat(t),method:"get"})}function h(t,e){return Object(r["a"])({url:"user/label/".concat(t),method:"post",data:e})}function m(t){return Object(r["a"])({url:"user/user/".concat(t),method:"get"})}function b(t){return Object(r["a"])({url:"user/one_info/".concat(t.id),method:"get",params:t.datas})}function p(t){return Object(r["a"])({url:"user/set_label",method:"post",data:t})}function g(){return Object(r["a"])({url:"user/recharge/meal",method:"get"})}function v(){return Object(r["a"])({url:"user/member/ship",method:"get"})}function _(t){return Object(r["a"])({url:"user/recharge",method:"post",data:t})}function w(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 O(t){return Object(r["a"])({url:"updatePwd",method:"PUT",data:t})}function C(t,e){return Object(r["a"])({url:"check_order_status/".concat(t),method:"post",data:e})}function k(){return Object(r["a"])({url:"staff/staff_info",method:"get"})}},d9ff:function(t,e,n){},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=[],i=n("a34a"),s=n.n(i),o=n("c24f");function u(t,e,n,r,a,i,s){try{var o=t[i](s),u=o.value}catch(c){return void n(c)}o.done?e(u):Promise.resolve(u).then(r,a)}function c(t){return function(){var e=this,n=arguments;return new Promise((function(r,a){var i=t.apply(e,n);function s(t){u(i,r,a,s,o,"next",t)}function o(t){u(i,r,a,s,o,"throw",t)}s(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["r"])().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["l"])(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["k"])()).then((function(){return t.getUserLabelAll()}))},add:function(){var t=this;this.$modalForm(Object(o["q"])(0)).then((function(){return t.getList()}))},changeSwitch:function(t){console.log(t)},getList:function(){var t=this;this.loading=!0,Object(o["a"])(this.labelFrom).then(function(){var e=c(s.a.mark((function e(n){var r;return s.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["j"])(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.labelLists.length||(r.labelFrom.page=1==r.labelFrom.page?1:r.labelFrom.page-1),r.getList()})).catch((function(t){r.$Message.error(t.msg)}))},pageChange:function(t){this.labelFrom.page=t,this.getList()}}},d=l,f=(n("1cda"),n("2877")),h=Object(f["a"])(d,r,a,!1,null,"2db4746f",null);e["default"]=h.exports}}]); |