2 lines
7.2 KiB
JavaScript
2 lines
7.2 KiB
JavaScript
|
import{d as te,K as ae,o as le,a as r,ar as oe,O as se,N as C,aB as ne,r as ie,b as c,c as y,w as e,f as i,l as de,G as A,I as B,e as t,m as ue,t as d,A as s,j as V,y as re,F as ce,z as k,aC as _e,X as me,a4 as pe,$ as fe,a0 as ye,a1 as ve,a2 as ge,a3 as ke,U as xe,_ as be}from"./index-7b3f5fdc.js";import{c as he}from"./index-a832a56d.js";import{n as we,Z as Ce}from"./index-c8f3c6f2.js";import{a as Ve}from"./index-e96dc078.js";import{w as Fe}from"./index-354ab616.js";import{w as Ue}from"./index-81f068f9.js";import{V as ze}from"./index-a513db85.js";import{y as Le,f as Se}from"./index-4ab1e1d9.js";/* empty css */import{b as je}from"./index-c31677f3.js";import{j as Ne}from"./index-d0b57c12.js";const $e={style:{display:"flex"}},Ae={style:{flex:"1",padding:"10px","over-flow":"auto"}},Be={key:0,style:{color:"#1E9FFF"}},De={key:1,style:{color:"#009688"}},Ie={key:2,style:{color:"#009688"}},Ke=["onClick"],Ee={style:{padding:"20px"}},Me=["href"],Te={style:{"text-align":"center","margin-top":"20px"}},Ge=te({__name:"examine",setup(Oe){ae(),le(()=>{I(),D()});const U=r([]),D=()=>{oe({}).then(l=>{l.code===1&&(U.value=l.data)})},p=r(0),z=r(),I=()=>{se({}).then(l=>{console.log(l),l.code==1?(z.value=l.data,p.value=l.data[0].id,f()):C.msg(l.msg,{icon:2})})},f=()=>{ne({page:m.current,size:m.limit,group_id:p.value,..._.value}).then(l=>{l.code==1?(v.value=l.data.data,m.total=l.data.count):C.msg(l.msg,{icon:2})})},K=()=>{m.current=1,v.value=[],f()},E=l=>{console.log(l),f()},M=()=>{_.value={fsdate:"",user_id:"",status:""},m.current=1,v.value=[],f()},T=r(!1);r();const m=ie({current:1,limit:10,total:1}),G=r([{title:"序号",width:"80px",key:"id",align:"center"},{title:"发生时间",width:"160px",key:"fsdate",align:"center"},{title:"考评对象",width:"120px",key:"nickname",align:"center"},{title:"考评类型",width:"100px",key:"assessment_type",customSlot:"assessment_type",align:"center"},{title:"考评项",width:"150px",key:"project_name",align:"center"},{title:"分值",width:"80px",key:"score_value",align:"center"},{title:"记录状态",width:"100px",customSlot:"status",key:"status",align:"center"},{title:"操作",width:"180px",customSlot:"operator",key:"operator",align:"center",fixed:"right"}]),v=r(),x=r(!1),n=r({nickname:"",group_name:"",fsdate:"",zm_nickname:"",assessment_type:"",project_name:"",score_value:"",notes:"",status:1,fj_url:""}),_=r({fsdate:"",user_id:"",status:""}),O=l=>{n.value=l,x.value=!0},L=(l,o)=>{console.log(l,o),_e({id:l.id,status:o}).then(g=>{g.code==1?C.msg(g.msg,{icon:1}):C.msg(g.msg,{icon:2}),f()})},P=l=>{p.value=l.id,m.current=1,v.value=[],f()};return(l,o)=>{const g=je,S=me,R=pe,b=fe,h=Le,w=ye,j=ve,F=ge,X=Se,Z=Ne,q=ze,H=ke,J=Ue,Q=Fe,W=Ve,u=we,N=Ce,Y=xe,ee=he;return c(),y(ee,{fluid:"true",class:"organization-box"},{default:e(()=>[i("div",$e,[i("div",{style:de({width:l.isFold?"0px":"300px"}),class:"left-tree"},[A(i("div",null," 科室列表 ",512),[[B,!l.isFold]]),A(t(g,{style:{"margin-top":"10px"},data:z.value,selectedKey:p.value,"onUpdate:selectedKey":o[0]||(o[0]=a=>p.value=a),showLine:!1,onNodeClick:P},{title:e(({data:a})=>[i("span",{class:ue(p.value==a.id?"isChecked":"")},d(a.name),3)]),_:1},8,["data","selectedKey"]),[[B,!l.isFold]]),i("div",{class:"isFold",onClick:o[1]||(o[1]=a=>l.isFold=!l.isFold)},[o[7]||(o[7]=s(" ")),l.isFold?(c(),y(S,{key:1,class:"layui-icon-right"})):(c(),y(S,{key:0,class:"layui-icon-left"}))])],4),i("div",Ae,[t(q,null,{default:e(()=>[t(Z,{style:{"margin-top":"20px"}},{default:e(()=>[t(X,{style:{"min-width":"1200px"}},{default:e(()=>[t(h,{md:5},{default:e(()=>[t(b,{label:"发生时间:","label-width":100},{default:e(()=>[t(R,{style:{width:"100%"},modelValue:_.value.fsdate,"onUpdate:modelValue":o[2]||(o[2]=a=>_.value.fsdate=a),placeholder:"发生时间","allow-clear":""},null,8,["modelValue"])]),_:1})]),_:1}),t(h,{md:6},{default:e(()=>[t(b,{label:"考评对象:","label-width":100},{default:e(()=>[t(j,{modelValue:_.value.user_id,"onUpdate:modelValue":o[3]||(o[3]=a=>_.value.user_id=a),placeholder:"请选择考评对象","show-search":!0},{default:e(()=>[(c(!0),V(ce,null,re(
|