ss-component-new 1.1.792 → 1.1.793
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/{array-DYH9f4rK.cjs → array-D1hKYLwI.cjs} +1 -1
- package/dist/{array-CtL7rW8F.js → array-Ye9FyEUx.js} +1 -1
- package/dist/icons/svg/card-delete.svg +1 -0
- package/dist/icons/svg/card-edit.svg +1 -0
- package/dist/icons/svg/cardViewport.svg +1 -0
- package/dist/{index-yzACFjF0.js → index-3lBf1Om0.js} +20 -22
- package/dist/{index-D1tn1KoQ.cjs → index-4g0yvLR4.cjs} +1 -1
- package/dist/{index-Caqd5p5D.js → index-BEAv6DpN.js} +89 -87
- package/dist/{index-Dlvmp9pL.js → index-BF1k8Wql.js} +2 -2
- package/dist/index-BQp60cPo.cjs +1 -0
- package/dist/index-BSNy1fqu.cjs +1 -0
- package/dist/{index-Ct9MMXFx.js → index-BSo_EZ2n.js} +1 -1
- package/dist/{index-CD2GOCYN.js → index-BT5nFKl2.js} +1 -1
- package/dist/{index-D9F-8gv6.cjs → index-BWHtpT9o.cjs} +1 -1
- package/dist/index-BWpZSzL1.cjs +1 -0
- package/dist/index-BaTEEBwm.cjs +1 -0
- package/dist/{index-CU4pIdVO.js → index-BcCJr0eD.js} +46 -46
- package/dist/index-BdsJiFeW.cjs +1 -0
- package/dist/index-Bvg3eoqO.cjs +1 -0
- package/dist/{index-C_OquYe0.js → index-BzrdPoaN.js} +19 -19
- package/dist/index-C24C4QxR.cjs +1 -0
- package/dist/{index-k3xt2ACt.js → index-C7vvAzQP.js} +35 -37
- package/dist/index-C9Boo2Cw.cjs +1 -0
- package/dist/{index-D8IqJ4xY.cjs → index-CF_0RdqV.cjs} +1 -1
- package/dist/{index-DVBB3pJ9.js → index-CQdoGgab.js} +241 -242
- package/dist/{index-hC8ojC8f.js → index-CVYj5wuv.js} +19 -21
- package/dist/index-CVnI_MkQ.js +6444 -0
- package/dist/{index-kRGRyT83.cjs → index-CZ8rfr5R.cjs} +1 -1
- package/dist/index-CnDKgjaj.cjs +1 -0
- package/dist/{index-ifs_7USp.cjs → index-Cx2go3tG.cjs} +1 -1
- package/dist/index-CyzaCb6G.cjs +1 -0
- package/dist/index-D2QNgcYL.cjs +1 -0
- package/dist/{index-CoOOhR61.js → index-D7xtHgOW.js} +7 -9
- package/dist/{index-DHhxPAhG.js → index-D8V8i_ju.js} +13 -14
- package/dist/index-D9HzYlRR.cjs +1 -0
- package/dist/{index-Bsvqe3BX.js → index-DB1mzaye.js} +2008 -1896
- package/dist/index-DEz7K5I9.js +83 -0
- package/dist/{index-CI5rAELk.js → index-DFQypAOj.js} +9 -9
- package/dist/{index-3JH8nzBR.js → index-DIh6BN03.js} +11 -11
- package/dist/index-DKGj_T9k.cjs +1 -0
- package/dist/index-DO9CT4Fd.cjs +109 -0
- package/dist/index-DPXncWf5.cjs +1 -0
- package/dist/index-DQt320Xm.cjs +4 -0
- package/dist/{index-CUIHEg5y.cjs → index-DYMLmifU.cjs} +1 -1
- package/dist/index-DYYFj9pb.js +21 -0
- package/dist/index-DiuHLKYK.cjs +1 -0
- package/dist/index-Dp7MRsuG.cjs +1 -0
- package/dist/{index-DaXBivmo.js → index-DsN8hrVU.js} +4 -4
- package/dist/{index-BdZz3dgd.cjs → index-Du3VUDcF.cjs} +1 -1
- package/dist/{index-Bsxy7-rO.js → index-DvKAcFSx.js} +4 -4
- package/dist/{index-dk1aCIgH.js → index-Dxf3VuK2.js} +1 -1
- package/dist/{index-DukolpD1.js → index-Pf5YaEHI.js} +8 -9
- package/dist/{index-fwmlAlQ3.cjs → index-Q5BPr3Ln.cjs} +1 -1
- package/dist/index-QL6lV23-.js +24 -0
- package/dist/{index-CP5gKiac.js → index-Qhhdi8b5.js} +52 -53
- package/dist/{index-Phhkpy96.js → index-VkXdSg_w.js} +1 -1
- package/dist/{index-DhG6qCUy.js → index-WC3s1PKQ.js} +2 -2
- package/dist/{index-Ch2qm9lS.js → index-awfo02R1.js} +4 -4
- package/dist/{index-C0D1oVZ-.js → index-bMR04pDn.js} +216 -218
- package/dist/index-cPvSU8bt.cjs +1 -0
- package/dist/{index-aayaOiKc.js → index-f1FUJ9GX.js} +6614 -6600
- package/dist/{index-CVzU90l-.js → index-kXZUmtz-.js} +7 -8
- package/dist/{index-BJt1u5fs.js → index-nvBnlkup.js} +24 -22
- package/dist/index-pWcxIiTe.cjs +1 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-HUyUXn7i.cjs → index.vue_vue_type_script_setup_true_lang-CaYQQb8M.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-D2wUMm1s.js → index.vue_vue_type_script_setup_true_lang-MuMeEtZE.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Xv7Z0Mpt.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CTcahF4Z.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D1BIW1xA.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D3zf2PcQ.js} +2 -2
- package/dist/index.vue_vue_type_style_index_0_scoped_4cdfe270_lang-D15EdbI0.cjs +56 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_4cdfe270_lang-CnqGOmJC.js → index.vue_vue_type_style_index_0_scoped_4cdfe270_lang-LB9IMKyF.js} +7650 -7637
- package/dist/index.vue_vue_type_style_index_0_scoped_86d2b6b8_lang-B10OnZEk.cjs +1 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_c81d0427_lang-D1koMDd8.js → index.vue_vue_type_style_index_0_scoped_86d2b6b8_lang-CcAkAlqv.js} +35 -37
- package/dist/index.vue_vue_type_style_index_1_lang-B25uUTY5.js +11983 -0
- package/dist/index.vue_vue_type_style_index_1_lang-Bmwy3cgo.cjs +42 -0
- package/dist/{isUndefined-ColgfEUF.js → isUndefined-DHYJTWF4.js} +6 -6
- package/dist/main-BLBt6gri.cjs +1 -0
- package/dist/{main-06JcdUfI.js → main-sQT4WtBZ.js} +29 -30
- 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/{threeModel-BfeNqp4B.cjs → threeModel-CuCBAPDH.cjs} +1 -1
- package/dist/{threeModel-6eaj1PQ8.js → threeModel-DKmWFT7P.js} +3 -3
- package/dist/{threePreview-tFHxt3UW.js → threePreview-BVd0hL8g.js} +1 -1
- package/dist/threeSceneView-BNkug1e7.js +1253 -0
- package/dist/threeSceneView-C-XCGQ6J.cjs +5 -0
- package/dist/{threeViewerHost-DYZ9Wucy.js → threeViewerHost-CDU-RjBf.js} +3 -3
- package/dist/{threeViewerHost-Buu3a3cN.cjs → threeViewerHost-e3SVTwru.cjs} +1 -1
- package/package.json +1 -1
- package/public/icons/svg/card-delete.svg +1 -0
- package/public/icons/svg/card-edit.svg +1 -0
- package/public/icons/svg/cardViewport.svg +1 -0
- package/dist/index-2h0F2Rjo.js +0 -25
- package/dist/index-4YrO1zhO.cjs +0 -1
- package/dist/index-AMBQbkWA.js +0 -22
- package/dist/index-BAU_RAeP.cjs +0 -1
- package/dist/index-BUp-NEXI.cjs +0 -4
- package/dist/index-BiJNaY1n.cjs +0 -1
- package/dist/index-BsWH13UA.cjs +0 -1
- package/dist/index-C-_QR4HN.cjs +0 -1
- package/dist/index-C2RmbpPs.cjs +0 -1
- package/dist/index-CG1lkTa1.cjs +0 -1
- package/dist/index-CQCRUZiK.cjs +0 -1
- package/dist/index-CS9qN0t7.cjs +0 -1
- package/dist/index-CoODdr46.cjs +0 -1
- package/dist/index-CpI6sH1s.cjs +0 -1
- package/dist/index-D-_R70ce.cjs +0 -32
- package/dist/index-D-woJpt8.js +0 -75
- package/dist/index-D7Ob-V5M.cjs +0 -1
- package/dist/index-DBp8WW7d.cjs +0 -1
- package/dist/index-DFGcIcZD.cjs +0 -1
- package/dist/index-DIP5O3O9.js +0 -6512
- package/dist/index-DNVIhEYZ.cjs +0 -109
- package/dist/index-DQ7OSXnU.cjs +0 -1
- package/dist/index-Dz-9Knzy.cjs +0 -1
- package/dist/index-SScMesy8.js +0 -5278
- package/dist/index-iQ0W5p5s.cjs +0 -1
- package/dist/index-jR7Xi9oU.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_4cdfe270_lang-MQVPIRJO.cjs +0 -56
- package/dist/index.vue_vue_type_style_index_0_scoped_c81d0427_lang-Cya_s9Eq.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_1_lang-C79bO-2t.cjs +0 -11
- package/dist/index.vue_vue_type_style_index_1_lang-CaPvw9uj.js +0 -6576
- package/dist/main-BCxYazhD.cjs +0 -1
- package/dist/modelComp-BF9BIVp-.cjs +0 -1
- package/dist/modelComp-BYA58uS0.js +0 -66
- package/dist/threeSceneView-B4XKbxf3.js +0 -1341
- package/dist/threeSceneView-CrSpnWqt.cjs +0 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const T=require("vue"),c=require("./index.vue_vue_type_style_index_1_lang-
|
|
1
|
+
"use strict";const T=require("vue"),c=require("./index.vue_vue_type_style_index_1_lang-Bmwy3cgo.cjs"),D=[{key:"FormName",value:"Form"},{key:"TableName",value:"Table"},{key:"MenuName",value:"Menu"},{key:"GroupName",value:"Group"},{key:"SystemKey",value:"System"}],b=[{key:"FormDirect",value:"formFlex"},{key:"Form",value:"formContent"},{key:"FormButton",value:"formButton"},{key:"FormFlex",value:"formWrap"},{key:"TableColumns",value:"header"},{key:"TableButton",value:"extraButton"},{key:"TableLineButton",value:"rowButton"},{key:"Table",value:"tableContents"},{key:"TableIndex",value:"tableIndex"},{key:"Menus",value:"menuContents"},{key:"GroupContents",value:"groupContents"}];T.ref(0);const I=l=>{var t,r;if(Array.isArray(Object.keys(l))&&((t=Object.keys(l))==null?void 0:t.length)>0){let e=[];return(r=Object.entries(l))==null||r.forEach(([s,n])=>{var y,$;let a=[];if(a.push(s),((y=Object.keys(n))==null?void 0:y.length)>0){let f=[];($=I(n))==null||$.forEach(x=>{f.push(x)}),f==null||f.forEach(x=>{a.push(x)})}e.push(a)}),e}},R=(l,t)=>{var e;let r=t;return Array.isArray(Object.keys(l))&&((e=Object.entries(l))==null||e.forEach(([s,n])=>{let a=[s];if(typeof n=="object"&&n!==null){let y=I(n);y==null||y.forEach($=>{a.push($)})}r.push(a)})),r},X=l=>{const t={};return l.forEach(e=>{const s=e.split("/");let n=t;s.forEach(a=>{n[a]||(n[a]={}),n=n[a]})}),R(t,[])},Y=l=>X(l);T.ref(0);T.ref(1);const q=l=>{let t;l.replaceAll(" ",`\r
|
|
2
2
|
`).replaceAll(`
|
|
3
3
|
`,`\r
|
|
4
4
|
`).includes(`\r
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1757383477977" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="11807" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><path d="M947.381645 150.587691H76.614924a39.62834 39.62834 0 1 0 0 79.25668h52.837786l60.235077 676.323667a128.395821 128.395821 0 0 0 128.924199 117.828263h389.414486a128.395821 128.395821 0 0 0 128.924199-117.828263l60.235076-676.323667h50.195898a39.62834 39.62834 0 1 0 0-79.25668zM758.222369 898.24237a52.837786 52.837786 0 0 1-52.837786 45.968874H315.970097a52.837786 52.837786 0 0 1-52.837787-45.968874L206.595879 229.844371h611.333189zM406.851089 79.25668h211.351146a40.156718 40.156718 0 0 0 39.62834-39.62834A40.156718 40.156718 0 0 0 618.202235 0H406.851089a39.62834 39.62834 0 0 0 0 79.25668z" p-id="11808"></path></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1757323164466" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4549" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><path d="M945.4 162.8l-84.9-84.9a48.5 48.5 0 0 0-34.8-14.1 56.5 56.5 0 0 0-39.8 16.8L467.1 399.4a57.8 57.8 0 0 0-15.7 29.1l-30.6 150.4a20 20 0 0 0 19.5 24 19 19 0 0 0 4.1-0.4L594.8 572a56.9 56.9 0 0 0 29.1-15.8l318.8-318.8c21.4-21.3 22.6-54.7 2.7-74.6zM576 502.3l-69 14 14-68.9 213.7-213.7 54.9 55z m253.2-253.2l-54.9-55 50.3-50.3 54.9 55zM892 512h-64a4 4 0 0 0-4 4v308H200V200h308a4 4 0 0 0 4-4v-64a4 4 0 0 0-4-4H168a40 40 0 0 0-40 40v688a40 40 0 0 0 40 40h688a40 40 0 0 0 40-40V516a4 4 0 0 0-4-4z" p-id="4550"></path></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1757317234335" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3106" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><path d="M512.896 512.384H216.96c-9.28 0-24.448 14.336-24.448 32 0 17.6 15.168 32 24.448 32h295.936c9.28 0 26.432-14.4 26.432-32 0-17.664-17.152-32-26.432-32z m-133.76 127.744H218.624c-8.704 0-25.664 14.4-25.664 32s16.96 32 25.6 32h160.576c8.64 0 27.264-14.4 27.264-32s-18.56-32-27.264-32z m282.432-127.36a21.504 21.504 0 0 0-21.376 21.504v84.992c0 11.84 9.6 21.504 21.376 21.504h149.248c11.776 0 21.376-9.6 21.376-21.504v-84.992a21.44 21.44 0 0 0-21.376-21.504H661.568zM852.48 128H171.52C112.256 128 64 187.072 64 259.648v504.704C64 836.928 112.256 896 171.52 896h680.96C911.744 896 960 836.928 960 764.352V259.648C960 187.072 911.744 128 852.48 128z m-23.232 704H194.816c-36.8 0-66.752-37.056-66.752-82.56V384.192H894.08v-61.888H128V274.56c0-45.504 29.952-82.56 66.752-82.56h634.432c36.8 0 66.752 37.056 66.752 82.56v474.88C896 794.944 866.048 832 829.248 832z" p-id="3107"></path></svg>
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import { ref as l, watch as b } from "vue";
|
|
2
|
-
import { g as y } from "./index-
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { s as f } from "./index.vue_vue_type_style_index_1_lang-CaPvw9uj.js";
|
|
6
|
-
const D = g(), { itemData: h } = f(D), c = l(0), i = l([
|
|
2
|
+
import { g as y } from "./index-BzrdPoaN.js";
|
|
3
|
+
import { aN as d, aL as g, a as m, s as D } from "./index.vue_vue_type_style_index_1_lang-B25uUTY5.js";
|
|
4
|
+
const f = m(), { itemData: h } = D(f), c = l(0), k = l([
|
|
7
5
|
{
|
|
8
6
|
label: "机构名称",
|
|
9
7
|
value: "",
|
|
10
8
|
name: "deptName"
|
|
11
9
|
}
|
|
12
|
-
]),
|
|
10
|
+
]), C = (a) => {
|
|
13
11
|
console.log("handleQueryChange", a);
|
|
14
|
-
},
|
|
12
|
+
}, s = l([
|
|
15
13
|
{
|
|
16
14
|
key: "extraButton",
|
|
17
15
|
contents: [
|
|
@@ -76,20 +74,20 @@ const D = g(), { itemData: h } = f(D), c = l(0), i = l([
|
|
|
76
74
|
// // ],
|
|
77
75
|
// ]
|
|
78
76
|
}
|
|
79
|
-
]),
|
|
80
|
-
|
|
77
|
+
]), i = (a) => {
|
|
78
|
+
d(a.singleContent, a.buttonName, c.value);
|
|
81
79
|
}, A = (a) => {
|
|
82
80
|
console.log("onDoubleClick", a);
|
|
83
81
|
}, S = (a, t) => {
|
|
84
82
|
console.log("onButtonClick", a, t);
|
|
85
83
|
}, T = async (a) => {
|
|
86
|
-
const t = await
|
|
84
|
+
const t = await g(y, {
|
|
87
85
|
key: {
|
|
88
86
|
type: "data",
|
|
89
87
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
90
88
|
pageKey: a
|
|
91
89
|
}
|
|
92
|
-
}), n = t == null ? void 0 : t.map((e) => {
|
|
90
|
+
}, "查询"), n = t == null ? void 0 : t.map((e) => {
|
|
93
91
|
var o;
|
|
94
92
|
return {
|
|
95
93
|
id: e.id,
|
|
@@ -99,10 +97,10 @@ const D = g(), { itemData: h } = f(D), c = l(0), i = l([
|
|
|
99
97
|
return n == null ? void 0 : n.map((e) => {
|
|
100
98
|
var o;
|
|
101
99
|
if (Array.isArray(e == null ? void 0 : e.tableData)) {
|
|
102
|
-
let
|
|
100
|
+
let r = { id: e.id };
|
|
103
101
|
return (o = e == null ? void 0 : e.tableData) == null || o.forEach((p, u) => {
|
|
104
|
-
|
|
105
|
-
}),
|
|
102
|
+
r[`a${u}`] = p;
|
|
103
|
+
}), r;
|
|
106
104
|
} else
|
|
107
105
|
return {
|
|
108
106
|
...e.tableData,
|
|
@@ -118,7 +116,7 @@ const D = g(), { itemData: h } = f(D), c = l(0), i = l([
|
|
|
118
116
|
contents: [
|
|
119
117
|
{
|
|
120
118
|
comp: "Table",
|
|
121
|
-
compData:
|
|
119
|
+
compData: s.value,
|
|
122
120
|
name: ""
|
|
123
121
|
}
|
|
124
122
|
]
|
|
@@ -127,20 +125,20 @@ const D = g(), { itemData: h } = f(D), c = l(0), i = l([
|
|
|
127
125
|
};
|
|
128
126
|
b(() => h.value, (a) => {
|
|
129
127
|
var t;
|
|
130
|
-
a && (a == null ? void 0 : a.length) > 0 && (
|
|
128
|
+
a && (a == null ? void 0 : a.length) > 0 && (s.value = (t = a == null ? void 0 : a[0]) == null ? void 0 : t.compData);
|
|
131
129
|
});
|
|
132
|
-
const
|
|
130
|
+
const P = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
133
131
|
__proto__: null,
|
|
134
132
|
getPageDataAsync: T,
|
|
135
|
-
handleItemDataChange:
|
|
136
|
-
handleQueryChange:
|
|
133
|
+
handleItemDataChange: i,
|
|
134
|
+
handleQueryChange: C,
|
|
137
135
|
onButtonClick: S,
|
|
138
136
|
onDoubleClick: A,
|
|
139
|
-
pageData:
|
|
140
|
-
queryFormData:
|
|
137
|
+
pageData: s,
|
|
138
|
+
queryFormData: k,
|
|
141
139
|
structureId: c,
|
|
142
140
|
tempPostPageData: B
|
|
143
141
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
144
142
|
export {
|
|
145
|
-
|
|
143
|
+
P as S
|
|
146
144
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=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.vue_vue_type_style_index_1_lang-Bmwy3cgo.cjs"),f=require("./index-DO9CT4Fd.cjs"),r=require("./index-B5Vi6RBj.cjs"),C=require("./index-BBB4VObc.cjs"),g=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),v={class:"menu-content"},x=l.defineComponent({__name:"index",setup(q){const m=u.useMenuState(u.pinia),{menus:_}=u.storeToRefs(m),p=l.ref([]),c=async()=>{var i,t,n,a;const e=await C.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(f.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,9 +1,8 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import {
|
|
3
|
-
import { s as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var s, e, t, r, l, n;
|
|
1
|
+
import { ref as f, computed as D, reactive as T } from "vue";
|
|
2
|
+
import { bJ as x, bK as B, bL as F, g as L, u as J, E as I } from "./index-BzrdPoaN.js";
|
|
3
|
+
import { s as P, b as j, ba as z, u as H, p as R, c as Z, d as G, r as Q } from "./index.vue_vue_type_style_index_1_lang-B25uUTY5.js";
|
|
4
|
+
const U = j(R), { loginUserInfo: o, cryptoInfo: c } = P(U), X = H(R), { activeMenuPath: v } = P(X), Y = f(0), _ = D(() => {
|
|
5
|
+
var s, a, t, r, l, n;
|
|
7
6
|
return [
|
|
8
7
|
{
|
|
9
8
|
label: "",
|
|
@@ -18,7 +17,7 @@ const _ = z(P), { loginUserInfo: o, cryptoInfo: c } = N(_), X = H(P), { activeMe
|
|
|
18
17
|
name: "角色名称",
|
|
19
18
|
prop: "角色名称",
|
|
20
19
|
// value: loginUserInfo.value?.userRoles?.join('、')
|
|
21
|
-
value: ((
|
|
20
|
+
value: ((a = o.value) == null ? void 0 : a.layer) === "superAdmin" ? "超级管理员" : (t = o.value) == null ? void 0 : t.角色名称
|
|
22
21
|
},
|
|
23
22
|
{
|
|
24
23
|
label: "",
|
|
@@ -36,37 +35,37 @@ const _ = z(P), { loginUserInfo: o, cryptoInfo: c } = N(_), X = H(P), { activeMe
|
|
|
36
35
|
}
|
|
37
36
|
];
|
|
38
37
|
}), ee = () => {
|
|
39
|
-
},
|
|
38
|
+
}, M = f(!1), h = T({
|
|
40
39
|
dialogTitle: "电子签名",
|
|
41
40
|
dialogWidth: "30",
|
|
42
41
|
dialogShow: !1,
|
|
43
42
|
url: ""
|
|
44
|
-
}), A =
|
|
43
|
+
}), A = f([
|
|
45
44
|
{
|
|
46
45
|
label: "签字版",
|
|
47
|
-
icon:
|
|
46
|
+
icon: x,
|
|
48
47
|
type: "button",
|
|
49
48
|
disabled: !1
|
|
50
49
|
},
|
|
51
50
|
{
|
|
52
51
|
label: "电子签名",
|
|
53
|
-
icon:
|
|
52
|
+
icon: B,
|
|
54
53
|
type: "button",
|
|
55
54
|
disabled: !1
|
|
56
55
|
},
|
|
57
56
|
{
|
|
58
57
|
label: "上传手写签名",
|
|
59
|
-
icon:
|
|
58
|
+
icon: F,
|
|
60
59
|
type: "buttonUpload",
|
|
61
60
|
disabled: !1
|
|
62
61
|
}
|
|
63
|
-
]),
|
|
62
|
+
]), w = f(!1), m = f(!1), N = f(!1), K = D(() => {
|
|
64
63
|
var r, l, n;
|
|
65
|
-
const s = sessionStorage.getItem("authority"),
|
|
66
|
-
return Array.isArray(
|
|
67
|
-
...
|
|
68
|
-
disabled: !(
|
|
69
|
-
}))) : typeof
|
|
64
|
+
const s = sessionStorage.getItem("authority"), a = JSON.parse(s || ""), t = (r = v.value) != null && r.startsWith("/") ? (l = v.value) == null ? void 0 : l.substring(1) : v.value;
|
|
65
|
+
return Array.isArray(a) ? (N.value = !(a != null && a.includes(`${t}/上传头像`)), (n = A.value) == null ? void 0 : n.map((e) => ({
|
|
66
|
+
...e,
|
|
67
|
+
disabled: !(a != null && a.includes(`${t}/签名`))
|
|
68
|
+
}))) : typeof a == "string" && (a == null ? void 0 : a.toUpperCase()) === "SUPERADMIN" ? A.value : [];
|
|
70
69
|
}), ae = D(() => [
|
|
71
70
|
{
|
|
72
71
|
key: "signConfig",
|
|
@@ -81,8 +80,8 @@ const _ = z(P), { loginUserInfo: o, cryptoInfo: c } = N(_), X = H(P), { activeMe
|
|
|
81
80
|
}, $ = () => {
|
|
82
81
|
h.dialogShow = !1;
|
|
83
82
|
}, k = async (s) => {
|
|
84
|
-
var t, r, l, n,
|
|
85
|
-
const
|
|
83
|
+
var t, r, l, n, e, i, p, d, g;
|
|
84
|
+
const a = await L({
|
|
86
85
|
id: s
|
|
87
86
|
// key: {
|
|
88
87
|
// systemKey: sessionStorage.getItem("systemKey"),
|
|
@@ -91,21 +90,21 @@ const _ = z(P), { loginUserInfo: o, cryptoInfo: c } = N(_), X = H(P), { activeMe
|
|
|
91
90
|
// pageKey: '系统管理/用户管理',
|
|
92
91
|
// }
|
|
93
92
|
});
|
|
94
|
-
if (((t =
|
|
93
|
+
if (((t = a == null ? void 0 : a.data) == null ? void 0 : t.code) === 200 && a.data.result && Array.isArray(a.data.result) && a.data.result.length > 0) {
|
|
95
94
|
const y = {
|
|
96
|
-
...(n = (l = (r =
|
|
97
|
-
id: (i = (
|
|
98
|
-
layer: (
|
|
95
|
+
...(n = (l = (r = a.data.result) == null ? void 0 : r[0]) == null ? void 0 : l.value) == null ? void 0 : n.tableData,
|
|
96
|
+
id: (i = (e = a.data.result) == null ? void 0 : e[0]) == null ? void 0 : i.id,
|
|
97
|
+
layer: (g = (d = (p = a.data.result) == null ? void 0 : p[0]) == null ? void 0 : d.key) == null ? void 0 : g.layer
|
|
99
98
|
};
|
|
100
|
-
|
|
99
|
+
U.setLoginUserInfo(y);
|
|
101
100
|
}
|
|
102
|
-
}, V = async (s) => {
|
|
103
|
-
var
|
|
104
|
-
const
|
|
105
|
-
|
|
101
|
+
}, V = async (s, a) => {
|
|
102
|
+
var r, l, n;
|
|
103
|
+
const t = Z(s);
|
|
104
|
+
t == null || delete t.id;
|
|
106
105
|
try {
|
|
107
|
-
const
|
|
108
|
-
id: (
|
|
106
|
+
const e = await J({
|
|
107
|
+
id: (r = o.value) == null ? void 0 : r.id,
|
|
109
108
|
// key: {
|
|
110
109
|
// // type: "data",
|
|
111
110
|
// systemKey: sessionStorage.getItem("systemKey"),
|
|
@@ -113,38 +112,41 @@ const _ = z(P), { loginUserInfo: o, cryptoInfo: c } = N(_), X = H(P), { activeMe
|
|
|
113
112
|
// layer: loginUserInfo.value?.layer
|
|
114
113
|
// },
|
|
115
114
|
value: {
|
|
116
|
-
tableData:
|
|
115
|
+
tableData: t
|
|
117
116
|
}
|
|
118
117
|
});
|
|
119
|
-
((
|
|
118
|
+
((l = e == null ? void 0 : e.data) == null ? void 0 : l.code) === 200 && ($(), I.success("修改成功"), await k((n = o.value) == null ? void 0 : n.id), await U.setLogRecordAsync({
|
|
119
|
+
type: a,
|
|
120
|
+
data: s
|
|
121
|
+
}, v.value)), w.value = !1, m.value = !1;
|
|
120
122
|
} catch {
|
|
121
|
-
|
|
123
|
+
I.error("修改响应失败"), w.value = !1, m.value = !1;
|
|
122
124
|
}
|
|
123
|
-
}, se = async (s,
|
|
125
|
+
}, se = async (s, a) => {
|
|
124
126
|
var r;
|
|
125
127
|
const t = {
|
|
126
128
|
...o.value,
|
|
127
129
|
status: ((r = o.value) == null ? void 0 : r.status) ?? "启用",
|
|
128
130
|
// password: encryptData(loginUserInfo.value?.password, cryptoInfo?.publicKey),
|
|
129
|
-
[s]:
|
|
131
|
+
[s]: a
|
|
130
132
|
};
|
|
131
|
-
|
|
132
|
-
}, b =
|
|
133
|
+
w.value = s === "avatarUrl", m.value = s === "signature", await V(t);
|
|
134
|
+
}, b = T({
|
|
133
135
|
baseCols: [],
|
|
134
136
|
otherCols: []
|
|
135
|
-
}), W =
|
|
136
|
-
var n,
|
|
137
|
+
}), W = f([]), q = f(), re = (s, a, t) => {
|
|
138
|
+
var n, e, i, p, d, g;
|
|
137
139
|
let r;
|
|
138
|
-
const l =
|
|
139
|
-
((
|
|
140
|
-
}, ne = (s,
|
|
141
|
-
|
|
142
|
-
}, le = (s,
|
|
140
|
+
const l = a;
|
|
141
|
+
((e = (n = o.value) == null ? void 0 : n.layer) == null ? void 0 : e.toUpperCase()) !== "SUPERADMIN" ? r = (i = o.value) != null && i.password ? G((p = o.value) == null ? void 0 : p.password, (d = c == null ? void 0 : c.value) == null ? void 0 : d.privateKey) : Q : r = (g = o.value) == null ? void 0 : g.password, r === l ? t() : t(new Error("输入的密码与原密码不匹配,请重新输入"));
|
|
142
|
+
}, ne = (s, a, t) => {
|
|
143
|
+
a ? /^(?=.*[A-Z])(?=.*[a-z])(?=.*\d)(?=.*[!@#$%^&*(),.?":{}|<>]).{6,}$/.test(a) ? t() : t(new Error("密码必须包含大写字母、小写字母、数字和特殊字符,并且长度至少为6个字符")) : t(new Error("请输入密码"));
|
|
144
|
+
}, le = (s, a, t) => {
|
|
143
145
|
var r;
|
|
144
|
-
|
|
146
|
+
a !== ((r = q.value) == null ? void 0 : r.newtPass) ? t(new Error("两次输入的密码不一致")) : t();
|
|
145
147
|
}, oe = async () => {
|
|
146
|
-
var
|
|
147
|
-
const s = await
|
|
148
|
+
var a, t, r, l, n, e, i, p, d, g;
|
|
149
|
+
const s = await L({
|
|
148
150
|
key: {
|
|
149
151
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
150
152
|
type: "structure",
|
|
@@ -152,13 +154,13 @@ const _ = z(P), { loginUserInfo: o, cryptoInfo: c } = N(_), X = H(P), { activeMe
|
|
|
152
154
|
pageKey: "系统管理/用户管理"
|
|
153
155
|
}
|
|
154
156
|
});
|
|
155
|
-
if (((
|
|
156
|
-
const y = (i = (
|
|
157
|
+
if (((a = s == null ? void 0 : s.data) == null ? void 0 : a.code) === 200 && s.data.result && ((t = s.data.result) == null ? void 0 : t.length) > 0) {
|
|
158
|
+
const y = (i = (e = (n = (l = (r = s.data.result) == null ? void 0 : r[0]) == null ? void 0 : l.value) == null ? void 0 : n.pageData) == null ? void 0 : e.compData) == null ? void 0 : i.find((u) => (u == null ? void 0 : u.key) === "header"), S = (p = _.value) == null ? void 0 : p.map((u) => u == null ? void 0 : u.prop);
|
|
157
159
|
b.baseCols = y && ((d = y.contents) == null ? void 0 : d.map((u) => ({
|
|
158
160
|
...u,
|
|
159
161
|
isFormColHidden: (S == null ? void 0 : S.includes(u == null ? void 0 : u.prop)) || (u == null ? void 0 : u.label) === "操作"
|
|
160
162
|
})));
|
|
161
|
-
const C = (
|
|
163
|
+
const C = (g = y.contents) == null ? void 0 : g.find((u) => (u == null ? void 0 : u.prop) === "password"), O = [
|
|
162
164
|
{
|
|
163
165
|
...C,
|
|
164
166
|
label: "当前密码",
|
|
@@ -178,24 +180,24 @@ const _ = z(P), { loginUserInfo: o, cryptoInfo: c } = N(_), X = H(P), { activeMe
|
|
|
178
180
|
validator: le
|
|
179
181
|
}
|
|
180
182
|
];
|
|
181
|
-
b.otherCols =
|
|
183
|
+
b.otherCols = O, pe(o.value);
|
|
182
184
|
}
|
|
183
185
|
}, ue = (s) => {
|
|
184
186
|
q.value = s;
|
|
185
|
-
}, ie = async ({ content: s, buttonName:
|
|
186
|
-
var r, l, n,
|
|
187
|
+
}, ie = async ({ content: s, buttonName: a }) => {
|
|
188
|
+
var r, l, n, e, i;
|
|
187
189
|
let t;
|
|
188
|
-
|
|
190
|
+
a === "确定" && (t = {
|
|
189
191
|
...o.value,
|
|
190
192
|
status: ((r = o.value) == null ? void 0 : r.status) ?? "启用",
|
|
191
193
|
// 目前是超管密码明文传输,非超管用户密码加密传输
|
|
192
|
-
password: ((n = (l = o.value) == null ? void 0 : l.layer) == null ? void 0 : n.toUpperCase()) === "SUPERADMIN" ? s == null ? void 0 : s.confirmNewPass :
|
|
193
|
-
}),
|
|
194
|
+
password: ((n = (l = o.value) == null ? void 0 : l.layer) == null ? void 0 : n.toUpperCase()) === "SUPERADMIN" ? s == null ? void 0 : s.confirmNewPass : z(s == null ? void 0 : s.confirmNewPass, (e = c.value) == null ? void 0 : e.publicKey)
|
|
195
|
+
}), a === "保存基本信息" && (t = {
|
|
194
196
|
...o.value,
|
|
195
197
|
...s,
|
|
196
198
|
status: ((i = o.value) == null ? void 0 : i.status) ?? "启用"
|
|
197
|
-
}),
|
|
198
|
-
},
|
|
199
|
+
}), M.value = !0, await V(t, a);
|
|
200
|
+
}, E = () => {
|
|
199
201
|
var r, l;
|
|
200
202
|
const s = {
|
|
201
203
|
base: [
|
|
@@ -212,16 +214,16 @@ const _ = z(P), { loginUserInfo: o, cryptoInfo: c } = N(_), X = H(P), { activeMe
|
|
|
212
214
|
label: "确定"
|
|
213
215
|
}
|
|
214
216
|
]
|
|
215
|
-
},
|
|
217
|
+
}, a = sessionStorage.getItem("authority"), t = JSON.parse(a || "");
|
|
216
218
|
if (Array.isArray(t)) {
|
|
217
|
-
const n = (r = v.value) != null && r.startsWith("/") ? (l = v.value) == null ? void 0 : l.substring(1) : v.value,
|
|
219
|
+
const n = (r = v.value) != null && r.startsWith("/") ? (l = v.value) == null ? void 0 : l.substring(1) : v.value, e = t != null && t.includes(`${n}/基本信息`) ? s == null ? void 0 : s.base : [], i = t != null && t.includes(`${n}/修改密码`) ? s == null ? void 0 : s.other : [];
|
|
218
220
|
return {
|
|
219
|
-
base:
|
|
221
|
+
base: e,
|
|
220
222
|
other: i
|
|
221
223
|
};
|
|
222
224
|
} else return typeof t == "string" && (t == null ? void 0 : t.toUpperCase()) === "SUPERADMIN" ? s : null;
|
|
223
225
|
}, pe = (s) => {
|
|
224
|
-
var
|
|
226
|
+
var a, t, r, l, n;
|
|
225
227
|
W.value = [
|
|
226
228
|
{
|
|
227
229
|
value: "基础信息",
|
|
@@ -230,14 +232,14 @@ const _ = z(P), { loginUserInfo: o, cryptoInfo: c } = N(_), X = H(P), { activeMe
|
|
|
230
232
|
{
|
|
231
233
|
type: "form",
|
|
232
234
|
content: {
|
|
233
|
-
rowContents: (
|
|
234
|
-
...
|
|
235
|
+
rowContents: (a = b.baseCols) == null ? void 0 : a.map((e) => ({
|
|
236
|
+
...e,
|
|
235
237
|
width: 2,
|
|
236
|
-
type:
|
|
237
|
-
name:
|
|
238
|
-
prop:
|
|
239
|
-
contents:
|
|
240
|
-
value: s[
|
|
238
|
+
type: e == null ? void 0 : e.formType,
|
|
239
|
+
name: e == null ? void 0 : e.prop,
|
|
240
|
+
prop: e == null ? void 0 : e.prop,
|
|
241
|
+
contents: e == null ? void 0 : e.options,
|
|
242
|
+
value: s[e == null ? void 0 : e.prop]
|
|
241
243
|
})),
|
|
242
244
|
formRules: {
|
|
243
245
|
userName: [
|
|
@@ -250,7 +252,7 @@ const _ = z(P), { loginUserInfo: o, cryptoInfo: c } = N(_), X = H(P), { activeMe
|
|
|
250
252
|
{ required: !0, message: "输入不能为空", trigger: "blur" }
|
|
251
253
|
]
|
|
252
254
|
},
|
|
253
|
-
buttonValue: (t =
|
|
255
|
+
buttonValue: (t = E()) == null ? void 0 : t.base,
|
|
254
256
|
isEnableWrap: !1,
|
|
255
257
|
isButtonRow: !1
|
|
256
258
|
},
|
|
@@ -265,21 +267,21 @@ const _ = z(P), { loginUserInfo: o, cryptoInfo: c } = N(_), X = H(P), { activeMe
|
|
|
265
267
|
{
|
|
266
268
|
type: "form",
|
|
267
269
|
content: {
|
|
268
|
-
rowContents: (r = b.otherCols) == null ? void 0 : r.map((
|
|
269
|
-
...
|
|
270
|
+
rowContents: (r = b.otherCols) == null ? void 0 : r.map((e) => ({
|
|
271
|
+
...e,
|
|
270
272
|
width: 1,
|
|
271
|
-
type:
|
|
272
|
-
name:
|
|
273
|
-
contents:
|
|
273
|
+
type: e == null ? void 0 : e.formType,
|
|
274
|
+
name: e == null ? void 0 : e.prop,
|
|
275
|
+
contents: e == null ? void 0 : e.options
|
|
274
276
|
})),
|
|
275
|
-
formRules: (l = b.otherCols) == null ? void 0 : l.reduce((
|
|
277
|
+
formRules: (l = b.otherCols) == null ? void 0 : l.reduce((e, i) => (e[i.prop] = [
|
|
276
278
|
{ required: !0, message: "输入有误", trigger: "change" },
|
|
277
279
|
{
|
|
278
|
-
validator: (p, d,
|
|
280
|
+
validator: (p, d, g) => i.validator(p, d, g),
|
|
279
281
|
trigger: "blur"
|
|
280
282
|
}
|
|
281
|
-
],
|
|
282
|
-
buttonValue: (n =
|
|
283
|
+
], e), {}),
|
|
284
|
+
buttonValue: (n = E()) == null ? void 0 : n.other,
|
|
283
285
|
isEnableWrap: !1
|
|
284
286
|
},
|
|
285
287
|
value: ""
|
|
@@ -287,9 +289,9 @@ const _ = z(P), { loginUserInfo: o, cryptoInfo: c } = N(_), X = H(P), { activeMe
|
|
|
287
289
|
]
|
|
288
290
|
}
|
|
289
291
|
];
|
|
290
|
-
},
|
|
292
|
+
}, ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
291
293
|
__proto__: null,
|
|
292
|
-
avatarLoading:
|
|
294
|
+
avatarLoading: w,
|
|
293
295
|
beforeSignDestroy: $,
|
|
294
296
|
changeFormTrigger: ue,
|
|
295
297
|
clickFormButton: ee,
|
|
@@ -297,19 +299,19 @@ const _ = z(P), { loginUserInfo: o, cryptoInfo: c } = N(_), X = H(P), { activeMe
|
|
|
297
299
|
clickTabButton: ie,
|
|
298
300
|
getUserTableHeadersAsync: oe,
|
|
299
301
|
itemData: ae,
|
|
300
|
-
loading:
|
|
302
|
+
loading: M,
|
|
301
303
|
refreshLoginUserInfoAsync: k,
|
|
302
|
-
rowContents:
|
|
304
|
+
rowContents: _,
|
|
303
305
|
signPadInfo: h,
|
|
304
306
|
signTypes: K,
|
|
305
|
-
signatureLoading:
|
|
307
|
+
signatureLoading: m,
|
|
306
308
|
submitImageAsync: se,
|
|
307
309
|
tabKey: Y,
|
|
308
310
|
tabsContents: W,
|
|
309
311
|
tempSignTypes: A,
|
|
310
|
-
uploadDisabled:
|
|
312
|
+
uploadDisabled: N
|
|
311
313
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
312
314
|
export {
|
|
313
|
-
|
|
315
|
+
ve as S,
|
|
314
316
|
Y as t
|
|
315
317
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as x, onMounted as _, createElementBlock as g, openBlock as y, createVNode as C } from "vue";
|
|
2
|
-
import { s as b } from "./index-
|
|
3
|
-
import { c as s } from "./index.vue_vue_type_style_index_1_lang-
|
|
2
|
+
import { s as b } from "./index-Dxf3VuK2.js";
|
|
3
|
+
import { c as s } from "./index.vue_vue_type_style_index_1_lang-B25uUTY5.js";
|
|
4
4
|
import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const A = (t, n, a) => {
|
|
6
6
|
var r, d, p, m;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),I=require("./index.vue_vue_type_script_setup_true_lang-CaYQQb8M.cjs"),k=require("./threeViewerHost-e3SVTwru.cjs"),C=require("./index-BBB4VObc.cjs"),x=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),V=require("./index-DQt320Xm.cjs"),S=require("./index-BpPyaNFa.cjs"),A={class:"avatar-model-wrap"},N={key:0},E=e.defineComponent({__name:"index",props:{disabled:{type:Boolean,default:!1},avatarUrl:{type:String,default:""},size:{type:[String,Number],default:"large"},userInfo:{type:Object,default:{}}},emits:["submitImage","deleteImage"],setup(s,{emit:y}){const u=s,i=y,m=e.computed(()=>"http://222.92.178.198:62001"),d=e.ref(""),h=e.ref(""),_=e.ref();e.watch(()=>{var o;return(o=u.userInfo)==null?void 0:o.avatarUrl},o=>{h.value=m.value+"/"+o},{immediate:!0});const w=async()=>{if(!(u!=null&&u.disabled))try{const o=await k.downloadAvatarApi({url:d.value});if(o.status!==200)throw new Error(`HTTP error! status: ${o.status}`);const f=new Blob([o.data],{type:o.headers["content-type"]});_.value=f}catch(o){throw new Error(o)}},B=async o=>{var f,g,t,n,c;try{const r=await k.uploadFile(o);((f=r==null?void 0:r.data)==null?void 0:f.code)===200&&(h.value=m.value+"/"+((t=(g=r.data)==null?void 0:g.result)==null?void 0:t.url),d.value=(c=(n=r.data)==null?void 0:n.result)==null?void 0:c.url,i("submitImage",d.value))}catch(r){C.ElMessage.error(r)}},b=async()=>{try{if(!h.value)return}catch(o){C.ElMessage.error(o)}};return(o,f)=>{var g,t;return e.openBlock(),e.createElementBlock("div",A,[e.createVNode(I._sfc_main,{avatarUrl:h.value,avatarBlob:_.value,size:s.size,onClickAvatar:w,onSubmitImage:B,onDeleteImage:b},{avatarDefault:e.withCtx(()=>{var n,c,r,l;return[e.createTextVNode(e.toDisplayString(((c=(n=s.userInfo)==null?void 0:n.account)==null?void 0:c.charAt(0))||((l=(r=s.userInfo)==null?void 0:r.姓名)==null?void 0:l.charAt(0))||"未知"),1)]}),_:1},8,["avatarUrl","avatarBlob","size"]),s.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",N,e.toDisplayString(((g=s.userInfo)==null?void 0:g.account)||((t=s.userInfo)==null?void 0:t.账号)||"未知"),1))])}}}),U=x._export_sfc(E,[["__scopeId","data-v-0bab4582"]]),T=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["clickSignButton","clickSubmitSign","beforeDestroy"],setup(s,{emit:y}){const u=s,i=e.ref({}),m=e.ref([]),d=y,h=t=>{i.value.dialogShow=(t==null?void 0:t.label)==="电子签名",d("clickSignButton",t)},_=()=>{i.value.dialogShow=!1,d("beforeDestroy")},w=e.computed(()=>"http://222.92.178.198:62001"),B=t=>{var a;const n=t.split(","),c=(a=n==null?void 0:n[0])==null?void 0:a.match(/:(.*?);/)[1],r=atob(n[1]);let l=r.length;const v=new Uint8Array(l);for(;l--;)v[l]=r.charCodeAt(l);return new Blob([v],{type:c})},b=async t=>{var n,c,r;try{const l=await k.uploadFile(t);((n=l==null?void 0:l.data)==null?void 0:n.code)===200&&d("clickSubmitSign",(r=(c=l.data)==null?void 0:c.result)==null?void 0:r.url)}catch(l){C.ElMessage.error(l)}},o=e.ref(""),f=t=>{o.value=t,i.value.dialogShow=!1;const n=new FormData,c=B(t);n.append("file",c,"image.png"),b(n)},g=t=>{const n=new FormData;n.append("file",t==null?void 0:t.file),b(n)};return e.watch(()=>u==null?void 0:u.itemData,t=>{var c,r,l,v;o.value="",(c=i.value)!=null&&c.dialogShow&&(i.value.dialogShow=!1);const n=(r=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signConfig"))==null?void 0:r.contents;n&&Object.keys(n).forEach(a=>{(n[a]===void 0||n[a]===null||n[a]==="")&&delete n[a]}),i.value=(l=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signConfig"))==null?void 0:l.contents,m.value=(v=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signTypeList"))==null?void 0:v.contents},{immediate:!0}),(t,n)=>{const c=e.resolveComponent("el-empty"),r=e.resolveComponent("el-image"),l=e.resolveComponent("el-button"),v=e.resolveComponent("el-upload");return e.openBlock(),e.createBlock(V.Signature,{signPadInfo:i.value,onBeforeDestroy:_,onClickSubmitSign:f},{signatureRender:e.withCtx(()=>{var a,p;return[e.createElementVNode("div",{class:"signature-render",style:e.normalizeStyle({width:`${(a=i.value)==null?void 0:a.signPadWidth}%`})},[e.createVNode(r,{src:o.value?o.value:w.value+"/"+((p=s.userInfo)==null?void 0:p.signature),fit:"contain"},{error:e.withCtx(()=>[e.createVNode(c,{"image-size":60,description:" "},{image:e.withCtx(()=>[e.createVNode(S.SvgIcon,{name:"emptyImg"})]),_:1})]),_:1},8,["src"])],4)]}),signatureTypes:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,a=>{var p;return e.openBlock(),e.createElementBlock("div",{key:a.label,class:"signature-button"},[(p=a.label)!=null&&p.includes("上传")?(e.openBlock(),e.createBlock(v,{key:0,ref_for:!0,ref:"uploadRef","http-request":g,"show-file-list":!1},{trigger:e.withCtx(()=>[e.createVNode(l,{disabled:a.disabled,id:"themeButton"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),icon:e.withCtx(()=>[e.createVNode(S.SvgIcon,{name:a.icon??""},null,8,["name"])]),_:2},1032,["disabled"])]),_:2},1536)):(e.openBlock(),e.createBlock(l,{key:1,id:"themeButton",disabled:a.disabled,onClick:z=>h(a)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),icon:e.withCtx(()=>[e.createVNode(S.SvgIcon,{name:a.icon??""},null,8,["name"])]),_:2},1032,["disabled","onClick"]))])}),128))]),_:1},8,["signPadInfo"])}}}),q=x._export_sfc(T,[["__scopeId","data-v-c57c424e"]]);exports.ssAvatar=U;exports.ssSignature=q;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("vue"),w=require("./index-Bvg3eoqO.cjs"),a=require("./index.vue_vue_type_style_index_1_lang-Bmwy3cgo.cjs");require("./array-D1hKYLwI.cjs");const N=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),b=require("./index-DEEZPcpU.cjs"),T=require("./index-DQt320Xm.cjs"),A=require("./index-BBB4VObc.cjs"),L={class:"type-select"},j=["onClick"],z={class:"list-icon"},H={__name:"index",setup(I){const p=a.useModelComp(a.pinia),{itemData:r,activeItemIndex:D}=a.storeToRefs(p),C=u=>{var k;let i=null;const h=a.cloneDeep(r.value);if(D.value>=0&&(i=h==null?void 0:h[D.value]),i&&i.comp==="Layout"){const{compData:g=[]}=i;((k=g==null?void 0:g.find(B=>{const{key:E}=B;return E==="children"}))==null?void 0:k.contents).push({comp:u.comp,name:u.name,compData:[]}),p.setItemData(h);return}const d=a.cloneDeep(r.value);d.push({comp:u.comp,name:u.name,compData:[]}),p.setItemData(d)};return(u,i)=>{const h=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",L,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(w.slotContent),(d,k)=>(e.openBlock(),e.createElementBlock("div",{class:"type-list",key:k},[e.createElementVNode("div",{class:"list-content",onClick:g=>C(d)},[e.createElementVNode("div",z,[e.createVNode(h,{name:d.icon},null,8,["name"])]),e.createElementVNode("div",null,e.toDisplayString(d.name),1)],8,j)]))),128))])}}},G=N._export_sfc(H,[["__scopeId","data-v-2cd8410b"]]),J={class:"fill-content"},K={class:"operate-content"},Q=["onClick"],W={class:"collapse-title-item"},X={key:1},Y=["onClick"],Z={class:"icon-content"},P={key:0,class:"edit-content"},ee=["onClick"],te=["onClick"],ne={class:"parent-main"},oe={style:{display:"flex","justify-content":"space-between"}},le={__name:"index",setup(I){const p=a.useModelComp(a.pinia),{itemData:r,originalData:D}=a.storeToRefs(p),C=e.ref([]);e.ref([]);const u=e.ref([]),i=e.ref([]),h=e.ref([]),d=l=>{var s;let o=(s=a.cloneDeep(i.value))==null?void 0:s.map((n,t)=>(l===t&&(n.content=!0),n));i.value=o},k=l=>{var s;let o=(s=a.cloneDeep(i.value))==null?void 0:s.map((n,t)=>(l===t&&(n.content=!1),n));i.value=o,C.value=a.cloneDeep(r.value)},g=(l,o)=>{var v;let s=(v=a.cloneDeep(i.value))==null?void 0:v.map((_,c)=>(l===c&&(_.content=!1),_));i.value=s;const n=a.cloneDeep(r.value),t=n==null?void 0:n.filter((_,c)=>(c===l&&(_.name=o),_));p.setOriginalData(t),p.setItemData(t)},S=l=>{const o=a.cloneDeep(r.value),s=o==null?void 0:o.map((n,t)=>((n==null?void 0:n.name)===(l==null?void 0:l.name)?n.isShow=!(l!=null&&l.isShow):n.isShow=n.isShow,n));r.value=s};e.watch(()=>r.value,()=>{var l,o,s,n;!r.value||((l=r.value)==null?void 0:l.length)===0?C.value=[]:C.value=(o=a.cloneDeep(r.value))==null?void 0:o.filter(t=>(t==null?void 0:t.comp)!=="methodButton"),u.value=C.value,i.value=(s=a.cloneDeep(u.value))==null?void 0:s.map((t,v)=>({id:v,content:!1})),h.value=(n=a.cloneDeep(u.value))==null?void 0:n.map((t,v)=>({id:v,isShow:t==null?void 0:t.isShow}))},{deep:!0,immediate:!0});const B=l=>w.getComponent(l),E=(l,o,s,n)=>{var v,_;if(!l)return;let t=a.cloneDeep(r.value);t=(v=t==null?void 0:t.map((c,f)=>{if(n&&f===s){const{compData:y,itemChildData:V}=l;return c.compData=y,c.itemChildData=V,c}return f===s&&(c.compData=l),c}))==null?void 0:v.filter(c=>(c==null?void 0:c.comp)!=="methodButton"),i.value=(_=a.cloneDeep(t))==null?void 0:_.map((c,f)=>({id:f,content:!1})),p.setOriginalData(t),p.setItemData(t)},O=e.ref(null),x=(l,o)=>{if(!o){p.setActiveItemIndex(l);return}p.setActiveItemIndex(-1)},U=l=>{a.ElMessageBox.confirm("是否确认要删除","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(()=>{const o=a.cloneDeep(r.value),s=o==null?void 0:o.filter((n,t)=>t!==l);p.setOriginalData(s),p.setItemData(s),p.setActiveItemIndex(-1),A.ElMessage({type:"success",message:"删除成功"})}).catch(()=>{})};return(l,o)=>{const s=e.resolveComponent("svg-icon");return e.openBlock(),e.createElementBlock("div",J,[o[3]||(o[3]=e.createElementVNode("div",{class:"fill-operate"},e.toDisplayString("操作栏"),-1)),e.createElementVNode("div",K,[e.createVNode(b.default,{class:"collapse-content",collapseContents:C.value,ref_key:"ssCollapseRef",ref:O},{title:e.withCtx(({item:n,index:t,isActive:v})=>{var _,c,f,y,V,$,M,q,R,F;return[e.createElementVNode("div",{class:"collapse-title-content",onClick:m=>x(t,v)},[e.createElementVNode("div",W,[(c=(_=i.value)==null?void 0:_.find(m=>m.id===t))!=null&&c.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"collapse-title",style:e.normalizeStyle({marginRight:n.name&&n.name!==""?"8px":"0px"})},e.toDisplayString(n.name),5)),(y=(f=i.value)==null?void 0:f.find(m=>m.id===t))!=null&&y.content?(e.openBlock(),e.createElementBlock("div",X,[e.createVNode(T._sfc_main$3,{modelValue:n.name,"onUpdate:modelValue":m=>n.name=m,onClick:o[0]||(o[0]=e.withModifiers(()=>{},["stop"]))},null,8,["modelValue","onUpdate:modelValue"])])):e.createCommentVNode("",!0),($=(V=i.value)==null?void 0:V.find(m=>m.id===t))!=null&&$.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:2,onClick:e.withModifiers(m=>d(t),["stop"]),class:"icon-content"},[e.createVNode(s,{name:"Edit",style:{width:"16px",height:"16px"}})],8,Y))]),e.createElementVNode("div",Z,[(q=(M=i.value)==null?void 0:M.find(m=>m.id===t))!=null&&q.content?(e.openBlock(),e.createElementBlock("div",P,[e.createVNode(s,{name:"Cancel",style:{width:"16px",height:"16px"},class:"icon-content",onClick:e.withModifiers(m=>k(t),["stop"])},null,8,["onClick"]),e.createVNode(s,{name:"Save",onClick:e.withModifiers(m=>g(t,n.name),["stop"]),style:{width:"16px",height:"16px",fill:"var(--ssComponent-primary-color)"},class:"icon-content"},null,8,["onClick"])])):e.createCommentVNode("",!0),(F=(R=i.value)==null?void 0:R.find(m=>m.id===t))!=null&&F.content?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,onClick:e.withModifiers(m=>U(t),["stop"]),class:"icon-content"},[e.createVNode(s,{name:"Delete",style:{width:"16px",height:"16px"}})],8,ee))])],8,Q)]}),content:e.withCtx(({item:n,index:t})=>{var v,_;return[e.createElementVNode("div",{class:"comp-child",onClick:c=>x(t)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(B(n.comp+"Operate")),{itemContents:n==null?void 0:n.compData,originalItemContents:(_=(v=u.value)==null?void 0:v.find((c,f)=>f===t))==null?void 0:_.compData,itemChildData:n==null?void 0:n.itemChildData,onChange:(c,f)=>E(c,n,t,f)},null,40,["itemContents","originalItemContents","itemChildData","onChange"]))],8,te),e.createElementVNode("div",ne,[o[2]||(o[2]=e.createElementVNode("div",{class:"operate-title"},[e.createElementVNode("div",null,e.toDisplayString("显隐控制"))],-1)),e.createElementVNode("div",oe,[o[1]||(o[1]=e.createElementVNode("div",{class:"operate-center-content"},e.toDisplayString("是否显示"),-1)),e.createVNode(T._sfc_main$2,{value:h.value.find(c=>c.id===t).isShow,"onUpdate:value":c=>h.value.find(f=>f.id===t).isShow=c,onClick:c=>S(n)},null,8,["value","onUpdate:value","onClick"])])])]}),_:1},8,["collapseContents"])])])}}},ce=N._export_sfc(le,[["__scopeId","data-v-1f5fca05"]]),ae={key:0,class:"show-content"},se={style:{display:"flex"}},ie={__name:"index",setup(I){const p=a.useModelComp(a.pinia),{itemData:r}=a.storeToRefs(p),D=e.ref([]);e.watch(()=>r.value,()=>{var u;!r.value||((u=r.value)==null?void 0:u.length)===0?D.value=[]:D.value=a.cloneDeep(r.value)},{deep:!0,immediate:!0});const C=u=>w.getComponent(u);return(u,i)=>{var h;return((h=D.value)==null?void 0:h.length)>0?(e.openBlock(),e.createElementBlock("div",ae,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(D.value,(d,k)=>(e.openBlock(),e.createElementBlock("div",{class:"item-content",key:k},[e.createElementVNode("div",se,e.toDisplayString(d.name),1),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(C(d.comp)),{itemData:d==null?void 0:d.compData,childItemData:d==null?void 0:d.itemChildData,key:k},null,8,["itemData","childItemData"]))]))),128))])):e.createCommentVNode("",!0)}}},re=N._export_sfc(ie,[["__scopeId","data-v-bfa22d29"]]);exports.modelFill=ce;exports.modelSelect=G;exports.modelShow=re;
|
|
@@ -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-BzrdPoaN.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";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-CTcahF4Z.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(()=>{c()}),n.observe(o.value))};e.onMounted(()=>{r.value=s.optionContents,i(),window.addEventListener("resize",c),u()}),e.watch(()=>s.optionContents,()=>{r.value=s.optionContents,i()}),e.onUnmounted(()=>{n&&n.disconnect(),window.addEventListener("resize",c)});const c=()=>{t.resize()},i=()=>{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-ec17569b"]]);exports.ssChart=v;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const D=require("vue"),n=require("./index-BBB4VObc.cjs"),k=require("./index.vue_vue_type_style_index_1_lang-Bmwy3cgo.cjs"),w=D.ref([]),A=D.computed(()=>[{key:"extraButton",contents:[{label:"清空",background:"#f56c6c"}]},{key:"rowButton",contents:[]},{key:"header",contents:[{label:"账号",prop:"account",filterable:!0},{label:"姓名",prop:"userName",filterable:!0},{label:"时间",prop:"timeStamp",sortable:!0}]},{key:"tableContents",contents:w.value}]),E=(r,s,t)=>{r==="清空"&&k.ElMessageBox.confirm("是否确认清空所有日志","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(async()=>{var o,e;try{const a=await n.batchDeleteInsofDataApi({ids:s});((o=a==null?void 0:a.data)==null?void 0:o.code)===200?(n.ElMessage.success("清空日志成功"),t(!0)):(n.ElMessage.error(((e=a==null?void 0:a.data)==null?void 0:e.message)??"清空请求响应失败"),t(!1))}catch{n.ElMessage.error("清空操作处理失败"),t(!1)}}).catch(()=>{t(!1)})},M=async(r="login")=>{var s,t,o;try{const e=await n.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"/log",type:"system",logType:r}});if(((s=e==null?void 0:e.data)==null?void 0:s.code)===200)return(o=(t=e==null?void 0:e.data)==null?void 0:t.result)==null?void 0:o.map(a=>{var l,u,c,d,y,p,g,f,v,b,_,S,h,x,B;return r==="login"?{...(u=(l=a==null?void 0:a.value)==null?void 0:l.detail)==null?void 0:u.data,timeStamp:(c=a==null?void 0:a.value)==null?void 0:c.timeStamp,id:a==null?void 0:a.id,type:(y=(d=a==null?void 0:a.value)==null?void 0:d.detail)==null?void 0:y.type}:{timeStamp:(p=a==null?void 0:a.value)==null?void 0:p.timeStamp,account:(g=a==null?void 0:a.value)==null?void 0:g.account,userName:(f=a==null?void 0:a.value)==null?void 0:f.userName,module:(b=(v=a==null?void 0:a.value)==null?void 0:v.module)!=null&&b.startsWith("/")?(S=(_=a==null?void 0:a.value)==null?void 0:_.module)==null?void 0:S.substring(1):(h=a==null?void 0:a.value)==null?void 0:h.module,id:a==null?void 0:a.id,type:(B=(x=a==null?void 0:a.value)==null?void 0:x.detail)==null?void 0:B.type}});n.ElMessage.error("获取数据响应失败")}catch{throw new Error("获取数据失败")}},T=Object.freeze(Object.defineProperty({__proto__:null,clickButton:E,getLogTableDataAsync:M,pageData:A,tableData:w},Symbol.toStringTag,{value:"Module"}));exports.State=T;exports.clickButton=E;exports.getLogTableDataAsync=M;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-DO9CT4Fd.cjs"),r=require("./index-C9Boo2Cw.cjs"),n=require("./index.vue_vue_type_style_index_1_lang-Bmwy3cgo.cjs"),c=e.defineComponent({__name:"index",setup(s){const t=e.reactive({...r.State}),a=n.useMenuState(),{activeMenuPath:u}=n.storeToRefs(a);return e.onMounted(async()=>{t.structureId=await n.getActivePageStructureId(u.value)}),(i,l)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(o.ssTable,{itemData:t.pageData,onChange:t.handleItemDataChange},null,8,["itemData","onChange"])]))}});exports.default=c;
|