2 lines
5.8 KiB
JavaScript
2 lines
5.8 KiB
JavaScript
import{I as R,y as j,w as I,D as q,C as O,L as z,M as G,N as H}from"./element-plus.258bf9e7.js";import{_ as J}from"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import{f as K,a as Q}from"./index.ec401e3b.js";import{u as W}from"./usePaging.f6660143.js";import{u as X}from"./useDictOptions.c644f395.js";import{_ as Y,a as Z,b as ee}from"./edit.vue_vue_type_script_setup_true_name_supervisionMeetingMinutesEdit_lang.123e95ff.js";import"./lodash.1d82ee7c.js";import{d as g,s as oe,r as A,a0 as te,ai as le,o as r,c as ae,V as e,M as t,O as f,u as s,L as m,S as ue,a as C,k as ie,T as d,n as k}from"./@vue.ab566ce7.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.49f4af13.js";import"./dayjs.4afe12d3.js";import"./axios.37fc980d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.d0bec2c9.js";import"./color.ea90db3f.js";import"./clone.cbd692e6.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ad6bc3c0.js";import"./ms.a9ae1d6d.js";import"./nprogress.bcdf1f46.js";import"./vue-clipboard3.c45111bf.js";import"./clipboard.1cb79a0d.js";import"./echarts.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./index.vue_vue_type_script_setup_true_lang.8f6cc90c.js";import"./supervision_project.e6761916.js";import"./index.a7758114.js";import"./index.9492d03b.js";const se=d("\u67E5\u8BE2"),ne=d("\u91CD\u7F6E"),re=d(" \u65B0\u589E "),pe=d(" \u5220\u9664 "),me={class:"mt-4"},de=d(" \u7F16\u8F91 "),ce=d(" \u5220\u9664 "),_e={class:"flex mt-4 justify-end"},fe=g({name:"supervisionMeetingMinutesLists"}),ao=g({...fe,setup(Be){const B=oe(),v=A(!1),u=te({project_id:"",theme:"",type:"",emcee:"",recorder:""}),F=A([]),y=i=>{F.value=i.map(({id:o})=>o)},{dictData:V}=X(""),{pager:c,getLists:E,resetParams:D,resetPage:x}=W({fetchFun:Z,params:u}),M=async()=>{var i;v.value=!0,await k(),(i=B.value)==null||i.open("add")},S=async i=>{var o,n;v.value=!0,await k(),(o=B.value)==null||o.open("edit"),(n=B.value)==null||n.setFormData(i)},h=async i=>{await K.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await ee({id:i}),E()};return E(),(i,o)=>{const n=R,_=j,p=I,$=q,b=O,L=Q,a=z,N=G,P=J,w=le("perms"),T=H;return r(),ae("div",null,[e(b,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e($,{class:"mb-[-16px]",model:u,inline:""},{default:t(()=>[e(_,{label:"\u4F1A\u8BAE\u4E3B\u9898",prop:"theme"},{default:t(()=>[e(n,{class:"w-[280px]",modelValue:u.theme,"onUpdate:modelValue":o[0]||(o[0]=l=>u.theme=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4F1A\u8BAE\u4E3B\u9898"},null,8,["modelValue"])]),_:1}),e(_,{label:"\u4F1A\u8BAE\u7C7B\u578B",prop:"type"},{default:t(()=>[e(n,{class:"w-[280px]",modelValue:u.type,"onUpdate:modelValue":o[1]||(o[1]=l=>u.type=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4F1A\u8BAE\u7C7B\u578B"},null,8,["modelValue"])]),_:1}),e(_,{label:"\u4E3B\u6301\u4EBA",prop:"emcee"},{default:t(()=>[e(n,{class:"w-[280px]",modelValue:u.emcee,"onUpdate:modelValue":o[2]||(o[2]=l=>u.emcee=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u4E3B\u6301\u4EBA"},null,8,["modelValue"])]),_:1}),e(_,{label:"\u8BB0\u5F55\u4EBA",prop:"recorder"},{default:t(()=>[e(n,{class:"w-[280px]",modelValue:u.recorder,"onUpdate:modelValue":o[3]||(o[3]=l=>u.recorder=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u8BB0\u5F55\u4EBA"},null,8,["modelValue"])]),_:1}),e(_,null,{default:t(()=>[e(p,{type:"primary",onClick:s(x)},{default:t(()=>[se]),_:1},8,["onClick"]),e(p,{onClick:s(D)},{default:t(()=>[ne]),_:1},8,["onClick"])]),_:1})]),_:1},8,["model"])]),_:1}),f((r(),m(b,{class:"!border-none",shadow:"never"},{default:t(()=>[f((r(),m(p,{type:"primary",onClick:M},{icon:t(()=>[e(L,{name:"el-icon-Plus"})]),default:t(()=>[re]),_:1})),[[w,["supervision_work.supervision_meeting_minutes/add"]]]),f((r(),m(p,{disabled:!F.value.length,onClick:o[4]||(o[4]=l=>h(F.value))},{default:t(()=>[pe]),_:1},8,["disabled"])),[[w,["supervision_work.supervision_meeting_minutes/delete"]]]),C("div",me,[e(N,{data:s(c).lists,onSelectionChange:y},{default:t(()=>[e(a,{type:"selection",width:"55"}),e(a,{label:"\u9879\u76EE\u540D\u79F0",prop:"project_name","show-overflow-tooltip":""}),e(a,{label:"\u4F1A\u8BAE\u4E3B\u9898",prop:"theme","show-overflow-tooltip":""}),e(a,{label:"\u4F1A\u8BAE\u7C7B\u578B",prop:"type","show-overflow-tooltip":""}),e(a,{label:"\u4F1A\u8BAE\u65F6\u95F4",prop:"time","show-overflow-tooltip":""}),e(a,{label:"\u4E3B\u6301\u4EBA",prop:"emcee","show-overflow-tooltip":""}),e(a,{label:"\u8BB0\u5F55\u4EBA",prop:"recorder","show-overflow-tooltip":""}),e(a,{label:"\u4F1A\u8BAE\u5730\u70B9",prop:"location","show-overflow-tooltip":""}),e(a,{label:"\u4E0E\u4F1A\u4EBA\u5458",prop:"attendees","show-overflow-tooltip":""}),e(a,{label:"\u4F1A\u8BAE\u5185\u5BB9",prop:"content","show-overflow-tooltip":""}),e(a,{label:"\u64CD\u4F5C",width:"120",fixed:"right"},{default:t(({row:l})=>[f((r(),m(p,{type:"primary",link:"",onClick:U=>S(l)},{default:t(()=>[de]),_:2},1032,["onClick"])),[[w,["supervision_work.supervision_meeting_minutes/edit"]]]),f((r(),m(p,{type:"danger",link:"",onClick:U=>h(l.id)},{default:t(()=>[ce]),_:2},1032,["onClick"])),[[w,["supervision_work.supervision_meeting_minutes/delete"]]])]),_:1})]),_:1},8,["data"])]),C("div",_e,[e(P,{modelValue:s(c),"onUpdate:modelValue":o[5]||(o[5]=l=>ie(c)?c.value=l:null),onChange:s(E)},null,8,["modelValue","onChange"])])]),_:1})),[[T,s(c).loading]]),v.value?(r(),m(Y,{key:0,ref_key:"editRef",ref:B,"dict-data":s(V),onSuccess:s(E),onClose:o[6]||(o[6]=l=>v.value=!1)},null,8,["dict-data","onSuccess"])):ue("",!0)])}}});export{ao as default};
|