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
74 KiB
1 line
74 KiB
4 months ago
|
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-5bb50403"],{"0769":function(t,e,r){"use strict";r("91d7")},"084c":function(t,e,r){},"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")}}},o=(r("a405"),r("2877")),i=Object(o.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=i.exports},3715:function(t,e,r){},"4afc":function(t,e,r){"use strict";r.r(e);var n=r("2f62"),a=r("b7be"),o=r("c24f"),i=r("c4c8"),s=r("5671"),c=r("f1c7"),l=r("0f0e"),u=r("c4ad");function d(t){return(d="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 f(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */f=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o=e&&e.prototype instanceof _?e:_,i=Object.create(o.prototype),s=new I(n||[]);return a(i,"_invoke",{value:S(t,r,s)}),i}function m(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var p="suspendedStart",h="suspendedYield",b="executing",g="completed",v={};function _(){}function y(){}function w(){}var O={};l(O,i,(function(){return this}));var k=Object.getPrototypeOf,x=k&&k(k(D([])));x&&x!==r&&n.call(x,i)&&(O=x);var j=w.prototype=_.prototype=Object.create(O);function C(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function L(t,e){function r(a,o,i,s){var c=m(t[a],t,o);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==d(u)&&n.call(u,"__await")?e.resolve(u.__await).then((function(t){r("next",t,i,s)}),(function(t){r("throw",t,i,s)})):e.resolve(u).then((function(t){l.value=t,i(l)}),(function(t){return r("throw",t,i,s)}))}s(c.arg)}var o;a(this,"_invoke",{value:function(t,n){function a(){return new e((fu
|