ss-component-new 1.3.113 → 1.3.114
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-BviVUPWi.cjs → MTLLoader-DcIQb_s3.cjs} +1 -1
- package/dist/{MTLLoader-y4B1LPuT.js → MTLLoader-iRxhJhIF.js} +34 -34
- package/dist/{OrbitControls-Cqppy3wb.cjs → OrbitControls-9REskSZo.cjs} +1 -1
- package/dist/{OrbitControls-390k2OM3.js → OrbitControls-PQJZejy_.js} +1 -1
- package/dist/{URDFLoader-C2tFq0lk.cjs → URDFLoader-BuABv8Tv.cjs} +1 -1
- package/dist/{URDFLoader-BlbEAIgR.js → URDFLoader-Buak6sTX.js} +222 -222
- package/dist/{animationData-DfDLy_M4.js → animationData-DJhhkfHw.js} +18 -18
- package/dist/{animationData-B1Jlpr7b.cjs → animationData-DiCszzEt.cjs} +1 -1
- package/dist/{array-DLBDgy0c.js → array-Be4dCwU5.js} +5 -5
- package/dist/{array-ymebeoXj.cjs → array-BsWbhqqH.cjs} +1 -1
- package/dist/{iconfont-cBX7rs7k.cjs → iconfont-CTi1EROO.cjs} +1 -1
- package/dist/{iconfont-BYa5tDrN.js → iconfont-Dkz3EhnP.js} +37 -37
- package/dist/{index-JJBPRJiI.cjs → index-1ATQxYGc.cjs} +1 -1
- package/dist/{index-UytjSmc1.cjs → index-69FRQH94.cjs} +1 -1
- package/dist/{index-4p0yEeUu.js → index-B2WIMplB.js} +1 -1
- package/dist/{index--hQDmx_x.js → index-B2pcDjLn.js} +2 -2
- package/dist/{index-pE8_wnGy.cjs → index-B9sLkbkE.cjs} +1 -1
- package/dist/{index-DdCyGfF9.cjs → index-BBrdsI9W.cjs} +1 -1
- package/dist/{index-DJoiySWn.cjs → index-BEpwtI2Q.cjs} +1 -1
- package/dist/{index-BXZlLwr6.cjs → index-Bd8mah99.cjs} +1 -1
- package/dist/{index-CXtLJs5O.js → index-BhJTGJWX.js} +27 -25
- package/dist/{index-C2yeqxnB.js → index-BhPhyI8f.js} +3 -3
- package/dist/{index-bbJ9Y_oO.js → index-BhU0rWGt.js} +3 -3
- package/dist/index-BhsUBoCD.cjs +1 -0
- package/dist/{index-DpirbR20.js → index-Bjm0BPhX.js} +12 -12
- package/dist/{index-BmlomuGZ.cjs → index-Bk8qPn0a.cjs} +1 -1
- package/dist/{index-BfNg0B2v.js → index-BsoWrBpk.js} +33 -33
- package/dist/{index-DpIzJvIr.cjs → index-BuaAY6T_.cjs} +1 -1
- package/dist/{index-DaX27S_0.js → index-BugYnyXc.js} +31 -31
- package/dist/{index-DMzBNabY.js → index-Bz_ZsUz_.js} +1 -1
- package/dist/{index-D6UEkdRE.cjs → index-C1HjpqRi.cjs} +1 -1
- package/dist/{index-CXkaTWVT.js → index-C3LqP4qY.js} +2 -2
- package/dist/{index-DovAfsVt.js → index-C4NqB81x.js} +2 -2
- package/dist/{index-D0e2ki27.js → index-CMMIt7u5.js} +63 -64
- package/dist/{index-DLK6UU4l.cjs → index-C_CGGyPH.cjs} +1 -1
- package/dist/{index-CYXsxIou.js → index-CdOlTQZV.js} +1 -1
- package/dist/{index-CVwsrCrZ.cjs → index-CdzQfZvY.cjs} +12 -12
- package/dist/{index-CaV5K0t4.js → index-Cn5h5u4P.js} +2408 -2005
- package/dist/{index-Cg30L32X.cjs → index-CpZcO0Vv.cjs} +3 -3
- package/dist/{index-BxmhgJuz.js → index-Cw0eFU8n.js} +1 -1
- package/dist/{index-CXlemLjY.js → index-D8c3Spt0.js} +1 -1
- package/dist/{index-Drd5_tIE.js → index-DHrzZlzn.js} +2 -2
- package/dist/{index-CEiscADV.cjs → index-DVhZbYfk.cjs} +1 -1
- package/dist/{index-CJiEoadC.js → index-Dar27fP9.js} +5 -5
- package/dist/index-DavcqNxP.cjs +1 -0
- package/dist/{index-DczQgLYk.cjs → index-DbAWw4as.cjs} +5 -5
- package/dist/{index-C6_KNp1M.cjs → index-DbnQZ22f.cjs} +1 -1
- package/dist/{index-CIoHy7Dg.js → index-Ddn_i6kt.js} +3 -3
- package/dist/index-DgBjwajW.js +456 -0
- package/dist/{index-SeEbZNcJ.cjs → index-DhFQdrUj.cjs} +1 -1
- package/dist/index-DiowIVZT.cjs +36 -0
- package/dist/{index-YwMY3Aya.js → index-DkgsdCot.js} +7 -7
- package/dist/{index-NdxRkX7O.js → index-Do9OpnU6.js} +316 -316
- package/dist/{index-DONt1we8.js → index-DpdFnDS3.js} +128 -78
- package/dist/{index-mabPGJUl.js → index-DqljyATQ.js} +1924 -1902
- package/dist/{index-B9g8IV0C.cjs → index-Dxxg-n__.cjs} +1 -1
- package/dist/{index-B22a33l9.js → index-DzSpBcvn.js} +1 -1
- package/dist/{index-BjAtlMRE.cjs → index-OS-qw-PB.cjs} +1 -1
- package/dist/{index-BVURmufk.js → index-RJF35C5O.js} +7 -7
- package/dist/index-SJHk-hwy.cjs +1 -0
- package/dist/index-TspEOSLc.cjs +1 -0
- package/dist/{index-DnJB2OQC.cjs → index-d198q36G.cjs} +1 -1
- package/dist/{index-CVySIgt4.cjs → index-eOampyhu.cjs} +1 -1
- package/dist/index-h4MsH7WN.cjs +1 -0
- package/dist/{index-DBdrmcqM.cjs → index-hSBc9pHD.cjs} +1 -1
- package/dist/index-kP2LUcSw.cjs +1 -0
- package/dist/{index-BIOl9xBh.js → index-p6bofhog.js} +2 -2
- package/dist/{index-D39f9FDD.cjs → index-rgLAMPYl.cjs} +1 -1
- package/dist/{index-8TMkI46d.js → index-tXc9-Dpz.js} +5 -5
- package/dist/{index-Cu75UXH1.js → index-wT_u7Sip.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_92c12abe_lang-zw0_MXm-.js → index.vue_vue_type_style_index_0_scoped_92c12abe_lang-Cp7jnXuw.js} +19045 -19450
- package/dist/{index.vue_vue_type_style_index_0_scoped_92c12abe_lang-CvIVRrBm.cjs → index.vue_vue_type_style_index_0_scoped_92c12abe_lang-CuQjU1nB.cjs} +397 -397
- package/dist/{index.vue_vue_type_style_index_1_lang-B2vRPxHe.cjs → index.vue_vue_type_style_index_1_lang-AEdMqNIL.cjs} +2 -2
- package/dist/{index.vue_vue_type_style_index_1_lang-B88Ne666.js → index.vue_vue_type_style_index_1_lang-DzaXkSeA.js} +134 -134
- package/dist/{main-b1OREkjD.js → main-BuHWLsd1.js} +4 -4
- package/dist/{main-ChE0Sl1V.cjs → main-CvEytDJd.cjs} +1 -1
- package/dist/{menuIndex-QovY60sY.cjs → menuIndex-7DwfwtqQ.cjs} +1 -1
- package/dist/{menuIndex-BlBV6RY8.js → menuIndex-BpEQqtCU.js} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +10 -10
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +12 -12
- package/dist/{threeModel-BTiM-_yY.cjs → threeModel-BBPdmBqX.cjs} +1 -1
- package/dist/{threeModel-CUViA1pV.js → threeModel-qPRHxt0O.js} +62 -62
- package/dist/{threePreview-fEcukbqP.js → threePreview-BNspl3PQ.js} +102 -102
- package/dist/{threePreview-DiDVwpOj.cjs → threePreview-BQfgRzYJ.cjs} +1 -1
- package/dist/{threeSceneView-CxhlNkvh.cjs → threeSceneView-BTG6qz5g.cjs} +1 -1
- package/dist/{threeSceneView-BsxoPqAA.js → threeSceneView-Dkw-3Lex.js} +133 -133
- package/dist/{threeSceneViewForCPMPIP-CCTwBiPg.js → threeSceneViewForCPMPIP-BUGbgcyW.js} +8 -8
- package/dist/{threeSceneViewForCPMPIP-Bq9A66VO.cjs → threeSceneViewForCPMPIP-DZtGuJLA.cjs} +1 -1
- package/dist/{threeTrackPathView-D7zto1f1.cjs → threeTrackPathView-BMRciFya.cjs} +1 -1
- package/dist/{threeTrackPathView-DbqptnRu.js → threeTrackPathView-D5aLq-PQ.js} +94 -94
- package/dist/{threeViewerHost-B9vgyTcM.js → threeViewerHost-B5ajpfKi.js} +17 -17
- package/dist/{threeViewerHost-Dhc4vxhv.cjs → threeViewerHost-DZgqSUXb.cjs} +1 -1
- package/dist/{urdfTree-CfUfqc73.cjs → urdfTree-CXoYn4F5.cjs} +1 -1
- package/dist/{urdfTree-B9gafrR3.js → urdfTree-DVRrRAEg.js} +1 -1
- package/dist/{workpieceTreePanel-DzEBifIL.cjs → workpieceTreePanel--Lz2aEfm.cjs} +1 -1
- package/dist/{workpieceTreePanel-CoUx6lll.js → workpieceTreePanel-myjwdWI9.js} +81 -81
- package/package.json +1 -1
- package/dist/index-8ddlDjHL.js +0 -455
- package/dist/index-BLGT4-wX.cjs +0 -1
- package/dist/index-CTGhzBZx.cjs +0 -1
- package/dist/index-D7Ao1GyZ.cjs +0 -1
- package/dist/index-DUqjjluX.cjs +0 -1
- package/dist/index-NtRUaVwS.cjs +0 -1
- package/dist/index-aMvM6ti6.cjs +0 -1
- package/dist/index-kutaq0AT.cjs +0 -36
- 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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("./index-DbAWw4as.cjs"),d=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),u=()=>{const l=e.ref("角色管理"),n=e.ref(),a=e.ref([{key:"header",contents:[{prop:"name",align:"center",isRun:!1,label:"角色名称",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"status",align:"center",isRun:!1,label:"角色状态",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"sort",align:"center",isRun:!1,label:"排序码",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{prop:"remark",align:"center",isRun:!1,label:"备注",isRoute:!1,isTableColHidden:!1,isFormColHidden:!1},{label:"操作",isMainKey:!0}]},{key:"extraButton",contents:[{label:"新增"},{label:"批量删除"},{type:"upload",label:"导入"}]},{key:"rowButton",contents:[{label:"查看"},{label:"授权"}]},{key:"tableFilter",contents:[]},{key:"tableContents",contents:[["超级管理员","启用","01","",""]]}]);return{compName:l,changedRow:n,tableInfo:a,handleItemDataChange:o=>{},clickRowButton:async(o,i)=>{}}},f={class:"role-management"},m={class:"body"},p=e.defineComponent({__name:"index",setup(l){const{compName:n,changedRow:a,tableInfo:s,handleItemDataChange:r,clickRowButton:o}=u();return(i,t)=>(e.openBlock(),e.createElementBlock("div",f,[t[0]||(t[0]=e.createElementVNode("div",{class:"header"},null,-1)),e.createElementVNode("div",m,[e.createVNode(c.ssTable,{compName:e.unref(n),itemData:e.unref(s),changedContent:e.unref(a),onChange:e.unref(r),onOnButtonClick:e.unref(o)},null,8,["compName","itemData","changedContent","onChange","onOnButtonClick"])]),t[1]||(t[1]=e.createElementVNode("div",{class:"footer"},[e.createElementVNode("div",{class:"footer-left"}),e.createElementVNode("div",{class:"footer-right"})],-1))]))}}),b=d._export_sfc(p,[["__scopeId","data-v-18fd77ff"]]);exports.default=b;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as F, computed as N, ref as p, watch as P, createElementBlock as B, openBlock as b, createVNode as v, createCommentVNode as j, withCtx as u, createTextVNode as T, toDisplayString as I, resolveComponent as k, createBlock as x, Fragment as L, renderList as O, createElementVNode as R, normalizeStyle as q } from "vue";
|
|
2
|
-
import { A as H } from "./index-
|
|
3
|
-
import {
|
|
2
|
+
import { A as H } from "./index-CdOlTQZV.js";
|
|
3
|
+
import { e as M, f as V } from "./index-Cn5h5u4P.js";
|
|
4
4
|
import { E as z } from "./index-WLdc1goT.js";
|
|
5
5
|
import { _ as $ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
import { S as W } from "./index-
|
|
6
|
+
import { S as W } from "./index-BugYnyXc.js";
|
|
7
7
|
import { S as E } from "./index-BHtNKL1L.js";
|
|
8
8
|
const D = { class: "avatar-model-wrap" }, G = { key: 0 }, J = /* @__PURE__ */ F({
|
|
9
9
|
__name: "index",
|
|
@@ -0,0 +1,456 @@
|
|
|
1
|
+
import { createElementBlock as V, openBlock as x, createElementVNode as u, renderSlot as k, defineComponent as U, ref as F, resolveComponent as E, createVNode as h, withCtx as m, unref as $, reactive as q, watch as O, onBeforeUnmount as G, onMounted as J, createCommentVNode as Q, toDisplayString as R, createTextVNode as I } from "vue";
|
|
2
|
+
import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
import { b as D, p as H, s as X } from "./index-Cn5h5u4P.js";
|
|
4
|
+
import { v as Y } from "./index-V_SKEMp8.js";
|
|
5
|
+
import { E as j, a as Z } from "./index-WLdc1goT.js";
|
|
6
|
+
import { useRouter as ee } from "vue-router";
|
|
7
|
+
import { v as te } from "./index-D8c3Spt0.js";
|
|
8
|
+
import { l as ae, a as oe } from "./index-DoHjMY5d.js";
|
|
9
|
+
import { u as se } from "./index-DpdFnDS3.js";
|
|
10
|
+
const ne = {}, ie = { class: "left-wrap" }, ce = { class: "left-bg" };
|
|
11
|
+
function le(w, p) {
|
|
12
|
+
return x(), V("div", ie, [
|
|
13
|
+
u("div", ce, [
|
|
14
|
+
k(w.$slots, "img", {}, void 0, !0)
|
|
15
|
+
])
|
|
16
|
+
]);
|
|
17
|
+
}
|
|
18
|
+
const re = /* @__PURE__ */ B(ne, [["render", le], ["__scopeId", "data-v-9b7ee6c9"]]), M = {
|
|
19
|
+
ACCOUNT: "account",
|
|
20
|
+
FACE: "face"
|
|
21
|
+
}, de = { class: "right-wrap" }, ue = { class: "tab-content" }, me = { class: "tab-tips" }, fe = { class: "tab-content" }, ge = { class: "tab-tips" }, pe = /* @__PURE__ */ U({
|
|
22
|
+
__name: "index",
|
|
23
|
+
props: {
|
|
24
|
+
tabList: {
|
|
25
|
+
type: Array,
|
|
26
|
+
default: []
|
|
27
|
+
},
|
|
28
|
+
loading: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: !1
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
emits: ["clickLogin", "handleTabChange"],
|
|
34
|
+
setup(w, { emit: p }) {
|
|
35
|
+
const t = F(M.ACCOUNT), e = p, _ = () => {
|
|
36
|
+
e("clickLogin", t.value);
|
|
37
|
+
}, i = (o) => {
|
|
38
|
+
e("handleTabChange", o);
|
|
39
|
+
};
|
|
40
|
+
return (o, c) => {
|
|
41
|
+
const s = E("el-button"), r = E("el-tab-pane"), g = E("el-tabs");
|
|
42
|
+
return x(), V("div", de, [
|
|
43
|
+
h(g, {
|
|
44
|
+
modelValue: t.value,
|
|
45
|
+
"onUpdate:modelValue": c[0] || (c[0] = (v) => t.value = v),
|
|
46
|
+
class: "right-tabs",
|
|
47
|
+
onTabChange: i
|
|
48
|
+
}, {
|
|
49
|
+
default: m(() => [
|
|
50
|
+
h(r, {
|
|
51
|
+
name: $(M).ACCOUNT
|
|
52
|
+
}, {
|
|
53
|
+
label: m(() => [
|
|
54
|
+
k(o.$slots, "tabLabel1", {}, void 0, !0)
|
|
55
|
+
]),
|
|
56
|
+
default: m(() => [
|
|
57
|
+
u("div", ue, [
|
|
58
|
+
k(o.$slots, "tabContent1", {}, void 0, !0)
|
|
59
|
+
]),
|
|
60
|
+
u("div", {
|
|
61
|
+
class: "tab-button special",
|
|
62
|
+
onClick: _
|
|
63
|
+
}, [
|
|
64
|
+
h(s, { loading: w.loading }, {
|
|
65
|
+
default: m(() => [
|
|
66
|
+
k(o.$slots, "tabButton1", {}, void 0, !0)
|
|
67
|
+
]),
|
|
68
|
+
_: 3
|
|
69
|
+
}, 8, ["loading"])
|
|
70
|
+
]),
|
|
71
|
+
u("div", me, [
|
|
72
|
+
k(o.$slots, "tabTips1", {}, void 0, !0)
|
|
73
|
+
])
|
|
74
|
+
]),
|
|
75
|
+
_: 3
|
|
76
|
+
}, 8, ["name"]),
|
|
77
|
+
h(r, {
|
|
78
|
+
name: $(M).FACE
|
|
79
|
+
}, {
|
|
80
|
+
label: m(() => [
|
|
81
|
+
k(o.$slots, "tabLabel2", {}, void 0, !0)
|
|
82
|
+
]),
|
|
83
|
+
default: m(() => [
|
|
84
|
+
u("div", fe, [
|
|
85
|
+
k(o.$slots, "tabContent2", {}, void 0, !0)
|
|
86
|
+
]),
|
|
87
|
+
u("div", ge, [
|
|
88
|
+
k(o.$slots, "tabTips2", {}, void 0, !0)
|
|
89
|
+
])
|
|
90
|
+
]),
|
|
91
|
+
_: 3
|
|
92
|
+
}, 8, ["name"])
|
|
93
|
+
]),
|
|
94
|
+
_: 3
|
|
95
|
+
}, 8, ["modelValue"])
|
|
96
|
+
]);
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
}), _e = /* @__PURE__ */ B(pe, [["__scopeId", "data-v-8b1962f0"]]), ve = { class: "account-wrap" }, be = /* @__PURE__ */ U({
|
|
100
|
+
__name: "index",
|
|
101
|
+
props: {
|
|
102
|
+
activeTabName: {
|
|
103
|
+
type: String,
|
|
104
|
+
default: ""
|
|
105
|
+
},
|
|
106
|
+
isClickLogin: {
|
|
107
|
+
type: Boolean,
|
|
108
|
+
default: !1
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
emits: ["handleLoginFormChange"],
|
|
112
|
+
setup(w, { emit: p }) {
|
|
113
|
+
const t = w, e = q({
|
|
114
|
+
account: "",
|
|
115
|
+
password: ""
|
|
116
|
+
}), _ = q({
|
|
117
|
+
account: [
|
|
118
|
+
{ required: !0, message: "请输入账号", trigger: "blur" }
|
|
119
|
+
],
|
|
120
|
+
password: [
|
|
121
|
+
{ required: !0, message: "请输入密码", trigger: "blur" }
|
|
122
|
+
]
|
|
123
|
+
}), i = F(null), o = p;
|
|
124
|
+
return O(() => t.isClickLogin, (c) => {
|
|
125
|
+
var s;
|
|
126
|
+
c && (t == null ? void 0 : t.activeTabName) === "account" && ((s = i.value) == null || s.validate((r) => {
|
|
127
|
+
var g;
|
|
128
|
+
for (let v in e)
|
|
129
|
+
e.hasOwnProperty(v) && (e[v] = (g = e[v]) == null ? void 0 : g.trim());
|
|
130
|
+
o("handleLoginFormChange", r, r ? e : null);
|
|
131
|
+
}));
|
|
132
|
+
}, {
|
|
133
|
+
immediate: !0
|
|
134
|
+
}), O(() => t.activeTabName, (c) => {
|
|
135
|
+
var s;
|
|
136
|
+
c === "account" && ((s = i.value) == null || s.resetFields());
|
|
137
|
+
}), (c, s) => {
|
|
138
|
+
const r = E("svg-icon"), g = E("el-input"), v = E("el-form-item"), L = E("el-form");
|
|
139
|
+
return x(), V("div", ve, [
|
|
140
|
+
h(L, {
|
|
141
|
+
model: e,
|
|
142
|
+
rules: _,
|
|
143
|
+
ref_key: "formRef",
|
|
144
|
+
ref: i
|
|
145
|
+
}, {
|
|
146
|
+
default: m(() => [
|
|
147
|
+
h(v, {
|
|
148
|
+
label: "",
|
|
149
|
+
prop: "account"
|
|
150
|
+
}, {
|
|
151
|
+
default: m(() => [
|
|
152
|
+
h(g, {
|
|
153
|
+
class: "account-input",
|
|
154
|
+
modelValue: e.account,
|
|
155
|
+
"onUpdate:modelValue": s[0] || (s[0] = (a) => e.account = a),
|
|
156
|
+
placeholder: "请输入账号",
|
|
157
|
+
clearable: ""
|
|
158
|
+
}, {
|
|
159
|
+
prefix: m(() => [
|
|
160
|
+
h(r, {
|
|
161
|
+
name: "account",
|
|
162
|
+
style: { width: "15px", height: "15px" }
|
|
163
|
+
})
|
|
164
|
+
]),
|
|
165
|
+
_: 1
|
|
166
|
+
}, 8, ["modelValue"])
|
|
167
|
+
]),
|
|
168
|
+
_: 1
|
|
169
|
+
}),
|
|
170
|
+
h(v, {
|
|
171
|
+
label: "",
|
|
172
|
+
prop: "password"
|
|
173
|
+
}, {
|
|
174
|
+
default: m(() => [
|
|
175
|
+
h(g, {
|
|
176
|
+
class: "account-input",
|
|
177
|
+
modelValue: e.password,
|
|
178
|
+
"onUpdate:modelValue": s[1] || (s[1] = (a) => e.password = a),
|
|
179
|
+
type: "password",
|
|
180
|
+
placeholder: "请输入密码",
|
|
181
|
+
"show-password": "",
|
|
182
|
+
clearable: ""
|
|
183
|
+
}, {
|
|
184
|
+
prefix: m(() => [
|
|
185
|
+
h(r, {
|
|
186
|
+
name: "password",
|
|
187
|
+
style: { width: "15px", height: "15px" }
|
|
188
|
+
})
|
|
189
|
+
]),
|
|
190
|
+
_: 1
|
|
191
|
+
}, 8, ["modelValue"])
|
|
192
|
+
]),
|
|
193
|
+
_: 1
|
|
194
|
+
})
|
|
195
|
+
]),
|
|
196
|
+
_: 1
|
|
197
|
+
}, 8, ["model", "rules"])
|
|
198
|
+
]);
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
}), he = /* @__PURE__ */ B(be, [["__scopeId", "data-v-48037c0f"]]), ye = { class: "account-wrap" }, Ce = { class: "video-wrap" }, we = /* @__PURE__ */ U({
|
|
202
|
+
__name: "index",
|
|
203
|
+
props: {
|
|
204
|
+
systemKey: { default: "" },
|
|
205
|
+
activeTabName: { default: "" },
|
|
206
|
+
isClickLogin: { type: Boolean, default: !1 }
|
|
207
|
+
},
|
|
208
|
+
emits: ["handleLoginFormChange"],
|
|
209
|
+
setup(w, { emit: p }) {
|
|
210
|
+
const t = w, e = p;
|
|
211
|
+
D(H);
|
|
212
|
+
const _ = F(null), i = F(null);
|
|
213
|
+
let o = !1, c = null;
|
|
214
|
+
const s = async (a) => {
|
|
215
|
+
if (!a)
|
|
216
|
+
return;
|
|
217
|
+
const l = new FormData();
|
|
218
|
+
l.set("file", a), t.systemKey && l.set("systemKey", t.systemKey), console.log("Face Recognition", t.systemKey);
|
|
219
|
+
const T = await Y(l), { data: b } = T || {}, { user_name: C, password: d, layer: n } = (b == null ? void 0 : b.data) || {}, f = b == null ? void 0 : b.msg;
|
|
220
|
+
if (!C) {
|
|
221
|
+
j.warning(f || "识别失败,请重新识别!");
|
|
222
|
+
return;
|
|
223
|
+
}
|
|
224
|
+
e("handleLoginFormChange", !0, {
|
|
225
|
+
account: C,
|
|
226
|
+
password: d
|
|
227
|
+
});
|
|
228
|
+
}, r = () => {
|
|
229
|
+
if (!i.value || !_.value)
|
|
230
|
+
return;
|
|
231
|
+
const a = i.value, l = a.getContext("2d"), T = _.value;
|
|
232
|
+
a.width = 200, a.height = 200;
|
|
233
|
+
const b = T.videoWidth || 640, C = T.videoHeight || 480, d = Math.min(200 / b, 200 / C), n = b * d, f = C * d, y = (200 - n) / 2, S = (200 - f) / 2;
|
|
234
|
+
l == null || l.drawImage(T, 0, 0, b, C, y, S, n, f), a.toBlob((N) => {
|
|
235
|
+
if (N) {
|
|
236
|
+
const A = new File([N], "face.png", { type: "image/png" });
|
|
237
|
+
s(A);
|
|
238
|
+
}
|
|
239
|
+
}, "image/png");
|
|
240
|
+
}, g = async () => {
|
|
241
|
+
if (!_.value || o)
|
|
242
|
+
return;
|
|
243
|
+
const a = _.value;
|
|
244
|
+
try {
|
|
245
|
+
if (c = await navigator.mediaDevices.getUserMedia({
|
|
246
|
+
video: { facingMode: "user" },
|
|
247
|
+
// 前置;后置用 'environment'
|
|
248
|
+
audio: !1
|
|
249
|
+
}), a) {
|
|
250
|
+
const l = a;
|
|
251
|
+
l.srcObject = c, o = !0;
|
|
252
|
+
}
|
|
253
|
+
} catch {
|
|
254
|
+
j.warning("摄像头启动失败");
|
|
255
|
+
}
|
|
256
|
+
};
|
|
257
|
+
function v(a) {
|
|
258
|
+
if (a && (a.getTracks().forEach((l) => l.stop()), _.value)) {
|
|
259
|
+
const l = _.value;
|
|
260
|
+
l.srcObject = null;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
const L = () => {
|
|
264
|
+
v(c), o = !1;
|
|
265
|
+
};
|
|
266
|
+
return O(() => t.activeTabName, (a) => {
|
|
267
|
+
if (a !== M.FACE) {
|
|
268
|
+
L();
|
|
269
|
+
return;
|
|
270
|
+
}
|
|
271
|
+
if (a === M.FACE && !o) {
|
|
272
|
+
g();
|
|
273
|
+
return;
|
|
274
|
+
}
|
|
275
|
+
}), G(() => {
|
|
276
|
+
L();
|
|
277
|
+
}), (a, l) => (x(), V("div", ye, [
|
|
278
|
+
u("div", Ce, [
|
|
279
|
+
u("video", {
|
|
280
|
+
class: "face-video",
|
|
281
|
+
ref_key: "videoRef",
|
|
282
|
+
ref: _,
|
|
283
|
+
id: "v",
|
|
284
|
+
autoplay: "",
|
|
285
|
+
playsinline: ""
|
|
286
|
+
}, null, 512)
|
|
287
|
+
]),
|
|
288
|
+
u("button", {
|
|
289
|
+
class: "face-screenshot",
|
|
290
|
+
onClick: r
|
|
291
|
+
}, "人脸识别"),
|
|
292
|
+
u("canvas", {
|
|
293
|
+
ref_key: "canvasRef",
|
|
294
|
+
ref: i,
|
|
295
|
+
id: "canvas"
|
|
296
|
+
}, null, 512)
|
|
297
|
+
]));
|
|
298
|
+
}
|
|
299
|
+
}), Le = /* @__PURE__ */ B(we, [["__scopeId", "data-v-0efc65bd"]]), W = D(H), { isDefaultModel: Te } = se(), Ne = async (w, p) => {
|
|
300
|
+
var _, i, o, c, s, r, g, v, L, a, l, T, b, C;
|
|
301
|
+
let t = Object.values(w), e = await ae({
|
|
302
|
+
userName: (_ = t == null ? void 0 : t[0]) == null ? void 0 : _.trim(),
|
|
303
|
+
password: (i = t == null ? void 0 : t[1]) == null ? void 0 : i.trim()
|
|
304
|
+
});
|
|
305
|
+
if (((o = e == null ? void 0 : e.data) == null ? void 0 : o.status) === 200 && ((s = (c = e == null ? void 0 : e.data) == null ? void 0 : c.result) == null ? void 0 : s.length) <= 0 && (e = await oe({
|
|
306
|
+
userName: (r = t == null ? void 0 : t[0]) == null ? void 0 : r.trim(),
|
|
307
|
+
password: (g = t == null ? void 0 : t[1]) == null ? void 0 : g.trim(),
|
|
308
|
+
path: "系统管理/用户管理",
|
|
309
|
+
platId: p
|
|
310
|
+
})), ((v = e == null ? void 0 : e.data) == null ? void 0 : v.status) === 200 && ((a = (L = e == null ? void 0 : e.data) == null ? void 0 : L.result) == null ? void 0 : a.length) > 0) {
|
|
311
|
+
const n = ((T = (l = e == null ? void 0 : e.data) == null ? void 0 : l.result) == null ? void 0 : T.find((y) => Te(y))) || ((C = (b = e == null ? void 0 : e.data) == null ? void 0 : b.result) == null ? void 0 : C[0]);
|
|
312
|
+
sessionStorage.setItem("systemKey", p && p !== "" ? p : n == null ? void 0 : n.plat_id);
|
|
313
|
+
let f = n;
|
|
314
|
+
return f.plat_id = f.plat_id ?? p, W.setLoginUserInfo(f), W.setSystemKey(p && p !== "" ? p : n == null ? void 0 : n.plat_id), !0;
|
|
315
|
+
} else
|
|
316
|
+
return j.error("输入的密码错误,请重新输入"), !1;
|
|
317
|
+
}, ke = { class: "login-wrap" }, $e = { class: "login-body" }, Fe = { class: "login-body-item left" }, Se = { class: "title" }, Ae = { class: "first-level" }, Re = {
|
|
318
|
+
key: 0,
|
|
319
|
+
class: "logo"
|
|
320
|
+
}, Ee = ["src"], Ve = { class: "english-name" }, xe = { class: "login-body-item right" }, Ke = /* @__PURE__ */ U({
|
|
321
|
+
__name: "index",
|
|
322
|
+
props: {
|
|
323
|
+
oldSystemKey: {}
|
|
324
|
+
},
|
|
325
|
+
emits: ["change"],
|
|
326
|
+
setup(w, { emit: p }) {
|
|
327
|
+
const t = ee(), e = D(H), { systemKey: _, systemInfo: i, loginUserInfo: o } = X(e), c = F({
|
|
328
|
+
// sysCTitle: 'INSOFWORKS',
|
|
329
|
+
sysCTitle: "",
|
|
330
|
+
sysETitle: "",
|
|
331
|
+
// sysETitle: 'Dynamic Test Information System',
|
|
332
|
+
loginTitle: "账户密码登录",
|
|
333
|
+
tabs: [
|
|
334
|
+
{
|
|
335
|
+
name: "密码登录",
|
|
336
|
+
btnLabel: "登录",
|
|
337
|
+
tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
name: "人脸识别",
|
|
341
|
+
btnLabel: "人脸识别",
|
|
342
|
+
tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
name: "刷卡登录",
|
|
346
|
+
btnLabel: "登录",
|
|
347
|
+
tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
|
|
348
|
+
}
|
|
349
|
+
]
|
|
350
|
+
}), s = F("account"), r = F(!1), g = F(!1), v = () => {
|
|
351
|
+
r.value = !0;
|
|
352
|
+
}, L = (d, n) => {
|
|
353
|
+
r.value = !1, d && T(n);
|
|
354
|
+
}, a = async () => (sessionStorage.setItem("loginToken", "111"), !0), l = async () => {
|
|
355
|
+
var d, n, f;
|
|
356
|
+
try {
|
|
357
|
+
const y = await Z.post("http://139.196.154.85:20024/api/sysAuth/login", {
|
|
358
|
+
account: "superadmin",
|
|
359
|
+
password: "9bf00809059adc7f57bd290bf73ddf4d16f4c83b5937e2d68144ab0bd60d045d22d70afeed8f2fa071cda536e1fac0daf12b8e63dd870c3ca8b308f23be6e693bb32ebd3d013116dc8338d6854b1332701a522a7c43706a6db4162fbe991c8c08aa842fbbc34",
|
|
360
|
+
codeId: 0,
|
|
361
|
+
code: ""
|
|
362
|
+
});
|
|
363
|
+
return ((d = y == null ? void 0 : y.data) == null ? void 0 : d.code) === 200 && sessionStorage.setItem("magicToken", (f = (n = y.data) == null ? void 0 : n.result) == null ? void 0 : f.accessToken), !0;
|
|
364
|
+
} catch {
|
|
365
|
+
return !0;
|
|
366
|
+
}
|
|
367
|
+
};
|
|
368
|
+
J(async () => {
|
|
369
|
+
await a();
|
|
370
|
+
});
|
|
371
|
+
const T = async (d) => {
|
|
372
|
+
var S, N, A, K, P;
|
|
373
|
+
g.value = !0;
|
|
374
|
+
let n = [Ne(d, (S = i.value) == null ? void 0 : S.plat_id), a(), l()];
|
|
375
|
+
const f = await Promise.all(n);
|
|
376
|
+
(f == null ? void 0 : f.every((z) => z)) ? (await te(), t.push("/"), e.setLogRecordAsync({
|
|
377
|
+
type: "登录",
|
|
378
|
+
data: {
|
|
379
|
+
account: ((N = o.value) == null ? void 0 : N.account) ?? ((A = o.value) == null ? void 0 : A.账号),
|
|
380
|
+
userName: ((K = o.value) == null ? void 0 : K.姓名) || ((P = o.value) == null ? void 0 : P.userName) || "未知"
|
|
381
|
+
}
|
|
382
|
+
}, "/login", "login")) : g.value = !1;
|
|
383
|
+
}, b = (d) => {
|
|
384
|
+
s.value = d, r.value = !1, g.value = !1;
|
|
385
|
+
}, C = (d) => /^[\u4e00-\u9fa5\s,。!?《》“”【】]+$/.test(d);
|
|
386
|
+
return (d, n) => (x(), V("div", ke, [
|
|
387
|
+
u("div", $e, [
|
|
388
|
+
u("div", Fe, [
|
|
389
|
+
h(re, { class: "login-left-bg" }, {
|
|
390
|
+
img: m(() => {
|
|
391
|
+
var f, y, S, N, A, K;
|
|
392
|
+
return [
|
|
393
|
+
u("div", Se, [
|
|
394
|
+
u("div", Ae, [
|
|
395
|
+
(f = $(i)) != null && f.logo ? (x(), V("div", Re, [
|
|
396
|
+
u("img", {
|
|
397
|
+
src: (y = $(i)) == null ? void 0 : y.logo,
|
|
398
|
+
alt: ""
|
|
399
|
+
}, null, 8, Ee)
|
|
400
|
+
])) : Q("", !0),
|
|
401
|
+
u("div", Ve, R(((S = $(i)) == null ? void 0 : S.EnglishName) || "INSOFWORKS"), 1)
|
|
402
|
+
]),
|
|
403
|
+
u("div", null, R((N = $(i)) != null && N.chineseName && C((A = $(i)) == null ? void 0 : A.chineseName) ? (K = $(i)) == null ? void 0 : K.chineseName : "工业软件集成开发平台"), 1)
|
|
404
|
+
]),
|
|
405
|
+
n[0] || (n[0] = u("div", { class: "divide-line" }, null, -1))
|
|
406
|
+
];
|
|
407
|
+
}),
|
|
408
|
+
_: 1
|
|
409
|
+
})
|
|
410
|
+
]),
|
|
411
|
+
u("div", xe, [
|
|
412
|
+
h(_e, {
|
|
413
|
+
loading: g.value,
|
|
414
|
+
onClickLogin: v,
|
|
415
|
+
onHandleTabChange: b
|
|
416
|
+
}, {
|
|
417
|
+
title: m(() => [
|
|
418
|
+
I(R(c.value.loginTitle), 1)
|
|
419
|
+
]),
|
|
420
|
+
tabLabel1: m(() => [
|
|
421
|
+
I(R(c.value.tabs[0].name), 1)
|
|
422
|
+
]),
|
|
423
|
+
tabContent1: m(() => [
|
|
424
|
+
h(he, {
|
|
425
|
+
activeTabName: s.value,
|
|
426
|
+
isClickLogin: r.value,
|
|
427
|
+
onHandleLoginFormChange: L
|
|
428
|
+
}, null, 8, ["activeTabName", "isClickLogin"])
|
|
429
|
+
]),
|
|
430
|
+
tabButton1: m(() => [
|
|
431
|
+
I(R(c.value.tabs[0].btnLabel), 1)
|
|
432
|
+
]),
|
|
433
|
+
tabLabel2: m(() => [
|
|
434
|
+
I(R(c.value.tabs[1].name), 1)
|
|
435
|
+
]),
|
|
436
|
+
tabContent2: m(() => [
|
|
437
|
+
h(Le, {
|
|
438
|
+
systemKey: d.oldSystemKey,
|
|
439
|
+
activeTabName: s.value,
|
|
440
|
+
isClickLogin: r.value,
|
|
441
|
+
onHandleLoginFormChange: L
|
|
442
|
+
}, null, 8, ["systemKey", "activeTabName", "isClickLogin"])
|
|
443
|
+
]),
|
|
444
|
+
tabButton2: m(() => [
|
|
445
|
+
I(R(c.value.tabs[1].btnLabel), 1)
|
|
446
|
+
]),
|
|
447
|
+
_: 1
|
|
448
|
+
}, 8, ["loading"])
|
|
449
|
+
])
|
|
450
|
+
])
|
|
451
|
+
]));
|
|
452
|
+
}
|
|
453
|
+
}), qe = /* @__PURE__ */ B(Ke, [["__scopeId", "data-v-ae346b8e"]]);
|
|
454
|
+
export {
|
|
455
|
+
qe as default
|
|
456
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-DbAWw4as.cjs"),n=require("./index-C1HjpqRi.cjs"),u=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),r=e.ref([]),i=e.computed(()=>[{key:"extraButton",contents:[{label:"清空",background:"#f56c6c",color:"#ffffff"}]},{key:"rowButton",contents:[]},{key:"header",contents:[{label:"模块名称",prop:"module",filterable:!0},{label:"操作类型",prop:"type",filterable:!0},{label:"账号",prop:"account",filterable:!0},{label:"姓名",prop:"userName",filterable:!0},{label:"时间",prop:"timeStamp",sortable:!0}]},{key:"tableContents",contents:r.value}]),p=Object.freeze(Object.defineProperty({__proto__:null,pageData:i,tableData:r},Symbol.toStringTag,{value:"Module"})),b={class:"log-wrap"},d=e.defineComponent({__name:"index",setup(_){const t=e.reactive({...p});e.onMounted(async()=>{t.tableData=await n.getLogTableDataAsync("operate")});const c=l=>{var a;n.clickButton(l,(a=t.tableData)==null?void 0:a.map(o=>o.id),o=>{o&&(t.tableData=[])})};return(l,a)=>(e.openBlock(),e.createElementBlock("div",b,[e.createVNode(s.ssTable,{itemData:t.pageData,allowOperate:!1,allowSelect:!1,onOnButtonClick:c},null,8,["itemData"])]))}}),f=u._export_sfc(d,[["__scopeId","data-v-3d3b471d"]]);exports.default=f;
|