2025-03-20 10:25:32 +08:00

2 lines
5.7 KiB
JavaScript

import{G as H,H as J,I as Q,J as Z,K as z,L as W,M as X,N as ee,O as te,C as oe,w as ae,D as le}from"./element-plus.2acb577d.js";import{_ as ne}from"./index.vue_vue_type_script_setup_true_lang.a280d02d.js";import{f as ie,b as se}from"./index.81df6f20.js";import{u as re}from"./usePaging.23706826.js";import{u as ue}from"./useDictOptions.4fbfb4d7.js";import{_ as me}from"./edit.vue_vue_type_script_setup_true_name_manageProjectEdit_lang.160776b0.js";import{b as V,g as pe,c as de}from"./oaSelfExamine.ed02ba3a.js";import _e from"./detail.921c3d15.js";import{d as R,s as ce,r as x,Z as fe,am as ve,o as s,c as $,U as t,L as o,u as a,T as we,a9 as Ce,K as d,R as _,M as g,a as j,i as Ee,Q as P,n as B}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";import"./dialogTableConfig.dc7bff5e.js";import"./oa_flow_type.b60fa00e.js";import"./oa_examine_temp_item.f1738798.js";import"./index.f292cd50.js";const be={class:"mt-4"},ke={class:"flex mt-4 justify-end"},ye=R({name:"manageProjectLists"}),pt=R({...ye,setup(xe){const f=ce(),v=x(!1),b=x(null),w=x(!1),m=fe({examine_type:"",examine_month:""}),{dictData:F}=ue("jxgl_check_type"),{pager:c,getLists:C,resetParams:A,resetPage:L}=re({fetchFun:de,params:m}),S=async()=>{var n;v.value=!0,await B(),(n=f.value)==null||n.open("add")},N=async n=>{var r,u;let e=await V({id:n.id});v.value=!0,await B(),(r=f.value)==null||r.open("edit"),(u=f.value)==null||u.setFormData(e)},O=async n=>{await ie.confirm("\u786E\u5B9A\u8981\u5220\u9664\uFF1F"),await pe({id:n}),C()},T=async n=>{var r,u;let e=await V({id:n});w.value=!0,await B(),(r=b.value)==null||r.open(),(u=b.value)==null||u.setFormData(e)};return C(),(n,e)=>{const r=H,u=J,k=oe,y=Q,M=Z,p=ae,U=z,Y=le,D=W,I=se,i=X,K=ee,q=ne,h=ve("perms"),G=te;return s(),$("div",null,[t(D,{class:"!border-none mb-4",shadow:"never"},{default:o(()=>[t(Y,{class:"mb-[-16px]",model:a(m),"label-width":"80px"},{default:o(()=>[t(U,null,{default:o(()=>[t(y,{span:6},{default:o(()=>[t(k,{label:"\u8003\u6838\u7C7B\u522B",prop:"project_name"},{default:o(()=>[t(u,{class:"flex-1",modelValue:a(m).examine_type,"onUpdate:modelValue":e[0]||(e[0]=l=>a(m).examine_type=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u8003\u6838\u7C7B\u522B"},{default:o(()=>[(s(!0),$(we,null,Ce(a(F).jxgl_check_type,(l,E)=>(s(),d(r,{key:E,label:l.name,value:parseInt(l.value)},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),t(y,{span:6},{default:o(()=>[t(k,{label:"\u8003\u6838\u6708\u4EFD",prop:"project_code"},{default:o(()=>[t(M,{modelValue:a(m).examine_month,"onUpdate:modelValue":e[1]||(e[1]=l=>a(m).examine_month=l),type:"month","value-format":"YYYY-MM",placeholder:"\u8BF7\u9009\u62E9\u8003\u6838\u6708\u4EFD"},null,8,["modelValue"])]),_:1})]),_:1}),t(y,{span:6},{default:o(()=>[t(k,null,{default:o(()=>[t(p,{type:"primary",onClick:a(L)},{default:o(()=>e[6]||(e[6]=[_("\u67E5\u8BE2")])),_:1},8,["onClick"]),t(p,{onClick:a(A)},{default:o(()=>e[7]||(e[7]=[_("\u91CD\u7F6E")])),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),g((s(),d(D,{class:"!border-none",shadow:"never"},{default:o(()=>[t(p,{type:"primary",onClick:S},{icon:o(()=>[t(I,{name:"el-icon-Plus"})]),default:o(()=>[e[8]||(e[8]=_(" \u65B0\u589E "))]),_:1}),j("div",be,[t(K,{border:"",data:a(c).lists},{default:o(()=>[t(i,{type:"selection",width:"55"}),t(i,{label:"\u81EA\u8BC4\u4EBA",prop:"user_name","show-overflow-tooltip":""}),t(i,{label:"\u8003\u6838\u7C7B\u522B",prop:"examine_type_text","show-overflow-tooltip":""}),t(i,{label:"\u8003\u6838\u6A21\u7248",prop:"temp_name","show-overflow-tooltip":""}),t(i,{label:"\u8003\u6838\u6708\u4EFD",prop:"examine_month","show-overflow-tooltip":"",width:"120"}),t(i,{label:"\u8003\u6838\u603B\u5206",prop:"total_score","show-overflow-tooltip":""}),t(i,{label:"\u81EA\u8BC4\u5F97\u5206",prop:"total_self_score","show-overflow-tooltip":""}),t(i,{label:"\u81EA\u8BC4\u65F6\u95F4",prop:"create_time","show-overflow-tooltip":""}),t(i,{label:"\u64CD\u4F5C",width:"170",fixed:"right"},{default:o(({row:l})=>[g((s(),d(p,{type:"primary",link:"",onClick:E=>N(l)},{default:o(()=>e[9]||(e[9]=[_(" \u7F16\u8F91 ")])),_:2},1032,["onClick"])),[[h,["manage_basic.manage_project/edit"]]]),g((s(),d(p,{type:"danger",link:"",onClick:E=>O(l.id)},{default:o(()=>e[10]||(e[10]=[_(" \u5220\u9664 ")])),_:2},1032,["onClick"])),[[h,["manage_basic.manage_project/delete"]]]),t(p,{type:"primary",link:"",onClick:E=>T(l.id)},{default:o(()=>e[11]||(e[11]=[_(" \u8BE6\u60C5 ")])),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),j("div",ke,[t(q,{modelValue:a(c),"onUpdate:modelValue":e[2]||(e[2]=l=>Ee(c)?c.value=l:null),onChange:a(C)},null,8,["modelValue","onChange"])])]),_:1})),[[G,a(c).loading]]),a(v)?(s(),d(me,{key:0,ref_key:"editRef",ref:f,"dict-data":a(F),onSuccess:a(C),onClose:e[3]||(e[3]=l=>v.value=!1)},null,8,["dict-data","onSuccess"])):P("",!0),a(w)?(s(),d(_e,{key:1,ref_key:"detailRef",ref:b,onSuccess:e[4]||(e[4]=l=>w.value=!1),onClose:e[5]||(e[5]=l=>w.value=!1)},null,512)):P("",!0)])}}});export{pt as default};