gds-plus-design-vue 1.2.22 → 1.2.41
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.06e48153.js → chartbi.5eded588.js} +20 -20
- package/lib/{chartbi.cdd1e365.mjs → chartbi.c3bc6adb.mjs} +17 -9
- package/lib/gd-initial.js +17 -15
- package/lib/gd-initial.mjs +24879 -17414
- package/lib/{main.2415a49a.js → main.5b42b006.js} +1 -1
- package/lib/main.6245dcb0.mjs +198 -0
- package/lib/{main.b2d0a309.mjs → main.6d033946.mjs} +24 -46
- package/lib/main.77b653a0.js +1 -0
- package/lib/{main.2cddfbbd.mjs → main.81ceb1d2.mjs} +3 -3
- package/lib/main.b143863e.js +1 -0
- package/lib/main.e7207a58.js +1 -0
- package/lib/main.f5fec475.mjs +123 -0
- package/lib/{messages.d8abe18d.mjs → messages.78d0815c.mjs} +1161 -1116
- package/lib/messages.e7af6cf3.js +9 -0
- package/lib/style.css +3 -3
- package/lib/{system.account.8ea53681.js → system.account.dc88aad7.js} +1 -1
- package/lib/{system.account.9bc40d08.mjs → system.account.feca6fef.mjs} +26 -26
- package/lib/system.config.76fc8a66.js +1 -0
- package/lib/{system.config.8223d495.mjs → system.config.98005c65.mjs} +7 -2
- package/lib/{system.datasource.fd6a4e76.js → system.datasource.83e34499.js} +1 -1
- package/lib/{system.datasource.57233650.mjs → system.datasource.a67e9bce.mjs} +3 -3
- package/lib/{system.dict.a24f33b0.js → system.dict.931dcb56.js} +1 -1
- package/lib/{system.dict.8f95218b.mjs → system.dict.97c057d5.mjs} +4 -4
- package/lib/{system.duplicatechecking.6b706948.mjs → system.duplicatechecking.5bf3e3d9.mjs} +15 -11
- package/lib/{system.duplicatechecking.39293985.js → system.duplicatechecking.785d1b24.js} +1 -1
- package/lib/{system.email.a2d9a307.js → system.email.06fb96a6.js} +1 -1
- package/lib/{system.email.dae988be.mjs → system.email.a938d704.mjs} +2 -2
- package/lib/{system.fieldsecurity.02627a7a.mjs → system.fieldsecurity.9f9f73df.mjs} +127 -79
- package/lib/system.fieldsecurity.d11088e3.js +1 -0
- package/lib/{system.file.0fa095a9.mjs → system.file.6c4d3ece.mjs} +13 -8
- package/lib/system.file.b7ce477b.js +1 -0
- package/lib/system.log.278084ec.js +1 -0
- package/lib/{system.log.acb64505.mjs → system.log.35ddd3bd.mjs} +64 -81
- package/lib/{system.machine.fc392d7f.mjs → system.machine.52e8a4f3.mjs} +1 -1
- package/lib/{system.machine.7fa3e3d1.js → system.machine.6e46b7a3.js} +1 -1
- package/lib/system.notice.30231ef5.js +1 -0
- package/lib/system.notice.ce4a4852.mjs +1693 -0
- package/lib/system.noticereceived.a608b96b.js +1 -0
- package/lib/{system.noticereceived.1aa70b65.mjs → system.noticereceived.fc6da6a7.mjs} +45 -34
- package/lib/system.onlineuser.3e1639a3.js +1 -0
- package/lib/{system.onlineuser.3d848a32.mjs → system.onlineuser.be4b1d75.mjs} +22 -15
- package/lib/{system.org.fcf96d1e.mjs → system.org.32183035.mjs} +17 -68
- package/lib/system.org.474be398.js +1 -0
- package/lib/{system.permissions.a1a9505c.js → system.permissions.1f9c7d7d.js} +1 -1
- package/lib/{system.permissions.23f5b097.mjs → system.permissions.28913e80.mjs} +3 -3
- package/lib/{system.plugin.e37f9dbc.mjs → system.plugin.27391ed5.mjs} +2 -2
- package/lib/{system.plugin.b6de4673.js → system.plugin.b60b97c7.js} +1 -1
- package/lib/{system.pos.1a01fc97.mjs → system.pos.2425d5ef.mjs} +2 -2
- package/lib/{system.pos.a4fb19b0.js → system.pos.decf8a63.js} +1 -1
- package/lib/{system.promptmanagement.290958b1.js → system.promptmanagement.09dcec13.js} +1 -1
- package/lib/{system.promptmanagement.36a65c51.mjs → system.promptmanagement.eaabf18d.mjs} +7 -7
- package/lib/system.role.1be25fd7.mjs +2049 -0
- package/lib/system.role.e98ed81e.js +1 -0
- package/lib/{system.sumberrules.dd6299e8.js → system.sumberrules.83d23274.js} +1 -1
- package/lib/{system.sumberrules.cdef9308.mjs → system.sumberrules.9d0efd00.mjs} +2 -2
- package/lib/system.team.cbbde647.js +1 -0
- package/lib/{system.team.ee652fe4.mjs → system.team.db590123.mjs} +318 -244
- package/lib/system.teammembers.9eb94832.js +1 -0
- package/lib/{system.teammembers.26a2ba81.mjs → system.teammembers.fd2452e7.mjs} +78 -40
- package/lib/{system.timers.b9424204.js → system.timers.0af8bf8f.js} +1 -1
- package/lib/{system.timers.4efa8a7d.mjs → system.timers.5ef2cfb4.mjs} +2 -2
- package/lib/{system.translation.0a9399b4.mjs → system.translation.2cb37689.mjs} +7 -7
- package/lib/{system.translation.21d2fd8b.js → system.translation.7b560e17.js} +1 -1
- package/lib/{system.user.4fcfdf99.mjs → system.user.c8ba3724.mjs} +146 -84
- package/lib/{system.user.d48a08db.js → system.user.f2bc316f.js} +5 -5
- package/lib/{system.useraffiliation.fb002239.mjs → system.useraffiliation.1e0edee4.mjs} +3 -3
- package/lib/{system.useraffiliation.a59ce45b.js → system.useraffiliation.617acb38.js} +1 -1
- package/lib/system.webresource.3fdc65fd.js +1 -0
- package/lib/{system.webresource.4df01c92.mjs → system.webresource.88e48862.mjs} +16 -18
- package/lib/{system.welcome.472f099b.js → system.welcome.67d20fa4.js} +1 -1
- package/lib/{system.welcome.120f4b50.mjs → system.welcome.aaac4a40.mjs} +1 -1
- package/locale/en_US.js +46 -3
- package/locale/id_ID.js +46 -3
- package/locale/vi_VN.js +1970 -1927
- package/locale/zh_CN.js +45 -2
- package/package.json +1 -1
- package/lib/main.4c447fc3.js +0 -1
- package/lib/main.86fe06d4.mjs +0 -87
- package/lib/main.d091d06d.js +0 -1
- package/lib/messages.2fff74f3.js +0 -9
- package/lib/system.config.c6e30213.js +0 -1
- package/lib/system.fieldsecurity.a0cec24d.js +0 -1
- package/lib/system.file.d695ab37.js +0 -1
- package/lib/system.log.c07ae5db.js +0 -1
- package/lib/system.notice.5ae50bd4.mjs +0 -641
- package/lib/system.notice.f18578ae.js +0 -1
- package/lib/system.noticereceived.bfa98a9b.js +0 -1
- package/lib/system.onlineuser.1c428d05.js +0 -1
- package/lib/system.org.5bb36f9c.js +0 -1
- package/lib/system.role.68de93ef.mjs +0 -1543
- package/lib/system.role.88100f66.js +0 -1
- package/lib/system.team.53d64006.js +0 -1
- package/lib/system.teammembers.4a3dc336.js +0 -1
- package/lib/system.webresource.3366cc29.js +0 -1
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import n from "vue";
|
|
2
|
+
import { a as l, n as d } from "./chartbi.c3bc6adb.mjs";
|
|
3
|
+
import { I as u } from "./system.account.feca6fef.mjs";
|
|
4
|
+
import "./messages.78d0815c.mjs";
|
|
5
|
+
const m = {
|
|
6
|
+
name: "GdAuthorizeLogin",
|
|
7
|
+
data() {
|
|
8
|
+
return {
|
|
9
|
+
authorizeType: "loading",
|
|
10
|
+
query: {},
|
|
11
|
+
code: "",
|
|
12
|
+
message: "",
|
|
13
|
+
confirmLoading: !0,
|
|
14
|
+
showAuthorize: !0,
|
|
15
|
+
showDetails: !1
|
|
16
|
+
};
|
|
17
|
+
},
|
|
18
|
+
methods: {
|
|
19
|
+
beaseLoadComplete() {
|
|
20
|
+
window.parent.postMessage({ eventType: "load-complete", data: "" }, "*");
|
|
21
|
+
},
|
|
22
|
+
onChangeBtn(t) {
|
|
23
|
+
window.parent.postMessage({ eventType: "form-btn", data: JSON.stringify(t) }, "*");
|
|
24
|
+
},
|
|
25
|
+
closeShowDetails() {
|
|
26
|
+
this.showDetails = !1, window.parent.postMessage({ eventType: "close-drawer", data: "" }, "*");
|
|
27
|
+
},
|
|
28
|
+
init() {
|
|
29
|
+
const t = this.$route.query, e = t.code ? t.code : "";
|
|
30
|
+
if (this.code = e, this.query = this.$route.query, e)
|
|
31
|
+
this.Logout().then((s) => {
|
|
32
|
+
this.getCode();
|
|
33
|
+
});
|
|
34
|
+
else {
|
|
35
|
+
const s = this.$i18nt("gd.login.missingParameters", "\u7F3A\u5931\u53C2\u6570:") + " code";
|
|
36
|
+
this.$message.error(s), this.message = s, this.authorizeType = "fail", this.confirmLoading = !1;
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
getCode() {
|
|
40
|
+
u({ code: this.code }).then((t) => {
|
|
41
|
+
if (t.code !== 200) {
|
|
42
|
+
this.authorizeType = "fail", this.$message.error(t.message), this.message = t.message, this.confirmLoading = !1;
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
if ((this.query.authorize_type ? this.query.authorize_type : "") !== "") {
|
|
46
|
+
this.viewFormDetails(t.data);
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
this.loginSuccess(t.data);
|
|
50
|
+
});
|
|
51
|
+
},
|
|
52
|
+
viewFormDetails(t) {
|
|
53
|
+
this.authorizeType = "finish", n.ls.set("ACCESS_TOKEN", t.accesstoken), this.$store.commit("SET_TOKEN", t.accesstoken);
|
|
54
|
+
let e = "";
|
|
55
|
+
for (let s in this.query) {
|
|
56
|
+
const i = ["complete_request", "redirect_uri", "request_url"].includes(s) ? encodeURIComponent(this.query[s]) : this.query[s];
|
|
57
|
+
e += `${e === "" ? "?" : "&"}${s}=${i}`;
|
|
58
|
+
}
|
|
59
|
+
this.showAuthorize = !1, this.showDetails = !0, this.dictTypeData().then((s) => {
|
|
60
|
+
this.$nextTick(() => {
|
|
61
|
+
setTimeout(() => {
|
|
62
|
+
this.confirmLoading = !1, this.$refs.viewFormDetails.open(e);
|
|
63
|
+
}, 100);
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
},
|
|
67
|
+
loginSuccess(t) {
|
|
68
|
+
this.authorizeType = "finish", n.ls.set("ACCESS_TOKEN", t.accesstoken), this.$store.commit("SET_TOKEN", t.accesstoken);
|
|
69
|
+
const e = this.query.redirect_uri ? this.query.redirect_uri : "";
|
|
70
|
+
if (e === "") {
|
|
71
|
+
let o = t.configtheme ? t.configtheme.replace(/\\/g, "/").split(",") : null, a = "/";
|
|
72
|
+
if (o) {
|
|
73
|
+
let h = o[o.length - 1];
|
|
74
|
+
String(h).split("").forEach((r, c) => {
|
|
75
|
+
a += c == 0 && r === "/" ? "" : r;
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
this.$router.push({
|
|
79
|
+
path: o ? a : "/"
|
|
80
|
+
}), this.loginOther();
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
const s = this.query.redirect_type ? this.query.redirect_type : "self", i = decodeURIComponent(e);
|
|
84
|
+
s === "self" ? this.$router.push(i) : window.location.replace(i);
|
|
85
|
+
},
|
|
86
|
+
loginOther() {
|
|
87
|
+
this.dictTypeData().then((e) => {
|
|
88
|
+
});
|
|
89
|
+
const t = new BroadcastChannel("gd-channel-msg");
|
|
90
|
+
t.postMessage({
|
|
91
|
+
type: "login",
|
|
92
|
+
data: { gdTagName: window.gdTagName }
|
|
93
|
+
}), t.close();
|
|
94
|
+
},
|
|
95
|
+
onMessage(t) {
|
|
96
|
+
t.data.eventType === "btn-click" && this.$refs.viewFormDetails && this.$refs.viewFormDetails.doEvent(JSON.parse(t.data.data));
|
|
97
|
+
},
|
|
98
|
+
...l(["Logout", "dictTypeData"])
|
|
99
|
+
},
|
|
100
|
+
created() {
|
|
101
|
+
this.init(), window.addEventListener("message", this.onMessage);
|
|
102
|
+
},
|
|
103
|
+
beforeDestory() {
|
|
104
|
+
window.removeEventListener("message", this.monitorIframe);
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
var g = function() {
|
|
108
|
+
var e = this, s = e._self._c;
|
|
109
|
+
return s("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], staticClass: "gd-authorize" }, [e.showAuthorize ? s("div", { staticClass: "authorize-loading" }, [e.authorizeType === "loading" ? s("div", { staticClass: "title" }, [s("i", { staticClass: "el-icon-loading" }), e._v(" " + e._s(e.$i18nt("gd.login.authorization", "\u6388\u6743\u4E2D....")) + " ")]) : e.authorizeType === "fail" ? s("div", { staticClass: "err" }, [s("i", { staticClass: "el-icon-warning" }), e._v(" " + e._s(e.message) + " ")]) : s("div", { staticClass: "title" }, [s("i", { staticClass: "el-icon-success" }), e._v(" " + e._s(e.$i18nt("gd.login.authorizationCompleted", "\u6388\u6743\u5DF2\u5B8C\u6210")) + " ")])]) : e._e(), e.showDetails ? s("gd-view-form-details", { ref: "viewFormDetails", on: { close: e.closeShowDetails, changeBtn: e.onChangeBtn, beaseLoadComplete: e.beaseLoadComplete } }) : e._e()], 1);
|
|
110
|
+
}, p = [], f = /* @__PURE__ */ d(
|
|
111
|
+
m,
|
|
112
|
+
g,
|
|
113
|
+
p,
|
|
114
|
+
!1,
|
|
115
|
+
null,
|
|
116
|
+
"3eb92d67",
|
|
117
|
+
null,
|
|
118
|
+
null
|
|
119
|
+
);
|
|
120
|
+
const T = f.exports;
|
|
121
|
+
export {
|
|
122
|
+
T as default
|
|
123
|
+
};
|