徐总多门店
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 line
17 KiB

4 months ago
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-6647948f"],{1947:function(t,e,r){},"232f":function(t,e,r){"use strict";var n=r("c24f"),a={name:"userLabel",props:{uid:{type:String|Number|Object,default:""}},data:function(){return{isUser:!1,labelList:[],activeIds:[],info:{},oid:""}},watch:{uid:{handler:function(t,e){t!=e&&this.getList()},deep:!0}},mounted:function(){this.getList()},methods:{getList:function(){var t=this,e=0;this.uid instanceof Object?(this.info=this.uid,e=!this.uid.all&&this.uid.uids.length>1||this.uid.all?0:this.uid.uids[0]):e=this.uid,this.oid=e,Object(n.l)(e).then((function(e){e.data.map((function(e){t.isUser=!0,e.label.map((function(e){e.disabled&&t.activeIds.push(e.id)}))})),t.labelList=e.data}))},selectLabel:function(t){if(t.disabled){var e=this.activeIds.indexOf(t.id);this.activeIds.splice(e,1),t.disabled=!1}else this.activeIds.push(t.id),t.disabled=!0},subBtn:function(){var t=this,e=[];this.labelList.map((function(t){t.label.map((function(t){0==t.disabled&&e.push(t.id)}))}));var r=this.info;r.label_id=this.activeIds,(0==this.oid?Object(n.G)(r):Object(n.F)(this.oid,{label_ids:this.activeIds,un_label_ids:e})).then((function(e){t.activeIds=[],t.labelList=[],t.$Message.success(e.msg),t.$emit("close",t.oid)})).catch((function(e){t.$Message.error(e.msg)}))},cancel:function(){this.activeIds=[],this.labelList=[],this.$emit("close")}}},i=(r("6f18"),r("2877")),o=Object(i.a)(a,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"label-wrapper"},[e("div",{staticClass:"list-box"},[t._l(t.labelList,(function(r,n){return t.isUser?e("div",{key:n,staticClass:"label-box"},[e("div",{staticClass:"title"},[t._v(t._s(r.name))]),e("div",{staticClass:"list"},t._l(r.label,(function(r,n){return e("div",{key:n,staticClass:"label-item",class:{on:r.disabled},on:{click:function(e){return t.selectLabel(r)}}},[t._v(t._s(r.label_name))])})),0)]):t._e()})),t.isUser?t._e():e("div",[t._v("暂无标签")])],2),e("div",{staticClass:"footer"},[e("Button",{staticClass:"btns",attrs:{type:"primary"},on:{click:t.subBtn}},[t._v("确定")]),e("Button",{staticClass:"btns",attrs:{type:"primary",ghost:""},on:{click:t.cancel}},[t._v("取消")])],1)])}),[],!1,null,"8d17409a",null);e.a=o.exports},"6f18":function(t,e,r){"use strict";r("fbcf")},"77d9":function(t,e,r){"use strict";r("1947")},a387:function(t,e,r){"use strict";r.r(e),r("232f");var n=r("c24f"),a=r("2f62"),i=r("a716");function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */s=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},l=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i=e&&e.prototype instanceof y?e:y,o=Object.create(i.prototype),s=new V(n||[]);return a(o,"_invoke",{value:P(t,r,s)}),o}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var p="suspendedStart",m="suspendedYield",v="executing",g="completed",b={};function y(){}function w(){}function _(){}var D={};f(D,l,(function(){return this}));var L=Object.getPrototypeOf,O=L&&L(L(C([])));O&&O!==r&&n.call(O,l)&&(D=O);var x=_.prototype=y.prototype=Object.create(D);function j(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(a,i,s,l){var c=d(t[a],t,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==o(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,s,l)}),(function(t){r("throw"