ss-component-new 1.3.413 → 1.3.415
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/{MTLLoader-h7E5XE68.js → MTLLoader-DyYxQl9z.js} +1 -1
- package/dist/{MTLLoader-DNRpACBk.cjs → MTLLoader-VuBhYPg2.cjs} +1 -1
- package/dist/{OrbitControls-BvtHysy8.js → OrbitControls-BSCd7ND-.js} +1 -1
- package/dist/{OrbitControls-khnf7WST.cjs → OrbitControls-CiZN4NDf.cjs} +1 -1
- package/dist/{URDFLoader-CRfWshaH.cjs → URDFLoader-9WBWnVjI.cjs} +1 -1
- package/dist/{URDFLoader-X2G1XdU6.js → URDFLoader-CqrGjSg3.js} +2 -2
- package/dist/{animationData-DJWHLaMN.cjs → animationData-B9OmGkgD.cjs} +1 -1
- package/dist/{animationData-C9ZfpDJ6.js → animationData-CWamGwsC.js} +3 -3
- package/dist/{array-CabT1BZO.js → array-C6OdbPQ9.js} +3 -3
- package/dist/{array-Pjrqhx19.cjs → array-DmjXKlpK.cjs} +1 -1
- package/dist/{clone-BGMreHwC.js → clone-BJp5Ri0x.js} +1 -1
- package/dist/{iconfont-B2EK8Z6K.cjs → iconfont-Cg2xFape.cjs} +1 -1
- package/dist/{iconfont-CMyqVr84.js → iconfont-CgEih55H.js} +2 -2
- package/dist/icons/svg//344/277/235/345/255/230.svg +1 -0
- package/dist/{index-xbnLQTHB.cjs → index--TgqYrZc.cjs} +2 -2
- package/dist/{index-D2dAfD7a.js → index-2VBt6xDn.js} +26 -26
- package/dist/{index-6qY10EDU.cjs → index-8Urth4VT.cjs} +1 -1
- package/dist/{index-BJz8cFno.js → index-B-EizQFy.js} +11 -11
- package/dist/{index-CzCohOJs.js → index-B3Z2HbJW.js} +1 -1
- package/dist/{index-DgMFO3tR.cjs → index-B4nzrEgl.cjs} +1 -1
- package/dist/{index-B3eb4ZrH.js → index-B4ouy3El.js} +2 -2
- package/dist/{index-C_lmA_6J.js → index-B6L0_YFS.js} +16 -16
- package/dist/{index-p6CpwQMN.cjs → index-BFkLHfaL.cjs} +1 -1
- package/dist/{index-DeczKmsP.js → index-BKf-rOwE.js} +4 -4
- package/dist/index-BVigGIkW.cjs +2 -0
- package/dist/{index-BrIDhHhh.cjs → index-BgDoXxnN.cjs} +1 -1
- package/dist/{index-DxtcQSq9.js → index-BkWwwzGI.js} +1 -1
- package/dist/{index-B9F0Urrn.cjs → index-BqBbAE5x.cjs} +1 -1
- package/dist/{index-BKcGqS2K.cjs → index-BwJLSnJn.cjs} +1 -1
- package/dist/{index-DmVHcBom.js → index-C-l2XFhP.js} +2 -2
- package/dist/{index-BrXLLiec.js → index-C18GT8Jl.js} +10 -10
- package/dist/{index-C5_eoofX.cjs → index-C7FJ3zvS.cjs} +1 -1
- package/dist/{index-Byrvd7Pi.js → index-CEeOqd9g.js} +7 -7
- package/dist/{index-BCYAUped.js → index-CFgabRzj.js} +1 -1
- package/dist/{index-D4S7a5w9.js → index-CHaXvVsZ.js} +5 -5
- package/dist/{index-DNeFn8SN.js → index-CMIG3zru.js} +3856 -3816
- package/dist/{index-C_qJRxvA.js → index-CMbbPEqT.js} +1 -1
- package/dist/{index-nS7EwLm8.js → index-CPekdGe9.js} +4 -4
- package/dist/{index-DmdxDAWd.js → index-CPl5clIF.js} +1117 -1114
- package/dist/{index-FuoIHO56.cjs → index-CbbBN6_1.cjs} +1 -1
- package/dist/{index-DnvliHsl.cjs → index-CjNXRZGO.cjs} +1 -1
- package/dist/{index-eGbl5ZQl.cjs → index-CqcZ6Hbg.cjs} +1 -1
- package/dist/{index-4DF-IGFB.js → index-CxQqnPqz.js} +3 -3
- package/dist/{index-BOtlxF9O.js → index-CyU6mja2.js} +2 -2
- package/dist/{index-dZnxCBwh.js → index-D5FydX0D.js} +1 -1
- package/dist/{index-CwnvKanE.cjs → index-DAX8T606.cjs} +1 -1
- package/dist/{index-B8lMr2Mp.cjs → index-DIzwWIe-.cjs} +1 -1
- package/dist/{index-DW6ixsEr.js → index-DK1-jWC0.js} +2 -2
- package/dist/{index-DTMo9cd_.js → index-DnKH7LRu.js} +8 -8
- package/dist/{index-BpMKqUU2.js → index-Dng7AX91.js} +3 -3
- package/dist/{index-9bhd1c2V.cjs → index-FLJJKkyQ.cjs} +1 -1
- package/dist/{index-DfdoKgPR.cjs → index-I-s-QfVJ.cjs} +12 -12
- package/dist/{index-BAj6SlKb.js → index-Iv9DHqkM.js} +2 -2
- package/dist/{index-C-2J6Kku.js → index-T08rf-_2.js} +1 -1
- package/dist/{index-BBCs7jMm.js → index-aYsID9DE.js} +2 -2
- package/dist/{index-DkHH47Yv.js → index-drc5V1Xt.js} +3 -3
- package/dist/{index-Dv6dzdzF.js → index-lqX63aUO.js} +4 -4
- package/dist/{index-BC8Bm-mV.js → index-nfc2TBUK.js} +1 -1
- package/dist/{index-DH5OIznF.js → index-y-rbpKCA.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CmOw6x4x.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CkTzrR_j.cjs} +58 -58
- package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CZhofU19.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DJiOf74F.js} +1645 -1650
- package/dist/{main--YjO2IZO.cjs → main-BK6LUeIR.cjs} +1 -1
- package/dist/{main-BjUmTDiM.js → main-DLWQY8bl.js} +4 -4
- package/dist/{menuIndex-CYs0Z5X6.js → menuIndex-CmmoR6a8.js} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +11 -11
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +12 -12
- package/dist/{threeModel-CNNeUtFJ.js → threeModel-BeCt3JW8.js} +4 -4
- package/dist/{threeModel-BEtaCrs6.cjs → threeModel-D_5szEHS.cjs} +1 -1
- package/dist/{threePreview-YTAeLDjm.cjs → threePreview-BnBdOtXP.cjs} +1 -1
- package/dist/{threePreview-CtlpBQp2.js → threePreview-Dw1ZaPPj.js} +4 -4
- package/dist/{threeSceneView-D4_V5LaE.js → threeSceneView-Cy7aJHos.js} +11 -11
- package/dist/{threeSceneView-D5jxMcj5.cjs → threeSceneView-DqWt8Soc.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-BmyfetlA.js → threeSceneViewForCPMPIP-BFnW_k3q.js} +8 -8
- package/dist/{threeSceneViewForCPMPIP-XbT4MceV.cjs → threeSceneViewForCPMPIP-Cp4DP9Kz.cjs} +1 -1
- package/dist/{threeTrackPathView-DJfd2u5c.js → threeTrackPathView-LzCEZnzl.js} +4 -4
- package/dist/{threeTrackPathView-DhqxQjby.cjs → threeTrackPathView-huybE5Vr.cjs} +1 -1
- package/dist/{threeViewerHost-Cy1eWPs3.js → threeViewerHost-BOBeI0tj.js} +3 -3
- package/dist/{threeViewerHost-sDAuBggs.cjs → threeViewerHost-D64feDPk.cjs} +1 -1
- package/dist/{urdfTree-DaXi9dLr.cjs → urdfTree-BRwe0WMJ.cjs} +1 -1
- package/dist/{urdfTree-B8PQLbAY.js → urdfTree-CKYTaNXL.js} +1 -1
- package/dist/{workpieceTreePanel-CahdkilS.js → workpieceTreePanel-C4USNJhC.js} +4 -4
- package/dist/{workpieceTreePanel-CSu8xKTh.cjs → workpieceTreePanel-Dq9WGrvH.cjs} +1 -1
- package/package.json +1 -1
- package/public/icons/svg//344/277/235/345/255/230.svg +1 -0
- package/dist/index-CXLtIDd_.cjs +0 -2
- package/dist/obj/model.mtl +0 -42
- package/dist/obj/model.obj +0 -26110
- package/public/obj/model.mtl +0 -42
- package/public/obj/model.obj +0 -26110
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { watch as ze, ref as v, computed as qe, defineComponent as Ue, onMounted as Ae, reactive as $e, resolveComponent as p, createElementBlock as ue, openBlock as pe, createElementVNode as i, createVNode as a, unref as f, withCtx as l, createTextVNode as
|
|
1
|
+
import { watch as ze, ref as v, computed as qe, defineComponent as Ue, onMounted as Ae, reactive as $e, resolveComponent as p, createElementBlock as ue, openBlock as pe, createElementVNode as i, createVNode as a, unref as f, withCtx as l, createTextVNode as C, toDisplayString as we, Fragment as Fe, renderList as Re, withModifiers as Me } from "vue";
|
|
2
2
|
import { s as G, u as Ge, h as Qe } from "./request-XJsZ4h2T.js";
|
|
3
|
-
import { j as de, w as Oe } from "./index-
|
|
4
|
-
import { s as je, b as He, p as Ie, t as Je, E as Ke,
|
|
5
|
-
import { f as Ze, i as et, e as tt, a as ot } from "./index-
|
|
3
|
+
import { j as de, w as Oe } from "./index-CMbbPEqT.js";
|
|
4
|
+
import { s as je, b as He, p as Ie, t as Je, E as Ke, D as be, i as We, c as Xe, u as Ye } from "./index-Dng7AX91.js";
|
|
5
|
+
import { f as Ze, i as et, e as tt, a as ot } from "./index-B6L0_YFS.js";
|
|
6
6
|
import { _ as ce } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
|
|
7
7
|
import { s as at } from "./index-BQ9pPu8K.js";
|
|
8
8
|
import { _ as nt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
@@ -88,11 +88,11 @@ const pt = [
|
|
|
88
88
|
name: ""
|
|
89
89
|
}), y = v(N()), H = () => {
|
|
90
90
|
y.value = N();
|
|
91
|
-
},
|
|
91
|
+
}, P = v({
|
|
92
92
|
prop: "sort",
|
|
93
93
|
order: "ascending"
|
|
94
94
|
}), q = (e) => {
|
|
95
|
-
|
|
95
|
+
P.value = e;
|
|
96
96
|
}, w = v({
|
|
97
97
|
pageNum: 1,
|
|
98
98
|
pageSize: 10,
|
|
@@ -110,8 +110,8 @@ const pt = [
|
|
|
110
110
|
...y.value
|
|
111
111
|
},
|
|
112
112
|
orderBy: {
|
|
113
|
-
prop:
|
|
114
|
-
order:
|
|
113
|
+
prop: P.value.prop,
|
|
114
|
+
order: P.value.order
|
|
115
115
|
}
|
|
116
116
|
}), X = async (e) => {
|
|
117
117
|
var n;
|
|
@@ -185,12 +185,12 @@ const pt = [
|
|
|
185
185
|
platId: u.value,
|
|
186
186
|
tableType: he,
|
|
187
187
|
filter: y.value,
|
|
188
|
-
orderBy:
|
|
188
|
+
orderBy: P.value
|
|
189
189
|
}, t = await E(e);
|
|
190
190
|
return et(t), t;
|
|
191
191
|
}, F = [["名称", "编码", "状态", "排序"]];
|
|
192
192
|
return {
|
|
193
|
-
sortInfo:
|
|
193
|
+
sortInfo: P,
|
|
194
194
|
setSortInfo: q,
|
|
195
195
|
queryInfo: y,
|
|
196
196
|
resetQuery: H,
|
|
@@ -213,7 +213,7 @@ const pt = [
|
|
|
213
213
|
de.book_append_sheet(t, e, "职位"), Oe(t, "职位模板.xlsx");
|
|
214
214
|
}
|
|
215
215
|
};
|
|
216
|
-
}, ct = { class: "position-management" }, mt = { class: "header" }, ft = { class: "header-left" }, gt = { class: "query-wrapper" }, _t = { class: "header-right" }, vt = { class: "body" }, yt = { class: "position-table-wrapper" }, wt = { class: "table-wrapper" }, bt = { class: "operate-list" }, ht = ["onClick"], It = { class: "pagination-wrapper" },
|
|
216
|
+
}, ct = { class: "position-management" }, mt = { class: "header" }, ft = { class: "header-left" }, gt = { class: "query-wrapper" }, _t = { class: "header-right" }, vt = { class: "body" }, yt = { class: "position-table-wrapper" }, wt = { class: "table-wrapper" }, bt = { class: "operate-list" }, ht = ["onClick"], It = { class: "pagination-wrapper" }, Pt = { class: "position-management-wrapper" }, Ct = { class: "position-management-body" }, Dt = { class: "position-form-wrapper" }, St = { class: "edit-footer" }, Lt = { class: "footer-right" }, Et = /* @__PURE__ */ Ue({
|
|
217
217
|
__name: "index",
|
|
218
218
|
setup(u) {
|
|
219
219
|
const r = Ye(Ie), {
|
|
@@ -228,7 +228,7 @@ const pt = [
|
|
|
228
228
|
hasPositionEditAuth: y,
|
|
229
229
|
initPositionConfig: H,
|
|
230
230
|
initPositionItem: z,
|
|
231
|
-
initCreate:
|
|
231
|
+
initCreate: P,
|
|
232
232
|
initUpdate: q,
|
|
233
233
|
initDelete: me,
|
|
234
234
|
getStatusLabelByValue: w,
|
|
@@ -302,7 +302,7 @@ const pt = [
|
|
|
302
302
|
}, e = () => {
|
|
303
303
|
d.value = z(), F();
|
|
304
304
|
}, t = async () => {
|
|
305
|
-
await
|
|
305
|
+
await P(d.value), await h();
|
|
306
306
|
}, n = async () => {
|
|
307
307
|
await q(d.value), await h();
|
|
308
308
|
}, I = async (s) => {
|
|
@@ -316,12 +316,12 @@ const pt = [
|
|
|
316
316
|
}) : await t().finally(() => {
|
|
317
317
|
r.setImportLoading(!1);
|
|
318
318
|
}), e();
|
|
319
|
-
},
|
|
319
|
+
}, Pe = async (s) => {
|
|
320
320
|
if (!y.value)
|
|
321
321
|
return;
|
|
322
322
|
const { status: o } = s;
|
|
323
323
|
_.ENABLE.value === o ? s.status = _.DISABLED.value : s.status = _.ENABLE.value, await q(s), await h();
|
|
324
|
-
},
|
|
324
|
+
}, Ce = async () => {
|
|
325
325
|
await De();
|
|
326
326
|
}, De = async () => {
|
|
327
327
|
const s = document.createElement("input");
|
|
@@ -360,7 +360,7 @@ const pt = [
|
|
|
360
360
|
onClick: b
|
|
361
361
|
}, {
|
|
362
362
|
default: l(() => o[5] || (o[5] = [
|
|
363
|
-
|
|
363
|
+
C("查询")
|
|
364
364
|
])),
|
|
365
365
|
_: 1,
|
|
366
366
|
__: [5]
|
|
@@ -371,7 +371,7 @@ const pt = [
|
|
|
371
371
|
onClick: te
|
|
372
372
|
}, {
|
|
373
373
|
default: l(() => o[6] || (o[6] = [
|
|
374
|
-
|
|
374
|
+
C("重置")
|
|
375
375
|
])),
|
|
376
376
|
_: 1,
|
|
377
377
|
__: [6]
|
|
@@ -381,10 +381,10 @@ const pt = [
|
|
|
381
381
|
i("div", _t, [
|
|
382
382
|
a(g, {
|
|
383
383
|
type: "primary",
|
|
384
|
-
onClick:
|
|
384
|
+
onClick: Ce
|
|
385
385
|
}, {
|
|
386
386
|
default: l(() => [
|
|
387
|
-
o[7] || (o[7] =
|
|
387
|
+
o[7] || (o[7] = C(" 导入 ")),
|
|
388
388
|
a(x, { class: "el-icon--right" }, {
|
|
389
389
|
default: l(() => [
|
|
390
390
|
a(f(Ge))
|
|
@@ -401,14 +401,14 @@ const pt = [
|
|
|
401
401
|
default: l(() => [
|
|
402
402
|
a(le, { onClick: Le }, {
|
|
403
403
|
default: l(() => o[9] || (o[9] = [
|
|
404
|
-
|
|
404
|
+
C("导出模板")
|
|
405
405
|
])),
|
|
406
406
|
_: 1,
|
|
407
407
|
__: [9]
|
|
408
408
|
}),
|
|
409
409
|
a(le, { onClick: Se }, {
|
|
410
410
|
default: l(() => o[10] || (o[10] = [
|
|
411
|
-
|
|
411
|
+
C("导出数据")
|
|
412
412
|
])),
|
|
413
413
|
_: 1,
|
|
414
414
|
__: [10]
|
|
@@ -420,7 +420,7 @@ const pt = [
|
|
|
420
420
|
default: l(() => [
|
|
421
421
|
a(g, { type: "primary" }, {
|
|
422
422
|
default: l(() => [
|
|
423
|
-
o[8] || (o[8] =
|
|
423
|
+
o[8] || (o[8] = C(" 导出 ")),
|
|
424
424
|
a(x, { class: "el-icon--right" }, {
|
|
425
425
|
default: l(() => [
|
|
426
426
|
a(f(Qe))
|
|
@@ -473,10 +473,10 @@ const pt = [
|
|
|
473
473
|
class: "status-tag",
|
|
474
474
|
type: f(J)(c.row.status),
|
|
475
475
|
title: "点击切换",
|
|
476
|
-
onClick: (M) =>
|
|
476
|
+
onClick: (M) => Pe(c.row)
|
|
477
477
|
}, {
|
|
478
478
|
default: l(() => [
|
|
479
|
-
|
|
479
|
+
C(we(f(w)(c.row.status)), 1)
|
|
480
480
|
]),
|
|
481
481
|
_: 2
|
|
482
482
|
}, 1032, ["type", "onClick"])
|
|
@@ -539,12 +539,12 @@ const pt = [
|
|
|
539
539
|
appendToBody: !1
|
|
540
540
|
}, {
|
|
541
541
|
default: l(() => [
|
|
542
|
-
i("div",
|
|
542
|
+
i("div", Pt, [
|
|
543
543
|
o[12] || (o[12] = i("div", { class: "position-management-header" }, [
|
|
544
544
|
i("div", { class: "header-left" }),
|
|
545
545
|
i("div", { class: "header-right" })
|
|
546
546
|
], -1)),
|
|
547
|
-
i("div",
|
|
547
|
+
i("div", Ct, [
|
|
548
548
|
i("div", Dt, [
|
|
549
549
|
a(Ne, {
|
|
550
550
|
class: "position-edit-form",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./index-D7YfQdNJ.cjs"),_=require("./index
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./index-D7YfQdNJ.cjs"),_=require("./index--TgqYrZc.cjs"),m=require("./index-BOkUwKV5.cjs"),h=require("./index-I-s-QfVJ.cjs"),l=require("./index-Pve69buQ.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),f={class:"menu-module"},k={class:"table-wrap","element-loading-text":"加载中..."},v={class:"module-dialog-default"},x=e.defineComponent({__name:"index",setup(b){const t=e.reactive({...p.State}),a=e.ref(null),c=l.useMenuState(l.pinia),{configMenu:n}=l.storeToRefs(c);return e.onMounted(()=>{var i;t.formatFormData(n.value),e.nextTick(()=>{var o,r;(r=a.value)==null||r.setCurrentKey((o=n.value)==null?void 0:o.path),c.setActiveMenuPath("/平台管理/菜单管理")}),n.value&&t.getInitialSubStructure((i=n.value)==null?void 0:i.path)}),(i,o)=>{const r=e.resolveComponent("el-tree"),s=e.resolveComponent("el-splitter-panel"),u=e.resolveComponent("el-splitter"),d=e.resolveComponent("el-button"),g=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",f,[e.createVNode(u,null,{default:e.withCtx(()=>[e.createVNode(s,{size:208,class:"tree-wrap",min:200},{default:e.withCtx(()=>[e.createVNode(r,{ref_key:"treeRef",ref:a,data:t.treeData,"expand-on-click-node":!1,"node-key":"path",props:{children:"children",label:"label",path:"path"},"highlight-current":"","default-expand-all":"","check-on-click-leaf":!1,"check-strictly":"",onNodeClick:t.clickNodeTrigger},null,8,["data","onNodeClick"])]),_:1}),e.createVNode(s,{min:500},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",k,[e.createVNode(_.ssTable,{itemData:t.menuPageData,changedContent:t.changedRow,operatingForm:t.operatingForm,onOnFormChange:t.changeTrigger,onChange:t.handleItemDataChange,onClickTrigger:t.clickTrigger,onOnButtonClick:t.clickRowButton},null,8,["itemData","changedContent","operatingForm","onOnFormChange","onChange","onClickTrigger","onOnButtonClick"])])),[[g,t.tableLoading]])]),_:1})]),_:1}),e.createVNode(m.ssDialog,{class:"module-dialog",title:t.dialogInfo.title,visible:t.dialogInfo.show,width:t.dialogInfo.width,onBeforeDestroy:t.beforeDialogDestroy},{default:e.withCtx(()=>[e.createElementVNode("div",v,[e.createVNode(h.ssForm,{rowContents:t.renderFormData,isEnableWrap:!1,isEdit:!0,onChange:t.changeTrigger,onClickTrigger:t.clickTrigger},null,8,["rowContents","onChange","onClickTrigger"])])]),footer:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(d,{onClick:t.beforeDialogDestroy,id:"themeBorderButton"},{default:e.withCtx(()=>o[0]||(o[0]=[e.createTextVNode("取消")])),_:1,__:[0]},8,["onClick"]),e.createVNode(d,{id:"themeButton",onClick:t.clickSubmitForm},{default:e.withCtx(()=>o[1]||(o[1]=[e.createTextVNode(" 确认 ")])),_:1,__:[1]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])])}}}),w=C._export_sfc(x,[["__scopeId","data-v-74868a06"]]);exports.default=w;
|
|
@@ -3,23 +3,23 @@ var wp = (e, a, r) => a in e ? xp(e, a, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var zi = (e, a, r) => wp(e, typeof a != "symbol" ? a + "" : a, r);
|
|
4
4
|
import { ref as ne, watch as hl, nextTick as Wr, resolveComponent as kl, createBlock as cl, openBlock as ue, withCtx as je, createElementVNode as pe, renderSlot as tn, defineComponent as ei, computed as Wl, createElementBlock as Ge, createCommentVNode as Ol, normalizeStyle as Vr, toDisplayString as Ja, onMounted as an, onUnmounted as au, withModifiers as Br, createVNode as Re, createTextVNode as bl, Fragment as Ll, renderList as Gl, normalizeClass as Bi, onBeforeUnmount as Zs, unref as Pl, createSlots as lu, mergeProps as ru, resolveDynamicComponent as qi, shallowRef as Nc, reactive as mi, getCurrentInstance as $c, inject as $t, provide as Hs, toRef as Sp, onBeforeMount as Rc, watchEffect as Ap, getCurrentScope as Tp, onScopeDispose as Ep, toRefs as Nu, withDirectives as Dp, vShow as zp } from "vue";
|
|
5
5
|
import { o as Ip, q as Op, E as Dl, b as Ci, l as Pc, i as $u, a as Ru, ar as jc, as as Mp, at as Cp, au as xt, aq as Pu } from "./request-XJsZ4h2T.js";
|
|
6
|
-
import { j as on, c as Ce, s as lr, h as Mn, p as Xl, u as _n, i as zn, b as Cn, o as Hc, a as xn, a7 as Bo, a6 as iu, a4 as bo, r as Qs, a8 as fn, g as wi, n as Lo, m as Io, E as Ji, w as Fs, a9 as Bp, aa as ko, ab as Lp, ac as Np, a2 as $p } from "./index-
|
|
7
|
-
import { S as Rp, b as Jr, _ as ju, f as Pp, h as Fc, i as ks, j as Go, a as yr, k as jp, d as nu, e as Hp, c as Fp, l as Up, m as Wp } from "./index-
|
|
8
|
-
import { f as Fa, A as No, B as Us, g as Hr, C as qp, k as Yo, D as Rt, t as $o, E as Kp, F as Gp, G as Yp, d as xs, H as Vs, r as Jp, j as Ws, I as Xp, c as gi, b as ws, J as Zp, u as su, K as Ni, L as Jo, M as Qp, N as Vp, O as ef, P as af, s as Dn, l as lf, Q as rf, w as nf, R as sf, S as of, T as tf, U as Uc, V as Ii, W as gs, X as hn, Y as Xn, Z as wt, _ as uf, o as cf, $ as St, a0 as df, a1 as pf } from "./index-
|
|
6
|
+
import { j as on, c as Ce, s as lr, h as Mn, p as Xl, u as _n, i as zn, b as Cn, o as Hc, a as xn, a7 as Bo, a6 as iu, a4 as bo, r as Qs, a8 as fn, g as wi, n as Lo, m as Io, E as Ji, w as Fs, a9 as Bp, aa as ko, ab as Lp, ac as Np, a2 as $p } from "./index-Dng7AX91.js";
|
|
7
|
+
import { S as Rp, b as Jr, _ as ju, f as Pp, h as Fc, i as ks, j as Go, a as yr, k as jp, d as nu, e as Hp, c as Fp, l as Up, m as Wp } from "./index-CPl5clIF.js";
|
|
8
|
+
import { f as Fa, A as No, B as Us, g as Hr, C as qp, k as Yo, D as Rt, t as $o, E as Kp, F as Gp, G as Yp, d as xs, H as Vs, r as Jp, j as Ws, I as Xp, c as gi, b as ws, J as Zp, u as su, K as Ni, L as Jo, M as Qp, N as Vp, O as ef, P as af, s as Dn, l as lf, Q as rf, w as nf, R as sf, S as of, T as tf, U as Uc, V as Ii, W as gs, X as hn, Y as Xn, Z as wt, _ as uf, o as cf, $ as St, a0 as df, a1 as pf } from "./index-CMbbPEqT.js";
|
|
9
9
|
import { _ as fr } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
-
import { r as ff, I as Hu, J as hf, K as vf, C as yf, c as At, u as Wc, N as Rs, O as gf, Q as qc, R as Kc, s as Tt, U as mf, t as bf, h as Kn, B as kf, V as Et, Y as Fu, k as ps, l as Ns, Z as _f, w as xf, _ as wf, $ as Sf, a0 as Gc, d as Yc } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-
|
|
10
|
+
import { r as ff, I as Hu, J as hf, K as vf, C as yf, c as At, u as Wc, N as Rs, O as gf, Q as qc, R as Kc, s as Tt, U as mf, t as bf, h as Kn, B as kf, V as Et, Y as Fu, k as ps, l as Ns, Z as _f, w as xf, _ as wf, $ as Sf, a0 as Gc, d as Yc } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DJiOf74F.js";
|
|
11
11
|
import { s as Yr } from "./index-BQ9pPu8K.js";
|
|
12
|
-
import { a as Jc, T as Xc } from "./threeViewerHost-
|
|
12
|
+
import { a as Jc, T as Xc } from "./threeViewerHost-BOBeI0tj.js";
|
|
13
13
|
import { g as ys, u as Pt, c as Zc, a as eo, e as ou, b as Ro } from "./index-DUq4XELr.js";
|
|
14
|
-
import { a as Af, s as Tf } from "./index-
|
|
15
|
-
import { u as Qc } from "./index-
|
|
14
|
+
import { a as Af, s as Tf } from "./index-BKf-rOwE.js";
|
|
15
|
+
import { u as Qc } from "./index-B6L0_YFS.js";
|
|
16
16
|
/* empty css */
|
|
17
17
|
import { i as Po } from "./isString-ChmgnNIb.js";
|
|
18
18
|
import { _ as Uu } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
|
|
19
19
|
import Vc from "./index-rlStojTL.js";
|
|
20
|
-
import { s as Ef } from "./index-
|
|
21
|
-
import { S as Dt, O as zt, M as It } from "./MTLLoader-
|
|
22
|
-
import { U as Df } from "./URDFLoader-
|
|
20
|
+
import { s as Ef } from "./index-nfc2TBUK.js";
|
|
21
|
+
import { S as Dt, O as zt, M as It } from "./MTLLoader-DyYxQl9z.js";
|
|
22
|
+
import { U as Df } from "./URDFLoader-CqrGjSg3.js";
|
|
23
23
|
var zf = "[object Boolean]";
|
|
24
24
|
function ed(e) {
|
|
25
25
|
return e === !0 || e === !1 || Ip(e) && Op(e) == zf;
|
|
@@ -22943,7 +22943,7 @@ const R5 = {
|
|
|
22943
22943
|
}, null, 8, ["modelValue", "content"])
|
|
22944
22944
|
]));
|
|
22945
22945
|
}
|
|
22946
|
-
}), W5 = /* @__PURE__ */ fr(U5, [["__scopeId", "data-v-
|
|
22946
|
+
}), W5 = /* @__PURE__ */ fr(U5, [["__scopeId", "data-v-ed48c2f8"]]), q5 = /* @__PURE__ */ ei({
|
|
22947
22947
|
__name: "index",
|
|
22948
22948
|
props: {
|
|
22949
22949
|
itemData: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as l, defineComponent as m, createElementBlock as f, openBlock as p, createElementVNode as e, createVNode as u, unref as t } from "vue";
|
|
2
|
-
import { V as C } from "./index-
|
|
2
|
+
import { V as C } from "./index-B-EizQFy.js";
|
|
3
3
|
import { _ as g } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const b = () => {
|
|
5
5
|
const i = l("日志管理"), o = l(), a = l([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),ee=require("./request-Dl8yi2iS.cjs"),N=require("./index-DBxrIHI8.cjs"),L=require("./index-Pve69buQ.cjs"),oe=require("./index-BOkUwKV5.cjs");require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CmOw6x4x.cjs");require("./index-xbnLQTHB.cjs");require("./index-BpPyaNFa.cjs");const b=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs");require("./index-BszVYrt4.cjs");require("./index-9bhd1c2V.cjs");const z=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),te=require("./clone-ex65UiGA.cjs"),je={class:"param-auth"},Ge={class:"body"},Qe={class:"node-content-wrapper"},He={class:"node-label-wrapper"},Je={class:"node-label"},We=e.defineComponent({__name:"index",props:{params:{},checkedParams:{}},setup($,{expose:E}){const c=$,y={value:"uniqueKey",label:"label",children:"children",class:f=>{}},{buildParamAuthTree:g}=N.useRole(),p=e.ref(),w=e.computed(()=>g(c.params)),i=e.computed(()=>c.checkedParams.map(f=>`${f.id}_${f.prop}`));return E({getCheckedParams:()=>{var d;return((d=p.value)==null?void 0:d.getCheckedNodes())||[]}}),(f,d)=>{const v=e.resolveComponent("el-tree");return e.openBlock(),e.createElementBlock("div",je,[d[0]||(d[0]=e.createElementVNode("div",{class:"header"},[e.createElementVNode("div",{class:"header-left"}),e.createElementVNode("div",{class:"header-right"})],-1)),e.createElementVNode("div",Ge,[e.createVNode(v,{ref_key:"paramTreeRef",ref:p,class:"param-tree",data:w.value,props:y,"node-key":"uniqueKey","show-checkbox":"","default-expanded-keys":i.value,"default-checked-keys":i.value,height:"100%"},{default:e.withCtx(({node:u,data:P})=>[e.createElementVNode("div",Qe,[e.createElementVNode("div",He,[e.createElementVNode("div",Je,e.toDisplayString(u.label),1)])])]),_:1},8,["data","default-expanded-keys","default-checked-keys"])]),d[1]||(d[1]=e.createElementVNode("div",{class:"footer"},[e.createElementVNode("div",{class:"footer-left"}),e.createElementVNode("div",{class:"footer-right"})],-1))])}}}),Xe=z._export_sfc(We,[["__scopeId","data-v-b7ce5c18"]]),Ye={class:"param-wrapper"},Ze={class:"param-body"},et={class:"role-form-wrapper"},tt={class:"edit-footer"},ot={class:"footer-right"},at=e.defineComponent({__name:"index",props:{params:{},checkedParams:{}},emits:["updateParams"],setup($,{expose:E,emit:c}){const y=c,g=e.ref(),p=e.ref(!1),w=()=>{p.value=!0},i=()=>{p.value=!1},_=()=>{i()},f=()=>{const v=d();y("updateParams",v),i()},d=()=>{var u;return((u=g.value)==null?void 0:u.getCheckedParams())||[]};return E({openEditDialog:w}),(v,u)=>(e.openBlock(),e.createBlock(oe.ssDialog,{class:"param-edit-dialog",visible:p.value,title:"参数权限",onBeforeDestroy:i,showClose:!0,closeOnClickModal:!1,closeOnPressEscape:!1,modalClass:"role-edit-modal",alignCenter:!0,appendToBody:!1},{default:e.withCtx(()=>[e.createElementVNode("div",Ye,[u[0]||(u[0]=e.createElementVNode("div",{class:"param-header"},[e.createElementVNode("div",{class:"header-left"}),e.createElementVNode("div",{class:"header-right"})],-1)),e.createElementVNode("div",Ze,[e.createElementVNode("div",et,[e.createVNode(Xe,{ref_key:"paramAuthTree",ref:g,params:v.params,"checked-params":v.checkedParams},null,8,["params","checked-params"])])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",tt,[u[1]||(u[1]=e.createElementVNode("div",{class:"footer-left"},null,-1)),e.createElementVNode("div",ot,[e.createVNode(b._sfc_main,{class:"cancel",emptyColor:!0,onClickTrigger:_,modelValue:"取消",buttonType:"info"}),e.createVNode(b._sfc_main,{class:"confirm",emptyColor:!0,onClickTrigger:f,modelValue:"确定",buttonType:"primary"})])])]),_:1},8,["visible"]))}}),lt=z._export_sfc(at,[["__scopeId","data-v-875ed466"]]),rt={class:"scope-management-wrapper"},nt={class:"scope-management-body"},st={class:"scope-form-wrapper"},it={class:"edit-footer"},ct={class:"footer-right"},dt=e.defineComponent({__name:"index",emits:["confirm"],setup($,{expose:E,emit:c}){const y=c,{initDepartmentScope:g}=L.useDataPermission(),p=e.ref(),w=e.reactive({departmentScope:[{required:!0,message:"请输入角色名称",trigger:"change"}]}),i=e.ref(g()),_=e.ref(!1),f=()=>{_.value=!0},d=()=>{_.value=!1},v=async h=>{i.value=te.clone(h),f()},u=()=>{i.value=g(),d()},P=async()=>{var h,m;await((m=(h=p.value)==null?void 0:h.validate)==null?void 0:m.call(h)),y("confirm",te.clone(i.value)),u()};return E({handleEdit:v}),(h,m)=>{const U=e.resolveComponent("el-radio"),M=e.resolveComponent("el-radio-group"),K=e.resolveComponent("el-form-item"),j=e.resolveComponent("el-col"),G=e.resolveComponent("el-row"),Q=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(oe.ssDialog,{class:"scope-edit-dialog",visible:_.value,title:"数据权限",onBeforeDestroy:d,showClose:!0,closeOnClickModal:!1,closeOnPressEscape:!1,modalClass:"scope-edit-modal",alignCenter:!0,appendToBody:!1},{default:e.withCtx(()=>[e.createElementVNode("div",rt,[m[1]||(m[1]=e.createElementVNode("div",{class:"scope-management-header"},[e.createElementVNode("div",{class:"header-left"}),e.createElementVNode("div",{class:"header-right"})],-1)),e.createElementVNode("div",nt,[e.createElementVNode("div",st,[e.createVNode(Q,{class:"scope-edit-form",ref_key:"scopeFormRef",ref:p,model:i.value,rules:w},{default:e.withCtx(()=>[e.createVNode(G,{gutter:20},{default:e.withCtx(()=>[e.createVNode(j,{span:24},{default:e.withCtx(()=>[e.createVNode(K,{prop:"departmentScope",label:"部门权限范围","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(M,{modelValue:i.value.departmentScope,"onUpdate:modelValue":m[0]||(m[0]=C=>i.value.departmentScope=C)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(L.departmentScopeOptions),C=>(e.openBlock(),e.createBlock(U,{key:C.value,value:C.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",it,[m[2]||(m[2]=e.createElementVNode("div",{class:"footer-left"},null,-1)),e.createElementVNode("div",ct,[e.createVNode(b._sfc_main,{class:"cancel",emptyColor:!0,onClickTrigger:u,modelValue:"取消",buttonType:"info"}),e.createVNode(b._sfc_main,{class:"confirm",emptyColor:!0,onClickTrigger:P,modelValue:"确定",buttonType:"primary"})])])]),_:1},8,["visible"])}}}),ut=z._export_sfc(dt,[["__scopeId","data-v-40d37c72"]]),pt={class:"role-management"},mt={class:"header"},_t={class:"header-left"},ft={class:"query-wrapper"},vt={class:"header-right"},Vt={class:"body"},gt={class:"role-table-wrapper"},ht={class:"operate-list"},Ct=["onClick"],Nt={class:"pagination-wrapper"},yt={class:"role-management-wrapper"},wt={class:"role-management-body"},kt={class:"role-form-wrapper"},Et={class:"auth-tree-wrapper"},xt={class:"node-content-wrapper"},bt={class:"node-label-wrapper"},Tt={class:"node-label"},Pt={key:0,class:"status-tag"},Bt={key:1,class:"status-tag"},Dt={key:2,class:"status-tag"},St={key:3,class:"status-tag"},Lt={class:"edit-footer"},$t={class:"footer-right"},It=e.defineComponent({__name:"index",setup($){const E={value:"id",label:"label",children:"children"},c=L.useMenuState(L.pinia),{initDepartmentScope:y,recAndInitNodeDataPermission:g}=L.useDataPermission(),{initRoleItem:p,queryInfo:w,resetQuery:i,pageInfo:_,setPageNum:f,setPageSize:d,initGetByPage:v,initCreate:u,initUpdate:P,initDelete:h,propertyAuthTree:m,initPropertyAuthTree:U,getStatusLabelByValue:M,getStatusTagByValue:K,getFeatureStatusLabelByValue:j,getFeatureStatusTagByValue:G,initRoleConfig:Q,hasRoleEditAuth:C,isTableFeature:fe,initImport:ve,initExport:Ve,exportTemplate:ge}=N.useRole(),ae=e.ref([]),he=async()=>{const o=await v(),{roleData:t=[]}=o;return t},B=async()=>{ae.value=await he()},Ce=o=>{f(o),B()},Ne=o=>{d(o),B()},ye=async()=>{i(),c.setImportLoading(!0),await B().finally(()=>{c.setImportLoading(!1)})},T=async()=>{await B(),await Q()};e.onMounted(()=>{T()});const le=e.ref(),we=e.reactive({name:[{required:!0,message:"请输入角色名称",trigger:"blur"}]}),I=e.ref(),q=e.ref(""),n=e.ref(p());e.watch(q,o=>{I.value.filter(o)});const ke=(o,t)=>o?t.label.includes(o):!0,re=e.ref([]),R=e.ref(),Ee=(o,t)=>{var a;o.stopPropagation(),re.value=t.params||[],(a=R==null?void 0:R.value)==null||a.openEditDialog()},xe=o=>{var s;const t=(s=o==null?void 0:o[0])==null?void 0:s.id,a=n.value.params.filter(V=>V.id!==t);n.value.params=[...a,...o]},H=e.ref(!1),be=()=>{H.value=!0},ne=()=>{q.value="",H.value=!1},se=async o=>{if(!C.value)return;const t=[];o&&t.push(o.role_id),await U(t);let a={};o!=null&&o.role_id||(a={checkAll:!0,tree:m.value}),n.value=p(o,a),be()},ie=()=>{n.value=p(),ne()},Te=async()=>{var a,s,V;await((s=(a=le.value)==null?void 0:a.validate)==null?void 0:s.call(a));let o=((V=I.value)==null?void 0:V.getCheckedNodes())||[];o=o.filter(k=>k.isPropertyLeaf),o=o.map(k=>{const{departmentScope:X}=k.dataPermission||{};return{...k,department_scope:X}}),n.value.main_ids=o;const{role_id:t}=n.value;t?await De():await Be(),ie()},Pe=async o=>{if(!C.value)return;const{status:t}=o;N.statusConstants.ENABLE.value===t?o.status=N.statusConstants.DISABLED.value:o.status=N.statusConstants.ENABLE.value,await P(o),await T()},Be=async()=>{await u(n.value),await T()},De=async()=>{await P(n.value),await T()},Se=async o=>{await h(o),await T()},Le=async(o,t)=>{if(!C.value)return;const{value:a}=o,s=t.row;if(a==="edit"){se(s);return}if(a==="delete"){await Se(s);return}},$e=async(o,t)=>{o.stopPropagation();const{status:a}=t;N.featureStatusConstants.EDITABLE.value===a?t.status=N.featureStatusConstants.DISABLED.value:t.status=N.featureStatusConstants.EDITABLE.value},J=o=>{var a;return(((a=I.value)==null?void 0:a.getCheckedKeys(!0))||[]).includes(o.id)},ce=e.ref(),A=e.ref(),W=e.ref(y()),de=(o,t)=>{var a;o.stopPropagation(),A.value=t,t.isPropertyLeaf&&(W.value=te.clone(t.dataPermission)),t.isProperty||(W.value=y("")),(a=ce.value)==null||a.handleEdit(W.value)},Ie=o=>{const{isProperty:t,isPropertyLeaf:a}=A.value;if(a){A.value.dataPermission=o;return}if(!t){g(A.value,o);return}},qe=async()=>{await Re()},Re=async()=>{const o=document.createElement("input");o.type="file",o.accept=".xlsx",o.onchange=async t=>{var V;const s=(V=t.target.files)==null?void 0:V[0];if(s)try{c.setImportLoading(!0),await ve(s),await T(),c.setImportLoading(!1)}catch{c.setImportLoading(!1)}},o.click()},Ae=async()=>{c.setImportLoading(!0),await Ve().finally(()=>{c.setImportLoading(!1)})},Fe=async()=>{ge()};return(o,t)=>{var ue,pe,me,_e;const a=e.resolveComponent("el-input"),s=e.resolveComponent("el-button"),V=e.resolveComponent("el-icon"),k=e.resolveComponent("el-dropdown-item"),X=e.resolveComponent("el-dropdown-menu"),Oe=e.resolveComponent("el-dropdown"),D=e.resolveComponent("el-table-column"),S=e.resolveComponent("el-tag"),ze=e.resolveComponent("el-table"),Ue=e.resolveComponent("el-pagination"),F=e.resolveComponent("el-form-item"),O=e.resolveComponent("el-col"),Y=e.resolveComponent("el-row"),Me=e.resolveComponent("el-tree"),Ke=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",pt,[e.createElementVNode("div",mt,[e.createElementVNode("div",_t,[e.createElementVNode("div",ft,[e.createVNode(a,{modelValue:e.unref(w).name,"onUpdate:modelValue":t[0]||(t[0]=l=>e.unref(w).name=l),style:{width:"240px"},placeholder:"请输入名称"},null,8,["modelValue"]),e.createVNode(s,{type:"primary",onClick:B},{default:e.withCtx(()=>t[6]||(t[6]=[e.createTextVNode("查询")])),_:1,__:[6]}),e.createVNode(s,{type:"primary",plain:"",onClick:ye},{default:e.withCtx(()=>t[7]||(t[7]=[e.createTextVNode("重置")])),_:1,__:[7]})])]),e.createElementVNode("div",vt,[e.createVNode(s,{type:"primary",onClick:qe},{default:e.withCtx(()=>[t[8]||(t[8]=e.createTextVNode(" 导入 ")),e.createVNode(V,{class:"el-icon--right"},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.upload_default))]),_:1})]),_:1,__:[8]}),e.createVNode(Oe,null,{dropdown:e.withCtx(()=>[e.createVNode(X,null,{default:e.withCtx(()=>[e.createVNode(k,{onClick:Fe},{default:e.withCtx(()=>t[10]||(t[10]=[e.createTextVNode("导出模板")])),_:1,__:[10]}),e.createVNode(k,{onClick:Ae},{default:e.withCtx(()=>t[11]||(t[11]=[e.createTextVNode("导出数据")])),_:1,__:[11]})]),_:1})]),default:e.withCtx(()=>[e.createVNode(s,{type:"primary"},{default:e.withCtx(()=>[t[9]||(t[9]=e.createTextVNode(" 导出 ")),e.createVNode(V,{class:"el-icon--right"},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.arrow_down_default))]),_:1})]),_:1,__:[9]})]),_:1}),e.createVNode(b._sfc_main,{emptyColor:!0,onClickTrigger:t[1]||(t[1]=l=>se()),modelValue:"创建角色",buttonType:"primary"})])]),e.createElementVNode("div",Vt,[e.createElementVNode("div",gt,[e.createVNode(ze,{class:"role-table",data:ae.value,"empty-text":""},{default:e.withCtx(()=>[e.createVNode(D,{prop:"name",label:"名称",align:"center"}),e.createVNode(D,{prop:"code",label:"编码",align:"center"}),e.createVNode(D,{prop:"remark",label:"备注",align:"center"}),e.createVNode(D,{prop:"status",label:"状态",align:"center"},{default:e.withCtx(l=>[e.createVNode(S,{class:"status-tag",type:e.unref(K)(l.row.status),title:"点击切换",onClick:r=>Pe(l.row)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(M)(l.row.status)),1)]),_:2},1032,["type","onClick"])]),_:1}),e.createVNode(D,{label:"操作",align:"center"},{default:e.withCtx(l=>[e.createElementVNode("div",ht,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(N.operateList),r=>(e.openBlock(),e.createElementBlock("div",{class:"operate-item",key:r.value,onClick:e.withModifiers(Z=>Le(r,l),["stop"])},e.toDisplayString(r.label),9,Ct))),128))])]),_:1})]),_:1},8,["data"])]),e.createElementVNode("div",Nt,[t[12]||(t[12]=e.createElementVNode("div",null,null,-1)),e.createVNode(Ue,{onSizeChange:Ne,onCurrentChange:Ce,"current-page":(ue=e.unref(_))==null?void 0:ue.pageNum,"page-sizes":(pe=e.unref(_))==null?void 0:pe.pageSizes,"page-size":((me=e.unref(_))==null?void 0:me.pageSize)??10,layout:"total, sizes, prev, pager, next, jumper",total:((_e=e.unref(_))==null?void 0:_e.total)??0},null,8,["current-page","page-sizes","page-size","total"])])]),t[13]||(t[13]=e.createElementVNode("div",{class:"footer"},[e.createElementVNode("div",{class:"footer-left"}),e.createElementVNode("div",{class:"footer-right"})],-1))]),e.createVNode(oe.ssDialog,{class:"role-edit-dialog",visible:H.value,title:"角色信息",onBeforeDestroy:ne,showClose:!0,closeOnClickModal:!1,closeOnPressEscape:!1,modalClass:"role-edit-modal",alignCenter:!0,appendToBody:!1},{default:e.withCtx(()=>[e.createElementVNode("div",yt,[t[17]||(t[17]=e.createElementVNode("div",{class:"role-management-header"},[e.createElementVNode("div",{class:"header-left"}),e.createElementVNode("div",{class:"header-right"})],-1)),e.createElementVNode("div",wt,[e.createElementVNode("div",kt,[e.createVNode(Ke,{class:"role-edit-form",ref_key:"roleFormRef",ref:le,model:n.value,rules:we},{default:e.withCtx(()=>[e.createVNode(Y,{gutter:20},{default:e.withCtx(()=>[e.createVNode(O,{span:12},{default:e.withCtx(()=>[e.createVNode(F,{prop:"name",label:"角色名称","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:n.value.name,"onUpdate:modelValue":t[2]||(t[2]=l=>n.value.name=l),"aria-label":"角色名称",placeholder:"角色名称"},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(O,{span:12},{default:e.withCtx(()=>[e.createVNode(F,{label:"角色编码","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:n.value.code,"onUpdate:modelValue":t[3]||(t[3]=l=>n.value.code=l),"aria-label":"角色编码",placeholder:"角色编码"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(Y,{gutter:20},{default:e.withCtx(()=>[e.createVNode(O,{span:12},{default:e.withCtx(()=>[e.createVNode(F,{label:"备注","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:n.value.remark,"onUpdate:modelValue":t[4]||(t[4]=l=>n.value.remark=l),"aria-label":"备注",placeholder:"备注"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(Y,{class:"auth-tree-row",gutter:20},{default:e.withCtx(()=>[e.createVNode(O,{span:24},{default:e.withCtx(()=>[e.createVNode(F,{label:"特性权限","label-position":"top"},{default:e.withCtx(()=>[e.createElementVNode("div",Et,[e.createVNode(a,{modelValue:q.value,"onUpdate:modelValue":t[5]||(t[5]=l=>q.value=l)},{prefix:e.withCtx(()=>[e.createVNode(V,{class:"el-input__icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.search_default))]),_:1})]),_:1},8,["modelValue"]),e.createVNode(Me,{ref_key:"propertyTreeRef",ref:I,class:"auth-tree",data:e.unref(m),props:E,"node-key":"id","show-checkbox":"","default-expanded-keys":n.value.checked_ids,"default-checked-keys":n.value.checked_ids,"filter-node-method":ke},{default:e.withCtx(({node:l,data:r})=>{var Z;return[e.createElementVNode("div",xt,[e.createElementVNode("div",bt,[e.createElementVNode("div",Tt,e.toDisplayString(l.label),1)]),r.isPropertyLeaf&&J(r)?(e.openBlock(),e.createElementBlock("div",Pt,[e.createVNode(S,{class:"status-tag",type:e.unref(G)(r.status),title:"点击切换",onClick:x=>$e(x,r)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(j)(r.status)),1)]),_:2},1032,["type","onClick"])])):e.createCommentVNode("",!0),r.isProperty&&J(r)&&((Z=r.params)==null?void 0:Z.length)>0?(e.openBlock(),e.createElementBlock("div",Bt,[e.createVNode(S,{class:"status-tag",type:"success",onClick:x=>Ee(x,r)},{default:e.withCtx(()=>t[14]||(t[14]=[e.createTextVNode(" 参数设置 ")])),_:2,__:[14]},1032,["onClick"])])):e.createCommentVNode("",!0),r.isPropertyLeaf&&J(r)&&e.unref(fe)(r)?(e.openBlock(),e.createElementBlock("div",Dt,[e.createVNode(S,{class:"status-tag",type:"warning",onClick:x=>de(x,r)},{default:e.withCtx(()=>t[15]||(t[15]=[e.createTextVNode(" 数据权限 ")])),_:2,__:[15]},1032,["onClick"])])):e.createCommentVNode("",!0),l.level==1&&l.checked&&!r.isProperty?(e.openBlock(),e.createElementBlock("div",St,[e.createVNode(S,{class:"status-tag",type:"warning",onClick:x=>de(x,r)},{default:e.withCtx(()=>t[16]||(t[16]=[e.createTextVNode(" 数据权限重置 ")])),_:2,__:[16]},1032,["onClick"])])):e.createCommentVNode("",!0)])]}),_:1},8,["data","default-expanded-keys","default-checked-keys"])])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",Lt,[t[18]||(t[18]=e.createElementVNode("div",{class:"footer-left"},null,-1)),e.createElementVNode("div",$t,[e.createVNode(b._sfc_main,{class:"cancel",emptyColor:!0,onClickTrigger:ie,modelValue:"取消",buttonType:"info"}),e.createVNode(b._sfc_main,{class:"confirm",emptyColor:!0,onClickTrigger:Te,modelValue:"确定",buttonType:"primary"})])])]),_:1},8,["visible"]),e.createVNode(lt,{ref_key:"paramAuthDialog",ref:R,params:re.value,"checked-params":n.value.params,onUpdateParams:xe},null,8,["params","checked-params"]),e.createVNode(ut,{ref_key:"scopeDialog",ref:ce,onConfirm:Ie},null,512)],64)}}}),qt=z._export_sfc(It,[["__scopeId","data-v-5da1e93d"]]);exports.default=qt;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),ee=require("./request-Dl8yi2iS.cjs"),N=require("./index-DBxrIHI8.cjs"),L=require("./index-Pve69buQ.cjs"),oe=require("./index-BOkUwKV5.cjs");require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CkTzrR_j.cjs");require("./index--TgqYrZc.cjs");require("./index-BpPyaNFa.cjs");const b=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs");require("./index-BszVYrt4.cjs");require("./index-FLJJKkyQ.cjs");const z=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),te=require("./clone-ex65UiGA.cjs"),je={class:"param-auth"},Ge={class:"body"},Qe={class:"node-content-wrapper"},He={class:"node-label-wrapper"},Je={class:"node-label"},We=e.defineComponent({__name:"index",props:{params:{},checkedParams:{}},setup($,{expose:E}){const c=$,y={value:"uniqueKey",label:"label",children:"children",class:f=>{}},{buildParamAuthTree:g}=N.useRole(),p=e.ref(),w=e.computed(()=>g(c.params)),i=e.computed(()=>c.checkedParams.map(f=>`${f.id}_${f.prop}`));return E({getCheckedParams:()=>{var d;return((d=p.value)==null?void 0:d.getCheckedNodes())||[]}}),(f,d)=>{const v=e.resolveComponent("el-tree");return e.openBlock(),e.createElementBlock("div",je,[d[0]||(d[0]=e.createElementVNode("div",{class:"header"},[e.createElementVNode("div",{class:"header-left"}),e.createElementVNode("div",{class:"header-right"})],-1)),e.createElementVNode("div",Ge,[e.createVNode(v,{ref_key:"paramTreeRef",ref:p,class:"param-tree",data:w.value,props:y,"node-key":"uniqueKey","show-checkbox":"","default-expanded-keys":i.value,"default-checked-keys":i.value,height:"100%"},{default:e.withCtx(({node:u,data:P})=>[e.createElementVNode("div",Qe,[e.createElementVNode("div",He,[e.createElementVNode("div",Je,e.toDisplayString(u.label),1)])])]),_:1},8,["data","default-expanded-keys","default-checked-keys"])]),d[1]||(d[1]=e.createElementVNode("div",{class:"footer"},[e.createElementVNode("div",{class:"footer-left"}),e.createElementVNode("div",{class:"footer-right"})],-1))])}}}),Xe=z._export_sfc(We,[["__scopeId","data-v-b7ce5c18"]]),Ye={class:"param-wrapper"},Ze={class:"param-body"},et={class:"role-form-wrapper"},tt={class:"edit-footer"},ot={class:"footer-right"},at=e.defineComponent({__name:"index",props:{params:{},checkedParams:{}},emits:["updateParams"],setup($,{expose:E,emit:c}){const y=c,g=e.ref(),p=e.ref(!1),w=()=>{p.value=!0},i=()=>{p.value=!1},_=()=>{i()},f=()=>{const v=d();y("updateParams",v),i()},d=()=>{var u;return((u=g.value)==null?void 0:u.getCheckedParams())||[]};return E({openEditDialog:w}),(v,u)=>(e.openBlock(),e.createBlock(oe.ssDialog,{class:"param-edit-dialog",visible:p.value,title:"参数权限",onBeforeDestroy:i,showClose:!0,closeOnClickModal:!1,closeOnPressEscape:!1,modalClass:"role-edit-modal",alignCenter:!0,appendToBody:!1},{default:e.withCtx(()=>[e.createElementVNode("div",Ye,[u[0]||(u[0]=e.createElementVNode("div",{class:"param-header"},[e.createElementVNode("div",{class:"header-left"}),e.createElementVNode("div",{class:"header-right"})],-1)),e.createElementVNode("div",Ze,[e.createElementVNode("div",et,[e.createVNode(Xe,{ref_key:"paramAuthTree",ref:g,params:v.params,"checked-params":v.checkedParams},null,8,["params","checked-params"])])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",tt,[u[1]||(u[1]=e.createElementVNode("div",{class:"footer-left"},null,-1)),e.createElementVNode("div",ot,[e.createVNode(b._sfc_main,{class:"cancel",emptyColor:!0,onClickTrigger:_,modelValue:"取消",buttonType:"info"}),e.createVNode(b._sfc_main,{class:"confirm",emptyColor:!0,onClickTrigger:f,modelValue:"确定",buttonType:"primary"})])])]),_:1},8,["visible"]))}}),lt=z._export_sfc(at,[["__scopeId","data-v-875ed466"]]),rt={class:"scope-management-wrapper"},nt={class:"scope-management-body"},st={class:"scope-form-wrapper"},it={class:"edit-footer"},ct={class:"footer-right"},dt=e.defineComponent({__name:"index",emits:["confirm"],setup($,{expose:E,emit:c}){const y=c,{initDepartmentScope:g}=L.useDataPermission(),p=e.ref(),w=e.reactive({departmentScope:[{required:!0,message:"请输入角色名称",trigger:"change"}]}),i=e.ref(g()),_=e.ref(!1),f=()=>{_.value=!0},d=()=>{_.value=!1},v=async h=>{i.value=te.clone(h),f()},u=()=>{i.value=g(),d()},P=async()=>{var h,m;await((m=(h=p.value)==null?void 0:h.validate)==null?void 0:m.call(h)),y("confirm",te.clone(i.value)),u()};return E({handleEdit:v}),(h,m)=>{const U=e.resolveComponent("el-radio"),M=e.resolveComponent("el-radio-group"),K=e.resolveComponent("el-form-item"),j=e.resolveComponent("el-col"),G=e.resolveComponent("el-row"),Q=e.resolveComponent("el-form");return e.openBlock(),e.createBlock(oe.ssDialog,{class:"scope-edit-dialog",visible:_.value,title:"数据权限",onBeforeDestroy:d,showClose:!0,closeOnClickModal:!1,closeOnPressEscape:!1,modalClass:"scope-edit-modal",alignCenter:!0,appendToBody:!1},{default:e.withCtx(()=>[e.createElementVNode("div",rt,[m[1]||(m[1]=e.createElementVNode("div",{class:"scope-management-header"},[e.createElementVNode("div",{class:"header-left"}),e.createElementVNode("div",{class:"header-right"})],-1)),e.createElementVNode("div",nt,[e.createElementVNode("div",st,[e.createVNode(Q,{class:"scope-edit-form",ref_key:"scopeFormRef",ref:p,model:i.value,rules:w},{default:e.withCtx(()=>[e.createVNode(G,{gutter:20},{default:e.withCtx(()=>[e.createVNode(j,{span:24},{default:e.withCtx(()=>[e.createVNode(K,{prop:"departmentScope",label:"部门权限范围","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(M,{modelValue:i.value.departmentScope,"onUpdate:modelValue":m[0]||(m[0]=C=>i.value.departmentScope=C)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(L.departmentScopeOptions),C=>(e.openBlock(),e.createBlock(U,{key:C.value,value:C.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",it,[m[2]||(m[2]=e.createElementVNode("div",{class:"footer-left"},null,-1)),e.createElementVNode("div",ct,[e.createVNode(b._sfc_main,{class:"cancel",emptyColor:!0,onClickTrigger:u,modelValue:"取消",buttonType:"info"}),e.createVNode(b._sfc_main,{class:"confirm",emptyColor:!0,onClickTrigger:P,modelValue:"确定",buttonType:"primary"})])])]),_:1},8,["visible"])}}}),ut=z._export_sfc(dt,[["__scopeId","data-v-40d37c72"]]),pt={class:"role-management"},mt={class:"header"},_t={class:"header-left"},ft={class:"query-wrapper"},vt={class:"header-right"},Vt={class:"body"},gt={class:"role-table-wrapper"},ht={class:"operate-list"},Ct=["onClick"],Nt={class:"pagination-wrapper"},yt={class:"role-management-wrapper"},wt={class:"role-management-body"},kt={class:"role-form-wrapper"},Et={class:"auth-tree-wrapper"},xt={class:"node-content-wrapper"},bt={class:"node-label-wrapper"},Tt={class:"node-label"},Pt={key:0,class:"status-tag"},Bt={key:1,class:"status-tag"},Dt={key:2,class:"status-tag"},St={key:3,class:"status-tag"},Lt={class:"edit-footer"},$t={class:"footer-right"},It=e.defineComponent({__name:"index",setup($){const E={value:"id",label:"label",children:"children"},c=L.useMenuState(L.pinia),{initDepartmentScope:y,recAndInitNodeDataPermission:g}=L.useDataPermission(),{initRoleItem:p,queryInfo:w,resetQuery:i,pageInfo:_,setPageNum:f,setPageSize:d,initGetByPage:v,initCreate:u,initUpdate:P,initDelete:h,propertyAuthTree:m,initPropertyAuthTree:U,getStatusLabelByValue:M,getStatusTagByValue:K,getFeatureStatusLabelByValue:j,getFeatureStatusTagByValue:G,initRoleConfig:Q,hasRoleEditAuth:C,isTableFeature:fe,initImport:ve,initExport:Ve,exportTemplate:ge}=N.useRole(),ae=e.ref([]),he=async()=>{const o=await v(),{roleData:t=[]}=o;return t},B=async()=>{ae.value=await he()},Ce=o=>{f(o),B()},Ne=o=>{d(o),B()},ye=async()=>{i(),c.setImportLoading(!0),await B().finally(()=>{c.setImportLoading(!1)})},T=async()=>{await B(),await Q()};e.onMounted(()=>{T()});const le=e.ref(),we=e.reactive({name:[{required:!0,message:"请输入角色名称",trigger:"blur"}]}),I=e.ref(),q=e.ref(""),n=e.ref(p());e.watch(q,o=>{I.value.filter(o)});const ke=(o,t)=>o?t.label.includes(o):!0,re=e.ref([]),R=e.ref(),Ee=(o,t)=>{var a;o.stopPropagation(),re.value=t.params||[],(a=R==null?void 0:R.value)==null||a.openEditDialog()},xe=o=>{var s;const t=(s=o==null?void 0:o[0])==null?void 0:s.id,a=n.value.params.filter(V=>V.id!==t);n.value.params=[...a,...o]},H=e.ref(!1),be=()=>{H.value=!0},ne=()=>{q.value="",H.value=!1},se=async o=>{if(!C.value)return;const t=[];o&&t.push(o.role_id),await U(t);let a={};o!=null&&o.role_id||(a={checkAll:!0,tree:m.value}),n.value=p(o,a),be()},ie=()=>{n.value=p(),ne()},Te=async()=>{var a,s,V;await((s=(a=le.value)==null?void 0:a.validate)==null?void 0:s.call(a));let o=((V=I.value)==null?void 0:V.getCheckedNodes())||[];o=o.filter(k=>k.isPropertyLeaf),o=o.map(k=>{const{departmentScope:X}=k.dataPermission||{};return{...k,department_scope:X}}),n.value.main_ids=o;const{role_id:t}=n.value;t?await De():await Be(),ie()},Pe=async o=>{if(!C.value)return;const{status:t}=o;N.statusConstants.ENABLE.value===t?o.status=N.statusConstants.DISABLED.value:o.status=N.statusConstants.ENABLE.value,await P(o),await T()},Be=async()=>{await u(n.value),await T()},De=async()=>{await P(n.value),await T()},Se=async o=>{await h(o),await T()},Le=async(o,t)=>{if(!C.value)return;const{value:a}=o,s=t.row;if(a==="edit"){se(s);return}if(a==="delete"){await Se(s);return}},$e=async(o,t)=>{o.stopPropagation();const{status:a}=t;N.featureStatusConstants.EDITABLE.value===a?t.status=N.featureStatusConstants.DISABLED.value:t.status=N.featureStatusConstants.EDITABLE.value},J=o=>{var a;return(((a=I.value)==null?void 0:a.getCheckedKeys(!0))||[]).includes(o.id)},ce=e.ref(),A=e.ref(),W=e.ref(y()),de=(o,t)=>{var a;o.stopPropagation(),A.value=t,t.isPropertyLeaf&&(W.value=te.clone(t.dataPermission)),t.isProperty||(W.value=y("")),(a=ce.value)==null||a.handleEdit(W.value)},Ie=o=>{const{isProperty:t,isPropertyLeaf:a}=A.value;if(a){A.value.dataPermission=o;return}if(!t){g(A.value,o);return}},qe=async()=>{await Re()},Re=async()=>{const o=document.createElement("input");o.type="file",o.accept=".xlsx",o.onchange=async t=>{var V;const s=(V=t.target.files)==null?void 0:V[0];if(s)try{c.setImportLoading(!0),await ve(s),await T(),c.setImportLoading(!1)}catch{c.setImportLoading(!1)}},o.click()},Ae=async()=>{c.setImportLoading(!0),await Ve().finally(()=>{c.setImportLoading(!1)})},Fe=async()=>{ge()};return(o,t)=>{var ue,pe,me,_e;const a=e.resolveComponent("el-input"),s=e.resolveComponent("el-button"),V=e.resolveComponent("el-icon"),k=e.resolveComponent("el-dropdown-item"),X=e.resolveComponent("el-dropdown-menu"),Oe=e.resolveComponent("el-dropdown"),D=e.resolveComponent("el-table-column"),S=e.resolveComponent("el-tag"),ze=e.resolveComponent("el-table"),Ue=e.resolveComponent("el-pagination"),F=e.resolveComponent("el-form-item"),O=e.resolveComponent("el-col"),Y=e.resolveComponent("el-row"),Me=e.resolveComponent("el-tree"),Ke=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",pt,[e.createElementVNode("div",mt,[e.createElementVNode("div",_t,[e.createElementVNode("div",ft,[e.createVNode(a,{modelValue:e.unref(w).name,"onUpdate:modelValue":t[0]||(t[0]=l=>e.unref(w).name=l),style:{width:"240px"},placeholder:"请输入名称"},null,8,["modelValue"]),e.createVNode(s,{type:"primary",onClick:B},{default:e.withCtx(()=>t[6]||(t[6]=[e.createTextVNode("查询")])),_:1,__:[6]}),e.createVNode(s,{type:"primary",plain:"",onClick:ye},{default:e.withCtx(()=>t[7]||(t[7]=[e.createTextVNode("重置")])),_:1,__:[7]})])]),e.createElementVNode("div",vt,[e.createVNode(s,{type:"primary",onClick:qe},{default:e.withCtx(()=>[t[8]||(t[8]=e.createTextVNode(" 导入 ")),e.createVNode(V,{class:"el-icon--right"},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.upload_default))]),_:1})]),_:1,__:[8]}),e.createVNode(Oe,null,{dropdown:e.withCtx(()=>[e.createVNode(X,null,{default:e.withCtx(()=>[e.createVNode(k,{onClick:Fe},{default:e.withCtx(()=>t[10]||(t[10]=[e.createTextVNode("导出模板")])),_:1,__:[10]}),e.createVNode(k,{onClick:Ae},{default:e.withCtx(()=>t[11]||(t[11]=[e.createTextVNode("导出数据")])),_:1,__:[11]})]),_:1})]),default:e.withCtx(()=>[e.createVNode(s,{type:"primary"},{default:e.withCtx(()=>[t[9]||(t[9]=e.createTextVNode(" 导出 ")),e.createVNode(V,{class:"el-icon--right"},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.arrow_down_default))]),_:1})]),_:1,__:[9]})]),_:1}),e.createVNode(b._sfc_main,{emptyColor:!0,onClickTrigger:t[1]||(t[1]=l=>se()),modelValue:"创建角色",buttonType:"primary"})])]),e.createElementVNode("div",Vt,[e.createElementVNode("div",gt,[e.createVNode(ze,{class:"role-table",data:ae.value,"empty-text":""},{default:e.withCtx(()=>[e.createVNode(D,{prop:"name",label:"名称",align:"center"}),e.createVNode(D,{prop:"code",label:"编码",align:"center"}),e.createVNode(D,{prop:"remark",label:"备注",align:"center"}),e.createVNode(D,{prop:"status",label:"状态",align:"center"},{default:e.withCtx(l=>[e.createVNode(S,{class:"status-tag",type:e.unref(K)(l.row.status),title:"点击切换",onClick:r=>Pe(l.row)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(M)(l.row.status)),1)]),_:2},1032,["type","onClick"])]),_:1}),e.createVNode(D,{label:"操作",align:"center"},{default:e.withCtx(l=>[e.createElementVNode("div",ht,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(N.operateList),r=>(e.openBlock(),e.createElementBlock("div",{class:"operate-item",key:r.value,onClick:e.withModifiers(Z=>Le(r,l),["stop"])},e.toDisplayString(r.label),9,Ct))),128))])]),_:1})]),_:1},8,["data"])]),e.createElementVNode("div",Nt,[t[12]||(t[12]=e.createElementVNode("div",null,null,-1)),e.createVNode(Ue,{onSizeChange:Ne,onCurrentChange:Ce,"current-page":(ue=e.unref(_))==null?void 0:ue.pageNum,"page-sizes":(pe=e.unref(_))==null?void 0:pe.pageSizes,"page-size":((me=e.unref(_))==null?void 0:me.pageSize)??10,layout:"total, sizes, prev, pager, next, jumper",total:((_e=e.unref(_))==null?void 0:_e.total)??0},null,8,["current-page","page-sizes","page-size","total"])])]),t[13]||(t[13]=e.createElementVNode("div",{class:"footer"},[e.createElementVNode("div",{class:"footer-left"}),e.createElementVNode("div",{class:"footer-right"})],-1))]),e.createVNode(oe.ssDialog,{class:"role-edit-dialog",visible:H.value,title:"角色信息",onBeforeDestroy:ne,showClose:!0,closeOnClickModal:!1,closeOnPressEscape:!1,modalClass:"role-edit-modal",alignCenter:!0,appendToBody:!1},{default:e.withCtx(()=>[e.createElementVNode("div",yt,[t[17]||(t[17]=e.createElementVNode("div",{class:"role-management-header"},[e.createElementVNode("div",{class:"header-left"}),e.createElementVNode("div",{class:"header-right"})],-1)),e.createElementVNode("div",wt,[e.createElementVNode("div",kt,[e.createVNode(Ke,{class:"role-edit-form",ref_key:"roleFormRef",ref:le,model:n.value,rules:we},{default:e.withCtx(()=>[e.createVNode(Y,{gutter:20},{default:e.withCtx(()=>[e.createVNode(O,{span:12},{default:e.withCtx(()=>[e.createVNode(F,{prop:"name",label:"角色名称","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:n.value.name,"onUpdate:modelValue":t[2]||(t[2]=l=>n.value.name=l),"aria-label":"角色名称",placeholder:"角色名称"},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(O,{span:12},{default:e.withCtx(()=>[e.createVNode(F,{label:"角色编码","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:n.value.code,"onUpdate:modelValue":t[3]||(t[3]=l=>n.value.code=l),"aria-label":"角色编码",placeholder:"角色编码"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(Y,{gutter:20},{default:e.withCtx(()=>[e.createVNode(O,{span:12},{default:e.withCtx(()=>[e.createVNode(F,{label:"备注","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(a,{modelValue:n.value.remark,"onUpdate:modelValue":t[4]||(t[4]=l=>n.value.remark=l),"aria-label":"备注",placeholder:"备注"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(Y,{class:"auth-tree-row",gutter:20},{default:e.withCtx(()=>[e.createVNode(O,{span:24},{default:e.withCtx(()=>[e.createVNode(F,{label:"特性权限","label-position":"top"},{default:e.withCtx(()=>[e.createElementVNode("div",Et,[e.createVNode(a,{modelValue:q.value,"onUpdate:modelValue":t[5]||(t[5]=l=>q.value=l)},{prefix:e.withCtx(()=>[e.createVNode(V,{class:"el-input__icon"},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.search_default))]),_:1})]),_:1},8,["modelValue"]),e.createVNode(Me,{ref_key:"propertyTreeRef",ref:I,class:"auth-tree",data:e.unref(m),props:E,"node-key":"id","show-checkbox":"","default-expanded-keys":n.value.checked_ids,"default-checked-keys":n.value.checked_ids,"filter-node-method":ke},{default:e.withCtx(({node:l,data:r})=>{var Z;return[e.createElementVNode("div",xt,[e.createElementVNode("div",bt,[e.createElementVNode("div",Tt,e.toDisplayString(l.label),1)]),r.isPropertyLeaf&&J(r)?(e.openBlock(),e.createElementBlock("div",Pt,[e.createVNode(S,{class:"status-tag",type:e.unref(G)(r.status),title:"点击切换",onClick:x=>$e(x,r)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(j)(r.status)),1)]),_:2},1032,["type","onClick"])])):e.createCommentVNode("",!0),r.isProperty&&J(r)&&((Z=r.params)==null?void 0:Z.length)>0?(e.openBlock(),e.createElementBlock("div",Bt,[e.createVNode(S,{class:"status-tag",type:"success",onClick:x=>Ee(x,r)},{default:e.withCtx(()=>t[14]||(t[14]=[e.createTextVNode(" 参数设置 ")])),_:2,__:[14]},1032,["onClick"])])):e.createCommentVNode("",!0),r.isPropertyLeaf&&J(r)&&e.unref(fe)(r)?(e.openBlock(),e.createElementBlock("div",Dt,[e.createVNode(S,{class:"status-tag",type:"warning",onClick:x=>de(x,r)},{default:e.withCtx(()=>t[15]||(t[15]=[e.createTextVNode(" 数据权限 ")])),_:2,__:[15]},1032,["onClick"])])):e.createCommentVNode("",!0),l.level==1&&l.checked&&!r.isProperty?(e.openBlock(),e.createElementBlock("div",St,[e.createVNode(S,{class:"status-tag",type:"warning",onClick:x=>de(x,r)},{default:e.withCtx(()=>t[16]||(t[16]=[e.createTextVNode(" 数据权限重置 ")])),_:2,__:[16]},1032,["onClick"])])):e.createCommentVNode("",!0)])]}),_:1},8,["data","default-expanded-keys","default-checked-keys"])])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",Lt,[t[18]||(t[18]=e.createElementVNode("div",{class:"footer-left"},null,-1)),e.createElementVNode("div",$t,[e.createVNode(b._sfc_main,{class:"cancel",emptyColor:!0,onClickTrigger:ie,modelValue:"取消",buttonType:"info"}),e.createVNode(b._sfc_main,{class:"confirm",emptyColor:!0,onClickTrigger:Te,modelValue:"确定",buttonType:"primary"})])])]),_:1},8,["visible"]),e.createVNode(lt,{ref_key:"paramAuthDialog",ref:R,params:re.value,"checked-params":n.value.params,onUpdateParams:xe},null,8,["params","checked-params"]),e.createVNode(ut,{ref_key:"scopeDialog",ref:ce,onConfirm:Ie},null,512)],64)}}}),qt=z._export_sfc(It,[["__scopeId","data-v-5da1e93d"]]);exports.default=qt;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as n, computed as c, defineComponent as s, reactive as p, onMounted as i, createElementBlock as u, openBlock as f, createVNode as b } from "vue";
|
|
2
|
-
import { V as m } from "./index-
|
|
3
|
-
import { g as d, c as _ } from "./index-
|
|
2
|
+
import { V as m } from "./index-B-EizQFy.js";
|
|
3
|
+
import { g as d, c as _ } from "./index-BkWwwzGI.js";
|
|
4
4
|
import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
const l = n([]), g = c(() => [
|
|
6
6
|
{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { watch as be, ref as w, computed as we } from "vue";
|
|
2
|
-
import { m as E, j as B, w as Le } from "./index-
|
|
3
|
-
import { s as Te, b as
|
|
2
|
+
import { m as E, j as B, w as Le } from "./index-CMbbPEqT.js";
|
|
3
|
+
import { s as Te, b as V, p as C, u as De, t as Re, c as A, D as N, E as Ee, i as Be, ag as Ae, ah as Pe, ai as Ue, aj as xe, ak as Se, al as ke } from "./index-Dng7AX91.js";
|
|
4
4
|
import { s as z } from "./request-XJsZ4h2T.js";
|
|
5
|
-
const qe = C
|
|
5
|
+
const qe = V(C), { systemUrl: f } = Te(qe);
|
|
6
6
|
let P = f.value === "" || !f.value ? "http://222.92.178.198:63002" : f.value;
|
|
7
7
|
be(
|
|
8
8
|
() => f.value,
|
|
@@ -26,16 +26,16 @@ function Fe(s) {
|
|
|
26
26
|
responseType: "blob"
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function Ve(s = "") {
|
|
30
30
|
const r = s.match(/filename\*=UTF-8''([^;]+)/i);
|
|
31
31
|
if (r)
|
|
32
32
|
return decodeURIComponent(r[1]);
|
|
33
33
|
const i = s.match(/filename=["']?([^"';]+)["']?/);
|
|
34
34
|
return i ? i[1] : "download.xlsx";
|
|
35
35
|
}
|
|
36
|
-
const
|
|
36
|
+
const Ce = (s) => {
|
|
37
37
|
var I, g;
|
|
38
|
-
const r = ((I = s == null ? void 0 : s.headers) == null ? void 0 : I["content-type"]) || "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", i = new Blob([s.data], { type: r }), L = (g = s == null ? void 0 : s.headers) == null ? void 0 : g["content-disposition"], h =
|
|
38
|
+
const r = ((I = s == null ? void 0 : s.headers) == null ? void 0 : I["content-type"]) || "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", i = new Blob([s.data], { type: r }), L = (g = s == null ? void 0 : s.headers) == null ? void 0 : g["content-disposition"], h = Ve(L) || "数据.xlsx", c = window.URL.createObjectURL(i), u = document.createElement("a");
|
|
39
39
|
u.href = c, u.setAttribute("download", h), document.body.appendChild(u), u.click(), document.body.removeChild(u), window.URL.revokeObjectURL(c);
|
|
40
40
|
}, Ke = [
|
|
41
41
|
{
|
|
@@ -73,7 +73,7 @@ const Ve = (s) => {
|
|
|
73
73
|
value: "Table"
|
|
74
74
|
}
|
|
75
75
|
}, Oe = ["查看", "查看三维模型", "导出paraform", "导出", "导出全部", "导出选中"], We = () => {
|
|
76
|
-
const s =
|
|
76
|
+
const s = V(), r = De(C), { isSuperAdmin: i, userId: L, userName: h, platId: c } = Re(), u = w([]), I = (t) => {
|
|
77
77
|
const { propertyType: e } = t || {};
|
|
78
78
|
return e === ze.TABLE.value;
|
|
79
79
|
}, g = w({}), O = we(() => {
|
|
@@ -133,11 +133,11 @@ const Ve = (s) => {
|
|
|
133
133
|
};
|
|
134
134
|
const { checkAll: p, tree: _ } = e || {};
|
|
135
135
|
if (p && _) {
|
|
136
|
-
const v = U(_), Ie = v.map((
|
|
137
|
-
...
|
|
136
|
+
const v = U(_), Ie = v.map((R) => ({
|
|
137
|
+
...R,
|
|
138
138
|
department_scope: "unlimited"
|
|
139
139
|
}));
|
|
140
|
-
l.main_ids = Ie, l.checked_ids = v.map((
|
|
140
|
+
l.main_ids = Ie, l.checked_ids = v.map((R) => R.id), l.params = G(v);
|
|
141
141
|
}
|
|
142
142
|
if (t) {
|
|
143
143
|
const v = j(t);
|
|
@@ -248,12 +248,12 @@ const Ve = (s) => {
|
|
|
248
248
|
}, ie = (t = "") => {
|
|
249
249
|
const e = t.toUpperCase(), a = d == null ? void 0 : d[e];
|
|
250
250
|
return (a == null ? void 0 : a.tag) || "info";
|
|
251
|
-
},
|
|
251
|
+
}, D = (t) => t === d.EDITABLE.value, ue = (t, e) => {
|
|
252
252
|
const { status: a } = t || {}, { tableOperate: n } = e || {};
|
|
253
|
-
return !!(
|
|
253
|
+
return !!(D(a) || n && Oe.includes(n));
|
|
254
254
|
}, pe = (t, e) => {
|
|
255
255
|
const { status: a } = t || {};
|
|
256
|
-
return
|
|
256
|
+
return D(a);
|
|
257
257
|
}, de = (t, e) => {
|
|
258
258
|
if (i.value)
|
|
259
259
|
return !0;
|
|
@@ -263,7 +263,7 @@ const Ve = (s) => {
|
|
|
263
263
|
if (E.FORM === a)
|
|
264
264
|
return pe(t);
|
|
265
265
|
const { status: n } = t || {};
|
|
266
|
-
return
|
|
266
|
+
return D(n);
|
|
267
267
|
}, me = async () => {
|
|
268
268
|
var n, o;
|
|
269
269
|
const e = {
|
|
@@ -295,7 +295,7 @@ const Ve = (s) => {
|
|
|
295
295
|
tableType: F,
|
|
296
296
|
filter: b.value
|
|
297
297
|
}, e = await he(t);
|
|
298
|
-
return
|
|
298
|
+
return Ce(e), e;
|
|
299
299
|
}, ve = [["名称", "编码", "备注", "状态"]];
|
|
300
300
|
return {
|
|
301
301
|
compType: E,
|
|
@@ -335,7 +335,7 @@ export {
|
|
|
335
335
|
Ne as a,
|
|
336
336
|
Fe as e,
|
|
337
337
|
d as f,
|
|
338
|
-
|
|
338
|
+
Ce as i,
|
|
339
339
|
Ke as o,
|
|
340
340
|
m as s,
|
|
341
341
|
We as u
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),i=require("./index-Pve69buQ.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),i=require("./index-Pve69buQ.cjs"),K=require("./index-CasVp7yH.cjs"),U=require("vue-router"),b=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),O={key:0},P=o.defineComponent({__name:"index",props:{windowConfig:{type:Object,default:()=>{}},systemInfo:{type:Object,default:()=>{}},systemKey:{type:String,default:""},pathContent:{type:String,default:""},mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!1},nodeDev:{type:String,default:""},pageKey:{type:String,default:""},interfaceContent:{type:Array,default:()=>[]},loginContent:{type:Object,default:()=>{}},menuFiles:{type:Array,default:()=>[]},workspaceHistoryData:{type:Array,default:()=>[]},workspaceInfo:{type:Object,default:()=>[]}},emits:["buildContent","openThreeBuild","threeData","setLoginInfo","projectLogin","updateApiUrl","clearFileContent","systemContent","getMenuPathValue","executeWorkspace"],setup(f,{emit:v}){const I=U.useRouter(),r=i.useLoginState(i.pinia),{loginUserInfo:y}=i.storeToRefs(r),{initSystemInfo:S}=i.useModelManagement(),k=i.useModelComp(i.pinia),{refreshLogin:L}=i.storeToRefs(k),m=i.useMenuState(i.pinia),g=o.ref(!0),{activeMenuPath:w}=i.storeToRefs(m),e=f,a=v,_=o.computed(()=>{var t,n;return(e==null?void 0:e.showButton)||((n=(t=y.value)==null?void 0:t.layer)==null?void 0:n.toUpperCase())==="SUPERADMIN"}),A=t=>{a("systemContent",t)},B=()=>{a("clearFileContent")};o.watch(()=>e==null?void 0:e.menuFiles,()=>{var t;((t=e==null?void 0:e.menuFiles)==null?void 0:t.length)>0&&m.setLocalFiles(e==null?void 0:e.menuFiles)},{deep:!0,immediate:!0}),o.watch(()=>w.value,()=>{a("getMenuPathValue",w.value)},{deep:!0,immediate:!0}),o.watch(()=>e==null?void 0:e.loginContent,async()=>{var n,c,u,l;g.value=!0;let t=e==null?void 0:e.loginContent;if(t!=null&&t.account&&(t!=null&&t.password)&&!L.value&&(await K.loginUp(t),status)){let s=await i.verifyStructureDataToStore();a("systemContent",s==null?void 0:s.allMenuContents),I.push("/"),r.setLogRecordAsync({type:"登录",data:{account:((n=y.value)==null?void 0:n.account)??((c=y.value)==null?void 0:c.账号),userName:((u=y.value)==null?void 0:u.姓名)||((l=y.value)==null?void 0:l.userName)||"未知"}},"/login","login"),m.setHasClickEditComp(!1)}g.value=!1,await o.nextTick()},{deep:!0,immediate:!0});const E=t=>{a("projectLogin",t)},D=()=>{a("projectLogin","")};o.watch(()=>[e==null?void 0:e.systemKey,e==null?void 0:e.systemInfo],async([t,n])=>{r.setSystemKey(t),t!==""&&sessionStorage.setItem("systemKey",t)},{immediate:!0}),o.watch(()=>e==null?void 0:e.interfaceContent,()=>{var c,u,l,s,h;if(!(e!=null&&e.interfaceContent)||Array.isArray(e==null?void 0:e.interfaceContent)&&((c=e==null?void 0:e.interfaceContent)==null?void 0:c.length)===0)return;let t=(u=e==null?void 0:e.interfaceContent)==null?void 0:u.find(d=>d==null?void 0:d.includes("VITE_API_NEW_URL")),n=(l=e==null?void 0:e.interfaceContent)==null?void 0:l.find(d=>d==null?void 0:d.includes("VITE_FACE_RECOGNITION_API_URL"));n=(s=n==null?void 0:n.split("="))==null?void 0:s[1],n=n==null?void 0:n.trim(),t=(h=t==null?void 0:t.split("="))==null?void 0:h[1],t=t==null?void 0:t.trim(),r.setExtraUrl(n??""),r.setSystemUrl(t??"")},{immediate:!0,deep:!0}),o.onMounted(async()=>{e.systemInfo?r.setSystemInfo(e.systemInfo):await S()});const j=()=>{a("buildContent")},F=()=>{a("setLoginInfo")},M=t=>{a("openThreeBuild",t)},T=t=>{a("threeData",t)},x=t=>{a("updateApiUrl",t)},R=t=>{a("executeWorkspace",t)},C=()=>{var s;const t=e!=null&&e.windowConfig?(s=e==null?void 0:e.windowConfig)==null?void 0:s.width:window.innerWidth,n=1920,c=16,u=t/n,l=c*u;document.documentElement.style.fontSize=`${l}px`};return o.onMounted(()=>{C(),window.addEventListener("resize",C)}),o.onUnmounted(()=>{window.removeEventListener("resize",C)}),(t,n)=>{const c=o.resolveComponent("router-view");return o.openBlock(),o.createElementBlock("div",null,[g.value?(o.openBlock(),o.createElementBlock("div",O)):(o.openBlock(),o.createBlock(c,{key:1,mode:e==null?void 0:e.mode,content:e==null?void 0:e.content,jsonContents:e==null?void 0:e.jsonContents,pathContent:e==null?void 0:e.pathContent,showButton:_.value,nodeDev:e==null?void 0:e.nodeDev,windowConfig:f.windowConfig,systemInfo:f.systemInfo,"old-systemKey":f.systemKey,onBuildContent:j,onProjectLogin:E,onClearLogin:D,onUpdateApiUrl:x,onOpenThreeBuild:M,pageKey:f.pageKey,onThreeData:T,onSetLoginInfo:F,loginContent:e==null?void 0:e.loginContent,onClearFileContent:B,onSystemContent:A,onExecuteWorkspace:R,workspaceHistoryData:e==null?void 0:e.workspaceHistoryData,workspaceInfo:e==null?void 0:e.workspaceInfo},null,8,["mode","content","jsonContents","pathContent","showButton","nodeDev","windowConfig","systemInfo","old-systemKey","pageKey","loginContent","workspaceHistoryData","workspaceInfo"]))])}}}),W=b._export_sfc(P,[["__scopeId","data-v-ac79ecef"]]);exports.default=W;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ref as h, computed as E, reactive as W, defineComponent as q, watch as H, createElementBlock as N, openBlock as k, createVNode as A, createCommentVNode as ue, withCtx as _, createTextVNode as V, toDisplayString as F, resolveComponent as D, createBlock as R, Fragment as ie, renderList as ce, createElementVNode as de, normalizeStyle as pe } from "vue";
|
|
2
2
|
import { av as fe, aw as ve, ax as ge, E as T } from "./request-XJsZ4h2T.js";
|
|
3
|
-
import { s as J, b as ye, u as be, p as G, c as me, j as he, k as Q } from "./index-
|
|
3
|
+
import { s as J, b as ye, u as be, p as G, c as me, j as he, k as Q } from "./index-Dng7AX91.js";
|
|
4
4
|
import { g as X, u as we } from "./index-DUq4XELr.js";
|
|
5
5
|
import { J as Y } from "./JSEncrypt-B36c1iN5.js";
|
|
6
|
-
import { a2 as Se } from "./index-
|
|
7
|
-
import { A as _e } from "./index-
|
|
6
|
+
import { a2 as Se } from "./index-CMbbPEqT.js";
|
|
7
|
+
import { A as _e } from "./index-CyU6mja2.js";
|
|
8
8
|
import { _ as Z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
-
import { n as Ce } from "./index-
|
|
9
|
+
import { n as Ce } from "./index-CPl5clIF.js";
|
|
10
10
|
import { S as x } from "./index-BHtNKL1L.js";
|
|
11
11
|
function Ae(t, s) {
|
|
12
12
|
const e = new Y();
|