| 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-BfqWtMX3.js";import{l as N,d as k,f as b,r as I,Z as R,a4 as S,a5 as w,k as C,u as i,a9 as x,ac as O,$ as g,a1 as h,a0 as E}from"./vue-DM5HGU8Z.js";import{a as z}from"./libraryApi-28_gbvCl.js";import{u as P,a as V,B as H}from"./index-DYp2Qjp4.js";import{V as M}from"./index-BJUkcCht.js";import j from"./ToExamineContentDrawer-DbIFgLbY.js";import{bo as A,_ as F}from"./entry/index-CRWhxBeP.js";import{l as L}from"./index-lE2idd8k.js";import{C as $}from"./common-DpkSdXuu.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"},Z={class:h(["device-status_text"])},q="待审核资源列表",G="1400",J=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,_)=>(R(),S(i(H),x(a.$attrs,{destroyOnClose:"",onRegister:i(f),title:q,width:G,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",Z,E(i(A)(c.value,u.status,"label")),1)])]),_:1},16),C(j,{onRegister:i(m),onSuccess:T},null,8,["onRegister"])]),_:1},16,["onRegister"]))}}),K=F(J,[["__scopeId","data-v-61f1628e"]]),le=Object.freeze(Object.defineProperty({__proto__:null,default:K},Symbol.toStringTag,{value:"Module"}));export{K as T,le as r,oe as s};
|