jmash-core 0.0.105 → 0.0.106
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/{401-BOz_vkD9.mjs → 401-E782PquR.mjs} +1 -1
- package/dist/{404-C3j3JcsC.mjs → 404-C_piB9vN.mjs} +1 -1
- package/dist/{BarChart-Ct3C3lxf.mjs → BarChart-D6VTKnAU.mjs} +8 -8
- package/dist/{index-2a2z9HJi.mjs → index-BbCqgUaV.mjs} +9314 -7066
- package/dist/{index-CY_q41vk.mjs → index-Cuya2xZq.mjs} +9 -9
- package/dist/{index-A45hOsK0.mjs → index-Mnaauuzn.mjs} +23 -23
- package/dist/{index-BQ76LDad.mjs → index-d9XDquy6.mjs} +25 -25
- package/dist/index.mjs +41 -41
- package/dist/{profile-2Fj4UE_T.mjs → profile-DI2Ni9_V.mjs} +30 -30
- package/dist/{runAs-OCfS-w0b.mjs → runAs-e9Fc_nyP.mjs} +1 -1
- package/dist/runAs.vue_vue_type_script_setup_true_lang-CxPu4m6V.mjs +140 -0
- package/dist/style.css +1 -1
- package/dist/{types-CpNFMGvq.mjs → types-_Dh3OFCg.mjs} +6 -6
- package/dist/{updatePwd-5Cn-ZpWM.mjs → updatePwd-DcxEOzQy.mjs} +1 -1
- package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-BF92aAwv.mjs → updatePwd.vue_vue_type_script_setup_true_lang-OiSdAbmC.mjs} +11 -11
- package/dts/src/components/JmashEnumRadio/index.vue.d.ts +18 -0
- package/dts/src/components/JmashImportUpload/index.vue.d.ts +31 -0
- package/dts/src/components/JmashMobileInsComponent/index.vue.d.ts +36 -0
- package/dts/src/components/JmashMultiImageUpload/index.vue.d.ts +38 -0
- package/dts/src/components/JmashMultiUpload/index.vue.d.ts +24 -0
- package/dts/src/components/JmashSingleImageUpload/index.vue.d.ts +18 -0
- package/package.json +1 -1
- package/dist/runAs.vue_vue_type_script_setup_true_lang-DxvOUNXP.mjs +0 -2492
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { c as n, H as N, h as V, I as B, E as P, S as U } from "./index-BbCqgUaV.mjs";
|
|
2
|
+
import { defineComponent as S, ref as y, useModel as M, reactive as A, resolveComponent as f, openBlock as d, createBlock as D, withCtx as l, createVNode as c, unref as o, createTextVNode as m, toDisplayString as s, createElementBlock as C, withDirectives as _, vShow as g, createCommentVNode as v } from "vue";
|
|
3
|
+
const $ = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "distance-left"
|
|
6
|
+
}, L = ["onClick"], j = /* @__PURE__ */ S({
|
|
7
|
+
__name: "runAs",
|
|
8
|
+
props: {
|
|
9
|
+
modelValue: { type: Boolean },
|
|
10
|
+
modelModifiers: {}
|
|
11
|
+
},
|
|
12
|
+
emits: ["update:modelValue"],
|
|
13
|
+
setup(I) {
|
|
14
|
+
const r = y(!1), p = y([]), i = n().user, u = M(I, "modelValue"), k = A([
|
|
15
|
+
{
|
|
16
|
+
label: "用户名",
|
|
17
|
+
prop: "loginName",
|
|
18
|
+
width: "100",
|
|
19
|
+
sortable: !0,
|
|
20
|
+
isColumn: !0
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
label: "用户昵称",
|
|
24
|
+
prop: "nickName",
|
|
25
|
+
width: "100",
|
|
26
|
+
isColumn: !0
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
label: "手机号",
|
|
30
|
+
prop: "mobilePhone",
|
|
31
|
+
slotName: "mobilePhone",
|
|
32
|
+
columnType: "slot",
|
|
33
|
+
width: "120",
|
|
34
|
+
isColumn: !0,
|
|
35
|
+
sortable: !0
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
label: "邮箱",
|
|
39
|
+
prop: "email",
|
|
40
|
+
width: "180",
|
|
41
|
+
slotName: "email",
|
|
42
|
+
columnType: "slot",
|
|
43
|
+
isColumn: !0,
|
|
44
|
+
sortable: !0
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
label: "状态",
|
|
48
|
+
width: "101",
|
|
49
|
+
slotName: "status",
|
|
50
|
+
columnType: "slot",
|
|
51
|
+
isColumn: !0
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
label: "操作",
|
|
55
|
+
width: "100",
|
|
56
|
+
slotName: "operation",
|
|
57
|
+
columnType: "slot",
|
|
58
|
+
fixed: "right",
|
|
59
|
+
isColumn: !0
|
|
60
|
+
}
|
|
61
|
+
]);
|
|
62
|
+
r.value = !0;
|
|
63
|
+
function w(t) {
|
|
64
|
+
t.showEncrypt = !t.showEncrypt;
|
|
65
|
+
}
|
|
66
|
+
N().then(({ data: t }) => {
|
|
67
|
+
r.value = !1, p.value = t.results;
|
|
68
|
+
});
|
|
69
|
+
function E(t) {
|
|
70
|
+
V.confirm("确定切换用户身份吗?", "提示", {
|
|
71
|
+
confirmButtonText: "确定",
|
|
72
|
+
cancelButtonText: "取消",
|
|
73
|
+
type: "warning"
|
|
74
|
+
}).then(() => {
|
|
75
|
+
console.log(n()), B(t.userId).then(async (a) => {
|
|
76
|
+
a.status === 200 && (n().user.roleCodes = [], n().user.permCodes = [], u.value = !1, location.reload(), P({
|
|
77
|
+
message: "切换成功",
|
|
78
|
+
type: "success"
|
|
79
|
+
}));
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
return (t, a) => {
|
|
84
|
+
const h = U, T = f("Table"), x = f("el-dialog");
|
|
85
|
+
return d(), D(x, {
|
|
86
|
+
title: "切换身份",
|
|
87
|
+
modelValue: u.value,
|
|
88
|
+
"onUpdate:modelValue": a[0] || (a[0] = (e) => u.value = e),
|
|
89
|
+
width: "800px"
|
|
90
|
+
}, {
|
|
91
|
+
default: l(() => [
|
|
92
|
+
c(T, {
|
|
93
|
+
class: "table-top",
|
|
94
|
+
ref: "multipleTableRef",
|
|
95
|
+
"row-keys": "userId",
|
|
96
|
+
"list-loading": o(r),
|
|
97
|
+
"table-data": o(p),
|
|
98
|
+
"table-label": o(k)
|
|
99
|
+
}, {
|
|
100
|
+
mobilePhone: l((e) => [
|
|
101
|
+
m(s(e.data.row.showEncrypt ? e.data.row.mobilePhone : e.data.row.mobilePhoneIns), 1)
|
|
102
|
+
]),
|
|
103
|
+
email: l((e) => [
|
|
104
|
+
m(s(e.data.row.showEncrypt ? e.data.row.email : e.data.row.emailIns), 1)
|
|
105
|
+
]),
|
|
106
|
+
status: l((e) => [
|
|
107
|
+
m(s(e.data.row.userId.replace(/-/g, "") === o(i).primaryUserId ? "原身份" : "") + " " + s(e.data.row.userId == o(i).userId ? "当前身份" : ""), 1)
|
|
108
|
+
]),
|
|
109
|
+
operation: l((e) => [
|
|
110
|
+
e.data.row.mobilePhoneIns ? (d(), C("span", $, [
|
|
111
|
+
_(c(h, {
|
|
112
|
+
"icon-class": "close-eye",
|
|
113
|
+
onClick: (b) => w(e.data.row)
|
|
114
|
+
}, null, 8, ["onClick"]), [
|
|
115
|
+
[g, !e.data.row.showEncrypt]
|
|
116
|
+
]),
|
|
117
|
+
_(c(h, {
|
|
118
|
+
"icon-class": "eye-open",
|
|
119
|
+
onClick: (b) => w(e.data.row)
|
|
120
|
+
}, null, 8, ["onClick"]), [
|
|
121
|
+
[g, e.data.row.showEncrypt]
|
|
122
|
+
])
|
|
123
|
+
])) : v("", !0),
|
|
124
|
+
e.data.row.userId !== o(i).userId ? (d(), C("span", {
|
|
125
|
+
key: 1,
|
|
126
|
+
class: "el-button-color",
|
|
127
|
+
onClick: (b) => E(e.data.row)
|
|
128
|
+
}, " 切换 ", 8, L)) : v("", !0)
|
|
129
|
+
]),
|
|
130
|
+
_: 1
|
|
131
|
+
}, 8, ["list-loading", "table-data", "table-label"])
|
|
132
|
+
]),
|
|
133
|
+
_: 1
|
|
134
|
+
}, 8, ["modelValue"]);
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
export {
|
|
139
|
+
j as _
|
|
140
|
+
};
|