new_naweigete/crmeb/public/admin/dist/system_static/js/chunk-8d6d5e28.d5a2d1c8.js

8 lines
180 KiB
JavaScript
Raw Normal View History

2025-03-12 10:47:34 +08:00
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-8d6d5e28"],{"0b439":function(t,e,i){i=i("04f8"),t.exports=i&&!!Symbol.for&&!!Symbol.keyFor},"0f0e":function(t,e,i){i("4de4"),i("d81d"),i("14d9"),i("a434"),i("e9f5"),i("910d"),i("ab43"),i("e9c4"),i("b64b"),i("d3b7");var a=i("c4c8"),n={name:"userLabel",props:{},data:function(){return{labelList:[],dataLabel:[],isUser:!1}},mounted:function(){this.setLabel()},methods:{inArray:function(t,e){for(var i in e)if(e[i].id==t)return!0;return!1},setLabel:function(){var t=this;Object(a.x)().then((function(e){e.data.map((function(e){e.children&&(t.isUser=!0,e.children.map((function(e){t.inArray(e.id,t.dataLabel)?e.disabled=!0:e.disabled=!1})))})),t.labelList=e.data})).catch((function(e){t.$message.error(e.msg)}))},selectLabel:function(t){var e;t.disabled?(e=this.dataLabel.indexOf(this.dataLabel.filter((function(e){return e.id==t.id}))[0]),this.dataLabel.splice(e,1),t.disabled=!1):(this.dataLabel.push({label_name:t.label_name,id:t.id}),t.disabled=!0)},subBtn:function(){this.$emit("activeData",JSON.parse(JSON.stringify(this.dataLabel)))},cancel:function(){this.$emit("close")}}};i("1cf7"),i=i("2877"),i=Object(i.a)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"label-wrapper"},[e("div",{staticClass:"list-box"},[t.isUser?t._l(t.labelList,(function(i,a){return e("div",{key:a,staticClass:"label-box"},[i.children?e("div",{staticClass:"title"},[t._v(t._s(i.label_name))]):t._e(),i.children&&i.children.length?e("div",{staticClass:"list"},t._l(i.children,(function(i,a){return e("div",{key:a,staticClass:"label-item",class:{on:i.disabled},on:{click:function(e){return t.selectLabel(i)}}},[t._v("\n "+t._s(i.label_name)+"\n ")])})),0):t._e()])})):t._e(),t.isUser?t._e():e("div",[t._v("暂无标签")])],2),e("div",{staticClass:"footer"},[e("el-button",{staticClass:"btns",attrs:{ghost:""},on:{click:t.cancel}},[t._v("取消")]),e("el-button",{staticClass:"btns",attrs:{type:"primary"},on:{click:t.subBtn}},[t._v("确定")])],1)])}),[],!1,null,"37eb90ed",null);e.a=i.exports},"1b98":function(t,e,i){i("2f56")},"1cf7":function(t,e,i){i("4205")},"2c3e":function(t,e,i){var a=i("83ab"),n=i("9f7f").MISSED_STICKY,o=i("c6b6"),r=i("edd0"),l=i("69f3").get,s=RegExp.prototype,c=TypeError;a&&n&&r(s,"sticky",{configurable:!0,get:function(){if(this!==s){if("RegExp"===o(this))return!!l(this).sticky;throw new c("Incompatible receiver, RegExp required")}}})},"2f56":function(t,e,i){},"2f8d":function(t,e,i){},"31d2":function(t,e,i){},"33b6":function(t,e,i){},"3fed":function(t,e,i){i("fc4f")},4205:function(t,e,i){},4603:function(t,e,i){
/**!
* Sortable 1.10.2
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/
function a(t){return(a="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 n(){return(n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i,a=arguments[e];for(i in a)Object.prototype.hasOwnProperty.call(a,i)&&(t[i]=a[i])}return t}).apply(this,arguments)}function o(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{},a=Object.keys(i);(a="function"==typeof Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(i).filter((function(t){return Object.getOwnPropertyDescriptor(i,t).enumerable}))):a).forEach((function(e){var a,n;a=t,n=i[e=e],e in a?Object.defineProperty(a,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):a[e]=n}))}return t}function r(t,e){if(null==t)return{};var i,a=((t,e)=>{if(null==t)return{};for(var i,a={},n=Object.keys(t),o=0;o<n.length;o++)i=n[o],0<=e.indexOf(i)||(a[i]=t[i]);return a})(t,e);if(Object.getOwnPropertySymbols)for(var n=Object.getOwnPropertySymbols(t),o=0;o<n.length;o++)i=n[o],0<=e.indexOf(i)||Object.prototype.propertyIsEnumerable.call(t,i)&&(a[i]=t[i]);return a}function l(t){return(t=>{if(Array.isArray(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}})(t)||(t=>{if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)})(t)||(()=>{throw new TypeError("Invalid attempt to spread non-iterable instance")})()}function s(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}i.r(e),i.d(e,"MultiDrag",(function(){return he})),i.d(e,"Sortable",(function(){return Mt})),i.d(e,"Swap",(function(){return ne}));var c=s(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),u=s(/Edge/i),d=s(/firefox/i),m=s(/safari/i)&&!s(/chrome/i)&&!s(/android/i),p=(i=s(/iP(ad|od|hone)/i),s(/chrome/i)&&s(/android/i)),f={capture:!1,passive:!1};function h(t,e,i){t.addEventListener(e,i,!c&&f)}function g(t,e,i){t.removeEventListener(e,i,!c&&f)}function v(t,e){if(e&&(">"===e[0]&&(e=e.substring(1)),t))try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(t){return}}function b(t,e,i,a){if(t){i=i||document;do{if(null!=e&&(">"!==e[0]||t.parentNode===i)&&v(t,e)||a&&t===i)return t}while(t!==i&&(t=(n=t).host&&n!==document&&n.host.nodeType?n.host:n.parentNode))}var n;return null}var y,_=/\s+/g;function w(t,e,i){var a;t&&e&&(t.classList?t.classList[i?"add":"remove"](e):(a=(" "+t.className+" ").replace(_," ").replace(" "+e+" "," "),t.className=(a+(i?" "+e:"")).replace(_," ")))}function x(t,e,i){var a=t&&t.style;if(a){if(void 0===i)return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(i=t.currentStyle),void 0===e?i:i[e];a[e=e in a||-1!==e.indexOf("webkit")?e:"-webkit-"+e]=i+("string"==typeof i?"":"px")}}function k(t,e){var i="";if("string"==typeof t)i=t;else do{var a=x(t,"transform")}while(a&&"none"!==a&&(i=a+" "+i),!e&&(t=t.parentNode));var n=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return n&&new n(i)}function C(t,e,i){if(t){var a=t.getElementsByTagName(e),n=0,o=a.length;if(i)for(;n<o;n++)i(a[n],n);return a}return[]}function V(){var t=document.scrollingElement;return t||document.documentElement}function S(t,e,i,a,n){if(t.getBoundingClientRect||t===window){var o,r,l,s,u,d,m=t!==window&&t!==V()?(r=(o=t.getBoundingClientRect()).top,l=o.left,s=o.bottom,u=o.right,d=o.height,o.width):(l=r=0,s=window.innerHeight,d=window.innerHeight,u=window.innerWidth);if((e||i)&&t!==window&&(n=n||t.parentNode,!c))do{if(n&&n.getBoundingClientRect&&("none"!==x(n,"transform")||i&&"static"!==x(n,"position"))){var p=n.getBoundingClientRect();r-=p.top+parseInt(x(n,"border-top-width")),l-=p.left+parseInt(x(n,"border-left-width")),s=r+o.height,u=l+o.width;break}}while(n=n.parentNode);return a&&t!==window&&(a=(e=k(n||t))&&e.a,t=e