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
55 KiB
1 line
55 KiB
4 months ago
|
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-74ecbd15"],{"0f0e":function(t,e,r){"use strict";var n=r("c4c8"),a={name:"userLabel",props:{},data:function(){return{labelList:[],dataLabel:[],isUser:!1}},mounted:function(){},methods:{inArray:function(t,e){for(var r in e)if(e[r].id===t)return!0;return!1},userLabel:function(t){var e=this;this.dataLabel=t,Object(n.ob)().then((function(t){t.data.map((function(t){t.children&&t.children.length&&(e.isUser=!0,t.children.map((function(t){e.inArray(t.id,e.dataLabel)?t.disabled=!0:t.disabled=!1})))})),e.labelList=t.data})).catch((function(t){e.$Message.error(t.msg)}))},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({label_name:t.label_name,id:t.id,tag_id:t.tag_id}),t.disabled=!0},subBtn:function(){this.$emit("activeData",JSON.parse(JSON.stringify(this.dataLabel)))},cancel:function(){this.$emit("close")}}},i=(r("a405"),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"},[r.children&&r.children.length?e("div",{staticClass:"title"},[t._v("\n "+t._s(r.label_name)+"\n ")]):t._e(),r.children&&r.children.length?e("div",{staticClass:"list"},t._l(r.children,(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("\n "+t._s(r.label_name)+"\n ")])})),0):t._e()]):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,"ea2c8f16",null);e.a=o.exports},1989:function(t,e,r){},"30a5":function(t,e,r){t.exports=r.p+"view_admin/img/svip-user.b89bb400.png"},"329e":function(t,e,r){"use strict";r("6c32")},"6c32":function(t,e,r){},"73f5":function(t,e,r){"use strict";r.d(e,"D",(function(){return a})),r.d(e,"u",(function(){return i})),r.d(e,"q",(function(){return o})),r.d(e,"t",(function(){return s})),r.d(e,"v",(function(){return c})),r.d(e,"x",(function(){return u})),r.d(e,"j",(function(){return l})),r.d(e,"i",(function(){return d})),r.d(e,"U",(function(){return f})),r.d(e,"h",(function(){return m})),r.d(e,"z",(function(){return h})),r.d(e,"y",(function(){return p})),r.d(e,"A",(function(){return v})),r.d(e,"w",(function(){return b})),r.d(e,"m",(function(){return _})),r.d(e,"B",(function(){return g})),r.d(e,"s",(function(){return y})),r.d(e,"L",(function(){return w})),r.d(e,"M",(function(){return k})),r.d(e,"J",(function(){return O})),r.d(e,"K",(function(){return j})),r.d(e,"g",(function(){return C})),r.d(e,"G",(function(){return I})),r.d(e,"H",(function(){return x})),r.d(e,"I",(function(){return L})),r.d(e,"T",(function(){return D})),r.d(e,"O",(function(){return E})),r.d(e,"N",(function(){return S})),r.d(e,"e",(function(){return F})),r.d(e,"S",(function(){return W})),r.d(e,"o",(function(){return M})),r.d(e,"P",(function(){return $})),r.d(e,"Q",(function(){return N})),r.d(e,"R",(function(){return P})),r.d(e,"n",(function(){return T})),r.d(e,"r",(function(){return G})),r.d(e,"E",(function(){return B})),r.d(e,"p",(function(){return U})),r.d(e,"C",(function(){return A})),r.d(e,"f",(function(){return z})),r.d(e,"F",(function(){return Y})),r.d(e,"b",(function(){return J})),r.d(e,"d",(function(){return R})),r.d(e,"c",(function(){return q})),r.d(e,"a",(function(){return H})),r.d(e,"k",(function(){return V})),r.d(e,"l",(function(){return K}));var n=r("b6bd");function a(t){return Object(n.a)({url:"merchant/store_list",method:"get",params:t})}function i(t){return Object(n.a)({url:"store/order/list",method:"get",params:t})}function o(t){return Object(n.a)({url:"store/order/chart",method:"get",params:t})}function s(t){return Object
|