UNPKG

beehole-store-server

Version:

www.bee-hole.com

1 lines 9.18 kB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8a8da754"],{"1b6c":function(t,e,r){"use strict";r.d(e,"a",(function(){return u})),r.d(e,"b",(function(){return i}));var n=r("5530"),o=r("bf0f");function u(t,e){return function(){return Object(o["b"])(t,Object(n["a"])({},e))}}function i(t,e){return Object(o["b"])(t,Object(n["a"])({},e))}},2909:function(t,e,r){"use strict";r.d(e,"a",(function(){return d}));var n=r("6b75");function o(t){if(Array.isArray(t))return Object(n["a"])(t)}r("a4d3"),r("e01a"),r("d3b7"),r("d28b"),r("3ca3"),r("ddb0"),r("a630");function u(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}var i=r("06c5");function a(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(t){return o(t)||u(t)||Object(i["a"])(t)||a()}},d526:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t._self._c;return e("div",[[e("div",{staticStyle:{"margin-bottom":"10px",height:"20px"},attrs:{bordered:!1}},[e("a-breadcrumb",{staticStyle:{"margin-top":"5px","margin-left":"5px"}},[e("a-breadcrumb-item",{staticStyle:{color:"#000"}},[t._v(t._s(t.localeI18nFnText("src.views.member.group.view_title")))]),e("a-breadcrumb-item",[e("a",{staticStyle:{color:"#000"},attrs:{href:"javascript:;"},on:{click:t.goBack}},[t._v(t._s(t.groupName))])]),e("a-breadcrumb-item",[e("a",{staticStyle:{color:"#000"},attrs:{href:"javascript:;"}},[t._v(t._s(t.localeI18nFnText("src.views.member.group.view_title.add_bind_member")))])])],1)],1),e("a-card",{staticStyle:{"margin-bottom":"10px",height:"60px"},attrs:{bordered:!1}},[e("a-input",{staticStyle:{"margin-bottom":"5px","margin-left":"16px",width:"30%","margin-top":"15px"},attrs:{placeholder:t.$t("src.views.member.group.search_placeholder")},model:{value:t.bindSK,callback:function(e){t.bindSK=e},expression:"bindSK"}}),e("a-button",{staticClass:"editable-add-btn",staticStyle:{"margin-top":"5px","margin-left":"10px"}},[t._v(" "+t._s(t.localeI18nFnText("src.views.member.group.search"))+" ")])],1),e("a-card",{staticClass:"table-card",attrs:{bordered:!1}},[e("div",{staticStyle:{"margin-left":"12px","font-size":"18px","margin-bottom":"10px","margin-top":"10px"}},[t._v(t._s(t.localeI18nFnText("src.views.member.group.view_title.add_bind_member")))]),e("a-table",{attrs:{bordered:"","data-source":t.bindSL,columns:t.unbindColumns},scopedSlots:t._u([{key:"operation",fn:function(r,n){return[t.bindSL.length?e("a-popconfirm",{attrs:{title:t.$t("src.views.member.group.table.operation.are_you_sure")},on:{confirm:function(){return t.onBind(n.member_id)}}},[e("a-button",{attrs:{type:"primary"}},[t._v(" "+t._s(t.localeI18nFnText("src.views.member.group.table.operation.bind"))+" ")])],1):t._e()]}}])})],1)]],2)},o=[],u=r("5530"),i=r("2909"),a=(r("d3b7"),r("25f0"),r("4de4"),r("a9e3"),r("caad"),r("2532"),r("f3ba")),d=r("2f62"),b=r("1b6c"),c={name:"BindGroupMember",data:function(){return{bindSK:"",bind_visible:!1,unBoundSource:[],unbindColumns:[{title:Object(b["a"])("src.views.member.group.table.id"),dataIndex:"member_id"},{title:Object(b["a"])("src.views.member.group.table.nickname"),dataIndex:"nick"},{title:Object(b["a"])("src.views.member.group.table.email"),dataIndex:"email"},{title:Object(b["a"])("src.views.member.group.table.operation"),dataIndex:"operation",scopedSlots:{customRender:"operation"}}]}},methods:{localeI18nFnText:b["b"],unboundMemberList:function(){var t=this;Object(a["B"])({GroupId:this.groupId,ShopId:this.shopId}).then((function(e){t.unBoundSource=e}))},onBind:function(t){var e=this,r={GroupId:this.groupId,MemberId:t};Object(a["e"])(r).then((function(t){e.$message.success(e.$t("src.views.member.group.success").toString())}));var n=Object(i["a"])(this.unBoundSource);this.unBoundSource=n.filter((function(e){return e.member_id!==t}))},goBack:function(){this.callback()}},props:{callback:{type:Function,required:!0},groupId:{type:Number,required:!0},groupName:{type:String,required:!0}},computed:Object(u["a"])(Object(u["a"])({},Object(d["c"])(["shopId"])),{},{bindSL:function(){var t=this;return this.unBoundSource?this.unBoundSource.filter((function(e){return e.member_id.toString().includes(t.bindSK)||e.nick.toString().includes(t.bindSK)||e.email.toString().includes(t.bindSK)})):[]}}),created:function(){this.bind_visible=!0,this.unboundMemberList()}},m=c,s=r("2877"),l=Object(s["a"])(m,n,o,!1,null,"5286c4fb",null);e["default"]=l.exports},f3ba:function(t,e,r){"use strict";r.d(e,"a",(function(){return o})),r.d(e,"h",(function(){return u})),r.d(e,"m",(function(){return i})),r.d(e,"H",(function(){return a})),r.d(e,"o",(function(){return d})),r.d(e,"b",(function(){return b})),r.d(e,"i",(function(){return c})),r.d(e,"I",(function(){return m})),r.d(e,"z",(function(){return s})),r.d(e,"j",(function(){return l})),r.d(e,"d",(function(){return p})),r.d(e,"x",(function(){return _})),r.d(e,"g",(function(){return f})),r.d(e,"G",(function(){return g})),r.d(e,"f",(function(){return h})),r.d(e,"F",(function(){return j})),r.d(e,"e",(function(){return O})),r.d(e,"E",(function(){return v})),r.d(e,"c",(function(){return y})),r.d(e,"y",(function(){return S})),r.d(e,"n",(function(){return x})),r.d(e,"p",(function(){return w})),r.d(e,"A",(function(){return I})),r.d(e,"w",(function(){return k})),r.d(e,"r",(function(){return B})),r.d(e,"t",(function(){return F})),r.d(e,"s",(function(){return K})),r.d(e,"C",(function(){return T})),r.d(e,"k",(function(){return C})),r.d(e,"B",(function(){return L})),r.d(e,"l",(function(){return q})),r.d(e,"D",(function(){return A})),r.d(e,"v",(function(){return G})),r.d(e,"u",(function(){return M})),r.d(e,"q",(function(){return $})),r.d(e,"J",(function(){return J}));var n=r("b775");function o(t){return Object(n["b"])({url:"/member_group/add",method:"post",data:t})}function u(t){return Object(n["b"])({url:"/member_group/delete",method:"post",data:t})}function i(t){return Object(n["b"])({url:"/member_group/list",method:"post",data:t})}function a(t){return Object(n["b"])({url:"/member_group/update",method:"post",data:t})}function d(t){return Object(n["b"])({url:"/member_grade/list",method:"post",data:t})}function b(t){return Object(n["b"])({url:"/member_grade/add",method:"post",data:t})}function c(t){return Object(n["b"])({url:"/member_grade/delete",method:"post",data:t})}function m(t){return Object(n["b"])({url:"/member_grade/update",method:"post",data:t})}function s(t){return Object(n["b"])({url:"/member_tag/list",method:"post",data:t})}function l(t){return Object(n["b"])({url:"/member_tag/delete",method:"post",data:t})}function p(t){return Object(n["b"])({url:"/member_tag/add",method:"post",data:t})}function _(t){return Object(n["b"])({url:"/member/remark/list",method:"post",data:t})}function f(t){return Object(n["b"])({url:"/member_tag/bind",method:"post",data:t})}function g(t){return Object(n["b"])({url:"/member_tag/unbound",method:"post",data:t})}function h(t){return Object(n["b"])({url:"/member_grade/bind",method:"post",data:t})}function j(t){return Object(n["b"])({url:"/member_grade/unbind",method:"post",data:t})}function O(t){return Object(n["b"])({url:"/member_group_relation/add",method:"post",data:t})}function v(t){return Object(n["b"])({url:"/member_group_relation/delete",method:"post",data:t})}function y(t){return Object(n["b"])({url:"/member/remark/add",method:"post",data:t})}function S(t){return Object(n["b"])({url:"/member/remark_list",method:"post",data:t})}function x(t){return Object(n["b"])({url:"/member_group/get_list_by_shop_id",method:"post",data:t})}function w(t){return Object(n["b"])({url:"/member_grade/get_list_by_shop_id",method:"post",data:t})}function I(t){return Object(n["b"])({url:"/member_tag/list/shop",method:"post",data:t})}function k(t){return Object(n["b"])({url:"/member/get_member_by_tag_id_and_shop_id",method:"post",data:t})}function B(t){return Object(n["b"])({url:"/member/get_member_by_group_id_and_shop_id",method:"post",data:t})}function F(t){return Object(n["b"])({url:"/member/get_member_by_level_id_and_shop_id",method:"post",data:t})}function K(t){return Object(n["b"])({url:"/member_grade/get_member_list_by_grade_id",method:"post",data:t})}function T(t){return Object(n["b"])({url:"/member_grade/get_unbind_member_list_by_grade_id",method:"post",data:t})}function C(t){return Object(n["b"])({url:"/member_group_relation/get_list_by_group_id",method:"post",data:t})}function L(t){return Object(n["b"])({url:"/member_group_relation/get_list_by_group_id_not_bind",method:"post",data:t})}function q(t){return Object(n["b"])({url:"/member_tag/bound/list/tag",method:"post",data:t})}function A(t){return Object(n["b"])({url:"/member_tag/unbound/list/tag",method:"post",data:t})}function G(t){return Object(n["b"])({url:"/member_tag/bound/list/tag/member",method:"post",data:t})}function M(t){return Object(n["b"])({url:"/member_grade/get_member_list_by_grade_id_with_bind",method:"post",data:t})}function $(t){return Object(n["b"])({url:"/member_group/get_member_group_user_list",method:"post",data:t})}function J(t){return Object(n["b"])({url:"/member_tag/update/name",method:"post",data:t})}}}]);