You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
2.3KB

  1. import{b as L}from"./index-b6aa4cff.js";import{G as P,E as j,r,B as G,C as k,b as l,c as O,L as S,h as a,e as $,f as t,i as f,k as q}from"./index-dd5fae99.js";const E={class:"flex justify-center"},F=q({name:"relatedIrsAppDialog"}),H=Object.assign(F,{props:{visible:{type:Boolean,default:!1,required:!0},data:Object,column:{type:Array,default:()=>[{type:"radio",width:"55",key:"appId"},{label:"应用名称",prop:"name",key:"name"}]}},emits:["close","getIrsApp"],setup(c,{emit:w}){const I=P(j.userStore).userInfo||{},u=c,n=r({name:void 0}),o=r(),v=r(0),b=r([]),i=async(s=o.value.pageParams)=>{var m;const e=await L({areaCode:I.value.regionCode,...n.value});b.value=e.data.records,v.value=e.data.total,await k(),o.value.setRadio(((m=u==null?void 0:u.data)==null?void 0:m.appId)||"")},x=()=>{o.value.pageParams.pageNumber=1,i()},R=()=>{o.value.pageParams.pageNumber=1,n.value.name=void 0,i()},g=r(),V=s=>{g.value=s},B=async()=>{d("getIrsApp",g.value),d("close",!0)},d=w;return G(()=>u.visible,async s=>{s?(await k(),await i()):o.value.tableRef.clearSelection()}),(s,e)=>{const m=l("el-input"),y=l("el-form-item"),C=l("el-col"),p=l("el-button"),D=l("el-row"),N=l("el-form"),T=l("table-list"),A=l("el-dialog");return O(),S(A,{"model-value":c.visible,title:"选择项目",width:840,onClose:e[2]||(e[2]=_=>d("close"))},{footer:a(()=>[$("div",E,[t(p,{type:"primary",onClick:B},{default:a(()=>e[5]||(e[5]=[f("确定")])),_:1}),t(p,{onClick:e[1]||(e[1]=_=>d("close"))},{default:a(()=>e[6]||(e[6]=[f("取消")])),_:1})])]),default:a(()=>[t(N,{model:n.value,"label-suffix":":"},{default:a(()=>[t(D,{gutter:24},{default:a(()=>[t(C,{span:12},{default:a(()=>[t(y,{label:"应用名称"},{default:a(()=>[t(m,{modelValue:n.value.name,"onUpdate:modelValue":e[0]||(e[0]=_=>n.value.name=_),placeholder:"请输入"},null,8,["modelValue"])]),_:1})]),_:1}),t(C,{span:12},{default:a(()=>[t(y,{class:"search_btn"},{default:a(()=>[t(p,{type:"primary",onClick:x},{default:a(()=>e[3]||(e[3]=[f("搜索")])),_:1}),t(p,{onClick:R},{default:a(()=>e[4]||(e[4]=[f("重置")])),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"]),t(T,{ref_key:"tableListRef",ref:o,column:c.column,data:b.value,total:v.value,"row-key":"appId",onRadioChange:V,onGetTableData:i},null,8,["column","data","total"])]),_:1},8,["model-value"])}}});export{H as default};