2 lines
16 KiB
JavaScript
2 lines
16 KiB
JavaScript
|
import{E as B,a as ue,b as pe,u as Se,d as Te,L as Ve,l as we,K as Ne}from"./element-plus-53a783a7.js";import"./vue-20eed888.js";import{u as fe,b as de}from"./index-03a63030.js";import{u as me}from"./vue-i18n-d6e8419a.js";import{s as ge,d as ve,g as le,a as ie,b as De}from"./authInterface-473123dc.js";import{d as ce,G as ye,r as o,k as t,ah as _,ai as R,o as oe,c as be,e as d,P as v,u as c,L as U,T as X,U as $,b as xe,S as Pe,i as Ce,F as ke,a as q}from"./@vue-e95c845e.js";import{_ as _e}from"./y9plugin-components-412bad23.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";const Fe=ce({__name:"dictVal",props:{isView:{type:Boolean,default:()=>!1}},setup(re,{expose:P}){const S=ye("sizeObjInfo"),r=fe(),{t:i}=me();o();const u=o({}),J=o(),F=o(),A=o(),T=o(),N=o(),V=o(),O=o(),M=re;let n=o({rowKey:"id",load:(l,C,g)=>{u.value.parameterId=N.value,u.value.isPrimary=T.value,u.value.pid=l.id,le(u.value).then(k=>{g(k.data)})},lazy:!0,headerBackground:!0,pageConfig:{background:!1,currentPage:1,pageSize:5,total:0},columns:[{type:"index",title:t(()=>i("序号")),width:80,fixed:"left"},{title:t(()=>i("显示值")),key:"showVal"},{title:t(()=>i("字段值")),key:"fieldVal"},{title:t(()=>i("参数名称")),key:"parameterName"},{title:t(()=>i("参数key")),key:"fieldName"},{title:t(()=>i("排序")),key:"sort"},{title:t(()=>i("操作")),width:150,fixed:"right",render:l=>M.isView?_("div",[_("span",{onClick:()=>{Q(l.id)}},i("详情"))]):_("div",[_("span",{onClick:()=>{Q(l.id)}},i("详情")),_("span",{class:"leftMargin",onClick:()=>{x(l.id)}},i("编辑")),_("span",{class:"leftMargin",onClick:()=>{H(l.id)}},i("删除"))])}],tableData:[]});const Y=o({filtersValueCallBack:l=>{u.value=l},itemList:[{type:"input",value:"",key:"fieldVal",label:t(()=>i("字段值")),labelWidth:"42px",span:r.device==="mobile"?24:6},{type:"input",value:"",key:"showVal",label:t(()=>i("显示值")),labelWidth:"42px",span:r.device==="mobile"?24:6},{type:"slot",slotName:"slotSearch",span:6},{type:"slot",slotName:"slotBtns",span:r.device==="mobile"?24:6,justify:"flex-end"}],showBorder:!0,borderRadio:"4px"});async function w(){n.value.loading=!0,u.value.parameterId=N.value,u.value.isPrimary=T.value,V.value=="是"&&u.value.pid==null?(delete n.value.pageConfig,n.value.pageConfig=!1,u.value.page=1,u.value.limit=9999999,u.value.pid="0"):V.value=="否"&&(u.value.page=n.value.pageConfig.currentPage,u.value.limit=n.value.pageConfig.pageSize,delete u.value.pid);let l=await le(u.value);n.value.tableData=l.data||[],V.value=="否"&&(n.value.pageConfig.total=l.count||0),n.value.loading=!1}function m(l){n.value.tableData=[],n.value.pageConfig.pageSize=l,w()}function ee(l){n.value.tableData=[],n.value.pageConfig.currentPage=l,w()}function D(){n.value.pageConfig?(n.value.pageConfig.currentPage=1,n.value.pageConfig.pageSize=5):(u.value.page=1,u.value.limit=9999999),(u.value.fieldVal==null||u.value.fieldVal=="")&&(u.value.showVal==null||u.value.showVal=="")||(u.value.pid="-1"),n.value.tableData=[],w()}function G(){J.value.elTableFilterRef.onReset(),n.value.pageConfig&&(n.value.pageConfig.currentPage=1,n.value.pageConfig.pageSize=5),n.value.tableData=[],u.value.fieldVal="",u.value.showVal="",u.value.pid="0",w()}function ae(l,C,g,k,e,a){e=="否"&&(delete n.value.pageConfig,n.va
|