require('../../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/admin/user/components/userLable/index"],{"0dbd":function(t,e,i){"use strict";var n=i("2702"),a=i.n(n);a.a},2702:function(t,e,i){},"35d9":function(t,e,i){"use strict";i.r(e);var n=i("628d"),a=i.n(n);for(var l in n)["default"].indexOf(l)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(l);e["default"]=a.a},"628d":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("6af6"),a=(i("3240"),{components:{emptyPage:function(){i.e("components/emptyPage").then(function(){return resolve(i("398a"))}.bind(null,i)).catch(i.oe)}},props:{visible:{type:Boolean,default:!1}},data:function(){return{getHeight:this.$util.getWXStatusHeight(),labelList:[],goodsInfo:{},dataLabel:[],isStore:!1,num:0,ids:[]}},mounted:function(){},methods:{define:function(){var t=this;if(this.checkKefuAuth("kefu-admin-user-edit")){var e=[];this.dataLabel.forEach((function(t){e.push(t.id)})),(0,n.postUserUpdate)({type:5,uid:this.num?this.ids:this.goodsInfo.uid,label_id:e}).then((function(e){t.$util.Tips({title:e.msg}),t.$emit("closeDrawer",1)})).catch((function(e){t.$util.Tips({title:e})}))}},reset:function(){this.productLabel(this.goodsInfo,this.num,this.ids)},inArray:function(t,e){for(var i in e)if(e[i].id==t)return!0;return!1},productLabel:function(t,e,i){var a=this;this.checkKefuAuth("kefu-admin-user-list")&&(this.dataLabel=t.label_id||[],this.goodsInfo=JSON.parse(JSON.stringify(t)),this.num=e,this.ids=i,(0,n.getUserLabel)().then((function(t){t.data.map((function(t){t.label&&t.label.length&&(a.isStore=!0,t.label.map((function(t){a.inArray(t.id,a.dataLabel)?t.disabled=!0:t.disabled=!1})))})),a.labelList=t.data})).catch((function(t){a.$util.Tips({title:t})})))},selectLabel:function(t){if(t.disabled){var e=this.dataLabel.indexOf(this.dataLabel.filter((function(e){return e.id==t.id}))[0]);this.dataLabel.splice(e,1),t.disabled=!1}else this.dataLabel.push({id:t.id,label_name:t.label_name}),t.disabled=!0},closeDrawer:function(){this.$emit("closeDrawer")}}});e.default=a},"7ec1":function(t,e,i){"use strict";i.r(e);var n=i("d733"),a=i("35d9");for(var l in a)["default"].indexOf(l)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(l);i("0dbd");var s=i("828b"),u=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"e6ebe8b4",null,!1,n["a"],void 0);e["default"]=u.exports},d733:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=(t._self._c,t.isStore?t.__map(t.labelList,(function(e,i){var n=t.__get_orig(e),a=e.label&&e.label.length,l=e.label&&e.label.length;return{$orig:n,g0:a,g1:l}})):null);t.$mp.data=Object.assign({},{$root:{l0:i}})},a=[]}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'pages/admin/user/components/userLable/index-create-component',
    {
        'pages/admin/user/components/userLable/index-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('df3c')['createComponent'](__webpack_require__("7ec1"))
        })
    },
    [['pages/admin/user/components/userLable/index-create-component']]
]);
