2 lines
5.0 KiB
JavaScript
2 lines
5.0 KiB
JavaScript
import{$ as I,a0 as O,R as q,S as A,F as J,D as M,w as Q,G as W,J as z,M as H,t as K,N as X,O as Y}from"./element-plus.ab0703f2.js";import{_ as Z}from"./index.vue_vue_type_script_setup_true_lang.5fc87b57.js";import{u as ee}from"./usePaging.fff444fa.js";import{b as te,c as oe,a as le}from"./goodsList.6b3d0abb.js";import{_ as ae}from"./detail.vue_vue_type_script_setup_true_name_manageProjectEdit_lang.24a913ca.js";import{d as B,s as se,r as E,$ as g,o as C,c as ue,W as e,Q as t,u as a,U as b,R as ne,P as h,a as F,j as ie,T as re,n as pe}from"./@vue.340249d8.js";import"./lodash-es.edba6135.js";import"./@vueuse.e3650918.js";import"./@element-plus.558a564d.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.9886411c.js";import"./axios.45058a27.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.0f9ce7c3.js";import"./index.5ab034a5.js";import"./lodash.3d784a58.js";import"./vue-router.9ddb0e92.js";import"./pinia.97fe9b12.js";import"./css-color-function.5c1c877d.js";import"./color.97e03886.js";import"./clone.cfa55f7b.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.8c276ac9.js";import"./vue-clipboard3.44194d32.js";import"./clipboard.47836ecb.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.309a94da.js";import"./index.5670c3d4.js";const me={class:"mt-4"},_e={class:"flex mt-4 justify-end"},de=B({name:"manageProjectLists"}),et=B({...de,setup(ce){const _=se(),d=E(!1),i=g({status:""}),V=E([]),x=u=>{V.value=u.map(({id:o})=>o)},{pager:r,getLists:c,resetParams:y,resetPage:D}=ee({fetchFun:le,params:i}),k=u=>{te({}).finally(()=>{c()})},L=async u=>{var o,n;d.value=!0,await pe(),(o=_.value)==null||o.open("edit"),(n=_.value)==null||n.setFormData(u)},T=g([]);return(async()=>{let u=await oe();T.push(...u)})(),c(),(u,o)=>{const n=q,R=A,p=J,m=I,S=M,f=Q,$=O,P=W,w=z,s=H,U=K,j=X,N=Z,G=Y;return C(),ue("div",null,[e(w,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e(P,{class:"mb-[-16px]",model:a(i),"label-width":"80px"},{default:t(()=>[e($,null,{default:t(()=>[e(m,{span:6},{default:t(()=>[e(p,{label:"\u5546\u54C1\u72B6\u6001"},{default:t(()=>[e(R,{class:"flex-1",modelValue:a(i).status,"onUpdate:modelValue":o[0]||(o[0]=l=>a(i).status=l),clearable:"",placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1\u72B6\u6001"},{default:t(()=>[e(n,{label:"\u9500\u552E\u4E2D",value:0}),e(n,{label:"\u4ED3\u5E93\u4E2D",value:0}),e(n,{label:"\u5DF2\u552E\u7F44",value:0}),e(n,{label:"\u5E93\u5B58\u9884\u8B66",value:0})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(m,{span:6},{default:t(()=>[e(p,{label:"\u5546\u54C1\u5206\u7C7B",prop:"project_code"})]),_:1}),e(m,{span:6},{default:t(()=>[e(p,{label:"\u5546\u54C1\u641C\u7D22",prop:"nature"},{default:t(()=>[e(S,{modelValue:a(i).status,"onUpdate:modelValue":o[1]||(o[1]=l=>a(i).status=l),clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0"},null,8,["modelValue"])]),_:1})]),_:1}),e(m,{span:6},{default:t(()=>[e(p,null,{default:t(()=>[e(f,{type:"primary",onClick:a(D)},{default:t(()=>[b("\u67E5\u8BE2")]),_:1},8,["onClick"]),e(f,{onClick:a(y)},{default:t(()=>[b("\u91CD\u7F6E")]),_:1},8,["onClick"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),ne((C(),h(w,{class:"!border-none",shadow:"never"},{default:t(()=>[F("div",me,[e(j,{border:"",data:a(r).lists,onSelectionChange:x},{default:t(()=>[e(s,{label:"\u5546\u54C1id",prop:"progress","show-overflow-tooltip":""}),e(s,{label:"\u5546\u54C1\u56FE",prop:"build_area_text","show-overflow-tooltip":""},{default:t(({row:l})=>[]),_:1}),e(s,{label:"\u5546\u54C1\u540D\u79F0",prop:"project_level_text","show-overflow-tooltip":""}),e(s,{label:"\u5546\u54C1\u552E\u4EF7",prop:"total_investment","show-overflow-tooltip":"",width:"120"}),e(s,{label:"\u9500\u91CF",prop:"engineering_status_text","show-overflow-tooltip":""}),e(s,{label:"\u5E93\u5B58",prop:"engineering_status_text","show-overflow-tooltip":""}),e(s,{label:"\u6392\u5E8F",prop:"engineering_status_text","show-overflow-tooltip":""}),e(s,{label:"\u72B6\u6001",prop:"engineering_status_text","show-overflow-tooltip":""},{default:t(({row:l})=>[e(U,{modelValue:l.status,"onUpdate:modelValue":v=>l.status=v,"active-value":1,"inactive-value":0,onChange:v=>k(l)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1}),e(s,{label:"\u64CD\u4F5C",width:"170",fixed:"right"},{default:t(({row:l})=>[e(f,{type:"primary",link:"",onClick:v=>L(l)},{default:t(()=>[b(" \u5E93\u5B58\u7BA1\u7406 ")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),F("div",_e,[e(N,{modelValue:a(r),"onUpdate:modelValue":o[2]||(o[2]=l=>ie(r)?r.value=l:null),onChange:a(c)},null,8,["modelValue","onChange"])])]),_:1})),[[G,a(r).loading]]),a(d)?(C(),h(ae,{key:0,ref_key:"editRef",ref:_,onClose:o[3]||(o[3]=l=>d.value=!1)},null,512)):re("",!0)])}}});export{et as default};
|