数通互联化工云平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
2.2 KiB

4 months ago
import{aP as j,d as I,ax as Y,r as g,z as E,a as q,f as z,e,b as t,H as V,bI as P,an as R,aj as S,aE as B,ao as D,aw as F,ak as M,ab as U,av as N,b3 as H,b4 as A}from"./index-e450010e.js";import{a as G}from"./api-e282220e.js";function J(_){return j({url:"/kpiapi/department_pc/get_quality_tasks",method:"post",data:_})}const K={class:"app-container"},Q=I({__name:"index",setup(_){const a=Y({region:"",user:"",name:"",time:""}),v={label:"name",children:"child"},m=g([]);function x(){G("/hrapi/org/govthree","post").then(o=>{m.value=o.data[3].child[14].child}).catch(o=>{console.error("Error fetching data:",o)})}x();const u=g([]);function i(){const o=a.user.toString(),l=new Date(a.time),c=l.getFullYear(),n=l.getMonth()+1,d=c+"-"+n;J({orgid:o,page:1,pagesize:20,time:d,title:a.name}).then(p=>{u.value=p.data})}return i(),(o,l)=>{const c=P,n=R,d=S,p=B,k=D,f=F,y=E("Search"),b=M,h=U,w=E("Refresh"),C=N,r=H,T=A;return q(),z("div",K,[e(C,{class:"search"},{default:t(()=>[e(f,{span:18},{default:t(()=>[e(k,{inline:!0,model:a},{default:t(()=>[e(n,{label:"所属行政组织:"},{default:t(()=>[e(c,{style:{width:"120px"},ref:"orgTreeRef",modelValue:a.user,"onUpdate:modelValue":l[0]||(l[0]=s=>a.user=s),clearable:"","node-key":"id",data:m.value,props:v,"render-after-expand":!1},null,8,["modelValue","data"])]),_:1}),e(n,{label:"考核名称"},{default:t(()=>[e(d,{modelValue:a.name,"onUpdate:modelValue":l[1]||(l[1]=s=>a.name=s),placeholder:"请输入名称",clearable:""},null,8,["modelValue"])]),_:1}),e(n,{label:"年度:"},{default:t(()=>[e(p,{modelValue:a.time,"onUpdate:modelValue":l[2]||(l[2]=s=>a.time=s),type:"month",placeholder:"选择年",formdat:"YYYY-MM"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1}),e(f,{span:6,style:{"text-align":"right"}},{default:t(()=>[e(h,{type:"primary",onClick:i},{default:t(()=>[e(b,null,{default:t(()=>[e(y)]),_:1}),V("查询")]),_:1}),e(h,null,{default:t(()=>[e(b,null,{default:t(()=>[e(w)]),_:1}),V("重置")]),_:1})]),_:1})]),_:1}),e(T,{data:u.value,stripe:"",style:{margin:"20px"},fit:""},{default:t(()=>[e(r,{prop:"",label:"行政组织"}),e(r,{prop:"",label:"指标"}),e(r,{prop:"",label:"加分"}),e(r,{prop:"",label:"减分"})]),_:1},8,["data"])])}}});export{Q as default};