No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

appResourceInfo.02b08299.js 6.8KB

1
  1. import{d as S,D as G,r as b,L as T,c as r,e as i,I as c,i as o,h as e,j as s,f as g,F as D,k as C,J as w,u as R,t as j}from"./index.d340e473.js";const B=S({name:"appResourceInfo"}),O=Object.assign(B,{props:{data:{type:Object,default:null}},setup(y,{expose:x}){const{netEnvOptions:N}=G.dictStore.globalDicts||{},t=y,l=b({}),_=b(),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(a=>{v(a)})},k=()=>{_.value.clearValidate()};return T(()=>t.data,v=>{l.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:l,clearValidate:k}),(v,a)=>{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:_,model:l.value,rules:q,"label-position":"right","label-width":"180px","label-suffix":":","scroll-to-error":""},{default:o(()=>[e(F,{gutter:20},{default:o(()=>[e(d,{span:24},{default:o(()=>[e(n,{label:"\u662F\u5426\u4F7F\u7528\u653F\u52A1\u4E91\u8D44\u6E90",prop:"useGovCloud"},{default:o(()=>[e(f,{modelValue:l.value.useGovCloud,"onUpdate:modelValue":a[0]||(a[0]=u=>l.value.useGovCloud=u)},{default:o(()=>[e(m,{label:1},{default:o(()=>[s("\u662F")]),_:1}),e(m,{label:0},{default:o(()=>[s("\u5426")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),l.value.useGovCloud===1?(i(),g(D,{key:0},[e(d,{span:12},{default:o(()=>[e(n,{label:"\u4E91\u8D44\u6E90\u7C7B\u578B",prop:"cloudsType"},{default:o(()=>[e(p,{modelValue:l.value.cloudsType,"onUpdate:modelValue":a[1]||(a[1]=u=>l.value.cloudsType=u),placeholder:"\u8BF7\u586B\u5199",maxlength:50},null,8,["modelValue"])]),_:1})]),_:1}),e(d,{span:12},{default:o(()=>[e(n,{label:"\u4E91\u8D44\u6E90\u57FA\u7840\u89C4\u683C",prop:"cloudsFoundationSpecifications"},{default:o(()=>[e(p,{modelValue:l.value.cloudsFoundationSpecifications,"onUpdate:modelValue":a[2]||(a[2]=u=>l.value.cloudsFoundationSpecifications=u),placeholder:"\u8BF7\u586B\u5199",maxlength:50},null,8,["modelValue"])]),_:1})]),_:1}),e(d,{span:12},{default:o(()=>[e(n,{label:"\u4E91\u8D44\u6E90\u53F0\u6570",prop:"cloudsNumber"},{default:o(()=>[e(p,{modelValue:l.value.cloudsNumber,"onUpdate:modelValue":a[3]||(a[3]=u=>l.value.cloudsNumber=u),placeholder:"\u8BF7\u586B\u5199",maxlength:"6"},null,8,["modelValue"])]),_:1})]),_:1}),e(d,{span:12},{default:o(()=>[e(n,{label:"\u4E91\u8D44\u6E90\u7528\u9014\u63CF\u8FF0",prop:"cloudsDescription"},{default:o(()=>[e(p,{modelValue:l.value.cloudsDescription,"onUpdate:modelValue":a[4]||(a[4]=u=>l.value.cloudsDescription=u),placeholder:"\u8BF7\u586B\u5199",maxlength:50},null,8,["modelValue"])]),_:1})]),_:1})],64)):C("",!0),e(d,{span:24},{default:o(()=>[e(n,{label:"\u7F51\u7EDC\u73AF\u5883",prop:"netEnv"},{default:o(()=>[e(f,{modelValue:l.value.netEnv,"onUpdate:modelValue":a[5]||(a[5]=u=>l.value.netEnv=u)},{default:o(()=>[(i(!0),g(D,null,w(R(N),(u,V)=>(i(),c(m,{key:V,label:V*1},{default:o(()=>[s(j(u),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(d,{span:24},{default:o(()=>[e(n,{label:"\u662F\u5426\u4F7F\u7528\u516C\u5171\u6570\u636E",prop:"useCommonData"},{default:o(()=>[e(f,{modelValue:l.value.useCommonData,"onUpdate:modelValue":a[6]||(a[6]=u=>l.value.useCommonData=u)},{default:o(()=>[e(m,{label:1},{default:o(()=>[s("\u662F")]),_:1}),e(m,{label:0},{default:o(()=>[s("\u5426")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(d,{span:16},{default:o(()=>[l.value.useCommonData===1?(i(),c(n,{key:0,label:"\u6570\u636E\u540D\u79F0",prop:"dataName"},{default:o(()=>[e(p,{modelValue:l.value.dataName,"onUpdate:modelValue":a[7]||(a[7]=u=>l.value.dataName=u),placeholder:"\u8BF7\u586B\u5199",maxlength:50},null,8,["modelValue"])]),_:1})):C("",!0)]),_:1}),e(d,{span:16},{default:o(()=>[e(n,{label:"\u662F\u5426\u4F7F\u7528\u516C\u5171\u7EC4\u4EF6",prop:"useCommonComponent"},{default:o(()=>[e(f,{modelValue:l.value.useCommonComponent,"onUpdate:modelValue":a[8]||(a[8]=u=>l.value.useCommonComponent=u)},{default:o(()=>[e(m,{label:1},{default:o(()=>[s("\u662F")]),_:1}),e(m,{label:0},{default:o(()=>[s("\u5426")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(d,{span:16},{default:o(()=>[l.value.useCommonComponent===1?(i(),c(n,{key:0,label:"\u4F7F\u7528\u516C\u5171\u7EC4\u4EF6\u540D\u79F0",prop:"commonComponents"},{default:o(()=>[e(p,{modelValue:l.value.commonComponents,"onUpdate:modelValue":a[9]||(a[9]=u=>l.value.commonComponents=u),placeholder:"\u8BF7\u586B\u5199",maxlength:50},null,8,["modelValue"])]),_:1})):C("",!0)]),_:1}),e(d,{span:16},{default:o(()=>[e(n,{label:"\u662F\u5426\u4EA7\u751F\u516C\u5171\u7EC4\u4EF6",prop:"produceCommonComponent"},{default:o(()=>[e(f,{modelValue:l.value.produceCommonComponent,"onUpdate:modelValue":a[10]||(a[10]=u=>l.value.produceCommonComponent=u)},{default:o(()=>[e(m,{label:1},{default:o(()=>[s("\u662F")]),_:1}),e(m,{label:0},{default:o(()=>[s("\u5426")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(d,{span:16},{default:o(()=>[l.value.produceCommonComponent===1?(i(),c(n,{key:0,label:"\u9884\u8BA1\u4EA7\u751F\u7EC4\u4EF6\u540D\u79F0",prop:"produceCommonComponents"},{default:o(()=>[e(p,{modelValue:l.value.produceCommonComponents,"onUpdate:modelValue":a[11]||(a[11]=u=>l.value.produceCommonComponents=u),placeholder:"\u8BF7\u586B\u5199",maxlength:50},null,8,["modelValue"])]),_:1})):C("",!0)]),_:1})]),_:1})]),_:1},8,["model"])}}});export{O as default};