Files
qhmes/web-dist/js/SelectedUserItem-RRb_QZKg.js
2026-06-16 18:19:57 +08:00

2 lines
6.7 KiB
Java

import{cq as m,au as P,b1 as j,v as k}from"./index-X7Y8jykP.js";import{f as o,c as T,K as c,C as f,z as i,Q as d,H as _,y as s,A as u,G as A}from"./vue-vendor-DNhG1Cve.js";import{M}from"./MinusCircleFilled-BLRBKPEV.js";import{A as U}from"./index-B4gPlWQt.js";var B={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M483.2 790.3L861.4 412c1.7-1.7 2.5-4 2.3-6.3l-25.5-301.4c-.7-7.8-6.8-13.9-14.6-14.6L522.2 64.3c-2.3-.2-4.7.6-6.3 2.3L137.7 444.8a8.03 8.03 0 000 11.3l334.2 334.2c3.1 3.2 8.2 3.2 11.3 0zm62.6-651.7l224.6 19 19 224.6L477.5 694 233.9 450.5l311.9-311.9zm60.16 186.23a48 48 0 1067.88-67.89 48 48 0 10-67.88 67.89zM889.7 539.8l-39.6-39.5a8.03 8.03 0 00-11.3 0l-362 361.3-237.6-237a8.03 8.03 0 00-11.3 0l-39.6 39.5a8.03 8.03 0 000 11.3l243.2 242.8 39.6 39.5c3.1 3.1 8.2 3.1 11.3 0l407.3-406.6c3.1-3.1 3.1-8.2 0-11.3z"}}]},name:"tags",theme:"outlined"};function O(n){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(e);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(e).filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),r.forEach(function(a){I(n,a,e[a])})}return n}function I(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var p=function(t,e){var r=O({},t,e.attrs);return o(m,O({},r,{icon:B}),null)};p.displayName="TagsOutlined";p.inheritAttrs=!1;var N={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M824.2 699.9a301.55 301.55 0 00-86.4-60.4C783.1 602.8 812 546.8 812 484c0-110.8-92.4-201.7-203.2-200-109.1 1.7-197 90.6-197 200 0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 00-86.4 60.4C345 754.6 314 826.8 312 903.8a8 8 0 008 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5A226.62 226.62 0 01612 684c60.9 0 118.2 23.7 161.3 66.8C814.5 792 838 846.3 840 904.3c.1 4.3 3.7 7.7 8 7.7h56a8 8 0 008-8.2c-2-77-33-149.2-87.8-203.9zM612 612c-34.2 0-66.4-13.3-90.5-37.5a126.86 126.86 0 01-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4 0 34.2-13.3 66.3-37.5 90.5A127.3 127.3 0 01612 612zM361.5 510.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 01-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.9-1.7-203.3 89.2-203.3 199.9 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 008 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.9-1 6.5-4.7 6-8.7z"}}]},name:"team",theme:"outlined"};function b(n){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(e);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(e).filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),r.forEach(function(a){D(n,a,e[a])})}return n}function D(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var g=function(t,e){var r=b({},t,e.attrs);return o(m,b({},r,{icon:N}),null)};g.displayName="TeamOutlined";g.inheritAttrs=!1;var F={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"};function v(n){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(e);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(e).filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),r.forEach(function(a){E(n,a,e[a])})}return n}function E(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var h=function(t,e){var r=v({},t,e.attrs);return o(m,v({},r,{icon:F}),null)};h.displayName="UserOutlined";h.inheritAttrs=!1;const L={name:"SelectedUserItem",components:{UserOutlined:h,MinusCircleFilled:M,CloseOutlined:j,TagsOutlined:p,TeamOutlined:g},props:{info:{type:Object,default:()=>{}},query:{type:Boolean,default:!1}},emits:["unSelect"],setup(n,{emit:t}){function e(a){a.preventDefault(),a.stopPropagation(),t("unSelect",n.info.id)}return{showClose:T(()=>n.query===!0),removeSelect:e,getFileAccessHttpUrl:k}}},q={class:"user-selected-item"},H={style:{display:"flex","flex-direction":"row",height:"24px","border-radius":"12px","padding-right":"10px","vertical-align":"middle","background-color":"#f5f5f5"}},V={style:{width:"24px",height:"24px","line-height":"20px","margin-right":"3px",display:"inline-block"}},G={style:{height:"24px","line-height":"24px"},class:"ellipsis"},Q={key:0,class:"icon-close"},J={key:0,class:"icon-remove"};function R(n,t,e,r,a,W){const l=U,y=c("Icon"),C=c("team-outlined"),S=c("TagsOutlined"),x=c("UserOutlined"),z=c("CloseOutlined"),w=c("MinusCircleFilled");return i(),f("div",q,[d("div",H,[d("span",V,[e.info.avatar?(i(),s(l,{key:0,src:r.getFileAccessHttpUrl(e.info.avatar),size:24},null,8,["src"])):e.info.avatarIcon?(i(),s(l,{key:1,class:"ant-btn-primary",size:24},{icon:u(()=>[o(y,{icon:"ant-design:"+e.info.avatarIcon,style:{"font-size":"16px","margin-top":"4px"}},null,8,["icon"])]),_:1})):e.info.selectType=="sys_role"?(i(),s(l,{key:2,size:24,style:{"background-color":"rgb(255, 173, 0)"}},{icon:u(()=>[o(C,{style:{"font-size":"16px"}})]),_:1})):e.info.selectType=="sys_position"?(i(),s(l,{key:3,size:24,style:{"background-color":"rgb(245, 34, 45)"}},{icon:u(()=>[o(S,{style:{"font-size":"16px"}})]),_:1})):(i(),s(l,{key:4,size:24},{icon:u(()=>[o(x)]),_:1}))]),d("div",G,A(e.info.realname||e.info.name),1),r.showClose?(i(),f("div",Q,[o(z,{onClick:r.removeSelect},null,8,["onClick"])])):_("",!0)]),r.showClose?_("",!0):(i(),f("div",J,[o(w,{onClick:r.removeSelect},null,8,["onClick"])]))])}const K=P(L,[["render",R]]);export{K as S,h as U};