|
- import{_ as $,b as D,c as U}from"./sealCodeDialog.7757454e.js";import{_ as B,d as N,C as j,B as I,r as u,b as f,Z as R,o as T,c as r,e as L,f as S,h as l,i as o,g as a,j as m,t as V,F as z,q as A}from"./index.e8b71da7.js";const F={class:"flexRight mb-8"},q=["src"],E=["onClick"],G=["onClick"],M=N({name:"sealConfiguration"}),O=Object.assign(M,{setup(Z){const b=j(I.userStore).userInfo||{},{proxy:_}=A(),g=u(),x=f([{label:"\u5E8F\u53F7",type:"index",width:"80"},{label:"\u5370\u7AE0\u540D\u79F0",key:"sealName",prop:"sealName"},{label:"\u5370\u7AE0\u56FE\u7247",slot:"img"},{label:"sealCode",key:"sealCode",prop:"sealCode"},{label:"\u6DFB\u52A0\u65F6\u95F4",key:"createdAt",prop:"createdAt"},{label:"\u72B6\u6001",key:"isUse",render:e=>R("span",{class:e.isUse?"text-success":"text-danger"},e.isUse?"\u542F\u7528":"\u7981\u7528")},{label:"\u64CD\u4F5C",slot:"action",width:"120",fixed:"right"}]),d=u([{id:1,name:"\u540D\u79F0",role:"1,2",status:1}]),n=async()=>{const e=await D({unitCode:b.value.unitCode});d.value=e.data},p=(e,s)=>{const i=s===1?"\u5220\u9664":e.isUse?"\u7981\u7528":"\u542F\u7528";_.$messageBox.confirm(`\u662F\u5426${i}\u8BE5\u6D41\u7A0B?`,"\u63D0\u793A\uFF01",{type:"warning"}).then(async()=>{await U({isUse:!e.isUse,sealCode:e.sealCode,type:s}),_.$message.success(`${i}\u6210\u529F\uFF01`),n()})},c=f({visible:!1}),v=e=>{c.visible=!0},C=e=>{c.visible=!1,e&&n()};return T(()=>{n()}),(e,s)=>{const i=r("el-button"),h=r("el-alert"),y=r("table-list"),w=r("el-card");return L(),S(z,null,[l(w,{class:"elCard",title:"\u5370\u7AE0\u5217\u8868",shadow:"never"},{default:o(()=>[a("div",F,[l(i,{type:"primary",onClick:v},{default:o(()=>s[0]||(s[0]=[m("\u6DFB\u52A0\u5370\u7AE0")])),_:1})]),l(h,{style:{margin:"0px 0px 8px"},closable:e.closable,type:"warning","show-icon":""},{title:o(()=>s[1]||(s[1]=[a("p",null,[m(" \u6DFB\u52A0\u5370\u7AE0\u524D\u8BF7\u5148\u767B\u5F55\u6D59\u6C5F\u7701\u653F\u5E9C\u7535\u5B50\u5370\u7AE0\u7CFB\u7EDF\u7533\u8BF7 "),a("a",{href:"http://seal.zj.gov.cn/",target:"_blank"}," http://seal.zj.gov.cn/ ")],-1)])),_:1},8,["closable"]),l(y,{ref_key:"tableListRef",ref:g,column:x,data:d.value,pagination:!1,onGetTableData:n},{img:o(({scope:t})=>[a("img",{src:`data:image/png;base64,${t.row.sealBase64}`,style:{width:"100px",height:"100px"}},null,8,q)]),action:o(({scope:t})=>[a("a",{class:"text-primary",onClick:k=>p(t.row,2)},V(t.row.isUse?"\u7981\u7528":"\u542F\u7528"),9,E),a("a",{class:"text-danger",onClick:k=>p(t.row,1)},"\u5220\u9664",8,G)]),_:1},8,["column","data"])]),_:1}),l($,{visible:c.visible,onClose:C},null,8,["visible"])],64)}}}),K=B(O,[["__scopeId","data-v-fcf326e8"]]);export{K as default};
|