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

2 lines
22 KiB
JavaScript
Raw Normal View History

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},10