gds-plus-design-vue 1.1.4 → 1.1.8

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.
Files changed (72) hide show
  1. package/lib/chartbi.48631362.mjs +44076 -0
  2. package/lib/chartbi.afd83839.js +80 -0
  3. package/lib/element-theme-chalk.ae828c17.js +2 -0
  4. package/lib/gd-initial.js +33 -0
  5. package/lib/gd-initial.mjs +80932 -99
  6. package/lib/main.2eb05c0d.js +1 -0
  7. package/lib/main.85f07438.mjs +68 -0
  8. package/lib/main.9bdd200f.mjs +87 -0
  9. package/lib/main.e62fbc84.mjs +939 -0
  10. package/lib/main.ef020e08.js +1 -0
  11. package/lib/main.f13b92a2.js +1 -0
  12. package/lib/messages.083c4ede.js +9 -0
  13. package/lib/messages.7e85146d.mjs +5802 -0
  14. package/lib/style.css +2 -2
  15. package/lib/system.account.25a9471c.mjs +2552 -0
  16. package/lib/system.account.88600238.js +216 -0
  17. package/lib/system.config.327aded6.js +1 -0
  18. package/lib/system.config.9c46f279.mjs +373 -0
  19. package/lib/system.datasource.4b0951ba.mjs +511 -0
  20. package/lib/system.datasource.8a0c7e0f.js +1 -0
  21. package/lib/system.dict.65f25e4e.mjs +996 -0
  22. package/lib/system.dict.72594c98.js +1 -0
  23. package/lib/system.duplicatechecking.2e9b8df8.js +1 -0
  24. package/lib/system.duplicatechecking.b05f1617.mjs +2130 -0
  25. package/lib/system.email.15594778.js +41 -0
  26. package/lib/system.email.6369f5b4.mjs +7432 -0
  27. package/lib/system.fieldsecurity.7de4ee1d.mjs +1745 -0
  28. package/lib/system.fieldsecurity.d57edb47.js +1 -0
  29. package/lib/system.file.b3558a8b.js +1 -0
  30. package/lib/system.file.f152d4fe.mjs +489 -0
  31. package/lib/system.log.30e5157c.mjs +1450 -0
  32. package/lib/system.log.f243e7d0.js +1 -0
  33. package/lib/system.machine.325b256e.mjs +94 -0
  34. package/lib/system.machine.332fb31c.js +1 -0
  35. package/lib/system.notice.662195f6.js +1 -0
  36. package/lib/system.notice.e2fe81dc.mjs +636 -0
  37. package/lib/system.noticereceived.15cf2fce.js +1 -0
  38. package/lib/system.noticereceived.20f38964.mjs +158 -0
  39. package/lib/system.onlineuser.90c08aef.mjs +184 -0
  40. package/lib/system.onlineuser.e0c261ed.js +1 -0
  41. package/lib/system.org.65452f67.js +1 -0
  42. package/lib/system.org.b8d59e5d.mjs +421 -0
  43. package/lib/system.permissions.5524b210.mjs +212 -0
  44. package/lib/system.permissions.a45b5b80.js +9 -0
  45. package/lib/system.plugin.07b3c38e.js +1 -0
  46. package/lib/system.plugin.4911a33d.mjs +946 -0
  47. package/lib/system.pos.6ed35c39.js +1 -0
  48. package/lib/system.pos.c274f13c.mjs +312 -0
  49. package/lib/system.promptmanagement.67475aac.js +1 -0
  50. package/lib/system.promptmanagement.e9976712.mjs +805 -0
  51. package/lib/system.role.0a1f11ad.js +1 -0
  52. package/lib/system.role.e5d08307.mjs +1543 -0
  53. package/lib/system.timers.69f1792a.mjs +3160 -0
  54. package/lib/system.timers.ef6b6796.js +38 -0
  55. package/lib/system.translation.48ff0b03.mjs +665 -0
  56. package/lib/system.translation.8f7e4144.js +1 -0
  57. package/lib/system.user.30451246.mjs +1432 -0
  58. package/lib/system.user.e0e4ac12.js +14 -0
  59. package/lib/system.useraffiliation.1e74fa9e.mjs +1025 -0
  60. package/lib/system.useraffiliation.f3c88a51.js +1 -0
  61. package/lib/system.webresource.5049d97b.js +1 -0
  62. package/lib/system.webresource.e9518d87.mjs +723 -0
  63. package/lib/system.welcome.3f1cce96.mjs +45 -0
  64. package/lib/system.welcome.b109df88.js +1 -0
  65. package/locale/en_US.js +249 -18
  66. package/locale/id_ID.js +250 -19
  67. package/locale/vi_VN.js +250 -19
  68. package/locale/zh_CN.js +258 -25
  69. package/package.json +105 -104
  70. package/lib/gd-initial.umd.js +0 -433
  71. package/lib/index.a0c53741.mjs +0 -146905
  72. package/lib/main.06db53a0.mjs +0 -919
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./system.account.88600238.js"),l=require("./chartbi.afd83839.js");require("vue");require("./messages.083c4ede.js");const d={name:"GdOauthAuthorize",data(){return{authorizeType:"loading",query:{},clientId:"",message:"",confirmLoading:!0}},methods:{init(){const s=this.$route.query,e=s.client_id?s.client_id:"",i=s.response_type?s.response_type:"code";if(this.clientId=e,this.responseType=i,this.query=this.$route.query,e)this.getCode();else{const a=this.$i18nt("gd.login.missingParameters","\u7F3A\u5931\u53C2\u6570:")+" client_id";this.$message.error(a),this.message=a,this.authorizeType="fail",this.confirmLoading=!1}},getCode(){c.oauthAuthorize({client_id:this.clientId,response_type:this.responseType}).then(s=>{if(s.code!==200){this.authorizeType="fail",this.$message.error(s.message),this.message=s.message,this.confirmLoading=!1;return}const e=this.query.redirect_uri?this.query.redirect_uri:"";if(e===""){const t=this.$i18nt("gd.login.missingParameters","\u7F3A\u5931\u53C2\u6570:")+" redirect_uri";this.$message.error(t),this.message=t,this.authorizeType="fail",this.confirmLoading=!1}const i=decodeURIComponent(e),a=i.slice(0,i.indexOf("?")),n=i.slice(i.indexOf("?")+1).split("&").map(t=>t.split("=")).map(([t,o])=>({key:t,value:o})).concat([{key:"code",value:s.data.code}]);let r="";for(let t=0;t<n.length;t++)r+=`${t===0?"?":"&"}${n[t].key}=${n[t].value}`;window.location.replace(`${a}${r}`)})}},created(){this.init()}};var u=function(){var e=this,i=e._self._c;return i("div",{directives:[{name:"loading",rawName:"v-loading",value:e.confirmLoading,expression:"confirmLoading"}],staticClass:"gd-oauth"},[i("div",{staticClass:"oauth-loading"},[e.authorizeType==="loading"?i("div",{staticClass:"title"},[i("i",{staticClass:"el-icon-loading"}),e._v(" "+e._s(e.$i18nt("gd.login.authorization","\u6388\u6743\u4E2D...."))+" ")]):e.authorizeType==="fail"?i("div",{staticClass:"err"},[i("i",{staticClass:"el-icon-warning"}),e._v(" "+e._s(e.message)+" ")]):i("div",{staticClass:"title"},[i("i",{staticClass:"el-icon-success"}),e._v(" "+e._s(e.$i18nt("gd.login.authorizationCompleted","\u6388\u6743\u5DF2\u5B8C\u6210"))+" ")])])])},h=[],g=l.normalizeComponent(d,u,h,!1,null,"c42b1f9d",null,null);const m=g.exports;exports.default=m;
@@ -0,0 +1,68 @@
1
+ import { X as c } from "./system.account.25a9471c.mjs";
2
+ import { n as l } from "./chartbi.48631362.mjs";
3
+ import "vue";
4
+ import "./messages.7e85146d.mjs";
5
+ const d = {
6
+ name: "GdOauthAuthorize",
7
+ data() {
8
+ return {
9
+ authorizeType: "loading",
10
+ query: {},
11
+ clientId: "",
12
+ message: "",
13
+ confirmLoading: !0
14
+ };
15
+ },
16
+ methods: {
17
+ init() {
18
+ const s = this.$route.query, e = s.client_id ? s.client_id : "", i = s.response_type ? s.response_type : "code";
19
+ if (this.clientId = e, this.responseType = i, this.query = this.$route.query, e)
20
+ this.getCode();
21
+ else {
22
+ const a = this.$i18nt("gd.login.missingParameters", "\u7F3A\u5931\u53C2\u6570:") + " client_id";
23
+ this.$message.error(a), this.message = a, this.authorizeType = "fail", this.confirmLoading = !1;
24
+ }
25
+ },
26
+ getCode() {
27
+ c({ client_id: this.clientId, response_type: this.responseType }).then((s) => {
28
+ if (s.code !== 200) {
29
+ this.authorizeType = "fail", this.$message.error(s.message), this.message = s.message, this.confirmLoading = !1;
30
+ return;
31
+ }
32
+ const e = this.query.redirect_uri ? this.query.redirect_uri : "";
33
+ if (e === "") {
34
+ const t = this.$i18nt("gd.login.missingParameters", "\u7F3A\u5931\u53C2\u6570:") + " redirect_uri";
35
+ this.$message.error(t), this.message = t, this.authorizeType = "fail", this.confirmLoading = !1;
36
+ }
37
+ const i = decodeURIComponent(e), a = i.slice(0, i.indexOf("?")), n = i.slice(i.indexOf("?") + 1).split("&").map((t) => t.split("=")).map(([t, r]) => ({
38
+ key: t,
39
+ value: r
40
+ })).concat([{ key: "code", value: s.data.code }]);
41
+ let o = "";
42
+ for (let t = 0; t < n.length; t++)
43
+ o += `${t === 0 ? "?" : "&"}${n[t].key}=${n[t].value}`;
44
+ window.location.replace(`${a}${o}`);
45
+ });
46
+ }
47
+ },
48
+ created() {
49
+ this.init();
50
+ }
51
+ };
52
+ var m = function() {
53
+ var e = this, i = e._self._c;
54
+ return i("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], staticClass: "gd-oauth" }, [i("div", { staticClass: "oauth-loading" }, [e.authorizeType === "loading" ? i("div", { staticClass: "title" }, [i("i", { staticClass: "el-icon-loading" }), e._v(" " + e._s(e.$i18nt("gd.login.authorization", "\u6388\u6743\u4E2D....")) + " ")]) : e.authorizeType === "fail" ? i("div", { staticClass: "err" }, [i("i", { staticClass: "el-icon-warning" }), e._v(" " + e._s(e.message) + " ")]) : i("div", { staticClass: "title" }, [i("i", { staticClass: "el-icon-success" }), e._v(" " + e._s(e.$i18nt("gd.login.authorizationCompleted", "\u6388\u6743\u5DF2\u5B8C\u6210")) + " ")])])]);
55
+ }, h = [], u = /* @__PURE__ */ l(
56
+ d,
57
+ m,
58
+ h,
59
+ !1,
60
+ null,
61
+ "c42b1f9d",
62
+ null,
63
+ null
64
+ );
65
+ const y = u.exports;
66
+ export {
67
+ y as default
68
+ };
@@ -0,0 +1,87 @@
1
+ import l from "vue";
2
+ import { a as d, n as h } from "./chartbi.48631362.mjs";
3
+ import { W as g } from "./system.account.25a9471c.mjs";
4
+ import "./messages.7e85146d.mjs";
5
+ const u = {
6
+ name: "GdAuthorizeLogin",
7
+ data() {
8
+ return {
9
+ authorizeType: "loading",
10
+ query: {},
11
+ code: "",
12
+ message: "",
13
+ confirmLoading: !0
14
+ };
15
+ },
16
+ methods: {
17
+ init() {
18
+ const t = this.$route.query, e = t.code ? t.code : "";
19
+ if (this.code = e, this.query = this.$route.query, e)
20
+ this.Logout().then((i) => {
21
+ this.getCode();
22
+ });
23
+ else {
24
+ const i = this.$i18nt("gd.login.missingParameters", "\u7F3A\u5931\u53C2\u6570:") + " code";
25
+ this.$message.error(i), this.message = i, this.authorizeType = "fail", this.confirmLoading = !1;
26
+ }
27
+ },
28
+ getCode() {
29
+ g({ code: this.code }).then((t) => {
30
+ if (t.code !== 200) {
31
+ this.authorizeType = "fail", this.$message.error(t.message), this.message = t.message, this.confirmLoading = !1;
32
+ return;
33
+ }
34
+ this.loginSuccess(t.data);
35
+ });
36
+ },
37
+ loginSuccess(t) {
38
+ this.authorizeType = "finish", l.ls.set("ACCESS_TOKEN", t.accesstoken), this.$store.commit("SET_TOKEN", t.accesstoken);
39
+ const e = this.query.redirect_uri ? this.query.redirect_uri : "";
40
+ if (e === "") {
41
+ let s = t.configtheme ? t.configtheme.replace(/\\/g, "/").split(",") : null, a = "/";
42
+ if (s) {
43
+ let r = s[s.length - 1];
44
+ String(r).split("").forEach((n, c) => {
45
+ a += c == 0 && n === "/" ? "" : n;
46
+ });
47
+ }
48
+ this.$router.push({
49
+ path: s ? a : "/"
50
+ }), this.loginOther();
51
+ return;
52
+ }
53
+ const i = this.query.redirect_type ? this.query.redirect_type : "self", o = decodeURIComponent(e);
54
+ i === "self" ? this.$router.push(o) : window.location.replace(o);
55
+ },
56
+ loginOther() {
57
+ this.dictTypeData().then((e) => {
58
+ });
59
+ const t = new BroadcastChannel("gd-channel-msg");
60
+ t.postMessage({
61
+ type: "login",
62
+ data: { gdTagName: window.gdTagName }
63
+ }), t.close();
64
+ },
65
+ ...d(["Logout", "dictTypeData"])
66
+ },
67
+ created() {
68
+ this.init();
69
+ }
70
+ };
71
+ var m = function() {
72
+ var e = this, i = e._self._c;
73
+ return i("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], staticClass: "gd-authorize" }, [i("div", { staticClass: "authorize-loading" }, [e.authorizeType === "loading" ? i("div", { staticClass: "title" }, [i("i", { staticClass: "el-icon-loading" }), e._v(" " + e._s(e.$i18nt("gd.login.authorization", "\u6388\u6743\u4E2D....")) + " ")]) : e.authorizeType === "fail" ? i("div", { staticClass: "err" }, [i("i", { staticClass: "el-icon-warning" }), e._v(" " + e._s(e.message) + " ")]) : i("div", { staticClass: "title" }, [i("i", { staticClass: "el-icon-success" }), e._v(" " + e._s(e.$i18nt("gd.login.authorizationCompleted", "\u6388\u6743\u5DF2\u5B8C\u6210")) + " ")])])]);
74
+ }, p = [], _ = /* @__PURE__ */ h(
75
+ u,
76
+ m,
77
+ p,
78
+ !1,
79
+ null,
80
+ "d10313b7",
81
+ null,
82
+ null
83
+ );
84
+ const T = _.exports;
85
+ export {
86
+ T as default
87
+ };