|
1 |
- import{E as S,r as c,B as G,b as r,c as i,L as C,h as l,f as o,i as s,d as g,F as y,j as v,H as T,u as w,t as B,k as R}from"./index-dd5fae99.js";const j=R({name:"appResourceInfo"}),I=Object.assign(j,{props:{data:{type:Object,default:null}},setup(D,{expose:x}){const{netEnvOptions:N}=S.dictStore.globalDicts||{},t=D,a=c({}),V=c(),q={useGovCloud:[{required:!0,message:"请选择是否使用政务云资源"}],cloudsType:[{required:!0,message:"请填写云资源类型"}],cloudsFoundationSpecifications:[{required:!0,message:"请填写云资源基础规格"}],cloudsNumber:[{required:!0,message:"请填写云资源台数"}],cloudsDescription:[{required:!0,message:"请填写云资源台数"}],netEnv:[{required:!0,message:"请选择网络环境"}],useCommonData:[{required:!0,message:"请选择是否使用公共数据"}],dataName:[{required:!0,message:"请输入公共数据名称"}],useCommonComponent:[{required:!0,message:"请选择是否使用公共组件"}],commonComponents:[{required:!0,message:"请输入公共组件名称"}],produceCommonComponent:[{required:!0,message:"请选择是否使用公共组件"}],produceCommonComponents:[{required:!0,message:"请填写预计组件名称"}]},U=_=>{V.value.validate(e=>{_(e)})},k=()=>{V.value.clearValidate()};return G(()=>t.data,_=>{a.value={useGovCloud:t.data.useGovCloud,cloudsType:t.data.cloudsType,cloudsFoundationSpecifications:t.data.cloudsFoundationSpecifications,cloudsNumber:t.data.cloudsNumber,cloudsDescription:t.data.cloudsDescription,netEnv:t.data.netEnv,useCommonData:t.data.useCommonData,dataName:t.data.dataName,useCommonComponent:t.data.useCommonComponent,commonComponents:t.data.commonComponents,produceCommonComponent:t.data.produceCommonComponent,produceCommonComponents:t.data.produceCommonComponents}},{immediate:!0,deep:!0}),x({validForm:U,formData:a,clearValidate:k}),(_,e)=>{const m=r("el-radio"),f=r("el-radio-group"),n=r("el-form-item"),d=r("el-col"),p=r("el-input"),E=r("el-row"),F=r("el-form");return i(),C(F,{ref_key:"formRef",ref:V,model:a.value,rules:q,"label-position":"right","label-width":"180px","label-suffix":":","scroll-to-error":""},{default:l(()=>[o(E,{gutter:20},{default:l(()=>[o(d,{span:24},{default:l(()=>[o(n,{label:"是否使用政务云资源",prop:"useGovCloud"},{default:l(()=>[o(f,{modelValue:a.value.useGovCloud,"onUpdate:modelValue":e[0]||(e[0]=u=>a.value.useGovCloud=u)},{default:l(()=>[o(m,{label:1},{default:l(()=>e[12]||(e[12]=[s("是")])),_:1}),o(m,{label:0},{default:l(()=>e[13]||(e[13]=[s("否")])),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),a.value.useGovCloud===1?(i(),g(y,{key:0},[o(d,{span:12},{default:l(()=>[o(n,{label:"云资源类型",prop:"cloudsType"},{default:l(()=>[o(p,{modelValue:a.value.cloudsType,"onUpdate:modelValue":e[1]||(e[1]=u=>a.value.cloudsType=u),placeholder:"请填写",maxlength:50},null,8,["modelValue"])]),_:1})]),_:1}),o(d,{span:12},{default:l(()=>[o(n,{label:"云资源基础规格",prop:"cloudsFoundationSpecifications"},{default:l(()=>[o(p,{modelValue:a.value.cloudsFoundationSpecifications,"onUpdate:modelValue":e[2]||(e[2]=u=>a.value.cloudsFoundationSpecifications=u),placeholder:"请填写",maxlength:50},null,8,["modelValue"])]),_:1})]),_:1}),o(d,{span:12},{default:l(()=>[o(n,{label:"云资源台数",prop:"cloudsNumber"},{default:l(()=>[o(p,{modelValue:a.value.cloudsNumber,"onUpdate:modelValue":e[3]||(e[3]=u=>a.value.cloudsNumber=u),placeholder:"请填写",maxlength:"6"},null,8,["modelValue"])]),_:1})]),_:1}),o(d,{span:12},{default:l(()=>[o(n,{label:"云资源用途描述",prop:"cloudsDescription"},{default:l(()=>[o(p,{modelValue:a.value.cloudsDescription,"onUpdate:modelValue":e[4]||(e[4]=u=>a.value.cloudsDescription=u),placeholder:"请填写",maxlength:50},null,8,["modelValue"])]),_:1})]),_:1})],64)):v("",!0),o(d,{span:24},{default:l(()=>[o(n,{label:"网络环境",prop:"netEnv"},{default:l(()=>[o(f,{modelValue:a.value.netEnv,"onUpdate:modelValue":e[5]||(e[5]=u=>a.value.netEnv=u)},{default:l(()=>[(i(!0),g(y,null,T(w(N),(u,b)=>(i(),C(m,{key:b,label:b*1},{default:l(()=>[s(B(u),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),o(d,{span:24},{default:l(()=>[o(n,{label:"是否使用公共数据",prop:"useCommonData"},{default:l(()=>[o(f,{modelValue:a.value.useCommonData,"onUpdate:modelValue":e[6]||(e[6]=u=>a.value.useCommonData=u)},{default:l(()=>[o(m,{label:1},{default:l(()=>e[14]||(e[14]=[s("是")])),_:1}),o(m,{label:0},{default:l(()=>e[15]||(e[15]=[s("否")])),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),o(d,{span:16},{default:l(()=>[a.value.useCommonData===1?(i(),C(n,{key:0,label:"数据名称",prop:"dataName"},{default:l(()=>[o(p,{modelValue:a.value.dataName,"onUpdate:modelValue":e[7]||(e[7]=u=>a.value.dataName=u),placeholder:"请填写",maxlength:50},null,8,["modelValue"])]),_:1})):v("",!0)]),_:1}),o(d,{span:16},{default:l(()=>[o(n,{label:"是否使用公共组件",prop:"useCommonComponent"},{default:l(()=>[o(f,{modelValue:a.value.useCommonComponent,"onUpdate:modelValue":e[8]||(e[8]=u=>a.value.useCommonComponent=u)},{default:l(()=>[o(m,{label:1},{default:l(()=>e[16]||(e[16]=[s("是")])),_:1}),o(m,{label:0},{default:l(()=>e[17]||(e[17]=[s("否")])),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),o(d,{span:16},{default:l(()=>[a.value.useCommonComponent===1?(i(),C(n,{key:0,label:"使用公共组件名称",prop:"commonComponents"},{default:l(()=>[o(p,{modelValue:a.value.commonComponents,"onUpdate:modelValue":e[9]||(e[9]=u=>a.value.commonComponents=u),placeholder:"请填写",maxlength:50},null,8,["modelValue"])]),_:1})):v("",!0)]),_:1}),o(d,{span:16},{default:l(()=>[o(n,{label:"是否产生公共组件",prop:"produceCommonComponent"},{default:l(()=>[o(f,{modelValue:a.value.produceCommonComponent,"onUpdate:modelValue":e[10]||(e[10]=u=>a.value.produceCommonComponent=u)},{default:l(()=>[o(m,{label:1},{default:l(()=>e[18]||(e[18]=[s("是")])),_:1}),o(m,{label:0},{default:l(()=>e[19]||(e[19]=[s("否")])),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),o(d,{span:16},{default:l(()=>[a.value.produceCommonComponent===1?(i(),C(n,{key:0,label:"预计产生组件名称",prop:"produceCommonComponents"},{default:l(()=>[o(p,{modelValue:a.value.produceCommonComponents,"onUpdate:modelValue":e[11]||(e[11]=u=>a.value.produceCommonComponents=u),placeholder:"请填写",maxlength:50},null,8,["modelValue"])]),_:1})):v("",!0)]),_:1})]),_:1})]),_:1},8,["model"])}}});export{I as default};
|