2025-03-20 10:46:42 +08:00

2 lines
5.1 KiB
JavaScript

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