You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
2.3KB

  1. import{z as u,x as k,r as f,B as L,b as t,c as $,L as B,h as s,f as o,i as v,k as D,s as U}from"./index-dd5fae99.js";const T=l=>u.post("/ls_project_rebuild/api/v1/seal/getSealList",l),F=l=>u.post("/ls_project_rebuild/api/v1/sealManager/getSealList",l),q=l=>u.post("/ls_project_rebuild/api/v1/seal/sealSave",l),O=l=>u.post("/ls_project_rebuild/api/v1/sealManager/sealSave",l),I=l=>u.post("/ls_project_rebuild/api/v1/seal/del",l),P=l=>u.post("/ls_project_rebuild/api/v1/sealManager/del",l),R=D({name:"sealCodeDialog"}),z=Object.assign(R,{props:{visible:{type:Boolean,default:!1,required:!0}},emits:["close"],setup(l,{emit:b}){const{proxy:p}=U(),g=k(),C=l,i=b,d=f(),a=f({}),y={sealCode:[{required:!0,message:"请输入印章sealCode",trigger:"blur"}]},w=async n=>{n&&await n.validate(async e=>{g.query.id?e&&(await O(a.value),p.$message.success("提交成功!"),i("close",!0)):e&&(await q(a.value),p.$message.success("提交成功!"),i("close",!0))})};return L(()=>C.visible,async n=>{n?console.log(n):d.value.resetFields()}),(n,e)=>{const x=t("el-input"),_=t("el-form-item"),m=t("el-col"),j=t("el-switch"),S=t("el-row"),V=t("el-form"),c=t("el-button"),M=t("el-dialog");return $(),B(M,{"model-value":l.visible,title:"添加印章",width:"600px","destroy-on-close":"",onClose:e[4]||(e[4]=r=>i("close"))},{footer:s(()=>[o(c,{type:"primary",onClick:e[2]||(e[2]=r=>w(d.value))},{default:s(()=>e[5]||(e[5]=[v(" 提交 ")])),_:1}),o(c,{onClick:e[3]||(e[3]=r=>i("close"))},{default:s(()=>e[6]||(e[6]=[v(" 关闭 ")])),_:1})]),default:s(()=>[o(V,{ref_key:"formRef",ref:d,model:a.value,rules:y,"label-width":"120px","label-suffix":":"},{default:s(()=>[o(S,null,{default:s(()=>[o(m,{span:24},{default:s(()=>[o(_,{label:"印章sealCode",prop:"sealCode"},{default:s(()=>[o(x,{modelValue:a.value.sealCode,"onUpdate:modelValue":e[0]||(e[0]=r=>a.value.sealCode=r),maxlength:"50",placeholder:"请输入"},null,8,["modelValue"])]),_:1})]),_:1}),o(m,{span:24},{default:s(()=>[o(_,{label:"是否启用"},{default:s(()=>[o(j,{modelValue:a.value.isUse,"onUpdate:modelValue":e[1]||(e[1]=r=>a.value.isUse=r)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["model-value"])}}}),A=Object.freeze(Object.defineProperty({__proto__:null,default:z},Symbol.toStringTag,{value:"Module"}));export{z as _,P as a,T as b,I as c,A as d,F as s};