Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

2 řádky
2.6KB

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