y9-interface-platform/y9vue-interfacePlatform/interface/assets/index-ee2f1fcf.js

2 lines
22 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{E as G,l as Ie,J as Pe,o as Ve,p as Ce,q as he,v as Te,b as de,K as xe,a as ue,I as fe,G as Fe,w as Le}from"./element-plus-53a783a7.js";import"./vue-20eed888.js";import{u as me,b as ze}from"./index-03a63030.js";import{u as ie}from"./vue-i18n-d6e8419a.js";import{g as we,s as ye,c as Be,i as qe,f as Ne,e as Oe}from"./interfaceDialog-a751ab38.js";import{g as Ue,u as Ee}from"./interface-6c1bedf7.js";import{d as re,G as ge,r as s,k as a,o as P,b as W,P as f,e as m,T as H,c as Q,F as oe,a8 as be,S as j,ai as se,u as I,U as ee,i as Ae,n as $e,ah as J,L as pe,a as le}from"./@vue-e95c845e.js";import{_ as ne}from"./y9plugin-components-412bad23.js";import{a as De,g as _e}from"./systemidentifier-26774e0a.js";import"./lodash-es-2e98bc53.js";import"./@vueuse-409d7ed5.js";import"./@element-plus-57b52633.js";import"./@popperjs-c75af06c.js";import"./@ctrl-f8748455.js";import"./dayjs-e13f206c.js";import"./axios-db0ed51e.js";import"./async-validator-20f92749.js";import"./memoize-one-297ddbcb.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-606f2ab9.js";import"./lodash-11751b8b.js";import"./pinia-22d008e7.js";import"./nprogress-e9cc33fd.js";import"./vue-router-e03c3082.js";/* empty css *//* empty css *//* empty css */import"./y9plugin-sso-6f4b3ca3.js";import"./y9plugin-watermark-e18d3181.js";import"./@intlify-d4a3a758.js";import"./v-viewer-decd5d79.js";import"./viewerjs-c43574b2.js";import"./vxe-table-3ccf2bcd.js";import"./xe-utils-90392958.js";import"./dom-zindex-d72a3c32.js";import"./request-6d47a533.js";import"./interfaceAuth-23f23afd.js";import"./authInterface-473123dc.js";import"./parameterTable-f92cb2bf.js";const Je=re({__name:"authDialog",props:{openDialog:{type:Boolean,default:()=>!1},isView:{type:Boolean,default:()=>!1},interfaceId:{type:String},selectData:{type:Object}},emits:["update:openDialog","update:selectData"],setup(M,{expose:F,emit:A}){ge("sizeObjInfo"),me();const{t:e}=ie();s();const u=s({}),z=s(),B=s({thresholdType:[{required:!0,message:a(()=>e("阈值类型不能为空")),trigger:"blur"}]}),N=s([]),g=M,h=A;s(!1);const w=s("权限信息");function O(n){h("update:openDialog",!1)}function V(n){z.value.validate(y=>{y&&(h("update:openDialog",!1),h("update:selectData",u.value))})}function l(){let n={id:g.interfaceId,isView:g.isView};Ue(n).then(y=>{N.value=y.data,console.log(g.selectData),g.isView;let $=y.requiredData;for(let i of $)B.value[i.parameterKey]=[{required:!0,message:a(()=>e("参数不能为空")),trigger:"blur"}];let k=[];for(let i in g.selectData)g.selectData[i].length==1&&g.selectData[i][0]==""&&k.push(i);for(let i of k)delete g.selectData[i];u.value=g.selectData}).catch(()=>{G({message:"获取权限信息失败",type:"warning"})})}return F({restData:()=>{u.value={},N.value=[]},getRuleForm:()=>(h("update:selectData",u.value),z.value)}),(n,y)=>{const $=Ie,k=Pe,i=Ve,r=Ce,L=he,v=Te,R=de,d=xe;return g.openDialog?(P(),W(d,{key:0,modelValue:g.openDialog,"onUpdate:modelValue":y[2]||(y[2]=t=>g.openDialog=t),title:w.value,onClosed:O,onOpened:l,"append-to-body":"true"},{footer:f(()=>[m(R,{class:"el-button el-button--primary el-button--default global-btn-main",onClick:y[0]||(y[0]=t=>V("1"))},{default:f(()=>y[3]||(y[3]=[H("确定")])),_:1}),m(R,{onClick:y[1]||(y[1]=t=>O("1"))},{default:f(()=>y[4]||(y[4]=[H("取消")])),_:1})]),default:f(()=>[m($),m(v,{ref_key:"ruleFormRef",ref:z,model:u.value,rules:B.value},{default:f(()=>[(P(!0),Q(oe,null,be(N.value,t=>(P(),W(L,{key:t.id,label:t.label,prop:t.prop},{default:f(()=>[t.type=="slot"?(P(),W(k,{key:0,modelValue:u.value[t.prop],"onUpdate:modelValue":o=>u.value[t.prop]=o,data:t.options,multiple:"","render-after-expand":!1,"show-checkbox":"","check-strictly":""},null,8,["modelValue","onUpdate:modelValue","data"])):j("",!0),t.type=="select"?(P(),W(r,{key:1,modelValue:u.value[t.prop],"onUpdate:modelValue":o=>u.value[t.prop]=o,multiple:""},{default:f(()=>[(P(!0),Q(oe,null,be(t.options,o=>(P(),W(i,{key:o.id,label:o.label,value:o.value,disabled:g.isView},null,8,["label","value","disabled"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):j("",!0)]),_:2},1032,["label","prop"]))),128))]),_:1},8,["model","rules"])]),_:1},8,["modelValue","title"])):j("",!0)}}});const We=ne(Je,[["__scopeId","data-v-a94f93f6"],["__file","E:/workSpaceJDK11/y9-interface-platform/y9vue-interfacePlatform/src/views/approve/authDialog.vue"]]),Me={key:0},Ye={key:0},je=re({__name:"applyInfo",props:{openDialog:{type:Boolean,default:()=>!1},isOpen:{type:Boolean,default:()=>!1},isView:{type:Boolean,default:()=>!1},interfaceId:{type:String},selectData:{type:Object},isLimitData:{type:String}},emits:["update:openDialog","update:selectData","getDataListParent"],setup(M,{expose:F,emit:A}){ge("sizeObjInfo"),me();const{t:e}=ie();s();const u=s(),z=s(""),B=s(!1),N=s(),g=s(),h=s(""),w=s({}),O=s({}),V=s({}),l=s(""),b=s([]),C=s([]),n=M,y=A;s(!1),s("选择权限信息");const $=()=>{var p;return{y9RuleFormInstance:(p=u.value)==null?void 0:p.elFormRef,authDialogRef:g.value,ruleFormRef:u.value,selectData:w.value}},k=()=>{var p;((p=u.value)==null?void 0:p.elFormRef).validate(async U=>{if(U){try{g.value.getRuleForm().validate(c=>{if(!c)return ue.alert("权限信息页面有必填项未填写,请打开页面确认!","权限信息必填确认",{confirmButtonText:"确认"}),!1})}catch{return ue.alert("权限信息页面未选择,请打开页面确认!","权限信息必填确认",{confirmButtonText:"确认"}),!1}let T=u.value.model,x=new FormData;for(let c in T)T[c]!=null&&c!="createTime"&&c!="updateTime"&&x.append(c,T[c]);let _={};for(let c in w.value){let D="";for(let te of w.value[c])D+=te+",";_[c]=D.substring(0,D.length-1)}if(x.append("auth",JSON.stringify(_)),T.auth=JSON.stringify(_),z.value!="停用"){let c=await Ee(T);return c.code==0?(c.status=="success"?G({message:"数据提交成功,等待审核,详细信息请移步到 个人中心>已申请接口 查看",type:"success",duration:6e3}):G({message:""+c.msg,type:"success"}),y("getDataListParent"),!0):!1}}else return!1})},i=(S,p,U)=>{let T=ze("phone",p,!0);T.valid?U():U(new Error(T.msg))},r=[];let L={type:"textarea",label:a(()=>e("申请事由")),prop:"applyReason",props:{disabled:n.isView,rows:3,maxlength:500}},v={type:"textarea",label:a(()=>e("备注")),prop:"notes",props:{disabled:n.isView,rows:3,maxlength:254}},R={type:"select",label:a(()=>e("申请系统名称")),prop:"systemIdentifier",props:{disabled:n.isView,maxlength:254,options:C.value}},d={type:"slot",label:a(()=>e("权限信息申请")),props:{slotName:"openAuthDialog"}},t={type:"textarea",label:a(()=>e("IP名单")),prop:"ipWhitelist",props:{disabled:n.isView,placeholder:"多个IP使用英文逗号隔开例如132.1.168.11,132.1.168.12",rows:3,maxlength:100}},o={type:"select",label:a(()=>e("接口调用单位名称")),prop:"applyPersonDeptId",props:{disabled:n.isView,maxlength:254,options:b.value}},Y={type:"input",label:a(()=>e("接口调用责任人")),prop:"usePersonResponsible",props:{disabled:n.isView,maxlength:50}},K={type:"input",label:a(()=>e("责任人联系方式")),prop:"usePersonResponsiblePhone",props:{placeholder:"请输入11位手机号码",disabled:n.isView,maxlength:11}};r.push(L),r.push(v),r.push(o),r.push(R),n.isLimitData=="是"&&r.push(d),r.push(t),r.push(Y),r.push(K);let q=s({model:{interfaceId:n.interfaceId,applyStopTime:"",applyTime:""},rules:{applyReason:[{required:!0,message:a(()=>e("申请事由不能为空")),trigger:"blur"}],systemIdentifier:[{required:!0,message:a(()=>e("申请事由不能为空")),trigger:"blur"}],ipWhitelist:[{required:!0,message:a(()=>e("IP名单不能为空")),trigger:"blur"}],applyTime:[{required:!0,message:a(()=>e("申请日期不能为空")),trigger:"blur"}],applyPersonDeptName:[{required:!0,message:a(()=>e("接口调用单位名称不能为空")),trigger:"blur"}],usePersonResponsible:[{required:!0,message:a(()=>e("接口调用责任人不能为空")),trigger:"blur"}],usePersonResponsiblePhone:[{required:!0,message:a(()=>e("责任人联系方式不能为空")),trigger:"blur"},{validator:i,trigger:"blur"}]},itemList:r,descriptionsFormConfig:{labelWidth:"200px",labelAlign:"center"}}),X=s({model:{interfaceId:n.interfaceId,applyStopTime:"",applyTime:""},rules:{applyReason:[{required:!0,message:a(()=>e("申请事由不能为空")),trigger:"blur"}],systemIdentifier:[{required:!0,message:a(()=>e("申请事由不能为空")),trigger:"blur"}],ipWhitelist:[{required:!0,message:a(()=>e("IP名单不能为空")),trigger:"blur"}],applyTime:[{required:!0,message:a(()=>e("申请日期不能为空")),trigger:"blur"}],applyPersonDeptName:[{required:!0,message:a(()=>e("接口调用单位名称不能为空")),trigger:"blur"}],usePersonResponsible:[{required:!0,message:a(()=>e("接口调用责任人不能为空")),trigger:"blur"}],usePersonResponsiblePhone:[{required:!0,message:a(()=>e("责任人联系方式不能为空")),trigger:"blur"},{validator:i,trigger:"blur"}]},itemList:r,descriptionsFormConfig:{labelWidth:"200px",labelAlign:"center"}});function E(S,p){q.value.model.interfaceId=S,N.value=S}const ce=S=>{S=="1"?w.value=V.value:w.value=O.value,B.value=!0},ke=S=>{De({parameterType:0}).then(x=>{for(let _ of x.data){let c={label:_.name,value:_.id};b.value.push(c)}});let U={pid:S.applyPersonDeptId};_e(U).then(x=>{C.value=[];for(let _ of x.data){let c={label:_.name,value:_.id};C.value.push(c)}for(let _ of q.value.itemList)_.prop=="systemIdentifier"&&(_.props.options=C.value)}),q.value.model=S,l.value=S.oldId;let T=JSON.parse(S.auth);for(let x in T)V.value[x]=T[x].split(",");if(l.value!=null&&l.value!=null&&l.value!=""){let x={id:l.value};we(x).then(_=>{let c=JSON.parse(JSON.stringify(q.value.itemList)),D={pid:S.applyPersonDeptId};_e(D).then(ae=>{let ve=[];for(let Z of ae.data){let Re={label:Z.name,value:Z.id};ve.push(Re)}for(let Z of c)Z.prop=="systemIdentifier"&&(Z.props.options=ve);X.value.itemList=c}),X.value.model=_.data;let te=JSON.parse(_.data.auth);for(let ae in te)O.value[ae]=te[ae].split(",")})}},Se=()=>{q.value.model={},w.value={}};return De({parameterType:0}).then(S=>{for(let p of S.data){let U={label:p.name,value:p.id};b.value.push(U)}}),F({openPubDialog:E,submitData:k,rtDialogRef:$,initFormData:ke,resetFormData:Se}),(S,p)=>{const U=fe,T=de,x=se("y9Form"),_=Fe,c=Le;return P(),Q(oe,null,[m(c,{gutter:10},{default:f(()=>[m(_,{span:l.value==null||l.value==""||l.value==null?24:12},{default:f(()=>[l.value==null||l.value==""||l.value==null?j("",!0):(P(),Q("span",Me,"当前信息")),m(x,{ref_key:"ruleFormRef",ref:u,config:I(q)},{stopdate:f(()=>[m(U,{modelValue:h.value,"onUpdate:modelValue":p[0]||(p[0]=D=>h.value=D),type:"datetime",placeholder:"选择时间"},null,8,["modelValue"])]),openAuthDialog:f(()=>[m(T,{onClick:p[1]||(p[1]=D=>ce("1"))},{default:f(()=>[H(ee(M.isView?"点击查看申请的权限范围信息":"点击选择要申请的权限范围信息"),1)]),_:1})]),_:1},8,["config"])]),_:1},8,["span"]),l.value==null||l.value==""||l.value==null?j("",!0):(P(),W(_,{key:0,span:l.value==null||l.value==""||l.value==null?24:12},{default:f(()=>[l.value==null||l.value==""||l.value==null?j("",!0):(P(),Q("span",Ye,"变更前信息")),m(x,{ref_key:"ruleFormRef",ref:u,config:I(X)},{stopdate:f(()=>[m(U,{modelValue:h.value,"onUpdate:modelValue":p[2]||(p[2]=D=>h.value=D),type:"datetime",placeholder:"选择时间"},null,8,["modelValue"])]),openAuthDialog:f(()=>[m(T,{onClick:p[3]||(p[3]=D=>ce("2"))},{default:f(()=>[H(ee(M.isView?"点击查看申请的权限范围信息":"点击选择要申请的权限范围信息"),1)]),_:1})]),_:1},8,["config"])]),_:1},8,["span"]))]),_:1}),m(We,{ref_key:"authDialogRef",ref:g,"select-data":w.value,"onUpdate:selectData":p[4]||(p[4]=D=>w.value=D),"open-dialog":B.value,"onUpdate:openDialog":p[5]||(p[5]=D=>B.value=D),interfaceId:n.interfaceId,"onUpdate:interfaceId":p[6]||(p[6]=D=>n.interfaceId=D),isView:n.isView,"onUpdate:isView":p[7]||(p[7]=D=>n.isView=D)},null,8,["select-data","open-dialog","interfaceId","isView"])],64)}}});const Ke=ne(je,[["__file","E:/workSpaceJDK11/y9-interface-platform/y9vue-interfacePlatform/src/views/approve/applyInfo.vue"]]),Ge=re({__name:"approve",props:{openDialog:{type:Boolean,default:()=>!1},isView:{type:Boolean,default:()=>!1},selectData:{type:String}},emits:["update:openDialog","update:selectData","getDataListParent"],setup(M,{expose:F,emit:A}){const{t:e}=ie(),u=s(),z=s(),B=s(),N=s(),g=s(!0),h=s("否"),w=M,O=s(),V=A;let l=s({show:w.openDialog,title:a(()=>e("发布接口信息")),showFooter:!0,onOkLoading:!0,margin:"5vh auto",okText:"确定",onOk:k=>new Promise(async(i,r)=>{var v;await((v=z.value)==null?void 0:v.elFormRef).validate(async R=>{if(R){let d=z.value.model,t=new FormData;for(let o in d)d[o]!=null&&o!="createTime"&&o!="updateTime"&&t.append(o,d[o]);if(d.applyType=="1")ue.confirm("当前审批为停用审批,审批通过后,将立即停止该接口的使用,请确认停用时间","审批确认",{confirmButtonText:"确定",cancelButtonText:"取消",type:"info",draggable:!0}).then(()=>{ye(d).then(o=>{o.code==0&&(o.status=="success"?(G({message:"审批成功",type:"success"}),V("getDataListParent"),i()):(G({message:""+o.msg,type:"success"}),r()))})}).catch(()=>{r()});else{let o=await ye(d);o.code==0&&(o.status=="success"?(G({message:"审批成功",type:"success"}),V("getDataListParent"),i()):(G({message:""+o.msg,type:"success"}),r())),r()}}else r()})}),visibleChange:k=>{V("update:openDialog",k)}}),b=s({model:{applyStopTime:""},rules:{applyReason:[{required:!0,message:a(()=>e("申请事由不能为空")),trigger:"blur"}]},itemList:[{type:"textarea",label:a(()=>e("申请事由")),prop:"applyReason",props:{disabled:!0,rows:3}},{type:"textarea",label:a(()=>e("备注")),prop:"notes",props:{disabled:!0,rows:3}},{type:"slot",label:a(()=>e("申请停用时间")),prop:"applyStopTime",props:{slotName:"stopdate"}}],descriptionsFormConfig:{labelWidth:"200px",labelAlign:"center"}}),C=s({model:{approveStatus:"0"},rules:{applyReason:[{required:!0,message:a(()=>e("申请事由不能为空")),trigger:"blur"}],approveStatus:[{required:!0,message:a(()=>e("审批意见不能为空")),trigger:"blur"}],illustrate:[{required:!0,message:a(()=>e("审批说明不能为空")),trigger:"blur"}]},itemList:[{type:"select",label:a(()=>e("审批意见")),prop:"approveStatus",props:{options:[{label:a(()=>e("通过")),value:"0"},{label:a(()=>e("不通过")),value:"1"}]}},{type:"textarea",label:a(()=>e("审批说明")),prop:"illustrate",props:{rows:3,maxlength:1e3}},{type:"textarea",label:a(()=>e("备注")),prop:"notes",props:{rows:3,maxlength:500}}],descriptionsFormConfig:{labelWidth:"200px",labelAlign:"center"}});function n(k,i,r,L){if(h.value=L,y(k),i=="1"?l.value.title=a(()=>e("审批接口停用信息")):i=="2"?l.value.title=a(()=>e("审批接口发布信息")):l.value.title=a(()=>e("审批接口调用信息")),r=="停用"){let v=[],R={type:"slot",label:a(()=>e("申请停用时间")),prop:"applyStopTime",props:{slotName:"stopdate"}};if(v.push(R),b.value.itemList.length==2){for(let d of b.value.itemList)v.push(d);b.value.itemList=v}}else if(r=="发布"){let v=[];for(let R of b.value.itemList)R.prop!="applyStopTime"&&v.push(R);b.value.itemList=v}l.value.show=!0}function y(k){$(),Be({id:k}).then(r=>{let L={id:r.data.applyId};C.value.model=r.data,C.value.model.approveStatus="0",C.value.model.illustrate="",C.value.model.notes="",we(L).then(v=>{b.value.model=v.data,$e(()=>{v.data.applyType=="0"&&B.value.initFormData(v.data)})}),N.value=r.data.interfaceId})}function $(){b.value.model={},C.value.model={}}return F({openApproveDialog:n}),(k,i)=>{const r=Ie,L=fe,v=se("y9Form"),R=se("y9Dialog");return P(),W(R,{config:I(l),"onUpdate:config":i[5]||(i[5]=d=>Ae(l)?l.value=d:l=d)},{default:f(()=>[m(r,{"content-position":"left"},{default:f(()=>i[6]||(i[6]=[H("申请信息")])),_:1}),I(b).model.applyType=="1"||I(b).model.applyType=="2"?(P(),W(v,{key:0,ref_key:"ruleFormRef",ref:u,config:I(b)},{stopdate:f(()=>[m(L,{disabled:!0,modelValue:I(b).model.applyStopTime,"onUpdate:modelValue":i[0]||(i[0]=d=>I(b).model.applyStopTime=d),type:"datetime",placeholder:"选择时间"},null,8,["modelValue"])]),_:1},8,["config"])):j("",!0),I(b).model.applyType=="0"?(P(),W(Ke,{key:1,isLimitData:h.value,"onUpdate:isLimitData":i[1]||(i[1]=d=>h.value=d),isView:g.value,"onUpdate:isView":i[2]||(i[2]=d=>g.value=d),ref_key:"applyInfoRef",ref:B,"select-data":O.value,"onUpdate:selectData":i[3]||(i[3]=d=>O.value=d),interfaceId:N.value,"onUpdate:interfaceId":i[4]||(i[4]=d=>N.value=d)},null,8,["isLimitData","isView","select-data","interfaceId"])):j("",!0),m(r,{"content-position":"left"},{default:f(()=>i[7]||(i[7]=[H("审批信息")])),_:1}),m(v,{ref_key:"approveRef",ref:z,config:I(C)},null,8,["config"])]),_:1},8,["config"])}}});const He=ne(Ge,[["__file","E:/workSpaceJDK11/y9-interface-platform/y9vue-interfacePlatform/src/views/approve/approve.vue"]]),Qe=re({__name:"index",props:{status:{type:String,default:()=>"其他"}},setup(M){const F=ge("sizeObjInfo"),A=me(),{t:e}=ie(),u=s({}),z=s(),B=s(),N=s(),g=s(!1),h=s(!1),w=s(),O=s(),V=s();let l=s({headerBackground:!0,pageConfig:{background:!1,currentPage:1,pageSize:5,total:0,pageSizeOpts:[5,10,15,20,30,40,1e3]},columns:[{type:"index",title:a(()=>e("序号")),width:80,fixed:"left"},{title:a(()=>e("接口名称")),key:"interfaceName"},{title:a(()=>e("接口版本")),key:"version"},{title:a(()=>e("接口状态")),key:"interfaceStatus"},{title:a(()=>e("审批状态")),key:"approveStatus"},{title:a(()=>e("申请类型")),key:"applyType",render:t=>t.applyType==0?J("div","调用"):t.applyType==1?J("div","停用"):t.applyType==2?J("div","发布"):J("div","-")},{title:a(()=>e("申请人")),key:"applyPersonName"},{title:a(()=>e("审批发起时间")),key:"applyTime",sortable:!0},{title:a(()=>e("操作")),width:200,fixed:"right",render:t=>{let o=[];return o=b(t),J("div",o)}}],tableData:[]});function b(t){let o=[],Y=J("span",{class:"operate",onClick:()=>{R(t.interfaceId,t.applyType)}},e("接口详情")),K=J("span",{class:"leftMargin operate",onClick:()=>{v(t.approveId,t.applyType,t.approveInterfaceStatus,t.isLimitData)}},e("审批")),q=J("span",{class:"leftMargin operate",onClick:()=>{L(t.approveId)}},e("审批详情"));return J("span",{class:"leftMargin operate",onClick:()=>{L(t.approveId)}},e("审批进度")),t.isNow=="Y"?(o.push(Y),o.push(K)):(o.push(Y),o.push(q)),o}const C=s({filtersValueCallBack:t=>{u.value=t},itemList:[{type:"input",value:"",key:"interfaceName",label:a(()=>e("接口名称")),labelWidth:"82px",span:A.device==="mobile"?24:4},{type:"select",value:"",key:"applyType",label:a(()=>e("申请类型")),labelWidth:"82px",span:A.device==="mobile"?24:4,props:{options:[{label:"调用",value:"0"},{label:"停用",value:"1"},{label:"发布",value:"2"}]}},{type:"select",value:"",key:"approveStatus",label:a(()=>e("审批状态")),labelWidth:"82px",span:A.device==="mobile"?24:4,props:{options:[{label:"未审批",value:"-1"},{label:"已审批",value:"-2"}]}},{type:"slot",slotName:"slotDate",span:7},{type:"slot",slotName:"slotSearch",span:4}],showBorder:!0,borderRadio:"4px"});async function n(){delete u.value.interfaceStatus,l.value.loading=!0,u.value.page=l.value.pageConfig.currentPage,u.value.limit=l.value.pageConfig.pageSize;let t;t=await Oe(u.value),l.value.tableData=t.data||[],l.value.pageConfig.total=t.count||0,l.value.loading=!1}function y(t){l.value.tableData=[],l.value.pageConfig.pageSize=t,n()}function $(t){l.value.tableData=[],l.value.pageConfig.currentPage=t,n()}function k(){l.value.pageConfig.currentPage=1,l.value.pageConfig.pageSize=15,l.value.tableData=[],n()}function i(){z.value.elTableFilterRef.onReset(),l.value.pageConfig.currentPage=1,l.value.pageConfig.pageSize=15,l.value.tableData=[],u.value={},V.value=[],n()}function r(){l.value.pageConfig.currentPage=1,l.value.pageConfig.pageSize=15,l.value.tableData=[],n()}r();function L(t){g.value=!0,w.value=t,h.value=!1}async function v(t,o,Y,K){O.value.openApproveDialog(t,o,Y,K)}async function R(t){B.value.approveView(t)}const d=()=>{u.value.startDate=V.value[0],u.value.endDate=V.value[1]};return(t,o)=>{const Y=fe,K=he,q=de,X=se("y9Table");return P(),Q(oe,null,[m(X,{config:I(l),filterConfig:C.value,onOnCurrPageChange:$,ref_key:"filterRef",ref:z,onOnPageSizeChange:y},{slotDate:f(()=>[m(K,{label:t.$t("审批发起时间"),size:I(F).buttonSize},{default:f(()=>[m(Y,{modelValue:V.value,"onUpdate:modelValue":o[0]||(o[0]=E=>V.value=E),"end-placeholder":t.$t("结束时间"),"range-separator":t.$t("至"),"start-placeholder":t.$t("开始时间"),format:"YYYY-MM-DD HH:mm:ss",style:{width:"100%",height:"var(--el-input-height)"},type:"datetimerange","value-format":"YYYY-MM-DD HH:mm:ss",onChange:o[1]||(o[1]=E=>d())},null,8,["modelValue","end-placeholder","range-separator","start-placeholder"])]),_:1},8,["label","size"])]),slotSearch:f(()=>[m(q,{size:I(F).buttonSize,style:pe({fontSize:I(F).baseFontSize}),class:"global-btn-main",type:"primary",onClick:k},{default:f(()=>[o[5]||(o[5]=le("i",{class:"ri-search-line"},null,-1)),le("span",null,ee(t.$t("查询")),1)]),_:1},8,["size","style"]),m(q,{size:I(F).buttonSize,style:pe({fontSize:I(F).baseFontSize}),class:"el-button el-button--default global-btn-third",onClick:i},{default:f(()=>[o[6]||(o[6]=le("i",{class:"ri-refresh-line"},null,-1)),le("span",null,ee(t.$t("重置")),1)]),_:1},8,["size","style"])]),slotBtns:f(()=>[m(q,{size:I(F).buttonSize,style:pe({fontSize:I(F).baseFontSize}),class:"global-btn-main",type:"primary"},{default:f(()=>[H(ee(t.$t("新增")),1)]),_:1},8,["size","style"])]),_:1},8,["config","filterConfig"]),m(He,{ref_key:"approveRef",ref:O,onGetDataListParent:n},null,512),m(qe,{ref_key:"interfaceDialogRef",ref:B,onGetDataListParent:n},null,512),m(Ne,{ref_key:"flowShowRef",ref:N,"open-dialog":g.value,"onUpdate:openDialog":o[2]||(o[2]=E=>g.value=E),type:h.value,"onUpdate:type":o[3]||(o[3]=E=>h.value=E),interfaceId:w.value,"onUpdate:interfaceId":o[4]||(o[4]=E=>w.value=E)},null,8,["open-dialog","type","interfaceId"])],64)}}});const Ot=ne(Qe,[["__scopeId","data-v-d9cc31d7"],["__file","E:/workSpaceJDK11/y9-interface-platform/y9vue-interfacePlatform/src/views/approve/index.vue"]]);export{Ot as default};