reveiwDrawer-DahA8s5L.js 3.1 KB

1
  1. var p=(o,s,t)=>new Promise((m,l)=>{var c=e=>{try{r(t.next(e))}catch(n){l(n)}},f=e=>{try{r(t.throw(e))}catch(n){l(n)}},r=e=>e.done?m(e.value):Promise.resolve(e.value).then(c,f);r((t=t.apply(o,s)).next())});import{S as B}from"./antd-DQsZxxg1.js";import{l as N,d as k,f as b,r as I,a5 as R,_ as S,a6 as w,k as C,u as i,aa as x,ac as O,$ as g,a1 as h,a0 as E}from"./vue-4umLpMSY.js";import{a as z}from"./libraryApi-BaU0lYQh.js";import{u as P,a as V,B as H}from"./index-Bf0v2YPO.js";import{V as M}from"./index-C1mbXHN2.js";import j from"./ToExamineContentDrawer-puqACDKy.js";import{bo as A,_ as F}from"./entry/index-CNSQBFd3.js";import{l as L}from"./index-BdoLfTXD.js";import{C as $}from"./common-BF39TN_B.js";const oe=[{field:"name",label:"",component:"Input",componentProps:({formModel:o})=>({placeholder:"请输入要搜索的内容",onChange:s=>{o.blurry=s.target.value}}),renderComponentContent:()=>({prefix:()=>N(B)}),colProps:{span:24}}],Q=[{title:"编号",dataIndex:"number",field:"number",align:"left"},{title:"CBB库名称",dataIndex:"repositoryName",field:"repositoryName",align:"left"},{title:"菜单",dataIndex:"menuName",field:"menuName",align:"left"},{title:"当前状态",dataIndex:"status",field:"status",slots:{default:"status"},align:"left"},{title:"发起人",dataIndex:"createByNickname",field:"createByNickname",align:"left"},{title:"审批人",dataIndex:"approvalByNickname",field:"approvalByNickname",align:"left"},{title:"发起时间",dataIndex:"createTime",field:"createTime",align:"left"}],U={class:"device-status"},q={class:h(["device-status_text"])},G="待审核资源列表",J="1400",K=k({__name:"reveiwDrawer",emits:["success","register"],setup(o,{emit:s}){const t=s,[m,{openDrawer:l}]=P(),c=b([]),[f,{setDrawerProps:r,closeDrawer:e}]=V(a=>p(this,null,function*(){r({confirmLoading:!1}),c.value=yield L({dictCode:"cbb_review_status"}),yield y()})),n=b(),d=I({id:"biz_cbb_to_examine",columns:Q,stripe:!1,border:"inner",data:[],proxyConfig:null,showOverflow:!0,resizable:!1,toolbarConfig:null,round:!0,height:"auto",minHeight:750,headerRowClassName:"row-class",headerCellClassName:"table-basic_header",columnConfig:{resizable:!1},pagerConfig:{}}),v={cellClick({row:a,columnIndex:_,column:u}){u.type!=$.ATTACHMENT&&(a.id||(a.id=a.resourceId),_===0&&l(!0,{record:{row:a},isUpdate:!0}))}};function y(){return p(this,null,function*(){d.loading=!0;const a=yield z({status:"menu_unReviewed"});d.data=a.data||[],d.loading=!1})}function D(){t("success",{}),e()}function T(){}return(a,_)=>(S(),R(i(H),x(a.$attrs,{destroyOnClose:"",onRegister:i(f),title:G,width:J,onOk:D,showFooter:!0,okText:"流程中心",showCancelBtn:!1}),{default:w(()=>[C(i(M),x({ref_key:"gridRef",ref:n},d,O(v),{class:"table-basic"}),{status:w(({row:u})=>[g("div",U,[g("span",{class:h(["device-status_prefix",u.status==="menu_unReviewed"?"device-status_prefix--warn":"device-status_prefix--error"])},null,2),g("span",q,E(i(A)(c.value,u.status,"label")),1)])]),_:1},16),C(j,{onRegister:i(m),onSuccess:T},null,8,["onRegister"])]),_:1},16,["onRegister"]))}}),W=F(K,[["__scopeId","data-v-61f1628e"]]),le=Object.freeze(Object.defineProperty({__proto__:null,default:W},Symbol.toStringTag,{value:"Module"}));export{W as T,le as r,oe as s};