No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

sealList.5e85b0cf.js 2.1KB

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