2 lines
4.9 KiB
JavaScript
2 lines
4.9 KiB
JavaScript
import{$ as G,a0 as M,Q as O,R as q,D as A,C as Q,w as W,F as z,I as H,L as J,t as K,M as X,N as Y}from"./element-plus.a40e8d80.js";import{_ as Z}from"./index.vue_vue_type_script_setup_true_lang.4ac5ccb7.js";import{u as ee}from"./usePaging.d25ebf19.js";import{b as te,c as oe,a as le}from"./goodsList.98718c7d.js";import{_ as ae}from"./detail.vue_vue_type_script_setup_true_name_manageProjectEdit_lang.311e301c.js";import{d as B,s as se,r as E,a0 as g,o as C,c as ue,W as e,O as t,u as a,T as b,P as ne,M as h,a as F,j as ie,S as re,n as pe}from"./@vue.c3e77981.js";import"./@vueuse.a48d0173.js";import"./@element-plus.12c58ce2.js";import"./lodash-es.2b5acb28.js";import"./dayjs.16ed1fda.js";import"./axios.a8078129.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.b082b0c1.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.9d786a17.js";import"./lodash.a2abcd4b.js";import"./vue-router.43c06794.js";import"./pinia.b5130627.js";import"./css-color-function.975e80a5.js";import"./color.d986aa86.js";import"./clone.704d8332.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.ded7f805.js";import"./vue-clipboard3.987889a8.js";import"./clipboard.af74a91f.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b8b719e9.js";import"./index.c458f0f6.js";const me={class:"mt-4"},_e={class:"flex mt-4 justify-end"},de=B({name:"manageProjectLists"}),Ze=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=O,S=q,p=A,m=G,P=Q,f=W,R=M,$=z,w=H,s=J,j=K,N=X,U=Z,I=Y;return C(),ue("div",null,[e(w,{class:"!border-none mb-4",shadow:"never"},{default:t(()=>[e($,{class:"mb-[-16px]",model:a(i),"label-width":"80px"},{default:t(()=>[e(R,null,{default:t(()=>[e(m,{span:6},{default:t(()=>[e(p,{label:"\u5546\u54C1\u72B6\u6001"},{default:t(()=>[e(S,{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(P,{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(N,{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(j,{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(U,{modelValue:a(r),"onUpdate:modelValue":o[2]||(o[2]=l=>ie(r)?r.value=l:null),onChange:a(c)},null,8,["modelValue","onChange"])])]),_:1})),[[I,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{Ze as default};
|