您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

index.341d7d20.js 4.3KB

1
  1. import{d as z,G as L,D as q,A as F,b as h,r as m,o as H,c as n,e as A,I as E,i as a,g as d,h as e,u as p,k as J,j as g,x as K}from"./index.20c8d60f.js";import{E as Q}from"./index.b0d7b20c.js";import{l as W,a as X}from"./operationProjectRecord.67a3b771.js";import{g as v,a as Y}from"./getIsShowRegionTree.49e84d71.js";const Z={class:"px-20 pt-10 pb-20 w-full"},ee={class:"flex"},ae={class:"flex justify-between items-center"},te=["onClick"],oe=["onClick"],le=["onClick"],ne=z({name:"operationProjectRecord"}),ce=Object.assign(ne,{setup(re){const V=L(q.userStore).userInfo,{proxy:N}=K(),x=F(),r=h({projectName:void 0,buildOrg:void 0}),u=m(),I=m(0),D=h([{label:"\u5E8F\u53F7",type:"index",width:"60"},{label:"\u9879\u76EE\u7F16\u53F7",key:"baseProjId",prop:"baseProjId"},{label:"\u9879\u76EE\u540D\u79F0",key:"baseProjName",prop:"baseProjName"},{label:"\u5EFA\u8BBE\u5355\u4F4D",key:"baseBuildDeprt",prop:"baseBuildDeprt"},{label:"\u884C\u653F\u533A\u5212",key:"baseAreaName",prop:"baseAreaName"},{label:"\u7533\u62A5\u91D1\u989D\uFF08\u4E07\u5143\uFF09",key:"baseProjDeclAmount",prop:"baseProjDeclAmount",width:"180"},{label:"\u64CD\u4F5C",slot:"action",width:"160",fixed:"right"}]),P=m([]),_=m(),G=t=>{_.value=t.regionLevel===3?t.regionCode:void 0,u.value.pageParams.pageNumber=1,i()},s=m("1"),T=t=>{s.value=t,y()},i=async(t=u.value.pageParams)=>{const l=await W(s.value,{...t,...r,regionCode:_.value});P.value=l.data.records,I.value=l.data.total},M=()=>{i()},y=()=>{r.projectName=void 0,r.buildOrg=void 0,u.value.pageParams.pageNumber=1,u.value.pageParams.pageSize=10,i()},O=t=>{N.$messageBox.confirm("\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u9879\u5417?","\u63D0\u793A\uFF01",{type:"warning"}).then(async()=>{await X(s.value,s.value==="1"?t.baseProjId:t.draftId),N.$message.success("\u5220\u9664\u6210\u529F\uFF01"),await i()})};return H(()=>{v(["SUPER_ADMIN","REGION_MANAGER"])||(_.value=V.value.regionCode,i(u.value.pageParams))}),(t,l)=>{const c=n("el-col"),w=n("el-input"),f=n("el-form-item"),b=n("el-button"),j=n("el-row"),$=n("el-form"),k=n("el-card"),C=n("el-tab-pane"),S=n("el-tabs"),U=n("table-list"),B=n("el-container");return A(),E(B,{class:"overflow-y-auto"},{default:a(()=>[d("div",Z,[e(j,null,{default:a(()=>[p(v)(["SUPER_ADMIN","REGION_MANAGER"])?(A(),E(c,{key:0,span:4,class:"pr-16"},{default:a(()=>[e(Q,{params:p(Y)({SUPER_ADMIN:!1,REGION_MANAGER:!1}),onGetTree:G},null,8,["params"])]),_:1})):J("",!0),e(c,{span:p(v)(["SUPER_ADMIN","REGION_MANAGER"])?20:24},{default:a(()=>[e(k,{class:"w-full search"},{default:a(()=>[e($,{model:r,size:"small","label-suffix":":"},{default:a(()=>[e(j,{gutter:16},{default:a(()=>[e(c,{span:8},{default:a(()=>[e(f,{label:"\u9879\u76EE\u540D\u79F0"},{default:a(()=>[e(w,{modelValue:r.projectName,"onUpdate:modelValue":l[0]||(l[0]=o=>r.projectName=o),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(c,{span:8},{default:a(()=>[e(f,{label:"\u9879\u76EE\u5355\u4F4D"},{default:a(()=>[e(w,{modelValue:r.buildOrg,"onUpdate:modelValue":l[1]||(l[1]=o=>r.buildOrg=o),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(c,{span:8},{default:a(()=>[e(f,{class:"btn"},{default:a(()=>[d("div",ee,[e(b,{type:"primary",onClick:M},{default:a(()=>[g("\u67E5\u8BE2")]),_:1}),e(b,{onClick:y},{default:a(()=>[g("\u91CD\u7F6E")]),_:1})])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(k,{class:"w-full mt-8 tab-card"},{header:a(()=>[d("div",ae,[e(S,{modelValue:s.value,"onUpdate:modelValue":l[2]||(l[2]=o=>s.value=o),onTabChange:T},{default:a(()=>[e(C,{label:"\u9879\u76EE\u5217\u8868",name:"1"}),e(C,{label:"\u8349\u7A3F\u7BB1",name:"2"})]),_:1},8,["modelValue"]),d("div",null,[e(b,{type:"primary",size:"small",icon:"Plus",onClick:l[3]||(l[3]=o=>p(x).push({name:"operationProjectEdit"}))},{default:a(()=>[g("\u5F55\u5165\u9879\u76EE")]),_:1})])])]),default:a(()=>[e(U,{ref_key:"tableListRef",ref:u,column:D,data:P.value,total:I.value,onGetTableData:i},{action:a(({scope:o})=>[d("a",{onClick:R=>t.$router.push({name:"operationProjectRecordDetail",query:{id:o.row.baseProjId,draftId:o.row.draftId,type:s.value}})},"\u67E5\u770B",8,te),d("a",{onClick:R=>t.$router.push({name:"operationProjectEdit",query:{id:o.row.baseProjId,draftId:o.row.draftId,type:s.value}})},"\u7F16\u8F91",8,oe),d("a",{class:"text-danger",onClick:R=>O(o.row)},"\u5220\u9664",8,le)]),_:1},8,["column","data","total"])]),_:1})]),_:1},8,["span"])]),_:1})])]),_:1})}}});export{ce as default};