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

2 lines
9.5 KiB
JavaScript
Raw Normal View History

import{E as x,a as Q,b as X}from"./element-plus-53a783a7.js";import"./vue-20eed888.js";import{u as Z,b as ee}from"./index-03a63030.js";import{u as ae}from"./vue-i18n-d6e8419a.js";import{s as N,b as $,a as L,d as te,c as le}from"./systemidentifier-26774e0a.js";import{d as ie,G as re,r as i,k as l,ah as w,ai as I,o as oe,c as se,e as y,P as k,u as g,L as D,a as S,U as _,i as M,F as ne}from"./@vue-e95c845e.js";import{_ as ue}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 pe=ie({__name:"index",setup(me){const b=re("sizeObjInfo"),P=Z(),{t:a}=ae();i();const F=i({}),O=i();i(!1),i("配置权限值"),i(),i(),i(),i(),i(),i(),i(!0),i(),i();const z=i([]);let s=i({headerBackground:!0,pageConfig:{background:!1,currentPage:1,pageSize:5,total:0,pageSizeOpts:[5,10,15,20,30,40,1e3]},columns:[{type:"index",title:l(()=>a("序号")),width:80,fixed:"left"},{title:l(()=>a("名称")),key:"name"},{title:l(()=>a("类型")),key:"parameterType",render:e=>e.parameterType=="0"?w("span",a("单位")):w("span",a("系统"))},{title:l(()=>a("排序")),key:"sort"},{title:l(()=>a("操作")),width:300,fixed:"right",render:e=>w("div",[w("span",{onClick:()=>{K(e.id,e.parameterType)}},a("详情")),w("span",{class:"leftMargin",onClick:()=>{J(e.id,e.parameterType)}},a("编辑")),w("span",{class:"leftMargin",onClick:()=>{Y(e.id)}},a("删除"))])}],tableData:[]});const W=i({filtersValueCallBack:e=>{F.value=e},itemList:[{type:"input",value:"",key:"name",label:l(()=>a("名称")),labelWidth:"82px",span:P.device==="mobile"?24:6},{type:"select",value:"",key:"parameterType",label:l(()=>a("数据类型")),labelWidth:"82px",span:P.device==="mobile"?24:6,props:{options:[{label:"单位",value:"0"},{label:"系统",value:"1"}]}},{type:"slot",slotName:"slotSearch",span:6},{type:"slot",slotName:"slotBtns",span:P.device==="mobile"?24:6,justify:"flex-end"}],showBorder:!0,borderRadio:"4px"});async function C(){s.value.loading=!0,F.value.page=s.value.pageConfig.currentPage,F.value.limit=s.value.pageConfig.pageSize;let e=await le(F.value);s.value.tableData=e.data||[],s.value.pageConfig.total=e.count||0,s.value.loading=!1}function U(e){s.value.tableData=[],s.value.pageConfig.pageSize=e,C()}function V(e){s.value.tableData=[],s.value.pageConfig.currentPage=e,C()}function j(){s.value.pageConfig.currentPage=1,s.value.pageConfig.pageSize=15,s.value.tableData=[],C()}function A(){O.value.elTableFilterRef.onReset(),s.value.pageConfig.currentPage=1,s.value.pageConfig.pageSize=15,s.value.tableData=[],F.value={},C()}function G(){s.value.pageConfig.currentPage=1,s.value.pageConfig.pageSize=15,s.value.tableData=[],C()}G();const R=i(),B=i(),q=(e,t,n)=>{let o=ee("number",t,!0);o.valid?n():n(new Error(o.msg))};let d=i({show:!1,title:l(()=>a("新增权限配置")),showFooter:!0,onOkLoading:!0,onOk:e=>new Promise(async(t,n)=>{var u;await((u=R.value)==null?void 0:u.elFormRef).validate(async p=>{if(p){let r=R.value.model,c=new FormData;for(let f in r)r[f]!=null&&f!="createTime"&&f!="updateTime"&&c.append(f,r[f]);(await N(c)).code==0&&(x({message:"数据保存成功",type:"success"}),t(),C()),n()}else n()})})}),m=i({show:!1,title:l(()=>a("新增系统信息")),showFooter:!0,onOkLoading:!0,onOk:e=>new Promise(async(t,n)=>{var u;await((u=B.val