gds-plus-design-vue 1.1.63 → 1.1.71
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/lib/chartbi.48631362.mjs +44076 -0
- package/lib/chartbi.afd83839.js +80 -0
- package/lib/element-theme-chalk.ae828c17.js +2 -0
- package/lib/gd-initial.js +34 -0
- package/lib/gd-initial.mjs +80343 -101
- package/lib/main.03b24a05.js +1 -0
- package/lib/{main.4ac5b69f.mjs → main.3cd24320.mjs} +27 -18
- package/lib/main.4cafc3eb.mjs +68 -0
- package/lib/main.eea30a23.js +1 -0
- package/lib/main.efd6b228.mjs +87 -0
- package/lib/main.f1e3ba71.js +1 -0
- package/lib/messages.083c4ede.js +9 -0
- package/lib/messages.7e85146d.mjs +5802 -0
- package/lib/style.css +2 -2
- package/lib/system.account.78b852cd.js +216 -0
- package/lib/system.account.ae0822f1.mjs +2552 -0
- package/lib/system.config.327aded6.js +1 -0
- package/lib/system.config.9c46f279.mjs +373 -0
- package/lib/system.datasource.4b0951ba.mjs +511 -0
- package/lib/system.datasource.8a0c7e0f.js +1 -0
- package/lib/system.dict.65f25e4e.mjs +996 -0
- package/lib/system.dict.72594c98.js +1 -0
- package/lib/system.duplicatechecking.2e9b8df8.js +1 -0
- package/lib/system.duplicatechecking.b05f1617.mjs +2130 -0
- package/lib/system.email.0899621c.js +41 -0
- package/lib/system.email.a4d6d622.mjs +7432 -0
- package/lib/system.fieldsecurity.7de4ee1d.mjs +1745 -0
- package/lib/system.fieldsecurity.d57edb47.js +1 -0
- package/lib/system.file.b3558a8b.js +1 -0
- package/lib/system.file.f152d4fe.mjs +489 -0
- package/lib/system.log.30e5157c.mjs +1450 -0
- package/lib/system.log.f243e7d0.js +1 -0
- package/lib/system.machine.325b256e.mjs +94 -0
- package/lib/system.machine.332fb31c.js +1 -0
- package/lib/system.notice.234d5e47.mjs +636 -0
- package/lib/system.notice.540e97ca.js +1 -0
- package/lib/system.noticereceived.1fb75290.js +1 -0
- package/lib/system.noticereceived.c22372df.mjs +158 -0
- package/lib/system.onlineuser.90c08aef.mjs +184 -0
- package/lib/system.onlineuser.e0c261ed.js +1 -0
- package/lib/system.org.65452f67.js +1 -0
- package/lib/system.org.b8d59e5d.mjs +421 -0
- package/lib/system.permissions.8b0d3c8c.js +9 -0
- package/lib/system.permissions.cba8bd58.mjs +212 -0
- package/lib/system.plugin.07b3c38e.js +1 -0
- package/lib/system.plugin.4911a33d.mjs +946 -0
- package/lib/system.pos.6ed35c39.js +1 -0
- package/lib/system.pos.c274f13c.mjs +312 -0
- package/lib/system.promptmanagement.8ae0e757.js +1 -0
- package/lib/system.promptmanagement.b07ba7b6.mjs +801 -0
- package/lib/system.role.53778e38.mjs +1509 -0
- package/lib/system.role.c3d74603.js +1 -0
- package/lib/system.timers.69f1792a.mjs +3160 -0
- package/lib/system.timers.ef6b6796.js +38 -0
- package/lib/system.translation.0109917e.js +1 -0
- package/lib/system.translation.f79a5244.mjs +665 -0
- package/lib/system.user.01a55993.mjs +1425 -0
- package/lib/system.user.ea18a84c.js +14 -0
- package/lib/system.useraffiliation.1e74fa9e.mjs +1025 -0
- package/lib/system.useraffiliation.f3c88a51.js +1 -0
- package/lib/system.webresource.5049d97b.js +1 -0
- package/lib/system.webresource.e9518d87.mjs +723 -0
- package/lib/system.welcome.3f1cce96.mjs +45 -0
- package/lib/system.welcome.b109df88.js +1 -0
- package/locale/en_US.js +69 -10
- package/locale/id_ID.js +68 -9
- package/locale/vi_VN.js +68 -9
- package/locale/zh_CN.js +67 -9
- package/package.json +105 -105
- package/lib/gd-initial.umd.js +0 -435
- package/lib/index.841c99a5.mjs +0 -157130
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import { c as commonjsGlobal, a as sysUserOwnRole } from "./system.account.ae0822f1.mjs";
|
|
2
|
+
import { f as baseFkList } from "./messages.7e85146d.mjs";
|
|
3
|
+
import { n as normalizeComponent } from "./chartbi.48631362.mjs";
|
|
4
|
+
var md5 = { exports: {} };
|
|
5
|
+
/**
|
|
6
|
+
* [js-md5]{@link https://github.com/emn178/js-md5}
|
|
7
|
+
*
|
|
8
|
+
* @namespace md5
|
|
9
|
+
* @version 0.7.3
|
|
10
|
+
* @author Chen, Yi-Cyuan [emn178@gmail.com]
|
|
11
|
+
* @copyright Chen, Yi-Cyuan 2014-2017
|
|
12
|
+
* @license MIT
|
|
13
|
+
*/
|
|
14
|
+
(function(module) {
|
|
15
|
+
(function() {
|
|
16
|
+
var ERROR = "input is invalid type", WINDOW = typeof window == "object", root = WINDOW ? window : {};
|
|
17
|
+
root.JS_MD5_NO_WINDOW && (WINDOW = !1);
|
|
18
|
+
var WEB_WORKER = !WINDOW && typeof self == "object", NODE_JS = !root.JS_MD5_NO_NODE_JS && typeof process == "object" && process.versions && process.versions.node;
|
|
19
|
+
NODE_JS ? root = commonjsGlobal : WEB_WORKER && (root = self);
|
|
20
|
+
var COMMON_JS = !root.JS_MD5_NO_COMMON_JS && !0 && module.exports, ARRAY_BUFFER = !root.JS_MD5_NO_ARRAY_BUFFER && typeof ArrayBuffer < "u", HEX_CHARS = "0123456789abcdef".split(""), EXTRA = [128, 32768, 8388608, -2147483648], SHIFT = [0, 8, 16, 24], OUTPUT_TYPES = ["hex", "array", "digest", "buffer", "arrayBuffer", "base64"], BASE64_ENCODE_CHAR = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""), blocks = [], buffer8;
|
|
21
|
+
if (ARRAY_BUFFER) {
|
|
22
|
+
var buffer = new ArrayBuffer(68);
|
|
23
|
+
buffer8 = new Uint8Array(buffer), blocks = new Uint32Array(buffer);
|
|
24
|
+
}
|
|
25
|
+
(root.JS_MD5_NO_NODE_JS || !Array.isArray) && (Array.isArray = function(t) {
|
|
26
|
+
return Object.prototype.toString.call(t) === "[object Array]";
|
|
27
|
+
}), ARRAY_BUFFER && (root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW || !ArrayBuffer.isView) && (ArrayBuffer.isView = function(t) {
|
|
28
|
+
return typeof t == "object" && t.buffer && t.buffer.constructor === ArrayBuffer;
|
|
29
|
+
});
|
|
30
|
+
var createOutputMethod = function(t) {
|
|
31
|
+
return function(r) {
|
|
32
|
+
return new Md5(!0).update(r)[t]();
|
|
33
|
+
};
|
|
34
|
+
}, createMethod = function() {
|
|
35
|
+
var t = createOutputMethod("hex");
|
|
36
|
+
NODE_JS && (t = nodeWrap(t)), t.create = function() {
|
|
37
|
+
return new Md5();
|
|
38
|
+
}, t.update = function(e) {
|
|
39
|
+
return t.create().update(e);
|
|
40
|
+
};
|
|
41
|
+
for (var r = 0; r < OUTPUT_TYPES.length; ++r) {
|
|
42
|
+
var i = OUTPUT_TYPES[r];
|
|
43
|
+
t[i] = createOutputMethod(i);
|
|
44
|
+
}
|
|
45
|
+
return t;
|
|
46
|
+
}, nodeWrap = function(method) {
|
|
47
|
+
var crypto = eval("require('crypto')"), Buffer = eval("require('buffer').Buffer"), nodeMethod = function(t) {
|
|
48
|
+
if (typeof t == "string")
|
|
49
|
+
return crypto.createHash("md5").update(t, "utf8").digest("hex");
|
|
50
|
+
if (t == null)
|
|
51
|
+
throw ERROR;
|
|
52
|
+
return t.constructor === ArrayBuffer && (t = new Uint8Array(t)), Array.isArray(t) || ArrayBuffer.isView(t) || t.constructor === Buffer ? crypto.createHash("md5").update(new Buffer(t)).digest("hex") : method(t);
|
|
53
|
+
};
|
|
54
|
+
return nodeMethod;
|
|
55
|
+
};
|
|
56
|
+
function Md5(t) {
|
|
57
|
+
if (t)
|
|
58
|
+
blocks[0] = blocks[16] = blocks[1] = blocks[2] = blocks[3] = blocks[4] = blocks[5] = blocks[6] = blocks[7] = blocks[8] = blocks[9] = blocks[10] = blocks[11] = blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0, this.blocks = blocks, this.buffer8 = buffer8;
|
|
59
|
+
else if (ARRAY_BUFFER) {
|
|
60
|
+
var r = new ArrayBuffer(68);
|
|
61
|
+
this.buffer8 = new Uint8Array(r), this.blocks = new Uint32Array(r);
|
|
62
|
+
} else
|
|
63
|
+
this.blocks = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
|
|
64
|
+
this.h0 = this.h1 = this.h2 = this.h3 = this.start = this.bytes = this.hBytes = 0, this.finalized = this.hashed = !1, this.first = !0;
|
|
65
|
+
}
|
|
66
|
+
Md5.prototype.update = function(t) {
|
|
67
|
+
if (!this.finalized) {
|
|
68
|
+
var r, i = typeof t;
|
|
69
|
+
if (i !== "string") {
|
|
70
|
+
if (i === "object") {
|
|
71
|
+
if (t === null)
|
|
72
|
+
throw ERROR;
|
|
73
|
+
if (ARRAY_BUFFER && t.constructor === ArrayBuffer)
|
|
74
|
+
t = new Uint8Array(t);
|
|
75
|
+
else if (!Array.isArray(t) && (!ARRAY_BUFFER || !ArrayBuffer.isView(t)))
|
|
76
|
+
throw ERROR;
|
|
77
|
+
} else
|
|
78
|
+
throw ERROR;
|
|
79
|
+
r = !0;
|
|
80
|
+
}
|
|
81
|
+
for (var e, o = 0, a, s = t.length, n = this.blocks, f = this.buffer8; o < s; ) {
|
|
82
|
+
if (this.hashed && (this.hashed = !1, n[0] = n[16], n[16] = n[1] = n[2] = n[3] = n[4] = n[5] = n[6] = n[7] = n[8] = n[9] = n[10] = n[11] = n[12] = n[13] = n[14] = n[15] = 0), r)
|
|
83
|
+
if (ARRAY_BUFFER)
|
|
84
|
+
for (a = this.start; o < s && a < 64; ++o)
|
|
85
|
+
f[a++] = t[o];
|
|
86
|
+
else
|
|
87
|
+
for (a = this.start; o < s && a < 64; ++o)
|
|
88
|
+
n[a >> 2] |= t[o] << SHIFT[a++ & 3];
|
|
89
|
+
else if (ARRAY_BUFFER)
|
|
90
|
+
for (a = this.start; o < s && a < 64; ++o)
|
|
91
|
+
e = t.charCodeAt(o), e < 128 ? f[a++] = e : e < 2048 ? (f[a++] = 192 | e >> 6, f[a++] = 128 | e & 63) : e < 55296 || e >= 57344 ? (f[a++] = 224 | e >> 12, f[a++] = 128 | e >> 6 & 63, f[a++] = 128 | e & 63) : (e = 65536 + ((e & 1023) << 10 | t.charCodeAt(++o) & 1023), f[a++] = 240 | e >> 18, f[a++] = 128 | e >> 12 & 63, f[a++] = 128 | e >> 6 & 63, f[a++] = 128 | e & 63);
|
|
92
|
+
else
|
|
93
|
+
for (a = this.start; o < s && a < 64; ++o)
|
|
94
|
+
e = t.charCodeAt(o), e < 128 ? n[a >> 2] |= e << SHIFT[a++ & 3] : e < 2048 ? (n[a >> 2] |= (192 | e >> 6) << SHIFT[a++ & 3], n[a >> 2] |= (128 | e & 63) << SHIFT[a++ & 3]) : e < 55296 || e >= 57344 ? (n[a >> 2] |= (224 | e >> 12) << SHIFT[a++ & 3], n[a >> 2] |= (128 | e >> 6 & 63) << SHIFT[a++ & 3], n[a >> 2] |= (128 | e & 63) << SHIFT[a++ & 3]) : (e = 65536 + ((e & 1023) << 10 | t.charCodeAt(++o) & 1023), n[a >> 2] |= (240 | e >> 18) << SHIFT[a++ & 3], n[a >> 2] |= (128 | e >> 12 & 63) << SHIFT[a++ & 3], n[a >> 2] |= (128 | e >> 6 & 63) << SHIFT[a++ & 3], n[a >> 2] |= (128 | e & 63) << SHIFT[a++ & 3]);
|
|
95
|
+
this.lastByteIndex = a, this.bytes += a - this.start, a >= 64 ? (this.start = a - 64, this.hash(), this.hashed = !0) : this.start = a;
|
|
96
|
+
}
|
|
97
|
+
return this.bytes > 4294967295 && (this.hBytes += this.bytes / 4294967296 << 0, this.bytes = this.bytes % 4294967296), this;
|
|
98
|
+
}
|
|
99
|
+
}, Md5.prototype.finalize = function() {
|
|
100
|
+
if (!this.finalized) {
|
|
101
|
+
this.finalized = !0;
|
|
102
|
+
var t = this.blocks, r = this.lastByteIndex;
|
|
103
|
+
t[r >> 2] |= EXTRA[r & 3], r >= 56 && (this.hashed || this.hash(), t[0] = t[16], t[16] = t[1] = t[2] = t[3] = t[4] = t[5] = t[6] = t[7] = t[8] = t[9] = t[10] = t[11] = t[12] = t[13] = t[14] = t[15] = 0), t[14] = this.bytes << 3, t[15] = this.hBytes << 3 | this.bytes >>> 29, this.hash();
|
|
104
|
+
}
|
|
105
|
+
}, Md5.prototype.hash = function() {
|
|
106
|
+
var t, r, i, e, o, a, s = this.blocks;
|
|
107
|
+
this.first ? (t = s[0] - 680876937, t = (t << 7 | t >>> 25) - 271733879 << 0, e = (-1732584194 ^ t & 2004318071) + s[1] - 117830708, e = (e << 12 | e >>> 20) + t << 0, i = (-271733879 ^ e & (t ^ -271733879)) + s[2] - 1126478375, i = (i << 17 | i >>> 15) + e << 0, r = (t ^ i & (e ^ t)) + s[3] - 1316259209, r = (r << 22 | r >>> 10) + i << 0) : (t = this.h0, r = this.h1, i = this.h2, e = this.h3, t += (e ^ r & (i ^ e)) + s[0] - 680876936, t = (t << 7 | t >>> 25) + r << 0, e += (i ^ t & (r ^ i)) + s[1] - 389564586, e = (e << 12 | e >>> 20) + t << 0, i += (r ^ e & (t ^ r)) + s[2] + 606105819, i = (i << 17 | i >>> 15) + e << 0, r += (t ^ i & (e ^ t)) + s[3] - 1044525330, r = (r << 22 | r >>> 10) + i << 0), t += (e ^ r & (i ^ e)) + s[4] - 176418897, t = (t << 7 | t >>> 25) + r << 0, e += (i ^ t & (r ^ i)) + s[5] + 1200080426, e = (e << 12 | e >>> 20) + t << 0, i += (r ^ e & (t ^ r)) + s[6] - 1473231341, i = (i << 17 | i >>> 15) + e << 0, r += (t ^ i & (e ^ t)) + s[7] - 45705983, r = (r << 22 | r >>> 10) + i << 0, t += (e ^ r & (i ^ e)) + s[8] + 1770035416, t = (t << 7 | t >>> 25) + r << 0, e += (i ^ t & (r ^ i)) + s[9] - 1958414417, e = (e << 12 | e >>> 20) + t << 0, i += (r ^ e & (t ^ r)) + s[10] - 42063, i = (i << 17 | i >>> 15) + e << 0, r += (t ^ i & (e ^ t)) + s[11] - 1990404162, r = (r << 22 | r >>> 10) + i << 0, t += (e ^ r & (i ^ e)) + s[12] + 1804603682, t = (t << 7 | t >>> 25) + r << 0, e += (i ^ t & (r ^ i)) + s[13] - 40341101, e = (e << 12 | e >>> 20) + t << 0, i += (r ^ e & (t ^ r)) + s[14] - 1502002290, i = (i << 17 | i >>> 15) + e << 0, r += (t ^ i & (e ^ t)) + s[15] + 1236535329, r = (r << 22 | r >>> 10) + i << 0, t += (i ^ e & (r ^ i)) + s[1] - 165796510, t = (t << 5 | t >>> 27) + r << 0, e += (r ^ i & (t ^ r)) + s[6] - 1069501632, e = (e << 9 | e >>> 23) + t << 0, i += (t ^ r & (e ^ t)) + s[11] + 643717713, i = (i << 14 | i >>> 18) + e << 0, r += (e ^ t & (i ^ e)) + s[0] - 373897302, r = (r << 20 | r >>> 12) + i << 0, t += (i ^ e & (r ^ i)) + s[5] - 701558691, t = (t << 5 | t >>> 27) + r << 0, e += (r ^ i & (t ^ r)) + s[10] + 38016083, e = (e << 9 | e >>> 23) + t << 0, i += (t ^ r & (e ^ t)) + s[15] - 660478335, i = (i << 14 | i >>> 18) + e << 0, r += (e ^ t & (i ^ e)) + s[4] - 405537848, r = (r << 20 | r >>> 12) + i << 0, t += (i ^ e & (r ^ i)) + s[9] + 568446438, t = (t << 5 | t >>> 27) + r << 0, e += (r ^ i & (t ^ r)) + s[14] - 1019803690, e = (e << 9 | e >>> 23) + t << 0, i += (t ^ r & (e ^ t)) + s[3] - 187363961, i = (i << 14 | i >>> 18) + e << 0, r += (e ^ t & (i ^ e)) + s[8] + 1163531501, r = (r << 20 | r >>> 12) + i << 0, t += (i ^ e & (r ^ i)) + s[13] - 1444681467, t = (t << 5 | t >>> 27) + r << 0, e += (r ^ i & (t ^ r)) + s[2] - 51403784, e = (e << 9 | e >>> 23) + t << 0, i += (t ^ r & (e ^ t)) + s[7] + 1735328473, i = (i << 14 | i >>> 18) + e << 0, r += (e ^ t & (i ^ e)) + s[12] - 1926607734, r = (r << 20 | r >>> 12) + i << 0, o = r ^ i, t += (o ^ e) + s[5] - 378558, t = (t << 4 | t >>> 28) + r << 0, e += (o ^ t) + s[8] - 2022574463, e = (e << 11 | e >>> 21) + t << 0, a = e ^ t, i += (a ^ r) + s[11] + 1839030562, i = (i << 16 | i >>> 16) + e << 0, r += (a ^ i) + s[14] - 35309556, r = (r << 23 | r >>> 9) + i << 0, o = r ^ i, t += (o ^ e) + s[1] - 1530992060, t = (t << 4 | t >>> 28) + r << 0, e += (o ^ t) + s[4] + 1272893353, e = (e << 11 | e >>> 21) + t << 0, a = e ^ t, i += (a ^ r) + s[7] - 155497632, i = (i << 16 | i >>> 16) + e << 0, r += (a ^ i) + s[10] - 1094730640, r = (r << 23 | r >>> 9) + i << 0, o = r ^ i, t += (o ^ e) + s[13] + 681279174, t = (t << 4 | t >>> 28) + r << 0, e += (o ^ t) + s[0] - 358537222, e = (e << 11 | e >>> 21) + t << 0, a = e ^ t, i += (a ^ r) + s[3] - 722521979, i = (i << 16 | i >>> 16) + e << 0, r += (a ^ i) + s[6] + 76029189, r = (r << 23 | r >>> 9) + i << 0, o = r ^ i, t += (o ^ e) + s[9] - 640364487, t = (t << 4 | t >>> 28) + r << 0, e += (o ^ t) + s[12] - 421815835, e = (e << 11 | e >>> 21) + t << 0, a = e ^ t, i += (a ^ r) + s[15] + 530742520, i = (i << 16 | i >>> 16) + e << 0, r += (a ^ i) + s[2] - 995338651, r = (r << 23 | r >>> 9) + i << 0, t += (i ^ (r | ~e)) + s[0] - 198630844, t = (t << 6 | t >>> 26) + r << 0, e += (r ^ (t | ~i)) + s[7] + 1126891415, e = (e << 10 | e >>> 22) + t << 0, i += (t ^ (e | ~r)) + s[14] - 1416354905, i = (i << 15 | i >>> 17) + e << 0, r += (e ^ (i | ~t)) + s[5] - 57434055, r = (r << 21 | r >>> 11) + i << 0, t += (i ^ (r | ~e)) + s[12] + 1700485571, t = (t << 6 | t >>> 26) + r << 0, e += (r ^ (t | ~i)) + s[3] - 1894986606, e = (e << 10 | e >>> 22) + t << 0, i += (t ^ (e | ~r)) + s[10] - 1051523, i = (i << 15 | i >>> 17) + e << 0, r += (e ^ (i | ~t)) + s[1] - 2054922799, r = (r << 21 | r >>> 11) + i << 0, t += (i ^ (r | ~e)) + s[8] + 1873313359, t = (t << 6 | t >>> 26) + r << 0, e += (r ^ (t | ~i)) + s[15] - 30611744, e = (e << 10 | e >>> 22) + t << 0, i += (t ^ (e | ~r)) + s[6] - 1560198380, i = (i << 15 | i >>> 17) + e << 0, r += (e ^ (i | ~t)) + s[13] + 1309151649, r = (r << 21 | r >>> 11) + i << 0, t += (i ^ (r | ~e)) + s[4] - 145523070, t = (t << 6 | t >>> 26) + r << 0, e += (r ^ (t | ~i)) + s[11] - 1120210379, e = (e << 10 | e >>> 22) + t << 0, i += (t ^ (e | ~r)) + s[2] + 718787259, i = (i << 15 | i >>> 17) + e << 0, r += (e ^ (i | ~t)) + s[9] - 343485551, r = (r << 21 | r >>> 11) + i << 0, this.first ? (this.h0 = t + 1732584193 << 0, this.h1 = r - 271733879 << 0, this.h2 = i - 1732584194 << 0, this.h3 = e + 271733878 << 0, this.first = !1) : (this.h0 = this.h0 + t << 0, this.h1 = this.h1 + r << 0, this.h2 = this.h2 + i << 0, this.h3 = this.h3 + e << 0);
|
|
108
|
+
}, Md5.prototype.hex = function() {
|
|
109
|
+
this.finalize();
|
|
110
|
+
var t = this.h0, r = this.h1, i = this.h2, e = this.h3;
|
|
111
|
+
return HEX_CHARS[t >> 4 & 15] + HEX_CHARS[t & 15] + HEX_CHARS[t >> 12 & 15] + HEX_CHARS[t >> 8 & 15] + HEX_CHARS[t >> 20 & 15] + HEX_CHARS[t >> 16 & 15] + HEX_CHARS[t >> 28 & 15] + HEX_CHARS[t >> 24 & 15] + HEX_CHARS[r >> 4 & 15] + HEX_CHARS[r & 15] + HEX_CHARS[r >> 12 & 15] + HEX_CHARS[r >> 8 & 15] + HEX_CHARS[r >> 20 & 15] + HEX_CHARS[r >> 16 & 15] + HEX_CHARS[r >> 28 & 15] + HEX_CHARS[r >> 24 & 15] + HEX_CHARS[i >> 4 & 15] + HEX_CHARS[i & 15] + HEX_CHARS[i >> 12 & 15] + HEX_CHARS[i >> 8 & 15] + HEX_CHARS[i >> 20 & 15] + HEX_CHARS[i >> 16 & 15] + HEX_CHARS[i >> 28 & 15] + HEX_CHARS[i >> 24 & 15] + HEX_CHARS[e >> 4 & 15] + HEX_CHARS[e & 15] + HEX_CHARS[e >> 12 & 15] + HEX_CHARS[e >> 8 & 15] + HEX_CHARS[e >> 20 & 15] + HEX_CHARS[e >> 16 & 15] + HEX_CHARS[e >> 28 & 15] + HEX_CHARS[e >> 24 & 15];
|
|
112
|
+
}, Md5.prototype.toString = Md5.prototype.hex, Md5.prototype.digest = function() {
|
|
113
|
+
this.finalize();
|
|
114
|
+
var t = this.h0, r = this.h1, i = this.h2, e = this.h3;
|
|
115
|
+
return [
|
|
116
|
+
t & 255,
|
|
117
|
+
t >> 8 & 255,
|
|
118
|
+
t >> 16 & 255,
|
|
119
|
+
t >> 24 & 255,
|
|
120
|
+
r & 255,
|
|
121
|
+
r >> 8 & 255,
|
|
122
|
+
r >> 16 & 255,
|
|
123
|
+
r >> 24 & 255,
|
|
124
|
+
i & 255,
|
|
125
|
+
i >> 8 & 255,
|
|
126
|
+
i >> 16 & 255,
|
|
127
|
+
i >> 24 & 255,
|
|
128
|
+
e & 255,
|
|
129
|
+
e >> 8 & 255,
|
|
130
|
+
e >> 16 & 255,
|
|
131
|
+
e >> 24 & 255
|
|
132
|
+
];
|
|
133
|
+
}, Md5.prototype.array = Md5.prototype.digest, Md5.prototype.arrayBuffer = function() {
|
|
134
|
+
this.finalize();
|
|
135
|
+
var t = new ArrayBuffer(16), r = new Uint32Array(t);
|
|
136
|
+
return r[0] = this.h0, r[1] = this.h1, r[2] = this.h2, r[3] = this.h3, t;
|
|
137
|
+
}, Md5.prototype.buffer = Md5.prototype.arrayBuffer, Md5.prototype.base64 = function() {
|
|
138
|
+
for (var t, r, i, e = "", o = this.array(), a = 0; a < 15; )
|
|
139
|
+
t = o[a++], r = o[a++], i = o[a++], e += BASE64_ENCODE_CHAR[t >>> 2] + BASE64_ENCODE_CHAR[(t << 4 | r >>> 4) & 63] + BASE64_ENCODE_CHAR[(r << 2 | i >>> 6) & 63] + BASE64_ENCODE_CHAR[i & 63];
|
|
140
|
+
return t = o[a], e += BASE64_ENCODE_CHAR[t >>> 2] + BASE64_ENCODE_CHAR[t << 4 & 63] + "==", e;
|
|
141
|
+
};
|
|
142
|
+
var exports = createMethod();
|
|
143
|
+
COMMON_JS ? module.exports = exports : root.md5 = exports;
|
|
144
|
+
})();
|
|
145
|
+
})(md5);
|
|
146
|
+
const main_vue_vue_type_style_index_0_scoped_29082992_lang = "", _sfc_main = {
|
|
147
|
+
name: "GdUserPermissions",
|
|
148
|
+
props: {
|
|
149
|
+
height: {
|
|
150
|
+
type: Number,
|
|
151
|
+
default: 100
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
data() {
|
|
155
|
+
return {
|
|
156
|
+
searcLoading: !1,
|
|
157
|
+
loading: !1,
|
|
158
|
+
userId: "",
|
|
159
|
+
userList: [],
|
|
160
|
+
fkEntityName: "sys_user"
|
|
161
|
+
};
|
|
162
|
+
},
|
|
163
|
+
computed: {
|
|
164
|
+
styled() {
|
|
165
|
+
return `height:${this.height + 76}px`;
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
methods: {
|
|
169
|
+
query() {
|
|
170
|
+
},
|
|
171
|
+
searchData(t) {
|
|
172
|
+
this.searcLoading = !0, baseFkList({ name: t, fkEntityName: this.fkEntityName }).then((r) => {
|
|
173
|
+
r.code === 200 && (this.userList = r.data), this.searcLoading = !1;
|
|
174
|
+
});
|
|
175
|
+
},
|
|
176
|
+
change(t) {
|
|
177
|
+
t !== "" && this.getUseRole();
|
|
178
|
+
},
|
|
179
|
+
getUseRole() {
|
|
180
|
+
this.loading = !0, sysUserOwnRole({ id: this.userId }).then((t) => {
|
|
181
|
+
this.loading = !1, t.code === 200 && (this.userList = t.data);
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
created() {
|
|
186
|
+
this.searchData("");
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
var _sfc_render = function t() {
|
|
190
|
+
var r = this, i = r._self._c;
|
|
191
|
+
return i("div", { staticClass: "gd-page-view", staticStyle: { display: "flex", background: "rgb(245, 245, 245)" } }, [i("div", { staticClass: "page-view-trees", style: r.styled }, [i("div", { directives: [{ name: "loading", rawName: "v-loading", value: r.loading, expression: "loading" }], staticClass: "trees-operatorl" }, [i("el-select", { staticClass: "treesr-input", attrs: { placeholder: r.$i18nt("gd.teamSharing.name", "\u89D2\u8272\u540D"), clearable: "", filterable: "", loading: r.searcLoading, "remote-method": r.searchData, clearable: "", remote: "" }, on: { change: r.change }, model: { value: r.userId, callback: function(e) {
|
|
192
|
+
r.userId = e;
|
|
193
|
+
}, expression: "userId" } }, r._l(r.userList, function(e) {
|
|
194
|
+
return i("el-option", { key: e.id, attrs: { label: e.name, value: e.id } });
|
|
195
|
+
}), 1), i("div", { staticClass: "treesr-search", on: { click: r.query } }, [i("i", { staticClass: "el-input__icon el-icon-search" })])], 1), i("div", { staticClass: "trees-list" })]), i("div", { directives: [{ name: "loading", rawName: "v-loading", value: r.loading, expression: "loading" }], staticClass: "page-view-list" })]);
|
|
196
|
+
}, _sfc_staticRenderFns = [], __component__ = /* @__PURE__ */ normalizeComponent(
|
|
197
|
+
_sfc_main,
|
|
198
|
+
_sfc_render,
|
|
199
|
+
_sfc_staticRenderFns,
|
|
200
|
+
!1,
|
|
201
|
+
null,
|
|
202
|
+
"29082992",
|
|
203
|
+
null,
|
|
204
|
+
null
|
|
205
|
+
);
|
|
206
|
+
const GDpackage = __component__.exports;
|
|
207
|
+
GDpackage.install = function(t) {
|
|
208
|
+
t.component(GDpackage.name, GDpackage);
|
|
209
|
+
};
|
|
210
|
+
export {
|
|
211
|
+
GDpackage as G
|
|
212
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=require("./chartbi.afd83839.js"),d=require("./messages.083c4ede.js");function u(s){return window.axios({url:"/SysPlugin/page",method:"post",data:s})}function c(s){return window.axios({url:"/SysPlugin/add",method:"post",data:s})}function g(s){return window.axios({url:"/SysPlugin/edit",method:"post",data:s})}function m(s){return window.axios({url:"/SysPlugin/delete",method:"post",data:s})}function h(s){return window.axios({url:"/SysPluginStep/page",method:"post",data:s})}function p(s){return window.axios({url:"/SysPluginStep/add",method:"post",data:s})}function f(s){return window.axios({url:"/SysPluginStep/edit",method:"post",data:s})}function y(s){return window.axios({url:"/SysPluginStep/changeStatus",method:"post",data:s})}function b(s){return window.axios({url:"/SysPluginStep/delete",method:"post",data:s})}function v(s){return window.axios({url:"/SysPluginStep/getNameSpacesDetails",method:"post",data:s})}const w={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{transKey:"gd.plugin.name",prop:"name",label:"\u540D\u79F0",type:"slot",slotType:"name",align:"left",fixed:!0,renderHeader:(s,...e)=>this.renderHeader(s,...e,{effectType:"input"}),showOverflowTooltip:!0},{transKey:"gd.plugin.status",prop:"statecodes",label:"\u72B6\u6001",type:"slot",slotType:"statecodes",align:"left",showOverflowTooltip:!0},{transKey:"gd.plugin.remarks",prop:"description",label:"\u5907\u6CE8",align:"left"}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysPlugin:add"},{displayName:"\u7F16\u8F91",functionName:"edit",show:!0,transKey:"gd.btn.edit",icon:"el-icon-edit",name:"sysPlugin:edit"},{displayName:"\u5220\u9664",functionName:"del",show:!0,transKey:"gd.btn.del",icon:"el-icon-delete",btnType:"danger",name:"sysPlugin:delete"},{displayName:"\u6B65\u9AA4",functionName:"step",show:!0,transKey:"gd.plugin.step",icon:"gd-icons gd-icon-caozuojilu",name:"sysPlugin:step"}],tableQueries:[{transKey:"gd.plugin.name",effectType:"input",prop:"name",label:"\u540D\u79F0",placeholder:"\u8BF7\u8F93\u5165",placeholderTransKey:"gd.placeholder.input",rules:[]}]}}},$={props:{formMode:{type:String,default:"dialog"}},data(){return{sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",icon:"el-icon-document-checked"}],visible:!1,confirmLoading:!1,fileList:[],record:null,title:"",fullscreen:!1,width:"700px",ruleFormData:{}}},computed:{modalStyle(){return this.fullscreen?{width:"100%",dialogStyle:{top:"0px"}}:{width:this.width,dialogStyle:{top:"80px"}}},...n.mapGetters(["labelPosition"])},methods:{togglefullscreen(){this.fullscreen=!this.fullscreen},open(s){this.fullscreen=!1,this.title=s?this.$i18nt("gd.https.edit","\u7F16\u8F91"):this.$i18nt("gd.https.add","\u65B0\u589E"),this.record=s,this.fileList=[],this.visible=!0,this.sysViewButtons=this.sysViewButtons.map(e=>(e.name=s?"sysPlugin:edit":"sysPlugin:add",e)),s?this.ruleFormData={id:s.id,name:s.name,description:s.description}:this.$nextTick(()=>{this.ruleFormData={},this.$refs.ruleForm.resetFields()})},handleAvatarSuccess(s,e,t){this.$refs.fileUploadBtn.clearFiles()},uploadLogo(s){if(s.file.type=="application/x-msdownload"){if(this.fileList=[s.file],!this.record){let t=s.file.name.lastIndexOf(".");var e=s.file.name.substring(0,t);this.ruleFormData.name=e}}else this.$message.warning(this.$i18nt("gd.plugin.fileFormatTip","\u6587\u4EF6\u683C\u5F0F\u9519\u8BEF!")),this.fileList=[];return!1},handleChange(s,e){if(e.length>1&&e.splice(0,1),s.raw.type=="application/x-msdownload"){if(this.fileList=[s.raw],!this.record){let a=s.raw.name.lastIndexOf(".");var t=s.raw.name.substring(0,a);this.ruleFormData.name=t}}else this.$message.warning(this.$i18nt("gd.plugin.fileFormatTip","\u6587\u4EF6\u683C\u5F0F\u9519\u8BEF!")),this.fileList=[];return!1},handleRemove(s){const e=this.fileList.indexOf(s),t=this.fileList.slice();t.splice(e,1),this.fileList=t},handleSubmit(){this.$refs.ruleForm.validate(s=>{s&&(this.record?this.edit(this.ruleFormData):this.add(this.ruleFormData))})},add(s){this.confirmLoading=!0;let{fileList:e}=this;if(e.length==0)return this.$message.error(this.$i18nt("gd.web.selectFileTip")),this.confirmLoading=!1,!1;{let t=new FormData;t.append("file",e[0]),t.append("name",s.name),c(t).then(a=>{a.success?(this.$message.success(this.$i18nt("gd.https.addSucc")),this.handleCancel(),this.$emit("ok",s)):this.$message.error(this.$i18nt("gd.https.addFail")+a.message),this.confirmLoading=!1}).finally(a=>{this.confirmLoading=!1})}},edit(s){this.confirmLoading=!0;let{fileList:e}=this,t=new FormData;t.append("file",e[0]),t.append("description",s.description),t.append("id",s.id),g(t).then(a=>{a.success?(this.$message.success(this.$i18nt("gd.https.editSucc","\u7F16\u8F91\u6210\u529F")),this.handleCancel(),this.$emit("ok",s)):this.$message.error(this.$i18nt("gd.https.editFail","\u7F16\u8F91\u5931\u8D25")+a.message),this.confirmLoading=!1}).finally(a=>{this.confirmLoading=!1})},handleCancel(){this.$refs.ruleForm.resetFields(),this.visible=!1},selType(s){this.type=s},doEvent(s){let e=s.item.functionName;this[e]&&this[e]()}}};var F=function(){var e=this,t=e._self._c;return t("div",[e.formMode=="dialog"?t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.modalStyle.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){e.visible=a},closed:e.handleCancel}},[t("gd-modal-title",{attrs:{slot:"title",title:e.title,fullscreen:e.fullscreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,emitFun:!0,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.togglefullscreen,close:e.handleCancel},slot:"title"}),t("div",{class:e.fullscreen?"modal-bodyq":"modal-body"},[t("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],ref:"ruleForm",attrs:{"label-width":"110px","label-position":e.labelPosition,model:e.ruleFormData},nativeOn:{submit:function(a){a.preventDefault()}}},[t("el-form-item",{staticStyle:{display:"none"}},[t("el-input",{model:{value:e.ruleFormData.id,callback:function(a){e.$set(e.ruleFormData,"id",a)},expression:"ruleFormData.id"}})],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.plugin.name","\u540D\u79F0")}},[t("el-input",{attrs:{disabled:!0},model:{value:e.ruleFormData.name,callback:function(a){e.$set(e.ruleFormData,"name",a)},expression:"ruleFormData.name"}})],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.plugin.plugFile","\u63D2\u4EF6\u6587\u4EF6")}},[t("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{accept:".dll","file-list":e.fileList,"on-change":e.handleChange,action:"","show-file-list":!0,"on-remove":e.handleRemove,"auto-upload":!1}},[t("el-button",[t("i",{staticClass:"el-icon-upload2"}),e._v(" "+e._s(e.$i18nt("gd.web.selectFile","\u9009\u62E9\u6587\u4EF6"))+" ")])],1)],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.plugin.remarks","\u5907\u6CE8")}},[t("el-input",{attrs:{type:"textarea",placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.description,callback:function(a){e.$set(e.ruleFormData,"description",a)},expression:"ruleFormData.description"}})],1)],1)],1)],1):t("el-drawer",{attrs:{visible:e.visible,"close-on-press-escape":!1,"append-to-body":!0,"modal-append-to-body":!1,size:e.width,"custom-class":"gd-drawer-form","show-close":!1},on:{"update:visible":function(a){e.visible=a}}},[t("gd-modal-title",{attrs:{slot:"title",title:e.title,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,showClose:!0,showFullscreen:!1},on:{changeEvent:e.doEvent},slot:"title"}),t("div",[t("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],ref:"ruleForm",attrs:{"label-width":"110px","label-position":e.labelPosition,model:e.ruleFormData},nativeOn:{submit:function(a){a.preventDefault()}}},[t("el-form-item",{staticStyle:{display:"none"}},[t("el-input",{model:{value:e.ruleFormData.id,callback:function(a){e.$set(e.ruleFormData,"id",a)},expression:"ruleFormData.id"}})],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.plugin.name","\u540D\u79F0")}},[t("el-input",{attrs:{disabled:!0},model:{value:e.ruleFormData.name,callback:function(a){e.$set(e.ruleFormData,"name",a)},expression:"ruleFormData.name"}})],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.plugin.plugFile","\u63D2\u4EF6\u6587\u4EF6")}},[t("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{accept:".dll","file-list":e.fileList,"on-change":e.handleChange,action:"","show-file-list":!0,"on-remove":e.handleRemove,"auto-upload":!1}},[t("el-button",[t("i",{staticClass:"el-icon-upload2"}),e._v(" "+e._s(e.$i18nt("gd.web.selectFile","\u9009\u62E9\u6587\u4EF6"))+" ")])],1)],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.plugin.remarks","\u5907\u6CE8")}},[t("el-input",{attrs:{type:"textarea",placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.description,callback:function(a){e.$set(e.ruleFormData,"description",a)},expression:"ruleFormData.description"}})],1)],1)],1)],1)],1)},_=[],D=n.normalizeComponent($,F,_,!1,null,null,null,null);const S=D.exports,k={data(){return{visible:!1,confirmLoading:!1,stageId:"",ruleFormData:{},rules:{eventhandler:[{required:!0,message:this.$i18nt("gd.btn.input","\u8BF7\u8F93\u5165"),trigger:"change"}],stage:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],entityName:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],sdkmessage:[{required:!0,message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}],eventhandler:[{required:(this.type=="edit",!1),message:this.$i18nt("gd.btn.select","\u8BF7\u9009\u62E9"),trigger:"change"}]},title:"",sysViewButtons:[{displayName:"\u786E\u5B9A",functionName:"handleSubmit",show:!0,transKey:"gd.btn.confirm",name:"sysPluginStep:edit",icon:"el-icon-document-checked"}],type:null,fullscreen:!1,width:"700px",currentSelectedIcon:"",visibleIcon:!1,sdkEventHandler:[],eventName:""}},computed:{sdkStageType(){return this.getDictionary("Stage")},options(){return this.getDictionary("SdkMessage")},...n.mapGetters(["labelPosition","formMode","tableLists"])},methods:{togglefullscreen(){this.fullscreen=!this.fullscreen},edit(s,e){this.type=e,this.visible=!0,this.fullscreen=!1,this.title=this.type=="edit"?this.$i18nt("gd.https.edit","\u7F16\u8F91"):this.$i18nt("gd.https.add","\u5931\u8D25"),this.stageId=s.stage,this.sdkmessageId=s.sdkmessage,this.entityNameId=s.entityname,this.$nextTick(()=>{setTimeout(()=>{this.type=="add"?(this.ruleFormData={sysPluginId:s[0].sysPluginId,pluginName:s[0].name},this.ruleFormData.order=1,this.getEventhandler(s[0].sysPluginId)):this.ruleFormData={id:s.id,sysPluginId:s.syspluginid,entityName:s.entityname,sdkmessage:String(s.sdkmessage),stage:String(s.stage),order:s.order,description:s.description,securityString:s.securitystring,eventhandler:s.eventhandler},this.$refs.ruleForm.resetFields()},0)})},stageremarkFilter(s){const e=this.sdkStageType.filter(t=>t.code==s);if(e.length>0)return e[0].remark},stageNameFilter(s){const e=this.sdkStageType.filter(t=>t.code==s);if(e.length>0)return e[0].code},messageTypeFilter(s){const e=this.options.filter(t=>t.code==s);if(e.length>0)return e[0].name},entityNameFilter(s){const e=this.optionsentityname.filter(t=>t.value==s);if(e.length>0)return e[0].label},handleChange(s){console.log(`selected ${s}`),this.sdkmessageId=s},handleChangeEntityName(s){this.entityNameId=s},getEventhandler(s){v({pluginId:s}).then(t=>{t.success?this.sdkEventHandler=t.data:this.$message.error(this.$i18nt("Locals.common.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+t.message)}).finally(t=>{this.confirmLoading=!1})},sdkEventHandlerType(s){this.eventName=s},handleSubmit(){this.$refs.ruleForm.validate(s=>{if(s){if(this.confirmLoading=!0,this.type=="edit"){var e=this.stageremarkFilter(this.stageId),t=this.messageTypeFilter(this.sdkmessageId);this.ruleFormData.name=e+this.entityNameId+t,this.ruleFormData.sdkmessage=String(this.sdkmessageId),this.ruleFormData.entityName=this.entityNameId}else this.ruleFormData.name=this.eventName;(this.type=="edit"?f:p)(this.ruleFormData).then(i=>{if(i.success){let l=this.type=="edit"?this.$i18nt("gd.https.editSucc","\u7F16\u8F91\u6210\u529F"):this.$i18nt("Locals.common.https.addSucc","\u65B0\u589E\u6210\u529F");this.$message.success(l),this.visible=!1,this.confirmLoading=!1,this.$emit("ok",this.ruleFormData),this.$refs.ruleForm.resetFields()}else this.type=="edit"?this.$i18nt("gd.https.editFail","\u7F16\u8F91\u5931\u8D25"):this.$i18nt("Locals.common.https.addFail","\u65B0\u589E\u5931\u8D25"),this.$message.error(this.$i18nt("gd.https.editFail")+i.message)}).finally(i=>{this.confirmLoading=!1})}})},handleCancel(){this.$refs.ruleForm.resetFields(),this.visible=!1},getDictionary(s){return this.$options.filters.dictData(s)},selType(s){this.stageId=s},doEvent(s){let e=s.item.functionName;this[e]&&this[e]()}}};var x=function(){var e=this,t=e._self._c;return t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:e.width,center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){e.visible=a},closed:e.handleCancel}},[t("gd-modal-title",{attrs:{slot:"title",title:e.title,fullscreen:e.fullscreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,emitFun:!0,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.togglefullscreen,close:e.handleCancel},slot:"title"}),t("div",{class:e.fullscreen?"modal-bodyq":"modal-body"},[t("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],ref:"ruleForm",attrs:{"label-width":"110px","label-position":e.labelPosition,model:e.ruleFormData,rules:e.rules},nativeOn:{submit:function(a){a.preventDefault()}}},[t("el-form-item",{staticStyle:{display:"none"}},[t("el-input",{model:{value:e.ruleFormData.sysPluginId,callback:function(a){e.$set(e.ruleFormData,"sysPluginId",a)},expression:"ruleFormData.sysPluginId"}})],1),t("el-form-item",{staticStyle:{display:"none"}},[e.type=="edit"?t("el-input",{model:{value:e.ruleFormData.id,callback:function(a){e.$set(e.ruleFormData,"id",a)},expression:"ruleFormData.id"}}):t("el-input",{model:{value:e.ruleFormData.pluginName,callback:function(a){e.$set(e.ruleFormData,"pluginName",a)},expression:"ruleFormData.pluginName"}})],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.plugin.executeMessage","\u6267\u884C\u6D88\u606F"),prop:"sdkmessage"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:e.handleChange},model:{value:e.ruleFormData.sdkmessage,callback:function(a){e.$set(e.ruleFormData,"sdkmessage",a)},expression:"ruleFormData.sdkmessage"}},e._l(e.options,function(a,i){return t("el-option",{key:i,attrs:{value:a.code,label:a.name}})}),1)],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.plugin.entityName","\u5B9E\u4F53\u540D\u79F0"),prop:"entityName"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{filterable:"",placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},on:{change:e.handleChangeEntityName},model:{value:e.ruleFormData.entityName,callback:function(a){e.$set(e.ruleFormData,"entityName",a)},expression:"ruleFormData.entityName"}},e._l(e.tableLists,function(a,i){return t("el-option",{key:i,attrs:{label:e.$i18nt(`Dynamics.${a.transkey}`,a.busname),value:a.tablename}},[e._v(" "+e._s(e.$i18nt(`Dynamics.${a.transkey}`,a.busname))+" "+e._s(a.tablename)+" ")])}),1)],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.plugin.executePhase","\u6267\u884C\u9636\u6BB5"),prop:"stage"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:e.ruleFormData.stage,callback:function(a){e.$set(e.ruleFormData,"stage",a)},expression:"ruleFormData.stage"}},e._l(e.sdkStageType,function(a,i){return t("el-option",{key:i,attrs:{value:a.code,label:a.name},on:{click:function(l){return e.selType(a.code)}}})}),1)],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.plugin.eventHandler","\u4E8B\u4EF6\u5904\u7406\u7A0B\u5E8F"),prop:"eventhandler"}},[e.type=="edit"?t("el-input",{staticStyle:{width:"100%"},attrs:{disabled:!0,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.eventhandler,callback:function(a){e.$set(e.ruleFormData,"eventhandler",a)},expression:"ruleFormData.eventhandler"}}):t("el-select",{staticStyle:{width:"100%"},attrs:{clearable:"",placeholder:e.$i18nt("gd.placeholder.select","\u8BF7\u9009\u62E9")},model:{value:e.ruleFormData.eventhandler,callback:function(a){e.$set(e.ruleFormData,"eventhandler",a)},expression:"ruleFormData.eventhandler"}},e._l(e.sdkEventHandler,function(a,i){return t("el-option",{key:i,attrs:{value:a.eventHandlerId,label:a.eventHandlerName},nativeOn:{click:function(l){return e.sdkEventHandlerType(a.eventHandlerName)}}})}),1)],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.plugin.sort","\u6392\u5E8F"),prop:"order"}},[t("el-input-number",{staticStyle:{width:"100px"},attrs:{placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165"),min:1,max:1e3,"controls-position":"right"},model:{value:e.ruleFormData.order,callback:function(a){e.$set(e.ruleFormData,"order",a)},expression:"ruleFormData.order"}})],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.plugin.secureString","\u5B89\u5168\u5B57\u7B26\u4E32"),prop:"securityString"}},[t("el-input",{attrs:{type:"textarea",rows:4,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.securityString,callback:function(a){e.$set(e.ruleFormData,"securityString",a)},expression:"ruleFormData.securityString"}})],1),t("el-form-item",{attrs:{label:e.$i18nt("gd.plugin.remarks","\u5907\u6CE8"),prop:"description"}},[t("el-input",{attrs:{type:"textarea",rows:4,placeholder:e.$i18nt("gd.placeholder.input","\u8BF7\u8F93\u5165")},model:{value:e.ruleFormData.description,callback:function(a){e.$set(e.ruleFormData,"description",a)},expression:"ruleFormData.description"}})],1)],1)],1)],1)},P=[],C=n.normalizeComponent(k,x,P,!1,null,null,null,null);const T=C.exports,N={data(){return{tableColumns:[{type:"selection",width:"60",fixed:!0},{label:"\u5B9E\u4F53\u540D\u79F0",prop:"entityName",type:"slot",slotType:"entityName",align:"left",showOverflowTooltip:!0,transKey:"gd.plugin.entityName"},{label:"\u6267\u884C\u6D88\u606F",prop:"sdkMessage",type:"slot",slotType:"sdkMessage",align:"left",showOverflowTooltip:!0,transKey:"gd.plugin.executeMessage"},{label:"\u6267\u884C\u9636\u6BB5",prop:"stage",type:"slot",slotType:"stage",align:"left",showOverflowTooltip:!0,transKey:"gd.plugin.executePhase"},{label:"\u4E8B\u4EF6\u5904\u7406\u7A0B\u5E8F",prop:"eventHandler",type:"slot",slotType:"eventHandler",align:"left",showOverflowTooltip:!0,transKey:"gd.plugin.eventHandler"},{label:"\u6392\u5E8F",prop:"order",align:"left",showOverflowTooltip:!0,transKey:"gd.plugin.sort"},{label:"\u72B6\u6001",prop:"stateCodes",type:"slot",slotType:"stateCodes",align:"left",showOverflowTooltip:!0,transKey:"gd.plugin.status"}],formColumns:[{transKey:"gd.plugin.executeMessage",effectType:"select",prop:"sdkmessage",label:"\u6267\u884C\u6D88\u606F",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",dictTypeCode:"SdkMessage",disabled:!1,rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]},{transKey:"gd.plugin.executePhase",effectType:"select",prop:"stage",label:"\u6267\u884C\u9636\u6BB5",placeholder:"\u8BF7\u9009\u62E9",placeholderTransKey:"gd.placeholder.select",dictTypeCode:"Stage",disabled:!1,rules:[{required:!0,message:"\u8BF7\u9009\u62E9",transKey:"gd.placeholder.select",trigger:"change"}]}],tableButtons:[{displayName:"\u65B0\u589E",functionName:"add",show:!0,transKey:"gd.btn.add",icon:"el-icon-plus",name:"sysPluginStep:add"},{displayName:"\u91CD\u7F6E",functionName:"reset",show:!0,transKey:"gd.btn.reset",icon:"el-icon-refresh-left",name:"sysPluginStep:delete",btnType:"danger"}]}}};const L={props:{height:{type:Number,default:400}},mixins:[d.tablesFilter,N],components:{editForm:T},data(){return{advanced:!1,queryParam:{},visible:!1,typeId:[],id:[],name:"",loadData:s=>(this.queryParam.typeId=this.id,h(Object.assign(s,this.queryParam)).then(e=>e.data)),selectedRowKeys:[],selectedRows:[],fullscreen:!1,width:"80%",quickQuery:!1,seeQuerys:!1,transKey:"gd.btn.add"}},computed:{sdkStageType(){return this.getDictionary("Stage")},getHeight(){let s=this.fullscreen?170:320;return this.screenHeight-s},...n.mapGetters(["tablePageSize","tableSize","labelPosition","formMode","screenHeight"])},methods:{reset(){this.queryParam={}},editForm(s){this.transKey="gd.btn.edit",this.$refs.editForm.open(Object.assign({...s}))},add(){this.transKey="gd.btn.add",this.$refs.editForm.edit(this.typeId,"add")},togglefullscreen(){this.fullscreen=!this.fullscreen},index(s){let e=[];this.fullscreen=!1,this.visible=!0,this.id=s.id,this.queryParam.typeId=s.id,e.push({sysPluginId:s.id,name:s.name}),this.typeId=e,this.$nextTick(()=>{setTimeout(()=>{this.$refs.table&&this.$refs.table.refresh()},0)})},handleCancel(){this.queryParam={},this.visible=!1},editSysDictDataStatus(s,e){y({id:e.id,stateCodes:s==0?1:0}).then(t=>{t.success?(this.$message.success(this.$i18nt("gd.https.operateSucc","\u64CD\u4F5C\u6210\u529F")),this.$refs.table.refresh()):this.$message.error(this.$i18nt("gd.https.operateFail","\u64CD\u4F5C\u5931\u8D25")+t.message)})},sysDataDelete(s){b(s).then(e=>{e.success?(this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")),this.$refs.table.refresh()):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+e.message)}).catch(e=>{this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+e.message)})},toggleAdvanced(){this.advanced=!this.advanced},refresh(){this.$refs.table.refresh()},onSelectChange(s,e){this.selectedRowKeys=s,this.selectedRows=e},dictSwitch(s,e){let t=this.$options.filters.dictData(e).filter(a=>a.code==s)[0];return t&&t.colour?t.colour:null},getDictionary(s){return this.$options.filters.dictData(s)},doEvent(s){let e=s.item.functionName;this[e]&&this[e]()}},created(){(this.$hasPerm("sysDictData:edit")||this.$hasPerm("sysDictData:delete"))&&this.tableColumns.push({label:"\u64CD\u4F5C",width:"200px",prop:"action",align:"left",type:"slot",slotType:"action",transKey:"gd.btn.handle"})}};var K=function(){var e=this,t=e._self._c;return t("div",[t("el-dialog",{directives:[{name:"drag",rawName:"v-drag"}],ref:"dialog",class:e.fullscreen?"gd-dialog gd-dialog-fangda":"gd-dialog",attrs:{fullscreen:e.fullscreen,visible:e.visible,width:"80%",center:!0,"close-on-click-modal":!1,"append-to-body":!0,"modal-append-to-body":!1,top:"80px","show-close":!1},on:{"update:visible":function(a){e.visible=a},closed:e.handleCancel}},[t("gd-modal-title",{attrs:{slot:"title",title:e.$i18nt("gd.plugin.stepManagement","SDK\u6B65\u9AA4\u7BA1\u7406"),fullscreen:e.fullscreen,buttons:[],emitFun:!0,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.togglefullscreen,close:e.handleCancel},slot:"title"}),t("div",{staticClass:"gd-dict",class:e.fullscreen?"modal-bodyq":"modal-body"},[t("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"entityName",fn:function({column:a,row:i}){return[t("gd-tooltip",{attrs:{rowKey:"entityname",row:i}})]}},{key:"stateCodes",fn:function(a){return[t("el-popconfirm",{attrs:{title:a.row.statecodes==0?e.$i18nt("gd.btn.enable","\u542F\u7528"):e.$i18nt("gd.btn.deactivate","\u505C\u7528")},on:{confirm:()=>e.editSysDictDataStatus(a.row.statecodes,a.row)}},[t("el-tag",{style:e._f("dictColor")("state_code",a.row.statecodes),attrs:{slot:"reference",effect:"dark"},slot:"reference"},[e._v(" "+e._s(e._f("dictType")("state_code",a.row.statecodes))+" ")])],1)]}},{key:"stage",fn:function(a){return[e.dictSwitch(a.row.stage,"stage")?t("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",size:"mini",color:e.dictSwitch(a.row.stage,"stage")}},[e._v(" "+e._s(e._f("dictType")("stage",a.row.stage))+" ")]):t("div",[e._v(e._s(e._f("dictType")("stage",a.row.stage)))])]}},{key:"sdkMessage",fn:function(a){return[e.dictSwitch(a.row.sdkmessage,"SdkMessage")?t("el-tag",{staticStyle:{"border-color":"transparent"},attrs:{effect:"dark",size:"mini",color:e.dictSwitch(a.row.sdkmessage,"SdkMessage")}},[e._v(" "+e._s(e._f("dictType")("SdkMessage",a.row.sdkmessage))+" ")]):t("div",[e._v(e._s(e._f("dictType")("SdkMessage",a.row.stage)))])]}},{key:"eventHandler",fn:function({column:a,row:i}){return[t("gd-tooltip",{attrs:{rowKey:"eventhandler",row:i}})]}},{key:"action",fn:function(a){return[e.$hasPerm("sysPluginStep:edit")?t("a",{on:{click:function(i){return e.$refs.editForm.edit(a.row,"edit")}}},[e._v(" "+e._s(e.$i18nt("gd.btn.edit"))+" ")]):e._e(),e.$hasPerm("sysPluginStep:edit")?t("el-divider",{attrs:{direction:"vertical"}}):e._e(),e.$hasPerm("sysPluginStep:delete")?t("el-popconfirm",{attrs:{placement:"top-start",title:e.$i18nt("gd.https.delContent")},on:{confirm:()=>e.sysDataDelete(a.row)}},[t("a",{attrs:{slot:"reference"},slot:"reference"},[e._v(e._s(e.$i18nt("gd.btn.del","\u5220\u9664")))])]):e._e()]}},{key:"operator",fn:function(){return[t("div",{staticClass:"gd-table-operator"},[t("div",{staticClass:"gd-table-operatorl"},[t("el-select",{staticClass:"table-operator-input",staticStyle:{width:"100%"},attrs:{placeholder:e.$i18nt("gd.plugin.eventSteps","\u4E8B\u4EF6\u6B65\u9AA4"),clearable:""},model:{value:e.queryParam.stage,callback:function(a){e.$set(e.queryParam,"stage",a)},expression:"queryParam.stage"}},e._l(e.sdkStageType,function(a,i){return t("el-option",{key:i,attrs:{label:a.value,value:a.code}})}),1),t("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[t("i",{staticClass:"el-input__icon el-icon-search"})])],1),t("div",{staticClass:"gd-table-operatorr"},[t("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0}])})],1)],1),t("edit-form",{ref:"editForm",on:{ok:e.refresh}})],1)},I=[],q=n.normalizeComponent(L,K,I,!1,null,"2f4a16a5",null,null);const E=q.exports;const R={name:"GdPlugin",props:{height:{type:Number,default:100}},mixins:[d.tablesFilter,w],data(){return{selectedRowKeys:[],loadData:s=>u(Object.assign(s,this.queryParam)).then(e=>e.data),queryParam:{}}},components:{editForm:S,dataIndex:E},computed:{getHeight(){return this.height},...n.mapGetters(["tablePageSize","tableSize","labelPosition","formMode"])},methods:{onSelectChange(s,e){this.selectedRows=e,this.selectedRowKeys=s},editForm(s){this.transKey="gd.btn.edit",this.$refs.editForm.open(Object.assign({...s},{status:String(s.status)}))},add(){this.$refs.editForm.open(null)},edit(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.editForm(this.selectedRows[0])},del(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.delTip","\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));return}this.$confirm(this.$i18nt("gd.https.delContent","\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"),this.$i18nt("gd.https.delTitle","\u6E29\u99A8\u63D0\u793A"),{confirmButtonText:this.$i18nt("gd.https.delOk","\u786E\u5B9A\u5220\u9664"),cancelButtonText:this.$i18nt("gd.https.delCancel","\u53D6\u6D88"),showClose:!1,confirmButtonLoading:!1,cancelButtonLoading:!1,closeOnClickModal:!1,type:"warning",confirmButtonClass:"el-button--danger",customClass:"custom-alert",callback:()=>{},beforeClose:(s,e,t)=>{this.delHand(s,e,t)}})},delHand(s,e,t){if(s!=="confirm"){t();return}let a=[];this.selectedRows.forEach(i=>{let l=m(i).then(o=>o);a.push(l)}),e.confirmButtonLoading=!0,e.cancelButtonLoading=!0,e.showCancelButton=!1,Promise.all(a).then(i=>{t();const l=i.filter(o=>!o.success);l.length===0?this.$message.success(this.$i18nt("gd.https.delSucc","\u5220\u9664\u6210\u529F")):this.$message.error(this.$i18nt("gd.https.delFail","\u5220\u9664\u5931\u8D25")+l[0].message),this.refresh(),e.confirmButtonLoading=!1,e.cancelButtonLoading=!1,e.showCancelButton=!0})},saveQueries(s){this.queryParam={...s},this.refresh()},step(){if(this.selectedRowKeys.length===0){this.$message.warning(this.$i18nt("gd.https.editTip","\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));return}if(this.selectedRowKeys.length>1){this.$message.warning(this.$i18nt("gd.https.editTipOne","\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));return}this.$refs.dataIndex.index(this.selectedRows[0])},refresh(){this.$refs.table.refresh()},doEvent(s){let e=s.item.functionName;this[e]&&this[e]()}}};var B=function(){var e=this,t=e._self._c;return t("div",{staticClass:"gd-page-view"},[t("div",{staticClass:"page-view-list",staticStyle:{padding:"0px"}},[t("gd-tables",{ref:"table",attrs:{dataSource:e.loadData,size:e.tableSize,pageSize:e.tablePageSize,columns:e.tableColumns,selectedRowKeys:e.selectedRowKeys,height:e.getHeight,filtering:!0},on:{onChange:e.onSelectChange},scopedSlots:e._u([{key:"name",fn:function({column:a,row:i}){return[t("gd-tooltip",{attrs:{rowKey:"name",row:i,highlight:""},on:{click:e.editForm}})]}},{key:"statecodes",fn:function(a){return[t("el-tag",{style:e._f("dictColor")("state_code",a.row.statecodes),attrs:{effect:"dark"}},[e._v(" "+e._s(e._f("dictType")("state_code",a.row.statecodes))+" ")])]}},{key:"operator",fn:function(){return[t("div",{staticClass:"gd-table-operator"},[t("div",{staticClass:"gd-table-operatorl"},[t("el-input",{staticClass:"table-operator-input",attrs:{placeholder:e.$i18nt("gd.plugin.name","\u540D\u79F0"),clearable:""},nativeOn:{keyup:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"enter",13,a.key,"Enter")?null:e.refresh.apply(null,arguments)}},model:{value:e.queryParam.name,callback:function(a){e.$set(e.queryParam,"name",a)},expression:"queryParam.name"}}),t("div",{staticClass:"table-operator-search",on:{click:e.refresh}},[t("i",{staticClass:"el-input__icon el-icon-search"})])],1),t("div",{staticClass:"gd-table-operatorr"},[t("gd-btn-list",{attrs:{sysViewButtons:e.tableButtons},on:{functionName:e.doEvent}})],1)])]},proxy:!0},{key:"filtering",fn:function({colse:a,visible:i}){return[t("gd-table-queries-field",{attrs:{columns:e.tableQueries,height:e.getHeight,queryParam:e.queryParam,colse:a,visible:i},on:{save:e.saveQueries}})]}}])})],1),t("editForm",{ref:"editForm",attrs:{formMode:e.formMode},on:{ok:e.refresh}}),t("dataIndex",{ref:"dataIndex",on:{ok:e.refresh}})],1)},O=[],H=n.normalizeComponent(R,B,O,!1,null,"ae7ebe6d",null,null);const r=H.exports;r.install=function(s){s.component(r.name,r)};exports.GDpackage=r;exports.sysPluginDataPage=u;
|