gds-plus-design-vue 1.2.3 → 1.2.4
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 +16 -16
- package/lib/gd-initial.mjs +6428 -3567
- package/lib/main.00e2ba37.mjs +123 -0
- package/lib/main.55fab1ce.mjs +198 -0
- package/lib/main.7e1495ec.js +1 -0
- package/lib/{main.4aebe1c9.js → main.9c85b10c.js} +1 -1
- package/lib/main.a27e1e54.js +1 -0
- package/lib/{main.9801708f.js → main.a794f7cf.js} +1 -1
- package/lib/{main.a30b25d6.mjs → main.b25a9b4c.mjs} +6 -6
- package/lib/{main.eb4b260e.mjs → main.b4ad6d81.mjs} +3 -3
- package/lib/{messages.a1335b0f.mjs → messages.bc3bc0e8.mjs} +77 -77
- package/lib/{messages.30e41348.js → messages.fa3d97b5.js} +2 -2
- package/lib/style.css +2 -2
- package/lib/{system.account.20f9e450.mjs → system.account.868f96f9.mjs} +18 -18
- package/lib/{system.account.1ff630c9.js → system.account.e82580de.js} +1 -1
- package/lib/{system.config.532ab3b8.js → system.config.6aae9ea6.js} +1 -1
- package/lib/{system.config.c85c05e9.mjs → system.config.71615d2b.mjs} +2 -2
- package/lib/{system.datasource.f64a59de.mjs → system.datasource.009a1673.mjs} +2 -2
- package/lib/{system.datasource.272f1add.js → system.datasource.523ae242.js} +1 -1
- package/lib/{system.dict.a23e8cdf.js → system.dict.0111a3bc.js} +1 -1
- package/lib/{system.dict.565d69ca.mjs → system.dict.8f562e89.mjs} +2 -2
- package/lib/{system.duplicatechecking.f66790d1.js → system.duplicatechecking.1865e065.js} +1 -1
- package/lib/{system.duplicatechecking.268544dd.mjs → system.duplicatechecking.f517abed.mjs} +2 -2
- package/lib/{system.email.ada25702.mjs → system.email.4c484530.mjs} +2 -2
- package/lib/{system.email.00a93855.js → system.email.70351605.js} +1 -1
- package/lib/{system.fieldsecurity.d14384cc.mjs → system.fieldsecurity.9f9f73df.mjs} +1 -1
- package/lib/{system.fieldsecurity.ede73621.js → system.fieldsecurity.d11088e3.js} +1 -1
- package/lib/{system.file.aa567566.js → system.file.001a01bc.js} +1 -1
- package/lib/{system.file.a23b3c83.mjs → system.file.96b3ce1e.mjs} +2 -2
- package/lib/{system.log.8a9f4a4d.mjs → system.log.80feb1c4.mjs} +2 -2
- package/lib/{system.log.b3666991.js → system.log.f7afb251.js} +1 -1
- 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.365ddd35.js +1 -0
- package/lib/{system.notice.6d0aa32c.mjs → system.notice.b4247147.mjs} +240 -224
- package/lib/{system.noticereceived.e5ef5883.js → system.noticereceived.5545acf8.js} +1 -1
- package/lib/{system.noticereceived.70963f1b.mjs → system.noticereceived.eef2cf6e.mjs} +5 -4
- package/lib/{system.onlineuser.c58fb6ce.mjs → system.onlineuser.de5f62bf.mjs} +2 -2
- package/lib/{system.onlineuser.99e4de37.js → system.onlineuser.fd9fdc66.js} +1 -1
- package/lib/{system.org.638db6d1.mjs → system.org.94393315.mjs} +3 -3
- package/lib/{system.org.56151be8.js → system.org.d22168d6.js} +1 -1
- package/lib/{system.permissions.fcd56f67.js → system.permissions.3c5c3573.js} +1 -1
- package/lib/{system.permissions.aa0cc0d6.mjs → system.permissions.ccbe352d.mjs} +3 -3
- package/lib/{system.plugin.b17efa53.js → system.plugin.5d47e679.js} +1 -1
- package/lib/{system.plugin.beb44900.mjs → system.plugin.8caa5d1f.mjs} +2 -2
- package/lib/{system.pos.e8d9c488.js → system.pos.caaef4fc.js} +1 -1
- package/lib/{system.pos.699e8dd6.mjs → system.pos.e4be69c4.mjs} +2 -2
- package/lib/{system.promptmanagement.2ce3e426.mjs → system.promptmanagement.1ad89863.mjs} +2 -2
- package/lib/{system.promptmanagement.109a07f5.js → system.promptmanagement.e73f64a2.js} +1 -1
- package/lib/{system.role.230b1445.mjs → system.role.0323ddd5.mjs} +220 -206
- package/lib/{system.role.f0d4082c.js → system.role.b5b55ddd.js} +1 -1
- package/lib/{system.sumberrules.38017ad1.js → system.sumberrules.2babdd81.js} +1 -1
- package/lib/{system.sumberrules.fa1aab86.mjs → system.sumberrules.42965c1e.mjs} +2 -2
- package/lib/{system.team.aeaede22.mjs → system.team.28168433.mjs} +80 -49
- package/lib/system.team.a3527834.js +1 -0
- package/lib/{system.teammembers.2e3309c3.mjs → system.teammembers.08f3ce38.mjs} +3 -3
- package/lib/{system.teammembers.29128f16.js → system.teammembers.4b11e49b.js} +1 -1
- package/lib/{system.timers.0ec63785.mjs → system.timers.040b9bce.mjs} +2 -2
- package/lib/{system.timers.b62568ad.js → system.timers.310b3710.js} +1 -1
- package/lib/{system.translation.887fa90d.js → system.translation.a4396166.js} +1 -1
- package/lib/{system.translation.e71455aa.mjs → system.translation.c0068d8f.mjs} +3 -3
- package/lib/{system.user.bed5f82a.js → system.user.20a5e7b4.js} +5 -5
- package/lib/{system.user.84227a85.mjs → system.user.84e77277.mjs} +53 -23
- package/lib/{system.useraffiliation.7ec0fcae.js → system.useraffiliation.307e3cd7.js} +1 -1
- package/lib/{system.useraffiliation.b3f03a33.mjs → system.useraffiliation.fb961d98.mjs} +3 -3
- package/lib/{system.webresource.f8b78dd0.js → system.webresource.0382b6b1.js} +1 -1
- package/lib/{system.webresource.e6cb9173.mjs → system.webresource.2d0ab7a6.mjs} +3 -3
- 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 +47 -8
- package/locale/id_ID.js +45 -7
- package/locale/vi_VN.js +45 -7
- package/locale/zh_CN.js +40 -2
- package/package.json +1 -1
- package/lib/main.05252737.mjs +0 -87
- package/lib/main.458dc0a0.js +0 -1
- package/lib/system.notice.5fb1485e.js +0 -1
- package/lib/system.team.3826e252.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.868f96f9.mjs";
|
|
4
|
+
import "./messages.bc3bc0e8.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
|
+
};
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import { m as l, n } from "./chartbi.c3bc6adb.mjs";
|
|
2
|
+
import { s as d } from "./system.noticereceived.eef2cf6e.mjs";
|
|
3
|
+
import { t as c } from "./messages.bc3bc0e8.mjs";
|
|
4
|
+
import { k as m } from "./system.notice.b4247147.mjs";
|
|
5
|
+
import "./system.email.4c484530.mjs";
|
|
6
|
+
import "./system.account.868f96f9.mjs";
|
|
7
|
+
import "vue";
|
|
8
|
+
import "./system.fieldsecurity.9f9f73df.mjs";
|
|
9
|
+
const p = {
|
|
10
|
+
data() {
|
|
11
|
+
return {
|
|
12
|
+
transKey: "gd.notice.detail",
|
|
13
|
+
fullscreen: !1,
|
|
14
|
+
visible: !1,
|
|
15
|
+
width: "900",
|
|
16
|
+
confirmLoading: !1,
|
|
17
|
+
contentRecord: {},
|
|
18
|
+
sysViewButtons: [],
|
|
19
|
+
type: "pdf"
|
|
20
|
+
};
|
|
21
|
+
},
|
|
22
|
+
computed: {
|
|
23
|
+
height() {
|
|
24
|
+
return this.screenHeight - 24 - 40 - 36;
|
|
25
|
+
},
|
|
26
|
+
headTitle() {
|
|
27
|
+
return this.$i18nt(this.transKey, this.title);
|
|
28
|
+
},
|
|
29
|
+
style() {
|
|
30
|
+
return `height:${this.fullscreen ? this.screenHeight - 80 : this.screenHeight - 240}px;`;
|
|
31
|
+
},
|
|
32
|
+
...l(["tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode"])
|
|
33
|
+
},
|
|
34
|
+
methods: {
|
|
35
|
+
open(i) {
|
|
36
|
+
this.fullscreen = !1, this.visible = !0, this.confirmLoading = !0, this.sysNoticeDetail(i.id), i.attachment && this.$nextTick(() => {
|
|
37
|
+
setTimeout(() => {
|
|
38
|
+
let e = { name: `${i.title}.${this.type}`, fileId: i.attachment, fullscreen: !1 };
|
|
39
|
+
this.$refs.filePreview.open(e);
|
|
40
|
+
}, 0);
|
|
41
|
+
});
|
|
42
|
+
},
|
|
43
|
+
sysNoticeDetail(i) {
|
|
44
|
+
this.fullscreen = !1, m({
|
|
45
|
+
id: i
|
|
46
|
+
}).then((e) => {
|
|
47
|
+
this.confirmLoading = !1, this.contentRecord = e.data;
|
|
48
|
+
});
|
|
49
|
+
},
|
|
50
|
+
handleCancel() {
|
|
51
|
+
this.visible = !1, this.contentRecord = {};
|
|
52
|
+
},
|
|
53
|
+
closed() {
|
|
54
|
+
this.visible = !1;
|
|
55
|
+
},
|
|
56
|
+
toggleFullscreen() {
|
|
57
|
+
this.fullscreen = !this.fullscreen;
|
|
58
|
+
},
|
|
59
|
+
doEvent(i) {
|
|
60
|
+
const e = i.item.functionName;
|
|
61
|
+
this[e] && this[e]();
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
var f = function() {
|
|
66
|
+
var e = this, t = e._self._c;
|
|
67
|
+
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: { formMode: e.formMode, 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", transKey: e.transKey, labelPosition: e.labelPosition, "show-close": !1 }, on: { "update:visible": function(s) {
|
|
68
|
+
e.visible = s;
|
|
69
|
+
}, closed: e.closed } }, [t("gd-modal-title", { attrs: { slot: "title", title: e.headTitle, fullscreen: e.fullscreen, buttons: e.sysViewButtons, confirmLoading: e.confirmLoading, showClose: !0 }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen }, slot: "title" }), t("div", { class: e.fullscreen ? "modal-bodyq" : "modal-body" }, [t("div", { staticStyle: { "text-align": "center", "font-size": "30px" } }, [e._v(e._s(this.contentRecord.title))]), t("br"), t("div", { staticStyle: { "text-align": "right", "font-size": "10px" } }, [t("span", [e._v(" " + e._s(e.$i18nt("gd.notice.publisher", "\u53D1\u5E03\u4EBA")) + ": " + e._s(this.contentRecord.publicusername) + " ")]), t("span", [e._v(" " + e._s(e.$i18nt("gd.notice.releaseTime", "\u53D1\u5E03\u65F6\u95F4")) + ": " + e._s(this.contentRecord.publictime ? this.contentRecord.publictime : "--") + " ")])]), t("el-divider", { staticStyle: { "margin-top": "5px" } }), t("div", [t("label", { staticClass: "ql-editor", domProps: { innerHTML: e._s(this.contentRecord.content) } })]), e.contentRecord.status != 2 && e.contentRecord.attachment != "" ? t("gd-file-preview", { ref: "filePreview", attrs: { options: {}, modeType: "component" } }) : e._e()], 1)], 1)], 1);
|
|
70
|
+
}, u = [], h = /* @__PURE__ */ n(
|
|
71
|
+
p,
|
|
72
|
+
f,
|
|
73
|
+
u,
|
|
74
|
+
!1,
|
|
75
|
+
null,
|
|
76
|
+
"2185aadc",
|
|
77
|
+
null,
|
|
78
|
+
null
|
|
79
|
+
);
|
|
80
|
+
const _ = h.exports;
|
|
81
|
+
const g = {
|
|
82
|
+
mixins: [c],
|
|
83
|
+
data() {
|
|
84
|
+
return {
|
|
85
|
+
transKey: "gd.btn.add",
|
|
86
|
+
type: "4",
|
|
87
|
+
allData: []
|
|
88
|
+
};
|
|
89
|
+
},
|
|
90
|
+
components: {
|
|
91
|
+
detailForm: _
|
|
92
|
+
},
|
|
93
|
+
computed: {
|
|
94
|
+
...l(["tableLists", "tablePageSize", "tableSize", "labelPosition", "formMode"])
|
|
95
|
+
},
|
|
96
|
+
methods: {
|
|
97
|
+
editForm(i) {
|
|
98
|
+
this.transKey = "gd.notice.detail", this.$refs.detailForm.open(i);
|
|
99
|
+
},
|
|
100
|
+
init(i) {
|
|
101
|
+
if (this.type = i.messagetype, this.type == "4") {
|
|
102
|
+
let e = {
|
|
103
|
+
key: "tabledataid",
|
|
104
|
+
transKey: "Dynamics.Sys_Tables_sys_approval_task_Views_toApprovaltask_Fields_15452455065798_Name",
|
|
105
|
+
prop: "tabledataid",
|
|
106
|
+
label: "\u5BA1\u6279\u5355\u636E",
|
|
107
|
+
owidth: "250",
|
|
108
|
+
columnName: "tabledataid_aboutid",
|
|
109
|
+
fkEntityName: "dev_test",
|
|
110
|
+
id: 13238497276230,
|
|
111
|
+
fkId: 13238497276230,
|
|
112
|
+
align: "left",
|
|
113
|
+
checked: !0,
|
|
114
|
+
effectType: "about",
|
|
115
|
+
fieldType: "about",
|
|
116
|
+
gatherConfig: !1,
|
|
117
|
+
fieldFormat: "null",
|
|
118
|
+
dictTypeCode: null,
|
|
119
|
+
dictTypeList: [],
|
|
120
|
+
maxTagCount: 2,
|
|
121
|
+
sourceFk: !0,
|
|
122
|
+
displayMode: "none",
|
|
123
|
+
displayPrefix: "none",
|
|
124
|
+
preview: !0,
|
|
125
|
+
download: !0,
|
|
126
|
+
filedsize: 255,
|
|
127
|
+
hyperlink: !0,
|
|
128
|
+
type: "slot",
|
|
129
|
+
slotType: "tabledataid"
|
|
130
|
+
}, t = {
|
|
131
|
+
id: 22450602588615,
|
|
132
|
+
tasktype: "approver",
|
|
133
|
+
tabledataid_aboutid: 22450596595013,
|
|
134
|
+
namesys_usersubmitter: "\u8096yx",
|
|
135
|
+
status: 0,
|
|
136
|
+
createdtime: "2025-09-11 11:15:34",
|
|
137
|
+
isreturn: 0,
|
|
138
|
+
nodename: "\u524D\u52A0\u7B7E\u5BA1\u6279\u4EBA",
|
|
139
|
+
isautoapproval: 0,
|
|
140
|
+
tabledataid: "\u76F4\u5C5E\u4E0A\u7EA7"
|
|
141
|
+
}, s = e.prop + "_AboutTable", o = t[s];
|
|
142
|
+
this.tableLists.filter((a) => a.tablename == o)[0];
|
|
143
|
+
let r = {
|
|
144
|
+
tableId: "19785037949381",
|
|
145
|
+
data: [
|
|
146
|
+
{
|
|
147
|
+
id: t[e.columnName]
|
|
148
|
+
}
|
|
149
|
+
]
|
|
150
|
+
};
|
|
151
|
+
this.$refs.middleware.init(r).then((a) => {
|
|
152
|
+
setTimeout(() => {
|
|
153
|
+
}, 1e3);
|
|
154
|
+
});
|
|
155
|
+
} else {
|
|
156
|
+
this.getNoticeData();
|
|
157
|
+
const e = i.targeturl.split("?")[1];
|
|
158
|
+
let t = "";
|
|
159
|
+
e && (t = new URLSearchParams(e).get("id")), setTimeout(() => {
|
|
160
|
+
this.allData.forEach((s) => {
|
|
161
|
+
s.id == t && this.editForm(s);
|
|
162
|
+
});
|
|
163
|
+
}, 100);
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
getNoticeData() {
|
|
167
|
+
return d(Object.assign({ pageNo: 1, pageSize: 1e5 })).then((i) => {
|
|
168
|
+
this.allData = i.data.rows;
|
|
169
|
+
});
|
|
170
|
+
},
|
|
171
|
+
openExternal() {
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
mounted() {
|
|
175
|
+
setTimeout(() => {
|
|
176
|
+
this.init({
|
|
177
|
+
messagetype: "4"
|
|
178
|
+
});
|
|
179
|
+
}, 1e3);
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
var y = function() {
|
|
183
|
+
var e = this, t = e._self._c;
|
|
184
|
+
return t("div", [e.type == "1" || e.type == "2" || e.type == "3" ? t("detailForm", { ref: "detailForm" }) : e._e(), e.type == "4" ? t("gd-middleware", { ref: "middleware" }) : e._e()], 1);
|
|
185
|
+
}, b = [], v = /* @__PURE__ */ n(
|
|
186
|
+
g,
|
|
187
|
+
y,
|
|
188
|
+
b,
|
|
189
|
+
!1,
|
|
190
|
+
null,
|
|
191
|
+
"c632641f",
|
|
192
|
+
null,
|
|
193
|
+
null
|
|
194
|
+
);
|
|
195
|
+
const S = v.exports;
|
|
196
|
+
export {
|
|
197
|
+
S as default
|
|
198
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("vue"),c=require("./chartbi.5eded588.js"),u=require("./system.account.e82580de.js");require("./messages.fa3d97b5.js");const g=t=>t&&typeof t=="object"&&"default"in t?t:{default:t},n=g(d);const m={name:"GdAuthorizeLogin",data(){return{authorizeType:"loading",query:{},code:"",message:"",confirmLoading:!0,showAuthorize:!0,showDetails:!1}},methods:{beaseLoadComplete(){window.parent.postMessage({eventType:"load-complete",data:""},"*")},onChangeBtn(t){window.parent.postMessage({eventType:"form-btn",data:JSON.stringify(t)},"*")},closeShowDetails(){this.showDetails=!1,window.parent.postMessage({eventType:"close-drawer",data:""},"*")},init(){const t=this.$route.query,e=t.code?t.code:"";if(this.code=e,this.query=this.$route.query,e)this.Logout().then(s=>{this.getCode()});else{const s=this.$i18nt("gd.login.missingParameters","\u7F3A\u5931\u53C2\u6570:")+" code";this.$message.error(s),this.message=s,this.authorizeType="fail",this.confirmLoading=!1}},getCode(){u.oauthCodeLogin({code:this.code}).then(t=>{if(t.code!==200){this.authorizeType="fail",this.$message.error(t.message),this.message=t.message,this.confirmLoading=!1;return}if((this.query.authorize_type?this.query.authorize_type:"")!==""){this.viewFormDetails(t.data);return}this.loginSuccess(t.data)})},viewFormDetails(t){this.authorizeType="finish",n.default.ls.set("ACCESS_TOKEN",t.accesstoken),this.$store.commit("SET_TOKEN",t.accesstoken);let e="";for(let s in this.query){const i=["complete_request","redirect_uri","request_url"].includes(s)?encodeURIComponent(this.query[s]):this.query[s];e+=`${e===""?"?":"&"}${s}=${i}`}this.showAuthorize=!1,this.showDetails=!0,this.dictTypeData().then(s=>{this.$nextTick(()=>{setTimeout(()=>{this.confirmLoading=!1,this.$refs.viewFormDetails.open(e)},100)})})},loginSuccess(t){this.authorizeType="finish",n.default.ls.set("ACCESS_TOKEN",t.accesstoken),this.$store.commit("SET_TOKEN",t.accesstoken);const e=this.query.redirect_uri?this.query.redirect_uri:"";if(e===""){let o=t.configtheme?t.configtheme.replace(/\\/g,"/").split(","):null,a="/";if(o){let l=o[o.length-1];String(l).split("").forEach((r,h)=>{a+=h==0&&r==="/"?"":r})}this.$router.push({path:o?a:"/"}),this.loginOther();return}const s=this.query.redirect_type?this.query.redirect_type:"self",i=decodeURIComponent(e);s==="self"?this.$router.push(i):window.location.replace(i)},loginOther(){this.dictTypeData().then(e=>{});const t=new BroadcastChannel("gd-channel-msg");t.postMessage({type:"login",data:{gdTagName:window.gdTagName}}),t.close()},onMessage(t){t.data.eventType==="btn-click"&&this.$refs.viewFormDetails&&this.$refs.viewFormDetails.doEvent(JSON.parse(t.data.data))},...c.mapActions(["Logout","dictTypeData"])},created(){this.init(),window.addEventListener("message",this.onMessage)},beforeDestory(){window.removeEventListener("message",this.monitorIframe)}};var p=function(){var e=this,s=e._self._c;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)},f=[],_=c.normalizeComponent(m,p,f,!1,null,"3eb92d67",null,null);const y=_.exports;exports.default=y;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./system.account.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./system.account.e82580de.js"),l=require("./chartbi.5eded588.js");require("vue");require("./messages.fa3d97b5.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.indexOf("?")===-1?i:i.slice(0,i.indexOf("?")),n=i.indexOf("?")===-1?[]: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,"858ec59b",null,null);const m=g.exports;exports.default=m;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./chartbi.5eded588.js"),r=require("./system.noticereceived.5545acf8.js"),d=require("./messages.fa3d97b5.js"),c=require("./system.notice.365ddd35.js");require("./system.email.70351605.js");require("./system.account.e82580de.js");require("vue");require("./system.fieldsecurity.d11088e3.js");const u={data(){return{transKey:"gd.notice.detail",fullscreen:!1,visible:!1,width:"900",confirmLoading:!1,contentRecord:{},sysViewButtons:[],type:"pdf"}},computed:{height(){return this.screenHeight-24-40-36},headTitle(){return this.$i18nt(this.transKey,this.title)},style(){return`height:${this.fullscreen?this.screenHeight-80:this.screenHeight-240}px;`},...a.mapGetters(["tablePageSize","tableSize","screenHeight","labelPosition","formMode"])},methods:{open(s){this.fullscreen=!1,this.visible=!0,this.confirmLoading=!0,this.sysNoticeDetail(s.id),s.attachment&&this.$nextTick(()=>{setTimeout(()=>{let e={name:`${s.title}.${this.type}`,fileId:s.attachment,fullscreen:!1};this.$refs.filePreview.open(e)},0)})},sysNoticeDetail(s){this.fullscreen=!1,c.sysNoticeDetail({id:s}).then(e=>{this.confirmLoading=!1,this.contentRecord=e.data})},handleCancel(){this.visible=!1,this.contentRecord={}},closed(){this.visible=!1},toggleFullscreen(){this.fullscreen=!this.fullscreen},doEvent(s){const e=s.item.functionName;this[e]&&this[e]()}}};var m=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:{formMode:e.formMode,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",transKey:e.transKey,labelPosition:e.labelPosition,"show-close":!1},on:{"update:visible":function(i){e.visible=i},closed:e.closed}},[t("gd-modal-title",{attrs:{slot:"title",title:e.headTitle,fullscreen:e.fullscreen,buttons:e.sysViewButtons,confirmLoading:e.confirmLoading,showClose:!0},on:{changeEvent:e.doEvent,toggleFullscreen:e.toggleFullscreen},slot:"title"}),t("div",{class:e.fullscreen?"modal-bodyq":"modal-body"},[t("div",{staticStyle:{"text-align":"center","font-size":"30px"}},[e._v(e._s(this.contentRecord.title))]),t("br"),t("div",{staticStyle:{"text-align":"right","font-size":"10px"}},[t("span",[e._v(" "+e._s(e.$i18nt("gd.notice.publisher","\u53D1\u5E03\u4EBA"))+": "+e._s(this.contentRecord.publicusername)+" ")]),t("span",[e._v(" "+e._s(e.$i18nt("gd.notice.releaseTime","\u53D1\u5E03\u65F6\u95F4"))+": "+e._s(this.contentRecord.publictime?this.contentRecord.publictime:"--")+" ")])]),t("el-divider",{staticStyle:{"margin-top":"5px"}}),t("div",[t("label",{staticClass:"ql-editor",domProps:{innerHTML:e._s(this.contentRecord.content)}})]),e.contentRecord.status!=2&&e.contentRecord.attachment!=""?t("gd-file-preview",{ref:"filePreview",attrs:{options:{},modeType:"component"}}):e._e()],1)],1)],1)},f=[],p=a.normalizeComponent(u,m,f,!1,null,"2185aadc",null,null);const h=p.exports;const _={mixins:[d.tablesFilter],data(){return{transKey:"gd.btn.add",type:"4",allData:[]}},components:{detailForm:h},computed:{...a.mapGetters(["tableLists","tablePageSize","tableSize","labelPosition","formMode"])},methods:{editForm(s){this.transKey="gd.notice.detail",this.$refs.detailForm.open(s)},init(s){if(this.type=s.messagetype,this.type=="4"){let e={key:"tabledataid",transKey:"Dynamics.Sys_Tables_sys_approval_task_Views_toApprovaltask_Fields_15452455065798_Name",prop:"tabledataid",label:"\u5BA1\u6279\u5355\u636E",owidth:"250",columnName:"tabledataid_aboutid",fkEntityName:"dev_test",id:0xc0a53ed7146,fkId:0xc0a53ed7146,align:"left",checked:!0,effectType:"about",fieldType:"about",gatherConfig:!1,fieldFormat:"null",dictTypeCode:null,dictTypeList:[],maxTagCount:2,sourceFk:!0,displayMode:"none",displayPrefix:"none",preview:!0,download:!0,filedsize:255,hyperlink:!0,type:"slot",slotType:"tabledataid"},t={id:22450602588615,tasktype:"approver",tabledataid_aboutid:22450596595013,namesys_usersubmitter:"\u8096yx",status:0,createdtime:"2025-09-11 11:15:34",isreturn:0,nodename:"\u524D\u52A0\u7B7E\u5BA1\u6279\u4EBA",isautoapproval:0,tabledataid:"\u76F4\u5C5E\u4E0A\u7EA7"},i=e.prop+"_AboutTable",l=t[i];this.tableLists.filter(n=>n.tablename==l)[0];let o={tableId:"19785037949381",data:[{id:t[e.columnName]}]};this.$refs.middleware.init(o).then(n=>{setTimeout(()=>{},1e3)})}else{this.getNoticeData();const e=s.targeturl.split("?")[1];let t="";e&&(t=new URLSearchParams(e).get("id")),setTimeout(()=>{this.allData.forEach(i=>{i.id==t&&this.editForm(i)})},100)}},getNoticeData(){return r.sysNoticeReceived(Object.assign({pageNo:1,pageSize:1e5})).then(s=>{this.allData=s.data.rows})},openExternal(){}},mounted(){setTimeout(()=>{this.init({messagetype:"4"})},1e3)}};var y=function(){var e=this,t=e._self._c;return t("div",[e.type=="1"||e.type=="2"||e.type=="3"?t("detailForm",{ref:"detailForm"}):e._e(),e.type=="4"?t("gd-middleware",{ref:"middleware"}):e._e()],1)},g=[],b=a.normalizeComponent(_,y,g,!1,null,"c632641f",null,null);const v=b.exports;exports.default=v;
|