ss-component-new 1.2.9 → 1.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{animationData-1jRSDcwE.js → animationData-C_gV7XAN.js} +16 -16
- package/dist/animationData-CyP8-u7i.cjs +1 -0
- package/dist/array-A59WrroX.js +1207 -0
- package/dist/array-BtZq8qON.cjs +11 -0
- package/dist/index-2nEz-J89.js +24 -0
- package/dist/{index-CQAvn30B.cjs → index-7eyGTvr0.cjs} +1 -1
- package/dist/{index-DNm5s2Lm.cjs → index-Adqs5vHH.cjs} +1 -1
- package/dist/{index-fMxLuU_H.js → index-B7g38Yte.js} +2 -2
- package/dist/{index-Cyk0Tzhx.cjs → index-B9OZcnHm.cjs} +13 -13
- package/dist/index-BAOnUk_J.cjs +1 -0
- package/dist/{index-B1NmIRwn.js → index-BDaeo6qO.js} +2 -2
- package/dist/{index-L3WHrdzB.cjs → index-BJBNtx2b.cjs} +1 -1
- package/dist/{index-cA_EynOM.js → index-BMYtLkw8.js} +4 -4
- package/dist/{index-Dfhvay-Y.js → index-BQ4Rjf8F.js} +6 -6
- package/dist/{index-BQdJqnJf.cjs → index-BUUEqGRN.cjs} +1 -1
- package/dist/{index-CgtkRkQ3.js → index-B_ZGJtId.js} +1 -1
- package/dist/{index-C2aGGJxk.cjs → index-B_mFQujY.cjs} +1 -1
- package/dist/{index-lyUWApVE.js → index-BbI9_JbX.js} +32 -48
- package/dist/index-BeYNgEHV.js +144 -0
- package/dist/{index-CKHNyMzP.js → index-BwjuTBrR.js} +1 -1
- package/dist/{index-Ci_C9h8v.js → index-C-c1pt-2.js} +1 -1
- package/dist/{index-DbisH6iI.cjs → index-C40ofXP7.cjs} +1 -1
- package/dist/{index-CvrTrN91.js → index-C461j30b.js} +1 -1
- package/dist/{index-1vs_3Pz3.cjs → index-C5gPrwPs.cjs} +1 -1
- package/dist/{index-Duqrg0DV.cjs → index-C68Hri2v.cjs} +1 -1
- package/dist/{index-Djagy2ww.cjs → index-CAewC69j.cjs} +1 -1
- package/dist/index-CApZYDIm.cjs +1 -0
- package/dist/{index-BWECkG4C.js → index-CKLBlQoK.js} +2122 -2129
- package/dist/{index-BaOQV1JK.cjs → index-CKt6cj9f.cjs} +1 -1
- package/dist/index-CN29uy_G.js +7293 -0
- package/dist/{index-B--6DX0M.js → index-CRiovRyR.js} +2 -2
- package/dist/index-CTRmgnKQ.js +2643 -0
- package/dist/{index-DWfuOOVD.js → index-CVDv-Zz-.js} +1012 -1009
- package/dist/index-CVadHkfS.cjs +1 -0
- package/dist/{index-DbzvXPKu.js → index-CYp77kPp.js} +175 -175
- package/dist/{index-DGE2awa5.js → index-CjB5ZP_P.js} +2 -2
- package/dist/{index-D9wa1LMS.js → index-CkA2IZJB.js} +5 -5
- package/dist/{index-fzCcjoGJ.js → index-CoVAbxHN.js} +1 -1
- package/dist/index-CwhX2vaq.cjs +1 -0
- package/dist/{index-BkrJ0cBf.js → index-D4CVC2Sk.js} +4 -4
- package/dist/{index-BzOBvH4x.cjs → index-D55zzS4D.cjs} +1 -1
- package/dist/{index-C_MIoNOd.cjs → index-D5ShC3zu.cjs} +1 -1
- package/dist/{index-BxftyAcm.cjs → index-D9l1Z4TO.cjs} +1 -1
- package/dist/index-DDhAMgrO.js +22 -0
- package/dist/{index-CXbvmuYZ.cjs → index-DGBDGLOK.cjs} +1 -1
- package/dist/{index-D732VV-0.js → index-DHQH1rlQ.js} +2 -2
- package/dist/{index-LjRfbvxs.js → index-DJMHw-xb.js} +11 -11
- package/dist/index-DP7rcz4I.cjs +1 -0
- package/dist/{index-y1YK6w8c.js → index-DQZ_oAyj.js} +6 -6
- package/dist/{index-CVfC3cyK.js → index-DTkAIcvV.js} +13 -13
- package/dist/{index-pkxiNiXI.js → index-DfKkN76b.js} +3 -3
- package/dist/{index-BFl4mw2K.cjs → index-DkG4A3iE.cjs} +1 -1
- package/dist/{index-pleSKUL2.cjs → index-DnU2slQv.cjs} +1 -1
- package/dist/{index-sS7-HQlI.cjs → index-DsQ-qtQ9.cjs} +1 -1
- package/dist/index-Dwr4RHei.cjs +1 -0
- package/dist/{index-BDVOKqI5.js → index-ESNVepXU.js} +6 -6
- package/dist/{index-CxbH4zmS.js → index-H_3u1NA_.js} +24 -24
- package/dist/{index-wpD5_HUA.cjs → index-QkDZ18PI.cjs} +1 -1
- package/dist/index-RVDLy1iy.cjs +1 -0
- package/dist/{index-Dcd9HZXq.js → index-ecVCII_e.js} +5 -5
- package/dist/{index-BsPQl6nI.cjs → index-i50hp6po.cjs} +1 -1
- package/dist/{index-BlZXanJX.js → index-qu3KI1yZ.js} +5 -5
- package/dist/{index-BxL4p0ej.cjs → index-t6--MDLB.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DkSoLqEi.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BRxOMo6y.js} +8749 -8765
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-hGi9c2Ju.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Dwdjsitu.cjs} +108 -108
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-B5nxyyO7.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-DfqsvuRy.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-BfcynI3w.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-e_PTrAf6.js} +6 -6
- package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-7HSISF9c.cjs +56 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-BqmMCEyN.js +37436 -0
- package/dist/{index.vue_vue_type_style_index_1_lang-Bmq_QiXo.js → index.vue_vue_type_style_index_1_lang-CsY5rIO4.js} +3 -3
- package/dist/{index.vue_vue_type_style_index_1_lang-B_ESWhzz.cjs → index.vue_vue_type_style_index_1_lang-DOjFqzi3.cjs} +1 -1
- package/dist/index.vue_vue_type_style_index_1_lang-DQUFi_Vi.cjs +32 -0
- package/dist/index.vue_vue_type_style_index_1_lang-Ds1cd7yg.js +7806 -0
- package/dist/{isString-CZMLuMzD.js → isString-BNK38WbE.js} +1 -1
- package/dist/{main-YbBj49yf.cjs → main-CVaemyhm.cjs} +1 -1
- package/dist/{main-CSTH0D6W.js → main-DIbH2rlN.js} +5 -5
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +11 -11
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +12 -12
- package/dist/{threeLatheView-BmVBnC8n.js → threeLatheView-Bp0kjo_V.js} +2 -2
- package/dist/{threeModel-Xb9BSJ_k.js → threeModel-27sl0tTS.js} +3 -3
- package/dist/{threeModel-nbfSsMNt.cjs → threeModel-C0Jdw2O3.cjs} +1 -1
- package/dist/{threePreview-CYX5wKoL.js → threePreview-DFFjm93P.js} +1 -1
- package/dist/threeSceneView-CEpBvJSV.cjs +5 -0
- package/dist/threeSceneView-ZDXqO8ZA.js +1413 -0
- package/dist/{threeSceneViewForCPMPIP-CT63Js8f.cjs → threeSceneViewForCPMPIP-B0VPmBWd.cjs} +3 -3
- package/dist/{threeSceneViewForCPMPIP-skA3ZWC-.js → threeSceneViewForCPMPIP-BPPWM68P.js} +83 -84
- package/dist/{threeViewerHost-Enxz60zh.js → threeViewerHost-CKE2a4PV.js} +65 -78
- package/dist/threeViewerHost-yHvsk7TK.cjs +1 -0
- package/dist/useRayCaster-1DNcSYPR.cjs +1 -0
- package/dist/{useRayCaster-CQ61IQT5.js → useRayCaster-BM9XKGKx.js} +3 -3
- package/package.json +1 -1
- package/dist/animationData-BQdcO65E.cjs +0 -1
- package/dist/array-BI6c3lN7.cjs +0 -11
- package/dist/array-BivICFct.js +0 -1142
- package/dist/index-BBVbSXk-.cjs +0 -1
- package/dist/index-BM6YLczV.js +0 -2567
- package/dist/index-BSa3xW1H.js +0 -158
- package/dist/index-C9gh-jny.js +0 -7211
- package/dist/index-CA-edgmV.js +0 -3370
- package/dist/index-CIv0zRrQ.cjs +0 -1
- package/dist/index-DW7I4GY6.cjs +0 -1
- package/dist/index-DdFUblTC.cjs +0 -1
- package/dist/index-Dy3FE211.cjs +0 -1
- package/dist/index-YMD55UlA.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-86_u8ovk.js +0 -34129
- package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-dAkBFPF0.cjs +0 -56
- package/dist/index.vue_vue_type_style_index_1_lang-Bl5IzVKi.js +0 -8126
- package/dist/index.vue_vue_type_style_index_1_lang-Cb3WPLY1.cjs +0 -32
- package/dist/isUndefined-ClRzgwTy.cjs +0 -1
- package/dist/isUndefined-chfCDxUU.js +0 -84
- package/dist/threeSceneView-BLWTfaec.js +0 -1472
- package/dist/threeSceneView-JPxH8xcz.cjs +0 -5
- package/dist/threeViewerHost-UHWY3q2v.cjs +0 -1
- package/dist/useRayCaster-CvOiIyjA.cjs +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as F, computed as N, ref as p, watch as $, createElementBlock as k, openBlock as b, createVNode as v, createCommentVNode as j, withCtx as i, createTextVNode as T, toDisplayString as I, resolveComponent as B, createBlock as x, Fragment as L, renderList as O, createElementVNode as R, normalizeStyle as q } from "vue";
|
|
2
|
-
import { s as H } from "./index-
|
|
3
|
-
import { d as M, b as P } from "./threeViewerHost-
|
|
4
|
-
import { E as z } from "./index-
|
|
2
|
+
import { s as H } from "./index-H_3u1NA_.js";
|
|
3
|
+
import { d as M, b as P } from "./threeViewerHost-CKE2a4PV.js";
|
|
4
|
+
import { E as z } from "./index-CYp77kPp.js";
|
|
5
5
|
import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
import { S as W } from "./index-
|
|
6
|
+
import { S as W } from "./index-CKLBlQoK.js";
|
|
7
7
|
import { S as E } from "./index-BHtNKL1L.js";
|
|
8
8
|
const D = { class: "avatar-model-wrap" }, G = { key: 0 }, J = /* @__PURE__ */ F({
|
|
9
9
|
__name: "index",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ref as me, computed as vt, resolveComponent as $t, createElementBlock as be, openBlock as fe, Fragment as Nt, renderList as Ht, createElementVNode as ve, toDisplayString as st, createVNode as he, watch as ue, withCtx as Me, createBlock as Wt, resolveDynamicComponent as gr, createTextVNode as pn, createCommentVNode as gt, normalizeStyle as mn, withModifiers as Dt, defineComponent as mr, inject as rr, shallowRef as Ni, reactive as Yt, toRef as Hi, onBeforeMount as yr, onMounted as br, watchEffect as Wi, onBeforeUnmount as xr, normalizeClass as ir, renderSlot as dn, nextTick as Ye, provide as or, toRefs as ar, withDirectives as Yi, mergeProps as Xi, vShow as Vi, unref as sr } from "vue";
|
|
2
|
-
import { r as fn, g as wr } from "./index-
|
|
3
|
-
import { p as yn, s as bn, c as De, E as Gi } from "./index-
|
|
4
|
-
import { a as xn, E as Ui } from "./index.vue_vue_type_style_index_1_lang-
|
|
5
|
-
import { i as Ce, o as ke, b as lr, w as qi, Z as Ki, n as Ji } from "./array-
|
|
2
|
+
import { r as fn, g as wr } from "./index-CN29uy_G.js";
|
|
3
|
+
import { p as yn, s as bn, c as De, E as Gi } from "./index-CYp77kPp.js";
|
|
4
|
+
import { a as xn, E as Ui } from "./index.vue_vue_type_style_index_1_lang-Ds1cd7yg.js";
|
|
5
|
+
import { i as Ce, o as ke, b as lr, w as qi, Z as Ki, n as Ji } from "./array-A59WrroX.js";
|
|
6
6
|
import { _ as wn } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
import Zi from "./index-DiRBJiMW.js";
|
|
8
|
-
import { a as Qi, b as eo } from "./index-
|
|
9
|
-
import { g as to } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
8
|
+
import { a as Qi, b as eo } from "./index-CKLBlQoK.js";
|
|
9
|
+
import { g as to } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BRxOMo6y.js";
|
|
10
10
|
const no = { class: "type-select" }, ro = { class: "group-label" }, io = { class: "group-items" }, oo = ["onDragstart"], ao = {
|
|
11
11
|
__name: "index",
|
|
12
12
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),d=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
"use strict";const e=require("vue"),d=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Dwdjsitu.cjs"),p=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),_={__name:"index",props:{optionContents:{type:Object,default:()=>{}}},setup(a){const s=a;let t=null,n=null;const r=e.ref({}),o=e.ref(null),u=()=>{o.value&&(n=new ResizeObserver(()=>{i()}),n.observe(o.value))};e.onMounted(()=>{r.value=s.optionContents,c(),window.addEventListener("resize",i),u()}),e.watch(()=>s.optionContents,()=>{r.value=s.optionContents,c()}),e.onUnmounted(()=>{n&&n.disconnect(),window.removeEventListener("resize",i)});const i=()=>{t.resize()},c=()=>{t&&t.dispose(),t=d.init(o.value);const l=r.value;t.setOption(l),t.resize()};return(l,f)=>(e.openBlock(),e.createElementBlock("div",{id:"chartModelId",class:"chart-model-class",ref_key:"chartModelRef",ref:o},null,512))}},v=p._export_sfc(_,[["__scopeId","data-v-69d6e63f"]]);exports.ssChart=v;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as b } from "./index.vue_vue_type_style_index_0_scoped_92477073_lang-
|
|
1
|
+
import { _ as b } from "./index.vue_vue_type_style_index_0_scoped_92477073_lang-e_PTrAf6.js";
|
|
2
2
|
import { resolveComponent as r, createElementBlock as i, openBlock as n, Fragment as p, createVNode as l, createCommentVNode as k, withCtx as s, createElementVNode as d, normalizeStyle as w, toDisplayString as c, renderList as v, createTextVNode as _, createBlock as B, resolveDynamicComponent as I } from "vue";
|
|
3
3
|
import { _ as L } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const V = ["title"], $ = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),k=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
1
|
+
"use strict";const e=require("vue"),k=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Dwdjsitu.cjs"),a=require("./index-1z9RrjZc.cjs"),w=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),B="ElUpload";class T extends Error{constructor(o,s,i,p){super(o),this.name="UploadAjaxError",this.status=s,this.method=i,this.url=p}}function _(r,o,s){let i;return s.response?i=`${s.response.error||s.response}`:s.responseText?i=`${s.responseText}`:i=`fail to ${o.method} ${r} ${s.status}`,new T(i,s.status,o.method,r)}function R(r){const o=r.responseText||r.response;if(!o)return o;try{return JSON.parse(o)}catch{return o}}const U=r=>{typeof XMLHttpRequest>"u"&&a.throwError(B,"XMLHttpRequest is undefined");const o=new XMLHttpRequest,s=r.action;o.upload&&o.upload.addEventListener("progress",t=>{const c=t;c.percent=t.total>0?t.loaded/t.total*100:0,r.onProgress(c)});const i=new FormData;if(r.data)for(const[t,c]of Object.entries(r.data))a.isArray$1(c)&&c.length?i.append(t,...c):i.append(t,c);i.append(r.filename,r.file,r.file.name),o.addEventListener("error",()=>{r.onError(_(s,r,o))}),o.addEventListener("load",()=>{if(o.status<200||o.status>=300)return r.onError(_(s,r,o));r.onSuccess(R(o))}),o.open(r.method,s,!0),r.withCredentials&&"withCredentials"in o&&(o.withCredentials=!0);const p=r.headers||{};if(p instanceof Headers)p.forEach((t,c)=>o.setRequestHeader(c,t));else for(const[t,c]of Object.entries(p))a.isNil(c)||o.setRequestHeader(t,String(c));return o.send(i),o},h=["text","picture","picture-card"];let D=1;const C=()=>Date.now()+D++,N=a.buildProps({action:{type:String,default:"#"},headers:{type:a.definePropType(Object)},method:{type:String,default:"post"},data:{type:a.definePropType([Object,Function,Promise]),default:()=>a.mutable({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:a.definePropType(Array),default:()=>a.mutable([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:h,default:"text"},httpRequest:{type:a.definePropType(Function),default:U},disabled:Boolean,limit:Number}),L=a.buildProps({...N,beforeUpload:{type:a.definePropType(Function),default:a.NOOP},beforeRemove:{type:a.definePropType(Function)},onRemove:{type:a.definePropType(Function),default:a.NOOP},onChange:{type:a.definePropType(Function),default:a.NOOP},onPreview:{type:a.definePropType(Function),default:a.NOOP},onSuccess:{type:a.definePropType(Function),default:a.NOOP},onProgress:{type:a.definePropType(Function),default:a.NOOP},onError:{type:a.definePropType(Function),default:a.NOOP},onExceed:{type:a.definePropType(Function),default:a.NOOP},crossorigin:{type:a.definePropType(String)}}),F={style:{"text-align":"left"}},j={class:"cropper-warp"},A={class:"cropper-warp-left"},q=["src"],$={class:"cropper-warp-right"},H={class:"cropper-warp-right-item"},z={class:"cropper-warp-right-value"},M=["src"],X={class:"cropper-warp-right-item"},J={class:"cropper-warp-right-value"},G=["src"],K={class:"dialog-footer"},Q=e.defineComponent({__name:"index",props:{title:{type:String,default:""}},emits:["submitImage","deleteImage"],setup(r,{expose:o,emit:s}){const i=s,p=e.ref(),t=e.reactive({isShowDialog:!1,cropperImg:"",cropperImgBase64:"",cropper:null}),c=async l=>{if(!l)return;let n=window.URL||window.webkitURL;t.cropperImg=n.createObjectURL(l),t.isShowDialog=!0,e.nextTick(()=>{v()})},u=()=>{var l;(l=t.cropper)==null||l.destroy(),t.isShowDialog=!1},f=()=>{u()},g=async()=>{const l=await y();i("submitImage",{file:l}),u()},d=async()=>{i("deleteImage")},v=()=>{const l=document.querySelector(".cropper-warp-left-img");l&&l.setAttribute("crossOrigin","anonymous"),t.cropper=new k.Cropper(l,{viewMode:1,dragMode:"none",initialAspectRatio:1,aspectRatio:1,preview:".before",background:!0,autoCropArea:1,checkCrossOrigin:!1,crop:()=>{t.cropperImgBase64=t.cropper.getCroppedCanvas().toDataURL("image/jpeg")}})},y=()=>new Promise(l=>{t.cropper.getCroppedCanvas().toBlob(n=>{l(n)})}),x=async l=>{let n=window.URL||window.webkitURL;t.cropperImg=n.createObjectURL(l.raw),t.cropper.replace(t.cropperImg)},E=l=>{p.value.clearFiles();const n=l[0];n.uid=C(),p.value.handleStart(n)};return o({openDialog:c}),(l,n)=>{const P=e.resolveComponent("ele-Edit"),V=e.resolveComponent("el-icon"),m=e.resolveComponent("el-button"),S=e.resolveComponent("el-upload"),I=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(I,{modelValue:t.isShowDialog,"onUpdate:modelValue":n[0]||(n[0]=O=>t.isShowDialog=O),width:"769px","before-close":f},{header:e.withCtx(()=>[e.createElementVNode("div",F,[e.createVNode(V,{size:"16",style:{"margin-right":"3px",display:"inline","vertical-align":"middle"}},{default:e.withCtx(()=>[e.createVNode(P)]),_:1}),e.createElementVNode("span",null,e.toDisplayString(r.title),1)])]),footer:e.withCtx(()=>[e.createElementVNode("span",K,[e.createVNode(S,{class:"avatar-uploader",ref_key:"uploadSignRef",ref:p,accept:".jpg,.png",limit:1,"show-file-list":!1,"auto-upload":!1,"on-change":x,"on-exceed":E},{trigger:e.withCtx(()=>[e.createVNode(m,{type:"info",icon:"ele-Picture"},{default:e.withCtx(()=>n[4]||(n[4]=[e.createTextVNode("选择图片")])),_:1,__:[4]})]),default:e.withCtx(()=>[e.createVNode(m,{onClick:d,type:"danger",icon:"ele-Picture",style:{"margin-left":"8px"}},{default:e.withCtx(()=>n[5]||(n[5]=[e.createTextVNode("删除图片")])),_:1,__:[5]})]),_:1},512),e.createElementVNode("div",null,[e.createVNode(m,{onClick:f,id:"themeBorderButton"},{default:e.withCtx(()=>n[6]||(n[6]=[e.createTextVNode("取 消")])),_:1,__:[6]}),e.createVNode(m,{onClick:g,id:"themeButton"},{default:e.withCtx(()=>n[7]||(n[7]=[e.createTextVNode("确 定")])),_:1,__:[7]})])])]),default:e.withCtx(()=>[e.createElementVNode("div",j,[e.createElementVNode("div",A,[e.createElementVNode("img",{src:t.cropperImg,class:"cropper-warp-left-img"},null,8,q)]),e.createElementVNode("div",$,[n[3]||(n[3]=e.createElementVNode("div",{class:"cropper-warp-right-title"},"预览",-1)),e.createElementVNode("div",H,[e.createElementVNode("div",z,[e.createElementVNode("img",{src:t.cropperImgBase64,class:"cropper-warp-right-value-img"},null,8,M)]),n[1]||(n[1]=e.createElementVNode("div",{class:"cropper-warp-right-label"},"100 x 100",-1))]),e.createElementVNode("div",X,[e.createElementVNode("div",J,[e.createElementVNode("img",{src:t.cropperImgBase64,class:"cropper-warp-right-value-img cropper-size"},null,8,G)]),n[2]||(n[2]=e.createElementVNode("div",{class:"cropper-warp-right-label"},"50 x 50",-1))])])])]),_:1},8,["modelValue"])])}}}),W=w._export_sfc(Q,[["__scopeId","data-v-5d760968"]]),Y=e.defineComponent({__name:"index",props:{avatarUrl:{type:String,default:""},avatarBlob:{type:Blob,default:""},size:{type:[String,Number],default:"large"},showCropper:{type:Boolean,default:!0},banClick:{type:Boolean,default:!1}},emits:["submitImage","deleteImage","clickAvatar"],setup(r,{emit:o}){const s=r,i=e.ref(),p=e.ref(null),t=o,c=()=>!0,u=async()=>{var d;s!=null&&s.banClick||(t("clickAvatar",s.avatarUrl),(d=i.value)==null||d.openDialog(s.avatarBlob))},f=async d=>{t("submitImage",d)},g=async()=>{t("deleteImage")};return(d,v)=>{const y=e.resolveComponent("el-avatar");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(y,{src:r.avatarUrl,onClick:u,fit:"cover",size:r.size,ref_key:"avatarRef",ref:p,style:{background:"var(--user-avatar-bg)"},alt:"头像查找失败",onError:c},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"avatarDefault",{},void 0,!0)]),_:3},8,["src","size"]),e.withDirectives(e.createVNode(W,{ref_key:"cropperDialogRef",ref:i,title:"更改头像",avatarUrl:r.avatarUrl,onSubmitImage:f,onDeleteImage:g},null,8,["avatarUrl"]),[[e.vShow,r.showCropper]])],64)}}}),b=w._export_sfc(Y,[["__scopeId","data-v-d7aa160e"]]),Z=Object.freeze(Object.defineProperty({__proto__:null,default:b},Symbol.toStringTag,{value:"Module"}));exports.genFileId=C;exports.index=Z;exports.ssAvatar=b;exports.uploadBaseProps=N;exports.uploadListTypes=h;exports.uploadProps=L;
|
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import "./index-
|
|
3
|
-
import "./index.
|
|
4
|
-
|
|
5
|
-
import { g as v, s as c } from "./index-DbzvXPKu.js";
|
|
6
|
-
import { s as T } from "./index-BM6YLczV.js";
|
|
7
|
-
const A = _(), { itemData: B } = c(A), u = s(0), I = s([
|
|
1
|
+
import { ref as n, watch as b } from "vue";
|
|
2
|
+
import { g as y, s as d } from "./index-CYp77kPp.js";
|
|
3
|
+
import { ax as g, av as D, a as m } from "./index.vue_vue_type_style_index_1_lang-Ds1cd7yg.js";
|
|
4
|
+
const f = m(), { itemData: i } = d(f), c = n(0), h = n([
|
|
8
5
|
{
|
|
9
6
|
label: "机构名称",
|
|
10
7
|
value: "",
|
|
11
8
|
name: "deptName"
|
|
12
9
|
}
|
|
13
|
-
]),
|
|
10
|
+
]), C = (e) => {
|
|
14
11
|
console.log("handleQueryChange", e);
|
|
15
|
-
},
|
|
12
|
+
}, s = n([
|
|
16
13
|
{
|
|
17
14
|
key: "extraButton",
|
|
18
15
|
contents: [
|
|
@@ -94,14 +91,14 @@ const A = _(), { itemData: B } = c(A), u = s(0), I = s([
|
|
|
94
91
|
key: "tableContents",
|
|
95
92
|
contents: []
|
|
96
93
|
}
|
|
97
|
-
]),
|
|
98
|
-
|
|
99
|
-
},
|
|
94
|
+
]), k = (e) => {
|
|
95
|
+
g(e.singleContent, e.buttonName, c.value);
|
|
96
|
+
}, S = (e) => {
|
|
100
97
|
console.log("onDoubleClick", e);
|
|
101
|
-
},
|
|
98
|
+
}, T = (e, t) => {
|
|
102
99
|
console.log("onButtonClick", e, t);
|
|
103
|
-
},
|
|
104
|
-
const t = await
|
|
100
|
+
}, A = async (e) => {
|
|
101
|
+
const t = await D(y, {
|
|
105
102
|
key: {
|
|
106
103
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
107
104
|
type: "data",
|
|
@@ -117,17 +114,17 @@ const A = _(), { itemData: B } = c(A), u = s(0), I = s([
|
|
|
117
114
|
return l == null ? void 0 : l.map((a) => {
|
|
118
115
|
var o;
|
|
119
116
|
if (Array.isArray(a == null ? void 0 : a.tableData)) {
|
|
120
|
-
let
|
|
121
|
-
return (o = a == null ? void 0 : a.tableData) == null || o.forEach((
|
|
122
|
-
|
|
123
|
-
}),
|
|
117
|
+
let r = { id: a.id };
|
|
118
|
+
return (o = a == null ? void 0 : a.tableData) == null || o.forEach((u, p) => {
|
|
119
|
+
r[`a${p}`] = u;
|
|
120
|
+
}), r;
|
|
124
121
|
} else
|
|
125
122
|
return {
|
|
126
123
|
...a.tableData,
|
|
127
124
|
id: a.id
|
|
128
125
|
};
|
|
129
126
|
});
|
|
130
|
-
},
|
|
127
|
+
}, v = {
|
|
131
128
|
comp: "Group",
|
|
132
129
|
name: "/系统管理/部门管理",
|
|
133
130
|
compData: [
|
|
@@ -136,42 +133,29 @@ const A = _(), { itemData: B } = c(A), u = s(0), I = s([
|
|
|
136
133
|
contents: [
|
|
137
134
|
{
|
|
138
135
|
comp: "Table",
|
|
139
|
-
compData:
|
|
136
|
+
compData: s.value,
|
|
140
137
|
name: ""
|
|
141
138
|
}
|
|
142
139
|
]
|
|
143
140
|
}
|
|
144
141
|
]
|
|
145
142
|
};
|
|
146
|
-
|
|
143
|
+
b(() => i.value, (e) => {
|
|
147
144
|
var t;
|
|
148
|
-
e && (e == null ? void 0 : e.length) > 0 && (
|
|
145
|
+
e && (e == null ? void 0 : e.length) > 0 && (s.value = (t = e == null ? void 0 : e[0]) == null ? void 0 : t.compData);
|
|
149
146
|
});
|
|
150
|
-
const
|
|
147
|
+
const j = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
151
148
|
__proto__: null,
|
|
152
|
-
getPageDataAsync:
|
|
153
|
-
handleItemDataChange:
|
|
154
|
-
handleQueryChange:
|
|
155
|
-
onButtonClick:
|
|
156
|
-
onDoubleClick:
|
|
157
|
-
pageData:
|
|
158
|
-
queryFormData:
|
|
159
|
-
structureId:
|
|
160
|
-
tempDeptPageData:
|
|
161
|
-
}, Symbol.toStringTag, { value: "Module" }))
|
|
162
|
-
__name: "index",
|
|
163
|
-
setup(e) {
|
|
164
|
-
const t = y({ ...O }), l = k(), { activeMenuPath: a } = c(l);
|
|
165
|
-
return i(async () => {
|
|
166
|
-
t.structureId = await S(a.value);
|
|
167
|
-
}), (o, n) => (D(), g("div", E, [
|
|
168
|
-
f(T, {
|
|
169
|
-
itemData: t.pageData,
|
|
170
|
-
onChange: t.handleItemDataChange
|
|
171
|
-
}, null, 8, ["itemData", "onChange"])
|
|
172
|
-
]));
|
|
173
|
-
}
|
|
174
|
-
});
|
|
149
|
+
getPageDataAsync: A,
|
|
150
|
+
handleItemDataChange: k,
|
|
151
|
+
handleQueryChange: C,
|
|
152
|
+
onButtonClick: T,
|
|
153
|
+
onDoubleClick: S,
|
|
154
|
+
pageData: s,
|
|
155
|
+
queryFormData: h,
|
|
156
|
+
structureId: c,
|
|
157
|
+
tempDeptPageData: v
|
|
158
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
175
159
|
export {
|
|
176
|
-
|
|
160
|
+
j as S
|
|
177
161
|
};
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { ref as l, watch as b } from "vue";
|
|
2
|
+
import { g as y, s as d } from "./index-CYp77kPp.js";
|
|
3
|
+
import { ax as g, av as m, a as D } from "./index.vue_vue_type_style_index_1_lang-Ds1cd7yg.js";
|
|
4
|
+
const f = D(), { itemData: h } = d(f), c = l(0), k = l([
|
|
5
|
+
{
|
|
6
|
+
label: "机构名称",
|
|
7
|
+
value: "",
|
|
8
|
+
name: "deptName"
|
|
9
|
+
}
|
|
10
|
+
]), C = (a) => {
|
|
11
|
+
console.log("handleQueryChange", a);
|
|
12
|
+
}, s = l([
|
|
13
|
+
{
|
|
14
|
+
key: "extraButton",
|
|
15
|
+
contents: [
|
|
16
|
+
{
|
|
17
|
+
label: "新增"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
key: "rowButton",
|
|
23
|
+
contents: [
|
|
24
|
+
{
|
|
25
|
+
label: "编辑"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
label: "删除"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
// {
|
|
33
|
+
// key: "tableIndex",
|
|
34
|
+
// contents: []
|
|
35
|
+
// },
|
|
36
|
+
{
|
|
37
|
+
key: "header",
|
|
38
|
+
contents: [
|
|
39
|
+
{
|
|
40
|
+
label: "职位名称",
|
|
41
|
+
prop: "postName"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
label: "职位排序",
|
|
45
|
+
formType: "Number",
|
|
46
|
+
prop: "postOrder"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
label: "备注",
|
|
50
|
+
formType: "TextArea",
|
|
51
|
+
prop: "remark"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
label: "操作"
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
key: "tableContents",
|
|
60
|
+
contents: []
|
|
61
|
+
// contents: [
|
|
62
|
+
// // [
|
|
63
|
+
// // "数设科技",
|
|
64
|
+
// // "集团",
|
|
65
|
+
// // '启动'
|
|
66
|
+
// // ], [
|
|
67
|
+
// // "开发部",
|
|
68
|
+
// // "部门",
|
|
69
|
+
// // '启动'
|
|
70
|
+
// // ], [
|
|
71
|
+
// // "国核",
|
|
72
|
+
// // "组",
|
|
73
|
+
// // '启动'
|
|
74
|
+
// // ],
|
|
75
|
+
// ]
|
|
76
|
+
}
|
|
77
|
+
]), i = (a) => {
|
|
78
|
+
g(a.singleContent, a.buttonName, c.value);
|
|
79
|
+
}, A = (a) => {
|
|
80
|
+
console.log("onDoubleClick", a);
|
|
81
|
+
}, S = (a, t) => {
|
|
82
|
+
console.log("onButtonClick", a, t);
|
|
83
|
+
}, T = async (a) => {
|
|
84
|
+
const t = await m(y, {
|
|
85
|
+
key: {
|
|
86
|
+
type: "data",
|
|
87
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
88
|
+
pageKey: a
|
|
89
|
+
}
|
|
90
|
+
}, "查询"), n = t == null ? void 0 : t.map((e) => {
|
|
91
|
+
var o;
|
|
92
|
+
return {
|
|
93
|
+
id: e.id,
|
|
94
|
+
tableData: (o = e == null ? void 0 : e.value) == null ? void 0 : o.tableData
|
|
95
|
+
};
|
|
96
|
+
});
|
|
97
|
+
return n == null ? void 0 : n.map((e) => {
|
|
98
|
+
var o;
|
|
99
|
+
if (Array.isArray(e == null ? void 0 : e.tableData)) {
|
|
100
|
+
let r = { id: e.id };
|
|
101
|
+
return (o = e == null ? void 0 : e.tableData) == null || o.forEach((p, u) => {
|
|
102
|
+
r[`a${u}`] = p;
|
|
103
|
+
}), r;
|
|
104
|
+
} else
|
|
105
|
+
return {
|
|
106
|
+
...e.tableData,
|
|
107
|
+
id: e.id
|
|
108
|
+
};
|
|
109
|
+
});
|
|
110
|
+
}, B = {
|
|
111
|
+
comp: "Group",
|
|
112
|
+
name: "/系统管理/职位管理",
|
|
113
|
+
compData: [
|
|
114
|
+
{
|
|
115
|
+
key: "groupContents",
|
|
116
|
+
contents: [
|
|
117
|
+
{
|
|
118
|
+
comp: "Table",
|
|
119
|
+
compData: s.value,
|
|
120
|
+
name: ""
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
};
|
|
126
|
+
b(() => h.value, (a) => {
|
|
127
|
+
var t;
|
|
128
|
+
a && (a == null ? void 0 : a.length) > 0 && (s.value = (t = a == null ? void 0 : a[0]) == null ? void 0 : t.compData);
|
|
129
|
+
});
|
|
130
|
+
const O = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
131
|
+
__proto__: null,
|
|
132
|
+
getPageDataAsync: T,
|
|
133
|
+
handleItemDataChange: i,
|
|
134
|
+
handleQueryChange: C,
|
|
135
|
+
onButtonClick: S,
|
|
136
|
+
onDoubleClick: A,
|
|
137
|
+
pageData: s,
|
|
138
|
+
queryFormData: k,
|
|
139
|
+
structureId: c,
|
|
140
|
+
tempPostPageData: B
|
|
141
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
142
|
+
export {
|
|
143
|
+
O as S
|
|
144
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as _, ref as f, resolveComponent as m, createBlock as y, openBlock as g, withCtx as d, createTextVNode as h, toDisplayString as b, watch as B, normalizeStyle as C, renderSlot as c, createElementVNode as v } from "vue";
|
|
2
|
-
import "./index.vue_vue_type_style_index_1_lang-
|
|
2
|
+
import "./index.vue_vue_type_style_index_1_lang-Ds1cd7yg.js";
|
|
3
3
|
import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const D = /* @__PURE__ */ _({
|
|
5
5
|
__name: "index",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),V=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),V=require("./index-DP7rcz4I.cjs"),h=require("./index.vue_vue_type_style_index_1_lang-DQUFi_Vi.cjs"),_=require("./index-1z9RrjZc.cjs"),B=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),w={class:"routerPage-wrapper"},N={class:"role-dialog-header"},b=["title"],D={title:"更多"},y={class:"dialog-footer"},S=e.defineComponent({__name:"index",setup(T){const g=h.useMenuState(),{menus:C,activeMenuPath:k}=_.storeToRefs(g),o=e.reactive({...h.State$1}),{treeRef:x}=h.State$1;e.onMounted(async()=>{await o.getActivePageStructureId(k.value)});const u=i=>i==null?void 0:i.map(t=>{var c,s,d;return t!=null&&t.childMenus&&((c=t==null?void 0:t.childMenus)==null?void 0:c.length)>0?{...t,childMenus:[],children:u(t==null?void 0:t.childMenus)}:{...t,childMenus:[],path:(s=t==null?void 0:t.path)!=null&&s.startsWith("/")?(d=t==null?void 0:t.path)==null?void 0:d.substring(1):t.path}});return e.watch(()=>C.value,i=>{e.nextTick(()=>{const t=_.cloneDeep(i),c=u(t);o.tempSysMenus=o.handleAddSysMenusButtons(c,"系统维护",["查看"]),o.menuData=o.addButtonsToTree(c,o.structureButtons)})},{immediate:!0,deep:!0}),(i,t)=>{const c=e.resolveComponent("el-checkbox"),s=e.resolveComponent("el-checkbox-group"),d=e.resolveComponent("svg-icon"),v=e.resolveComponent("el-popover"),f=e.resolveComponent("el-tree"),p=e.resolveComponent("el-button"),m=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",w,[e.createVNode(V.ssTable,{index:o.structureId,compName:o.compName,itemData:o.pageDataFiltered,changedContent:o.changedRow,onChange:o.handleItemDataChange,onOnButtonClick:o.clickRowButton},null,8,["index","compName","itemData","changedContent","onChange","onOnButtonClick"]),e.createVNode(m,{modelValue:o.authorizeDialog.show,"onUpdate:modelValue":t[0]||(t[0]=a=>o.authorizeDialog.show=a),width:o.authorizeDialog.width,draggable:o.authorizeDialog.draggable,"before-close":o.closeAuthorizeDialog,class:"role-dialog"},{header:e.withCtx(()=>[e.createElementVNode("div",N,e.toDisplayString(o.authorizeDialog.title),1)]),footer:e.withCtx(()=>[e.createElementVNode("div",y,[e.createVNode(p,{id:"themeBorderButton",onClick:o.closeAuthorizeDialog},{default:e.withCtx(()=>t[1]||(t[1]=[e.createTextVNode("取消")])),_:1,__:[1]},8,["onClick"]),e.createVNode(p,{id:"themeButton",onClick:o.clickSubmitAuthority},{default:e.withCtx(()=>t[2]||(t[2]=[e.createTextVNode(" 确认 ")])),_:1,__:[2]},8,["onClick"])])]),default:e.withCtx(()=>[e.createVNode(f,{class:"role-tree",ref_key:"treeRef",ref:x,data:o.menuData,"expand-on-click-node":!1,"node-key":"path",props:{children:"children",label:"title",path:"path"},"highlight-current":"","default-expand-all":"","check-on-click-leaf":!1,"show-checkbox":"",onCheckChange:o.handleNodeCheckChange,style:{height:"500px","overflow-y":"auto"}},{default:e.withCtx(({node:a,data:n})=>[e.createElementVNode("span",{class:"node-text",title:a==null?void 0:a.label},e.toDisplayString(a==null?void 0:a.label),9,b),e.createVNode(s,{modelValue:n.checkedButtons,"onUpdate:modelValue":l=>n.checkedButtons=l,onChange:l=>o.handleNodeBtnChange(l,n),class:"node-buttons"},{default:e.withCtx(()=>{var l;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((l=n.renderButtons)==null?void 0:l.slice(0,2),r=>(e.openBlock(),e.createBlock(c,{key:r.title,label:r.title,value:r.path},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.title),1)]),_:2},1032,["label","value"]))),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]),e.createVNode(v,{title:a==null?void 0:a.label,placement:"right-start"},{reference:e.withCtx(()=>{var l;return[e.createElementVNode("span",D,[e.withDirectives(e.createVNode(d,{name:"treeMore",class:"node-trigger"},null,512),[[e.vShow,((l=n.renderButtons)==null?void 0:l.length)>0]])])]}),default:e.withCtx(()=>[e.createVNode(s,{modelValue:n.checkedButtons,"onUpdate:modelValue":l=>n.checkedButtons=l,onChange:l=>o.handleNodeBtnChange(l,n),class:"node-buttons"},{default:e.withCtx(()=>{var l;return[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((l=n.renderButtons)==null?void 0:l.slice(2),r=>(e.openBlock(),e.createBlock(c,{key:r.title,label:r.title,value:r.path},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.title),1)]),_:2},1032,["label","value"]))),128))]}),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),_:2},1032,["title"])]),_:1},8,["data","onCheckChange"])]),_:1},8,["modelValue","width","draggable","before-close"])])}}}),M=B._export_sfc(S,[["__scopeId","data-v-78a46dd8"]]);exports.default=M;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as C, reactive as f, ref as i, onMounted as E, resolveComponent as s, createElementBlock as v, openBlock as _, createElementVNode as b, createVNode as u, withCtx as c, Fragment as w, renderList as A, createBlock as B, createTextVNode as F } from "vue";
|
|
2
|
-
import { g as I, E as g } from "./index-
|
|
2
|
+
import { g as I, E as g } from "./index-CYp77kPp.js";
|
|
3
3
|
import { useRouter as M } from "vue-router";
|
|
4
4
|
import { _ as N } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const T = { class: "tenant-wrap" }, $ = { class: "tenant-content" }, q = /* @__PURE__ */ C({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-1z9RrjZc.cjs"),f=require("./index.vue_vue_type_style_index_1_lang-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-1z9RrjZc.cjs"),f=require("./index.vue_vue_type_style_index_1_lang-DQUFi_Vi.cjs"),C=require("./index-DP7rcz4I.cjs"),r=require("./index-CjI5pDiU.cjs"),g=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),v={class:"menu-content"},x=l.defineComponent({__name:"index",setup(q){const m=f.useMenuState(u.pinia),{menus:_}=u.storeToRefs(m),p=l.ref([]),c=async()=>{var i,t,n,a;const e=await u.getInsofDataApi({key:{type:"mainEquip",systemKey:sessionStorage.getItem("systemKey")}});if(((i=e==null?void 0:e.data)==null?void 0:i.type)==="success"){let o=(n=(t=e==null?void 0:e.data)==null?void 0:t.result)==null?void 0:n.map(s=>s);return o=(a=u.cloneDeep(o))==null?void 0:a.map(s=>{var d;const b=Object.values((d=s==null?void 0:s.value)==null?void 0:d.tableData);return b.unshift({id:s==null?void 0:s.id}),b}),o}else return[]};l.onMounted(async()=>{var n;const e=await c(),t=[{key:"header",contents:[{label:"主菜单名称",formType:"Select",options:(n=u.cloneDeep(_.value))==null?void 0:n.map(a=>({label:a==null?void 0:a.title,value:a==null?void 0:a.title})),prop:"主菜单名称"},{label:"隐藏三维显示",formType:"Switch",value:!1,prop:"隐藏三维显示"},{label:"操作"}]},{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}];t.push({key:"tableContents",contents:e}),p.value=t});const y=e=>{(e==null?void 0:e.buttonName)==="新增"?r.addMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="删除"?r.deleteMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="编辑"&&r.fixMenuContent(e==null?void 0:e.singleContent)};return(e,i)=>(l.openBlock(),l.createElementBlock("div",v,[l.createVNode(C.ssTable,{itemData:p.value,class:"table-content",onChange:y},null,8,["itemData"])]))}}),h=g._export_sfc(x,[["__scopeId","data-v-26f5cadc"]]);exports.default=h;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const a=require("./index-1z9RrjZc.cjs"),M=require("./index.vue_vue_type_style_index_1_lang-
|
|
1
|
+
"use strict";const a=require("./index-1z9RrjZc.cjs"),M=require("./index.vue_vue_type_style_index_1_lang-DQUFi_Vi.cjs"),E=require("vue"),h=M.useMenuState(a.pinia),p=a.useLoginState(a.pinia),x=E.ref(!1),D=E.ref(!1),q=async()=>{const _=a.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),I=a.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure"}});return await Promise.all([_,I]).then(s=>{var r,u,n,o,i,l,c,y,g,d,S,f,m,v;const t=s==null?void 0:s[0],e=s==null?void 0:s[1];if(t.data.code===200){const K=(c=(l=(i=(o=(n=(u=(r=t==null?void 0:t.data)==null?void 0:r.result)==null?void 0:u[0])==null?void 0:n.value)==null?void 0:o.pageData)==null?void 0:i.compData)==null?void 0:l[0])==null?void 0:c.contents;h.setRawMenus(K??[]),x.value=((y=t==null?void 0:t.data)==null?void 0:y.result)&&((d=(g=t==null?void 0:t.data)==null?void 0:g.result)==null?void 0:d.length)>0}else a.ElMessage.error("获取模型菜单响应失败");e.data.code===200?e.data.result&&((S=e.data.result)==null?void 0:S.length)>0&&(p.setStructureData(e.data.result),p.setIsStructureExist(!0),D.value=((f=e==null?void 0:e.data)==null?void 0:f.result)&&((v=(m=e==null?void 0:e.data)==null?void 0:m.result)==null?void 0:v.length)>0):a.ElMessage.error("获取模型结构响应失败")}),{menuExist:x.value,structureExist:D.value}};exports.verifyStructureDataToStore=q;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-DP7rcz4I.cjs"),n=require("./index-t6--MDLB.cjs"),u=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),r=e.ref([]),i=e.computed(()=>[{key:"extraButton",contents:[{label:"清空",background:"#f56c6c",color:"#ffffff"}]},{key:"rowButton",contents:[]},{key:"header",contents:[{label:"模块名称",prop:"module",filterable:!0},{label:"操作类型",prop:"type",filterable:!0},{label:"账号",prop:"account",filterable:!0},{label:"姓名",prop:"userName",filterable:!0},{label:"时间",prop:"timeStamp",sortable:!0}]},{key:"tableContents",contents:r.value}]),p=Object.freeze(Object.defineProperty({__proto__:null,pageData:i,tableData:r},Symbol.toStringTag,{value:"Module"})),b={class:"log-wrap"},d=e.defineComponent({__name:"index",setup(_){const t=e.reactive({...p});e.onMounted(async()=>{t.tableData=await n.getLogTableDataAsync("operate")});const c=l=>{var a;n.clickButton(l,(a=t.tableData)==null?void 0:a.map(o=>o.id),o=>{o&&(t.tableData=[])})};return(l,a)=>(e.openBlock(),e.createElementBlock("div",b,[e.createVNode(s.ssTable,{itemData:t.pageData,allowOperate:!1,allowSelect:!1,onOnButtonClick:c},null,8,["itemData"])]))}}),f=u._export_sfc(d,[["__scopeId","data-v-3d3b471d"]]);exports.default=f;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Dwdjsitu.cjs");const n=require("./index.vue_vue_type_style_index_1_lang-DQUFi_Vi.cjs"),o=require("./index-1z9RrjZc.cjs"),u=require("./index-DP7rcz4I.cjs"),c=require("./index-RVDLy1iy.cjs"),s={class:"role-wrapper"},i=e.defineComponent({__name:"index",setup(d){const t=e.reactive({...c.State}),a=n.useMenuState(),{activeMenuPath:r}=o.storeToRefs(a);return e.onMounted(async()=>{t.structureId=await n.getActivePageStructureId(r.value)}),(_,l)=>(e.openBlock(),e.createElementBlock("div",s,[e.createVNode(u.ssTable,{itemData:t.pageData,onChange:t.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=i;
|