Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

2 lines
2.4KB

  1. import{d as C,D as F,r as y,L,c as r,e as s,I as v,i as e,h as a,f as V,F as g,J as G,u as w,j as p,t as S}from"./index.d340e473.js";const U=C({name:"appSafeInfo"}),O=Object.assign(U,{props:{data:{type:Object,default:null}},setup(I,{expose:x}){const{insuranceLevel:b}=F.dictStore.globalDicts||{},n=I,l=y({}),c=y(),k={secrecyGrade:[{required:!0,message:"\u8BF7\u9009\u62E9\u7B49\u4FDD\u7EA7\u522B"}],passwordGrade:[{required:!0,message:"\u5BC6\u7801\u6D4B\u8BC4\u7EA7\u522B"}],nationalItSpec:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u7B26\u5408\u76F8\u5173\u89C4\u8303"}]},D=_=>{c.value.validate(o=>{_(o)})},j=()=>{c.value.clearValidate()};return L(()=>n.data,_=>{l.value={secrecyGrade:n.data.secrecyGrade,passwordGrade:n.data.passwordGrade,nationalItSpec:n.data.nationalItSpec}},{immediate:!0,deep:!0}),x({validForm:D,formData:l,clearValidate:j}),(_,o)=>{const u=r("el-radio"),f=r("el-radio-group"),m=r("el-form-item"),i=r("el-col"),q=r("el-row"),B=r("el-form");return s(),v(B,{ref_key:"formRef",ref:c,model:l.value,rules:k,"label-position":"right","label-width":"180px","label-suffix":":","scroll-to-error":""},{default:e(()=>[a(q,{gutter:20},{default:e(()=>[a(i,{span:24},{default:e(()=>[a(m,{label:"\u7B49\u4FDD\u7EA7\u522B",prop:"secrecyGrade"},{default:e(()=>[a(f,{modelValue:l.value.secrecyGrade,"onUpdate:modelValue":o[0]||(o[0]=t=>l.value.secrecyGrade=t)},{default:e(()=>[(s(!0),V(g,null,G(w(b),(t,d)=>(s(),v(u,{key:d,label:d*1},{default:e(()=>[p(S(t),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),a(i,{span:24},{default:e(()=>[a(m,{label:"\u5BC6\u7801\u6D4B\u8BC4\u7EA7\u522B",prop:"passwordGrade"},{default:e(()=>[a(f,{modelValue:l.value.passwordGrade,"onUpdate:modelValue":o[1]||(o[1]=t=>l.value.passwordGrade=t)},{default:e(()=>[(s(!0),V(g,null,G(w(b),(t,d)=>(s(),v(u,{key:d,label:d*1},{default:e(()=>[p(S(t),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),a(i,{span:12},{default:e(()=>[a(m,{label:"\u662F\u5426\u7B26\u5408\u56FD\u5BB6\u4FE1\u606F\u6280\u672F\u5E94\u7528\u521B\u65B0\u76F8\u5173\u89C4\u8303",prop:"nationalItSpec"},{default:e(()=>[a(f,{modelValue:l.value.nationalItSpec,"onUpdate:modelValue":o[2]||(o[2]=t=>l.value.nationalItSpec=t)},{default:e(()=>[a(u,{label:1},{default:e(()=>[p("\u662F")]),_:1}),a(u,{label:0},{default:e(()=>[p("\u5426")]),_:1})]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])}}});export{O as default};