2 lines
4.6 KiB
JavaScript
2 lines
4.6 KiB
JavaScript
import{a0 as N,a1 as O,L as U,o as W,B as T,c as $,w as j}from"./element-plus.2acb577d.js";import{_ as Q}from"./index.vue_vue_type_script_setup_true_lang.61cb6e34.js";import{P as Z}from"./index.f292cd50.js";import{d as q,e as z,f as G}from"./oa_work.e8c4c43c.js";import{a as H,d as J}from"./index.81df6f20.js";import{d as g,s as K,Z as M,r as k,ah as X,o as _,c as p,U as e,L as t,R as r,S as s,u as n,a as m,T as Y,a9 as ee,Q as te,i as le}from"./@vue.821a47ec.js";import"./lodash-es.df44a280.js";import"./async-validator.fb49d0f5.js";import"./@vueuse.81e2759c.js";import"./@element-plus.dabbc398.js";import"./dayjs.d2a77ee0.js";import"./axios.9e996410.js";import"./@ctrl.b082b0c1.js";import"./normalize-wheel-es.8aeb3683.js";import"./@popperjs.36402333.js";import"./lodash.6bfd3540.js";import"./vue-router.4c04f9b6.js";import"./pinia.fefed778.js";import"./css-color-function.8ff67959.js";import"./color.bfa08e9a.js";import"./clone.660f80c4.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.dcb32030.js";import"./vue-clipboard3.e681583f.js";import"./clipboard.3ad9b20b.js";import"./echarts.42bea269.js";import"./tslib.60310f1a.js";import"./zrender.2cb48b70.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.8864a4be.js";const ae={class:"detail-popup"},oe={class:"msg-content"},ne={class:"flex justify-between flex-col"},se={class:"name"},ie={class:"time"},re=["onClick"],ue=g({name:"customdetail"}),me=g({...ue,emits:["close"],setup(ce,{expose:v,emit:C}){const B=C,d=K(),w=H().userInfo,a=M({id:"",annex:[],work_info:{type:2,type_user:"",works:"",plans:"",remark:"",annex:[],type_user_names:"",type_text:""},send_time:"",from_user_name:""});let b=k([]);const f=async()=>{let l=await G({work_id:a.id});b.value=l.lists},c=k(""),x=async()=>{await q({work_id:a.id,content:c.value}),f(),c.value=""},E=async l=>{await z({id:l}),f()},h=async l=>{for(const o in a)l[o]!=null&&l[o]!=null&&(a[o]=l[o]);f()},D=async()=>{var l;(l=d.value)==null||l.close()},A=()=>{var l;(l=d.value)==null||l.open()},F=()=>{B("close")};return v({open:A,setFormData:h}),(l,o)=>{const u=N,y=O,V=W,L=T,S=X("Position"),I=$,P=j,R=U;return _(),p("div",ae,[e(Z,{ref_key:"popupRef",ref:d,title:"\u6C47\u62A5\u8BE6\u60C5",async:!0,width:"60vw",onConfirm:D,onClose:F},{default:t(()=>[e(y,{column:3,border:""},{default:t(()=>[e(u,{label:"\u6C47\u62A5\u4EBA","label-align":"left",align:"left","label-class-name":"my-label"},{default:t(()=>[r(s(n(a).from_user_name),1)]),_:1}),e(u,{label:"\u6C47\u62A5\u7C7B\u578B","label-align":"left",align:"left","label-class-name":"my-label"},{default:t(()=>[r(s(n(a).work_info.type_text),1)]),_:1}),e(u,{label:"\u6C47\u62A5\u65F6\u95F4","label-align":"left",align:"left","label-class-name":"my-label"},{default:t(()=>[r(s(n(a).send_time),1)]),_:1}),e(u,{label:"\u63A5\u53D7\u4EBA","label-align":"left",align:"left","label-class-name":"my-label"},{default:t(()=>[r(s(n(a).work_info.type_user_names),1)]),_:1})]),_:1}),e(y,{column:1,border:""},{default:t(()=>[e(u,{label:"\u5DE5\u4F5C\u5185\u5BB9","label-align":"left",align:"left","label-class-name":"my-label"},{default:t(()=>[r(s(n(a).work_info.works),1)]),_:1}),e(u,{label:"\u5DE5\u4F5C\u8BA1\u5212","label-align":"left",align:"left","label-class-name":"my-label"},{default:t(()=>[r(s(n(a).work_info.plans),1)]),_:1}),e(u,{label:"\u5176\u4ED6\u4E8B\u9879","label-align":"left",align:"left","label-class-name":"my-label"},{default:t(()=>[r(s(n(a).work_info.remark),1)]),_:1}),e(u,{label:"\u9644\u4EF6","label-align":"left",align:"left","label-class-name":"my-label"},{default:t(()=>[e(Q,{annex:n(a).work_info.annex},null,8,["annex"])]),_:1})]),_:1}),e(R,null,{header:t(()=>o[1]||(o[1]=[r(" \u5DE5\u4F5C\u70B9\u8BC4 ")])),default:t(()=>[m("div",oe,[(_(!0),p(Y,null,ee(n(b),(i,_e)=>(_(),p("div",{key:i.id,class:"flex mb-4"},[e(V,{src:i.admin_avatar,class:"avatar",shape:"circle"},null,8,["src"]),m("div",ne,[m("div",null,[m("strong",se,s(i.admin_name),1),m("span",ie,s(i.create_time||"2024-12-04"),1),n(w).id==i.admin_id?(_(),p("span",{key:0,class:"del",onClick:pe=>E(i.id)},"\u5220\u9664",8,re)):te("",!0)]),m("div",null,s(i.content),1)])]))),128))]),e(L,{modelValue:n(c),"onUpdate:modelValue":o[0]||(o[0]=i=>le(c)?c.value=i:null),type:"textarea",placeholder:"\u8BF7\u8F93\u5165\u8BC4\u8BBA\u5185\u5BB9"},null,8,["modelValue"]),e(P,{class:"mt-2 float-right",type:"primary",onClick:x},{icon:t(()=>[e(I,null,{default:t(()=>[e(S)]),_:1})]),default:t(()=>[o[2]||(o[2]=r(" \u53D1\u9001 "))]),_:1})]),_:1})]),_:1},512)])}}});const He=J(me,[["__scopeId","data-v-0e77fade"]]);export{He as default};
|