Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

2 rindas
2.1KB

  1. import{_ as w,s as k,a as $}from"./sealCodeDialog.35958610.js";import{d as D,x as U,r as u,b as p,Z as B,o as N,c,e as R,f as L,h as o,i as n,g as i,j as M,t as T,F as V,q as j}from"./index.88314652.js";const q={class:"flexRight mb-8"},A=["src"],F=["onClick"],S=["onClick"],E=D({name:"sealConfiguration"}),Z=Object.assign(E,{setup(G){const g=U(),{proxy:d}=j(),b=u(),f=p([{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=>B("span",{class:e.isUse?"text-success":"text-danger"},e.isUse?"\u542F\u7528":"\u7981\u7528")},{label:"\u64CD\u4F5C",slot:"action",width:"120",fixed:"right"}]),_=u([{id:1,name:"\u540D\u79F0",role:"1,2",status:1}]),t=async()=>{const e=await k({unitCode:g.query.id});_.value=e.data},m=(e,a)=>{const l=a===1?"\u5220\u9664":e.isUse?"\u7981\u7528":"\u542F\u7528";d.$messageBox.confirm(`\u662F\u5426${l}\u8BE5\u6D41\u7A0B?`,"\u63D0\u793A\uFF01",{type:"warning"}).then(async()=>{await $({isUse:!e.isUse,sealCode:e.sealCode,type:a}),d.$message.success(`${l}\u6210\u529F\uFF01`),t()})},r=p({visible:!1}),C=e=>{r.visible=!0},h=e=>{r.visible=!1,e&&t()};return N(()=>{t()}),(e,a)=>{const l=c("el-button"),x=c("table-list"),y=c("el-card");return R(),L(V,null,[o(y,{class:"elCard",title:"\u5370\u7AE0\u5217\u8868",shadow:"never"},{default:n(()=>[i("div",q,[o(l,{type:"primary",onClick:C},{default:n(()=>a[0]||(a[0]=[M("\u6DFB\u52A0\u5370\u7AE0")])),_:1})]),o(x,{ref_key:"tableListRef",ref:b,column:f,data:_.value,pagination:!1,onGetTableData:t},{img:n(({scope:s})=>[i("img",{src:`data:image/png;base64,${s.row.sealBase64}`,style:{width:"100px",height:"100px"}},null,8,A)]),action:n(({scope:s})=>[i("a",{class:"text-primary",onClick:v=>m(s.row,2)},T(s.row.isUse?"\u7981\u7528":"\u542F\u7528"),9,F),i("a",{class:"text-danger",onClick:v=>m(s.row,1)},"\u5220\u9664",8,S)]),_:1},8,["column","data"])]),_:1}),o(w,{visible:r.visible,onClose:h},null,8,["visible"])],64)}}});export{Z as default};