Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

2 рядки
6.9KB

  1. import{d as G,B as S,r as c,J as T,c as r,e as i,G as C,i as l,h as o,j as s,f as g,F as y,k as v,H as w,u as B,t as R}from"./index.0018c8ef.js";const j=G({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:"\u8BF7\u9009\u62E9\u662F\u5426\u4F7F\u7528\u653F\u52A1\u4E91\u8D44\u6E90"}],cloudsType:[{required:!0,message:"\u8BF7\u586B\u5199\u4E91\u8D44\u6E90\u7C7B\u578B"}],cloudsFoundationSpecifications:[{required:!0,message:"\u8BF7\u586B\u5199\u4E91\u8D44\u6E90\u57FA\u7840\u89C4\u683C"}],cloudsNumber:[{required:!0,message:"\u8BF7\u586B\u5199\u4E91\u8D44\u6E90\u53F0\u6570"}],cloudsDescription:[{required:!0,message:"\u8BF7\u586B\u5199\u4E91\u8D44\u6E90\u53F0\u6570"}],netEnv:[{required:!0,message:"\u8BF7\u9009\u62E9\u7F51\u7EDC\u73AF\u5883"}],useCommonData:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u4F7F\u7528\u516C\u5171\u6570\u636E"}],dataName:[{required:!0,message:"\u8BF7\u8F93\u5165\u516C\u5171\u6570\u636E\u540D\u79F0"}],useCommonComponent:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u4F7F\u7528\u516C\u5171\u7EC4\u4EF6"}],commonComponents:[{required:!0,message:"\u8BF7\u8F93\u5165\u516C\u5171\u7EC4\u4EF6\u540D\u79F0"}],produceCommonComponent:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u4F7F\u7528\u516C\u5171\u7EC4\u4EF6"}],produceCommonComponents:[{required:!0,message:"\u8BF7\u586B\u5199\u9884\u8BA1\u7EC4\u4EF6\u540D\u79F0"}]},U=_=>{V.value.validate(e=>{_(e)})},k=()=>{V.value.clearValidate()};return T(()=>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"),F=r("el-row"),E=r("el-form");return i(),C(E,{ref_key:"formRef",ref:V,model:a.value,rules:q,"label-position":"right","label-width":"180px","label-suffix":":","scroll-to-error":""},{default:l(()=>[o(F,{gutter:20},{default:l(()=>[o(d,{span:24},{default:l(()=>[o(n,{label:"\u662F\u5426\u4F7F\u7528\u653F\u52A1\u4E91\u8D44\u6E90",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("\u662F")])),_:1}),o(m,{label:0},{default:l(()=>e[13]||(e[13]=[s("\u5426")])),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),a.value.useGovCloud===1?(i(),g(y,{key:0},[o(d,{span:12},{default:l(()=>[o(n,{label:"\u4E91\u8D44\u6E90\u7C7B\u578B",prop:"cloudsType"},{default:l(()=>[o(p,{modelValue:a.value.cloudsType,"onUpdate:modelValue":e[1]||(e[1]=u=>a.value.cloudsType=u),placeholder:"\u8BF7\u586B\u5199",maxlength:50},null,8,["modelValue"])]),_:1})]),_:1}),o(d,{span:12},{default:l(()=>[o(n,{label:"\u4E91\u8D44\u6E90\u57FA\u7840\u89C4\u683C",prop:"cloudsFoundationSpecifications"},{default:l(()=>[o(p,{modelValue:a.value.cloudsFoundationSpecifications,"onUpdate:modelValue":e[2]||(e[2]=u=>a.value.cloudsFoundationSpecifications=u),placeholder:"\u8BF7\u586B\u5199",maxlength:50},null,8,["modelValue"])]),_:1})]),_:1}),o(d,{span:12},{default:l(()=>[o(n,{label:"\u4E91\u8D44\u6E90\u53F0\u6570",prop:"cloudsNumber"},{default:l(()=>[o(p,{modelValue:a.value.cloudsNumber,"onUpdate:modelValue":e[3]||(e[3]=u=>a.value.cloudsNumber=u),placeholder:"\u8BF7\u586B\u5199",maxlength:"6"},null,8,["modelValue"])]),_:1})]),_:1}),o(d,{span:12},{default:l(()=>[o(n,{label:"\u4E91\u8D44\u6E90\u7528\u9014\u63CF\u8FF0",prop:"cloudsDescription"},{default:l(()=>[o(p,{modelValue:a.value.cloudsDescription,"onUpdate:modelValue":e[4]||(e[4]=u=>a.value.cloudsDescription=u),placeholder:"\u8BF7\u586B\u5199",maxlength:50},null,8,["modelValue"])]),_:1})]),_:1})],64)):v("",!0),o(d,{span:24},{default:l(()=>[o(n,{label:"\u7F51\u7EDC\u73AF\u5883",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,w(B(N),(u,b)=>(i(),C(m,{key:b,label:b*1},{default:l(()=>[s(R(u),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),o(d,{span:24},{default:l(()=>[o(n,{label:"\u662F\u5426\u4F7F\u7528\u516C\u5171\u6570\u636E",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("\u662F")])),_:1}),o(m,{label:0},{default:l(()=>e[15]||(e[15]=[s("\u5426")])),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),o(d,{span:16},{default:l(()=>[a.value.useCommonData===1?(i(),C(n,{key:0,label:"\u6570\u636E\u540D\u79F0",prop:"dataName"},{default:l(()=>[o(p,{modelValue:a.value.dataName,"onUpdate:modelValue":e[7]||(e[7]=u=>a.value.dataName=u),placeholder:"\u8BF7\u586B\u5199",maxlength:50},null,8,["modelValue"])]),_:1})):v("",!0)]),_:1}),o(d,{span:16},{default:l(()=>[o(n,{label:"\u662F\u5426\u4F7F\u7528\u516C\u5171\u7EC4\u4EF6",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("\u662F")])),_:1}),o(m,{label:0},{default:l(()=>e[17]||(e[17]=[s("\u5426")])),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),o(d,{span:16},{default:l(()=>[a.value.useCommonComponent===1?(i(),C(n,{key:0,label:"\u4F7F\u7528\u516C\u5171\u7EC4\u4EF6\u540D\u79F0",prop:"commonComponents"},{default:l(()=>[o(p,{modelValue:a.value.commonComponents,"onUpdate:modelValue":e[9]||(e[9]=u=>a.value.commonComponents=u),placeholder:"\u8BF7\u586B\u5199",maxlength:50},null,8,["modelValue"])]),_:1})):v("",!0)]),_:1}),o(d,{span:16},{default:l(()=>[o(n,{label:"\u662F\u5426\u4EA7\u751F\u516C\u5171\u7EC4\u4EF6",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("\u662F")])),_:1}),o(m,{label:0},{default:l(()=>e[19]||(e[19]=[s("\u5426")])),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),o(d,{span:16},{default:l(()=>[a.value.produceCommonComponent===1?(i(),C(n,{key:0,label:"\u9884\u8BA1\u4EA7\u751F\u7EC4\u4EF6\u540D\u79F0",prop:"produceCommonComponents"},{default:l(()=>[o(p,{modelValue:a.value.produceCommonComponents,"onUpdate:modelValue":e[11]||(e[11]=u=>a.value.produceCommonComponents=u),placeholder:"\u8BF7\u586B\u5199",maxlength:50},null,8,["modelValue"])]),_:1})):v("",!0)]),_:1})]),_:1})]),_:1},8,["model"])}}});export{I as default};