Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

2 wiersze
2.4KB

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