gds-plus-design-vue 1.1.2 → 1.1.7
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 +80300 -16
- package/lib/main.60763eae.js +1 -0
- package/lib/main.f2b00b70.mjs +939 -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.65b2f7d4.js +216 -0
- package/lib/system.account.93b7df36.mjs +2536 -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.0d47a5ca.js +1 -0
- package/lib/system.duplicatechecking.ad111272.mjs +2130 -0
- package/lib/system.email.54722948.js +41 -0
- package/lib/system.email.923697c6.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.93c4691c.js +1 -0
- package/lib/system.notice.e0b84103.mjs +636 -0
- package/lib/system.noticereceived.a28ba643.js +1 -0
- package/lib/system.noticereceived.c0a19336.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.b8a5f79d.mjs +212 -0
- package/lib/system.permissions.c34f44a3.js +9 -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.5a4930b1.js +1 -0
- package/lib/system.promptmanagement.fe8b0913.mjs +789 -0
- package/lib/system.role.ceb5ed2d.mjs +1509 -0
- package/lib/system.role.daedd959.js +1 -0
- package/lib/system.timers.69f1792a.mjs +3160 -0
- package/lib/system.timers.ef6b6796.js +38 -0
- package/lib/system.translation.6351f189.mjs +661 -0
- package/lib/system.translation.8905eb73.js +1 -0
- package/lib/system.user.12a4e490.mjs +1425 -0
- package/lib/system.user.d668538b.js +14 -0
- package/lib/system.useraffiliation.b8be03db.js +1 -0
- package/lib/system.useraffiliation.c272e688.mjs +1025 -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 +258 -18
- package/locale/id_ID.js +257 -18
- package/locale/vi_VN.js +256 -16
- package/locale/zh_CN.js +267 -25
- package/package.json +105 -110
- package/lib/gd-initial.umd.js +0 -440
- package/lib/index.d50ecf4b.mjs +0 -143931
- package/lib/main.305313fd.mjs +0 -919
|
@@ -0,0 +1,661 @@
|
|
|
1
|
+
import { s as d, a as c, b as u, G as h, c as m, d as g, e as f, f as p, g as y, h as _, i as $ } from "./system.promptmanagement.fe8b0913.mjs";
|
|
2
|
+
import { n as r, m as b } from "./chartbi.48631362.mjs";
|
|
3
|
+
import { m as v } from "./messages.7e85146d.mjs";
|
|
4
|
+
const w = {
|
|
5
|
+
props: {
|
|
6
|
+
openPermissions: {
|
|
7
|
+
type: Boolean,
|
|
8
|
+
default: !0
|
|
9
|
+
},
|
|
10
|
+
modalAppendToBody: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
default: !0
|
|
13
|
+
},
|
|
14
|
+
appendToBody: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: !0
|
|
17
|
+
},
|
|
18
|
+
tmtype: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: ""
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
data() {
|
|
24
|
+
return {
|
|
25
|
+
visible: !1,
|
|
26
|
+
mockData: [],
|
|
27
|
+
targetKeys: [],
|
|
28
|
+
translationDetail: { name: "", langs: [] },
|
|
29
|
+
confirmLoading: !0,
|
|
30
|
+
title: "",
|
|
31
|
+
sysViewButtons: [
|
|
32
|
+
{
|
|
33
|
+
displayName: "\u786E\u5B9A",
|
|
34
|
+
functionName: "handleSubmit",
|
|
35
|
+
show: !0,
|
|
36
|
+
transKey: "gd.btn.confirm",
|
|
37
|
+
icon: "el-icon-document-checked"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
type: 1,
|
|
41
|
+
addData: null,
|
|
42
|
+
fullScreen: !1,
|
|
43
|
+
width: "800px",
|
|
44
|
+
errInit: null,
|
|
45
|
+
ruleFormData: {
|
|
46
|
+
defaulttext: "",
|
|
47
|
+
name: "",
|
|
48
|
+
langs: "",
|
|
49
|
+
type: "3",
|
|
50
|
+
hintcatalogid: ""
|
|
51
|
+
},
|
|
52
|
+
rules: {
|
|
53
|
+
defaulttext: [
|
|
54
|
+
{
|
|
55
|
+
required: !0,
|
|
56
|
+
message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
|
|
57
|
+
trigger: "change"
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
name: [
|
|
61
|
+
{
|
|
62
|
+
required: !0,
|
|
63
|
+
message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
|
|
64
|
+
trigger: "change"
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
},
|
|
70
|
+
computed: {},
|
|
71
|
+
methods: {
|
|
72
|
+
toggleFullscreen() {
|
|
73
|
+
this.fullScreen = !this.fullScreen;
|
|
74
|
+
},
|
|
75
|
+
changeText(e) {
|
|
76
|
+
let t = [...this.translationDetail.langs];
|
|
77
|
+
t.map((s) => (s.description = s.languagecode.replace(/-/g, "_") === "zh_CN" ? e : s.description, s)), this.translationDetail.langs = [...t];
|
|
78
|
+
},
|
|
79
|
+
changeLanguage(e, t) {
|
|
80
|
+
t.languagecode.replace(/-/g, "_") === "zh_CN" && (this.ruleFormData.defaulttext = e);
|
|
81
|
+
},
|
|
82
|
+
init(e) {
|
|
83
|
+
this.fullScreen = !1, this.visible = !0, this.type = e ? 2 : 1, this.title = e ? this.$i18nt("gd.https.edit") : this.$i18nt("gd.https.add"), this.openPermissions && (this.sysViewButtons = this.sysViewButtons.map((t) => (t.name = e ? "sysTranslation:edit" : "sysTranslation:add", t))), e ? (this.$nextTick(() => {
|
|
84
|
+
setTimeout(() => {
|
|
85
|
+
this.ruleFormData.defaulttext = e.defaulttext, this.ruleFormData.id = e.id, this.ruleFormData.name = e.name, this.ruleFormData.hintcatalogid = e.hintcatalogid, this.ruleFormData.type = e.type.toString();
|
|
86
|
+
}, 0);
|
|
87
|
+
}), this.sysTranslationDetail(e.id)) : (this.getAllLanguage(), this.tmtype === "translationManagement" && (this.ruleFormData.type = "2"));
|
|
88
|
+
},
|
|
89
|
+
editInit(e) {
|
|
90
|
+
if (this.confirmLoading = !0, this.title = this.$i18nt("gd.https.edit"), this.visible = !0, this.openPermissions && (this.sysViewButtons = this.sysViewButtons.map((t) => (t.name = "sysTranslation:edit", t))), !e || e.key === "") {
|
|
91
|
+
this.init(null);
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
d({ name: e.key }).then((t) => {
|
|
95
|
+
if (t.code == 200) {
|
|
96
|
+
let s = t.data.rows[0], a = e.list.filter((i) => i.code.replace(/-/g, "_") === "zh_CN")[0];
|
|
97
|
+
s !== void 0 && s.defaulttext === "" && (s = Object.assign(s, { defaulttext: a.val })), s !== void 0 ? this.init(s) : (this.ruleFormData = Object.assign(this.ruleFormData, {
|
|
98
|
+
defaulttext: e.list[0] ? e.list[0].val : "",
|
|
99
|
+
name: e.key
|
|
100
|
+
}), this.addData = e.list.length > 0 ? { langs: e.list } : null, this.init(null), this.errInit = e.key, this.$emit("err", e.transKey), this.$message.error(this.$i18nt("gd.translation.errTip", "\u6570\u636E\u9519\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u6DFB\u52A0\uFF01")));
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
},
|
|
104
|
+
addInit(e) {
|
|
105
|
+
if (e === "") {
|
|
106
|
+
this.init(null);
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
let t = JSON.parse(e);
|
|
110
|
+
this.addData = t, this.init(null), this.$nextTick(() => {
|
|
111
|
+
setTimeout(() => {
|
|
112
|
+
this.ruleFormData.defaulttext = t.langs[0].val, this.ruleFormData.name = this.errInit ? this.errInit : t.name;
|
|
113
|
+
}, 0);
|
|
114
|
+
});
|
|
115
|
+
},
|
|
116
|
+
add(e) {
|
|
117
|
+
this.confirmLoading = !0, delete e.id, c(e).then((t) => {
|
|
118
|
+
t.success ? (this.$message.success(this.$i18nt("gd.https.addSucc", "\u65B0\u589E\u6210\u529F")), this.$emit("ok", e), this.handleCancel()) : this.$message.error(this.$i18nt("gd.https.addFail", "\u65B0\u589E\u5931\u8D25: ") + t.message);
|
|
119
|
+
}).finally((t) => {
|
|
120
|
+
this.confirmLoading = !1;
|
|
121
|
+
});
|
|
122
|
+
},
|
|
123
|
+
edit(e) {
|
|
124
|
+
this.confirmLoading = !0, u(e).then((t) => {
|
|
125
|
+
t.success ? (this.$message.success(this.$i18nt("gd.https.editSucc", "\u7F16\u8F91\u6210\u529F")), this.$emit("ok", e), this.handleCancel()) : this.$message.error(this.$i18nt("gd.https.editFail", "\u7F16\u8F91\u5931\u8D25: ") + t.message);
|
|
126
|
+
}).finally((t) => {
|
|
127
|
+
this.confirmLoading = !1;
|
|
128
|
+
});
|
|
129
|
+
},
|
|
130
|
+
getAllLanguage() {
|
|
131
|
+
this.confirmLoading = !0, h().then((e) => {
|
|
132
|
+
let t = e.data;
|
|
133
|
+
this.addData && t.map((s) => {
|
|
134
|
+
let a = this.addData.langs.filter((i) => i.code == s.languagecode)[0];
|
|
135
|
+
return s.languagecode = s.languagecode.replace(/-/g, "_"), s.description = a === void 0 ? "" : a.val, s;
|
|
136
|
+
}), this.translationDetail.langs = t, this.confirmLoading = !1;
|
|
137
|
+
});
|
|
138
|
+
},
|
|
139
|
+
sysTranslationDetail(e) {
|
|
140
|
+
this.confirmLoading = !0, m({
|
|
141
|
+
id: e
|
|
142
|
+
}).then((t) => {
|
|
143
|
+
let s = t.data && t.data.langs ? t.data.langs : [];
|
|
144
|
+
s.map((a) => (a.languagecode = a.languagecode.replace(/-/g, "_"), a)), this.translationDetail = Object.assign(t.data, { langs: s }), this.confirmLoading = !1;
|
|
145
|
+
});
|
|
146
|
+
},
|
|
147
|
+
filterOption(e, t) {
|
|
148
|
+
return t.description.indexOf(e) > -1;
|
|
149
|
+
},
|
|
150
|
+
handleChange(e, t, s) {
|
|
151
|
+
this.targetKeys = e;
|
|
152
|
+
},
|
|
153
|
+
handleSubmit() {
|
|
154
|
+
this.$refs.ruleForm.validate((e) => {
|
|
155
|
+
if (e) {
|
|
156
|
+
const t = {
|
|
157
|
+
...this.ruleFormData,
|
|
158
|
+
langs: this.translationDetail.langs || [],
|
|
159
|
+
name: this.ruleFormData.name || this.translationDetail.name
|
|
160
|
+
};
|
|
161
|
+
this.type == 1 ? this.add(t) : this.edit(t);
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
},
|
|
165
|
+
getDictionary(e) {
|
|
166
|
+
return this.$options.filters.dictData(e);
|
|
167
|
+
},
|
|
168
|
+
handleCancel() {
|
|
169
|
+
this.visible = !1, this.confirmLoading = !1, this.$refs.ruleForm.resetFields(), this.ruleFormData = {
|
|
170
|
+
defaulttext: "",
|
|
171
|
+
name: "",
|
|
172
|
+
langs: "",
|
|
173
|
+
id: "",
|
|
174
|
+
type: "",
|
|
175
|
+
hintcatalogid: ""
|
|
176
|
+
}, this.translationDetail = { name: "", langs: [] }, this.addData = null, this.errInit = null, this.$emit("closed");
|
|
177
|
+
},
|
|
178
|
+
doEvent(e) {
|
|
179
|
+
let t = e.item.functionName;
|
|
180
|
+
this[t] && this[t]();
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
var x = function() {
|
|
185
|
+
var t = this, s = t._self._c;
|
|
186
|
+
return s("el-dialog", { class: t.fullScreen ? "gd-dialog" : "gd-dialog gd-dialog-fangda", attrs: { width: t.width, visible: t.visible, fullscreen: t.fullScreen, footer: null, top: "80px", "modal-append-to-body": t.modalAppendToBody, "append-to-body": t.appendToBody, "show-close": !1 }, on: { "update:visible": function(a) {
|
|
187
|
+
t.visible = a;
|
|
188
|
+
}, closed: t.handleCancel } }, [s("gd-modal-title", { attrs: { slot: "title", title: t.title, fullscreen: t.fullScreen, buttons: t.sysViewButtons, confirmLoading: t.confirmLoading, showClose: !0, closed: "handleCancel" }, on: { changeEvent: t.doEvent, toggleFullscreen: t.toggleFullscreen }, slot: "title" }), s("div", { directives: [{ name: "loading", rawName: "v-loading", value: t.confirmLoading, expression: "confirmLoading" }] }, [s("div", { class: t.fullScreen ? "modal-bodyq" : "modal-body" }, [s("el-form", { ref: "ruleForm", attrs: { rules: t.rules, model: t.ruleFormData, "label-width": "160px" }, nativeOn: { submit: function(a) {
|
|
189
|
+
a.preventDefault();
|
|
190
|
+
} } }, [s("el-form-item", { staticStyle: { "margin-bottom": "12px" }, attrs: { prop: "defaulttext" }, scopedSlots: t._u([{ key: "label", fn: function() {
|
|
191
|
+
return [t._v(" " + t._s(t.$i18nt("gd.translation.value")) + "\xA0 "), s("el-tooltip", { attrs: { content: t.$i18nt("gd.translation.valueTip"), placement: "top" } }, [s("i", { staticClass: "el-icon-question" })])];
|
|
192
|
+
}, proxy: !0 }]) }, [s("el-input", { attrs: { placeholder: t.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), disabled: t.type != 1 }, on: { input: t.changeText }, model: { value: t.ruleFormData.defaulttext, callback: function(a) {
|
|
193
|
+
t.$set(t.ruleFormData, "defaulttext", a);
|
|
194
|
+
}, expression: "ruleFormData.defaulttext" } })], 1), s("el-form-item", { staticStyle: { "margin-bottom": "12px" }, attrs: { prop: "name" }, scopedSlots: t._u([{ key: "label", fn: function() {
|
|
195
|
+
return [t._v(" " + t._s(t.$i18nt("gd.translation.key")) + "\xA0 "), s("el-tooltip", { attrs: { content: t.$i18nt("gd.translation.keyTip"), placement: "top" } }, [s("i", { staticClass: "el-icon-question" })])];
|
|
196
|
+
}, proxy: !0 }]) }, [s("el-input", { attrs: { placeholder: t.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), disabled: t.type != 1 }, model: { value: t.ruleFormData.name, callback: function(a) {
|
|
197
|
+
t.$set(t.ruleFormData, "name", a);
|
|
198
|
+
}, expression: "ruleFormData.name" } })], 1), t.tmtype === "translationManagement" ? s("el-form-item", { staticStyle: { "margin-bottom": "12px" }, attrs: { prop: "type" }, scopedSlots: t._u([{ key: "label", fn: function() {
|
|
199
|
+
return [t._v(t._s(t.$i18nt("gd.translation.type")) + "\xA0")];
|
|
200
|
+
}, proxy: !0 }], null, !1, 1857044530) }, [s("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: t.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), filterable: "", "collapse-tags": "" }, model: { value: t.ruleFormData.type, callback: function(a) {
|
|
201
|
+
t.$set(t.ruleFormData, "type", a);
|
|
202
|
+
}, expression: "ruleFormData.type" } }, t._l(t.getDictionary("translation_type"), function(a) {
|
|
203
|
+
return s("el-option", { key: a.code, attrs: { label: t.$i18nt(`Dynamics.${a.transkey}`, a.name), value: a.code } }, [s("span", [t._v(t._s(t.$i18nt(`Dynamics.${a.transkey}`, a.name)))])]);
|
|
204
|
+
}), 1)], 1) : t._e(), s("el-divider", { attrs: { dashed: "" } }), t._l(this.translationDetail.langs, function(a) {
|
|
205
|
+
return [s("el-form-item", { staticStyle: { "margin-bottom": "12px" }, attrs: { label: a.languagename } }, [s("el-input", { attrs: { placeholder: t.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), type: "textarea", autosize: "" }, on: { input: function(i) {
|
|
206
|
+
return t.changeLanguage(i, a);
|
|
207
|
+
} }, model: { value: a.description, callback: function(i) {
|
|
208
|
+
t.$set(a, "description", i);
|
|
209
|
+
}, expression: "item.description" } })], 1)];
|
|
210
|
+
})], 2)], 1)])], 1);
|
|
211
|
+
}, T = [], k = /* @__PURE__ */ r(
|
|
212
|
+
w,
|
|
213
|
+
x,
|
|
214
|
+
T,
|
|
215
|
+
!1,
|
|
216
|
+
null,
|
|
217
|
+
"7c4bdf77",
|
|
218
|
+
null,
|
|
219
|
+
null
|
|
220
|
+
);
|
|
221
|
+
const D = k.exports;
|
|
222
|
+
const S = {
|
|
223
|
+
data() {
|
|
224
|
+
return {
|
|
225
|
+
visible: !1,
|
|
226
|
+
solutionId: "",
|
|
227
|
+
sysViewButtons: [
|
|
228
|
+
{
|
|
229
|
+
displayName: "\u786E\u5B9A",
|
|
230
|
+
functionName: "handleSubmit",
|
|
231
|
+
show: !0,
|
|
232
|
+
transKey: "gd.btn.confirm",
|
|
233
|
+
icon: "save",
|
|
234
|
+
icon: "el-icon-document-checked"
|
|
235
|
+
}
|
|
236
|
+
],
|
|
237
|
+
confirmLoading: !1,
|
|
238
|
+
type: 1,
|
|
239
|
+
record: {},
|
|
240
|
+
advanced: !1,
|
|
241
|
+
fullScreen: !1,
|
|
242
|
+
width: "800px",
|
|
243
|
+
fileList: []
|
|
244
|
+
};
|
|
245
|
+
},
|
|
246
|
+
computed: {
|
|
247
|
+
title() {
|
|
248
|
+
return this.$i18nt("gd.web.selectFile");
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
methods: {
|
|
252
|
+
handleRemove(e) {
|
|
253
|
+
const t = this.fileList.indexOf(e), s = this.fileList.slice();
|
|
254
|
+
s.splice(t, 1), this.fileList = s;
|
|
255
|
+
},
|
|
256
|
+
beforeUpload(e) {
|
|
257
|
+
return this.fileList = [e], !1;
|
|
258
|
+
},
|
|
259
|
+
toggleFullscreen() {
|
|
260
|
+
this.fullScreen = !this.fullScreen;
|
|
261
|
+
},
|
|
262
|
+
open(e) {
|
|
263
|
+
this.fileList = [], this.fullScreen = !1, this.visible = !0;
|
|
264
|
+
},
|
|
265
|
+
handleSubmit() {
|
|
266
|
+
this.confirmLoading = !0;
|
|
267
|
+
let e = new FormData();
|
|
268
|
+
e.append("file", this.fileList[0]), v(e).then((t) => {
|
|
269
|
+
t.code == 200 ? this.translationImport(t) : (this.confirmLoading = !1, this.$message.error(t.message));
|
|
270
|
+
}).catch((t) => {
|
|
271
|
+
this.$message.error("\u670D\u52A1\u5668\u9519\u8BEF\uFF0C\u8BF7\u91CD\u8BD5"), this.confirmLoading = !1;
|
|
272
|
+
});
|
|
273
|
+
},
|
|
274
|
+
translationImport(e) {
|
|
275
|
+
let t = { fileId: e.data };
|
|
276
|
+
g(t).then((s) => {
|
|
277
|
+
this.confirmLoading = !1, s.success ? (this.closed(), this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.$emit("ok")) : this.$message.error(s.message);
|
|
278
|
+
});
|
|
279
|
+
},
|
|
280
|
+
closed() {
|
|
281
|
+
this.selectedRowKeys = [], this.visible = !1;
|
|
282
|
+
},
|
|
283
|
+
doEvent(e) {
|
|
284
|
+
let t = e.item.functionName;
|
|
285
|
+
this[t] && this[t]();
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
};
|
|
289
|
+
var F = function() {
|
|
290
|
+
var t = this, s = t._self._c;
|
|
291
|
+
return s("el-dialog", { class: t.fullScreen ? "gd-dialog" : "gd-dialog gd-dialog-fangda", attrs: { width: t.width, visible: t.visible, fullscreen: t.fullScreen, footer: null, top: "80px", "show-close": !1 }, on: { "update:visible": function(a) {
|
|
292
|
+
t.visible = a;
|
|
293
|
+
}, cancel: t.closed } }, [s("template", { slot: "title" }, [s("gd-modal-title", { attrs: { title: t.title, confirmLoading: t.confirmLoading, visible: t.visible, fullscreen: t.fullScreen, buttons: t.sysViewButtons, showClose: !0 }, on: { changeEvent: t.doEvent } })], 1), s("div", { directives: [{ name: "loading", rawName: "v-loading", value: t.confirmLoading, expression: "confirmLoading" }] }, [s("div", { class: t.fullScreen ? "modal-bodyq" : "modal-body" }, [s("el-alert", { staticStyle: { "margin-bottom": "12px" }, attrs: { title: t.$i18nt("gd.translation.importTip", "\u9009\u62E9\u8981\u5BFC\u5165\u7684(.xlsx)\u6587\u4EF6"), type: "info", "show-icon": "", closable: !1 } }), s("el-row", { staticStyle: { "margin-left": "-12px", "margin-right": "-12px" }, attrs: { gutter: 48 } }, [s("el-col", { attrs: { md: 20, sm: 24 } }, [s("el-upload", { ref: "upload", staticClass: "upload-demo", attrs: { action: "", "file-list": t.fileList, remove: t.handleRemove, "before-upload": t.beforeUpload, accept: ".xlsx" } }, [s("el-button", { attrs: { id: "upload" } }, [s("i", { staticClass: "el-icon-upload2" }), t._v(" " + t._s(t.$i18nt("gd.web.selectFile", "\u9009\u62E9\u6587\u4EF6")) + " ")])], 1)], 1)], 1)], 1)])], 2);
|
|
294
|
+
}, C = [], L = /* @__PURE__ */ r(
|
|
295
|
+
S,
|
|
296
|
+
F,
|
|
297
|
+
C,
|
|
298
|
+
!1,
|
|
299
|
+
null,
|
|
300
|
+
"cffd8852",
|
|
301
|
+
null,
|
|
302
|
+
null
|
|
303
|
+
);
|
|
304
|
+
const B = L.exports;
|
|
305
|
+
const N = {
|
|
306
|
+
props: {
|
|
307
|
+
height: {
|
|
308
|
+
type: Number,
|
|
309
|
+
default: 100
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
name: "GdTranslationList",
|
|
313
|
+
components: {
|
|
314
|
+
editForm: D,
|
|
315
|
+
timport: B
|
|
316
|
+
},
|
|
317
|
+
data() {
|
|
318
|
+
return {
|
|
319
|
+
sysViewButtons: [
|
|
320
|
+
{
|
|
321
|
+
displayName: "\u521D\u59CB\u5316\u7FFB\u8BD1",
|
|
322
|
+
functionName: "initialize",
|
|
323
|
+
show: !0,
|
|
324
|
+
transKey: "gd.translation.initialize",
|
|
325
|
+
icon: "el-icon-refresh",
|
|
326
|
+
btnType: "danger",
|
|
327
|
+
name: "sysTranslation:initialize"
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
displayName: "\u65B0\u589E",
|
|
331
|
+
functionName: "add",
|
|
332
|
+
show: !0,
|
|
333
|
+
transKey: "gd.btn.add",
|
|
334
|
+
icon: "el-icon-plus",
|
|
335
|
+
name: "sysTranslation:add"
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
displayName: "\u7F16\u8F91",
|
|
339
|
+
functionName: "editForm",
|
|
340
|
+
show: !0,
|
|
341
|
+
transKey: "gd.btn.edit",
|
|
342
|
+
icon: "el-icon-edit",
|
|
343
|
+
name: "sysTranslation:edit"
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
displayName: "\u5220\u9664",
|
|
347
|
+
functionName: "del",
|
|
348
|
+
show: !0,
|
|
349
|
+
transKey: "gd.btn.del",
|
|
350
|
+
icon: "el-icon-delete",
|
|
351
|
+
btnType: "danger",
|
|
352
|
+
name: "sysTranslation:delete"
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
displayName: "\u5BFC\u5165",
|
|
356
|
+
functionName: "transimport",
|
|
357
|
+
show: !0,
|
|
358
|
+
transKey: "gd.btn.import",
|
|
359
|
+
icon: "gd-icon-daoru1",
|
|
360
|
+
name: "sysTranslation:import"
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
displayName: "\u5BFC\u51FA",
|
|
364
|
+
functionName: "transexport",
|
|
365
|
+
show: !0,
|
|
366
|
+
transKey: "gd.btn.export",
|
|
367
|
+
icon: "gd-icon-daoru",
|
|
368
|
+
name: "sysTranslation:export"
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
displayName: "\u53D1\u5E03",
|
|
372
|
+
functionName: "release",
|
|
373
|
+
show: !0,
|
|
374
|
+
transKey: "gd.btn.release",
|
|
375
|
+
icon: "gd-icon-fabu1",
|
|
376
|
+
btnType: "danger",
|
|
377
|
+
name: "sysTranslation:release"
|
|
378
|
+
}
|
|
379
|
+
],
|
|
380
|
+
advanced: !1,
|
|
381
|
+
queryParam: {},
|
|
382
|
+
columns: [
|
|
383
|
+
{
|
|
384
|
+
type: "selection",
|
|
385
|
+
width: "60",
|
|
386
|
+
fixed: !0
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
label: "\u7FFB\u8BD1\u503C(value)",
|
|
390
|
+
prop: "defaulttext",
|
|
391
|
+
align: "left",
|
|
392
|
+
type: "slot",
|
|
393
|
+
slotType: "defaulttext",
|
|
394
|
+
transKey: "gd.translation.value",
|
|
395
|
+
width: "260"
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
label: "\u5BF9\u5E94\u503C(key)",
|
|
399
|
+
prop: "name",
|
|
400
|
+
transKey: "gd.translation.key",
|
|
401
|
+
align: "left",
|
|
402
|
+
width: "360"
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
label: "\u7C7B\u578B",
|
|
406
|
+
prop: "type",
|
|
407
|
+
type: "slot",
|
|
408
|
+
slotType: "type",
|
|
409
|
+
align: "left",
|
|
410
|
+
transKey: "gd.translation.type",
|
|
411
|
+
width: "160"
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
label: "\u72B6\u6001",
|
|
415
|
+
prop: "statecodes",
|
|
416
|
+
type: "slot",
|
|
417
|
+
slotType: "statecodes",
|
|
418
|
+
align: "left",
|
|
419
|
+
transKey: "gd.translation.stateCodes",
|
|
420
|
+
width: "160"
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
label: "\u521B\u5EFA\u65F6\u95F4",
|
|
424
|
+
prop: "createdtime",
|
|
425
|
+
align: "center",
|
|
426
|
+
transKey: "gd.web.creationTime",
|
|
427
|
+
width: "160"
|
|
428
|
+
}
|
|
429
|
+
],
|
|
430
|
+
loadData: (e) => d(Object.assign(e, this.queryParam)).then((t) => t.data),
|
|
431
|
+
selectedRowKeys: [],
|
|
432
|
+
selectedRows: [],
|
|
433
|
+
state: !1,
|
|
434
|
+
quickQuery: !0,
|
|
435
|
+
seeQuerys: !1
|
|
436
|
+
};
|
|
437
|
+
},
|
|
438
|
+
computed: {
|
|
439
|
+
stylew() {
|
|
440
|
+
return this.seeQuerys ? "width: calc(100% - 356px);" : "";
|
|
441
|
+
},
|
|
442
|
+
y() {
|
|
443
|
+
let e = this.getBntnShow ? 0 : 38, t = this.quickQuery ? 4 : 0;
|
|
444
|
+
return this.screenHeight - 232 - t + e;
|
|
445
|
+
},
|
|
446
|
+
getBntnShow() {
|
|
447
|
+
let e = this.sysViewButtons.filter((t) => t.name && this.$hasPerm(t.name));
|
|
448
|
+
return this.crumbsState ? !0 : e.length > 0;
|
|
449
|
+
},
|
|
450
|
+
getBootTrans() {
|
|
451
|
+
return this.$bootTrans == null ? !1 : this.$bootTrans;
|
|
452
|
+
},
|
|
453
|
+
getHeight() {
|
|
454
|
+
return this.height;
|
|
455
|
+
},
|
|
456
|
+
...b(["tableSize", "tablePageSize", "screenHeight", "multiTab", "crumbsState"])
|
|
457
|
+
},
|
|
458
|
+
methods: {
|
|
459
|
+
changeWid(e) {
|
|
460
|
+
this.seeQuerys = e;
|
|
461
|
+
},
|
|
462
|
+
reset() {
|
|
463
|
+
this.queryParam = {};
|
|
464
|
+
},
|
|
465
|
+
query() {
|
|
466
|
+
this.$refs.table.refresh(!0);
|
|
467
|
+
},
|
|
468
|
+
release() {
|
|
469
|
+
let e = this;
|
|
470
|
+
this.$confirm(this.$i18nt("gd.https.releaseContent", "\u786E\u8BA4\u53D1\u5E03?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
471
|
+
confirmButtonText: this.$i18nt("gd.https.releaseOk", "\u7ACB\u5373\u53D1\u5E03"),
|
|
472
|
+
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
473
|
+
showClose: !1,
|
|
474
|
+
confirmButtonLoading: !1,
|
|
475
|
+
cancelButtonLoading: !1,
|
|
476
|
+
closeOnClickModal: !1,
|
|
477
|
+
type: "warning",
|
|
478
|
+
confirmButtonClass: "el-button--danger",
|
|
479
|
+
customClass: "custom-alert",
|
|
480
|
+
callback: () => {
|
|
481
|
+
},
|
|
482
|
+
beforeClose: (t, s, a) => {
|
|
483
|
+
a(), t === "confirm" && (s.confirmButtonLoading = !0, s.cancelButtonLoading = !0, s.showCancelButton = !1, f().then((i) => {
|
|
484
|
+
a(), s.confirmButtonLoading = !1, s.cancelButtonLoading = !1, s.showCancelButton = !0, i.success ? (e.$message.success(e.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), e.handleOk()) : e.$message.error(e.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + i.message);
|
|
485
|
+
}).catch((i) => {
|
|
486
|
+
e.$message.error(e.$i18nt("gd.error.error") + i.message);
|
|
487
|
+
}));
|
|
488
|
+
}
|
|
489
|
+
});
|
|
490
|
+
},
|
|
491
|
+
getPopupContainer(e) {
|
|
492
|
+
return e.parentElement;
|
|
493
|
+
},
|
|
494
|
+
cache() {
|
|
495
|
+
this.formLoading = !0, p().then((e) => {
|
|
496
|
+
e.success ? this.$message.success(this.$i18nt("gd.https.operateSucc")) : this.$message.error(this.$i18nt("gd.https.operateFail") + e.message), this.formLoading = !1;
|
|
497
|
+
});
|
|
498
|
+
},
|
|
499
|
+
transexport() {
|
|
500
|
+
if (this.state)
|
|
501
|
+
return;
|
|
502
|
+
this.state = !0;
|
|
503
|
+
const e = this.$message({
|
|
504
|
+
message: this.$i18nt("gd.login.exporting", "\u6B63\u5728\u5BFC\u51FA\u4E2D..."),
|
|
505
|
+
duration: 0,
|
|
506
|
+
iconClass: "el-icon-loading"
|
|
507
|
+
});
|
|
508
|
+
y({}).then((t) => {
|
|
509
|
+
this.exportWay(t, e);
|
|
510
|
+
}).catch((t) => {
|
|
511
|
+
e.close(), this.$message.error("err!");
|
|
512
|
+
});
|
|
513
|
+
},
|
|
514
|
+
exportWay(e, t) {
|
|
515
|
+
if (e) {
|
|
516
|
+
const s = new Blob([e.data], {
|
|
517
|
+
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
518
|
+
}), a = URL.createObjectURL(s), i = document.createElement("a");
|
|
519
|
+
i.style.display = "none", i.href = a;
|
|
520
|
+
let l = new Date().getTime();
|
|
521
|
+
i.download = `translation${l}`, i.click(), URL.revokeObjectURL(i.href), setTimeout(() => {
|
|
522
|
+
this.state = !1, t.close();
|
|
523
|
+
}, 1e3);
|
|
524
|
+
} else
|
|
525
|
+
t.close(), setTimeout(() => {
|
|
526
|
+
this.statu = !1;
|
|
527
|
+
}, 1e3), this.$nextTick(() => {
|
|
528
|
+
setTimeout(() => {
|
|
529
|
+
this.$message.error(e.message);
|
|
530
|
+
}, 0);
|
|
531
|
+
});
|
|
532
|
+
},
|
|
533
|
+
transimport() {
|
|
534
|
+
this.$refs.timport.open();
|
|
535
|
+
},
|
|
536
|
+
add() {
|
|
537
|
+
this.$refs.editForm.init(null);
|
|
538
|
+
},
|
|
539
|
+
editForm() {
|
|
540
|
+
if (this.selectedRowKeys.length === 0) {
|
|
541
|
+
this.$message.warning(this.$i18nt("gd.https.editTip"));
|
|
542
|
+
return;
|
|
543
|
+
}
|
|
544
|
+
if (this.selectedRowKeys.length > 1) {
|
|
545
|
+
this.$message.warning(this.$i18nt("gd.https.editTipOne"));
|
|
546
|
+
return;
|
|
547
|
+
}
|
|
548
|
+
this.$refs.editForm.init(this.selectedRows[0]);
|
|
549
|
+
},
|
|
550
|
+
del() {
|
|
551
|
+
let e = this;
|
|
552
|
+
if (this.selectedRowKeys.length === 0) {
|
|
553
|
+
this.$message.warning(this.$i18nt("gd.https.delTip"));
|
|
554
|
+
return;
|
|
555
|
+
}
|
|
556
|
+
this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
557
|
+
confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u8BA4\u5220\u9664"),
|
|
558
|
+
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
559
|
+
showClose: !1,
|
|
560
|
+
confirmButtonLoading: !1,
|
|
561
|
+
cancelButtonLoading: !1,
|
|
562
|
+
closeOnClickModal: !1,
|
|
563
|
+
type: "warning",
|
|
564
|
+
confirmButtonClass: "el-button--danger",
|
|
565
|
+
customClass: "custom-alert",
|
|
566
|
+
callback: () => {
|
|
567
|
+
},
|
|
568
|
+
beforeClose: (t, s, a) => {
|
|
569
|
+
if (a(), t === "confirm")
|
|
570
|
+
return new Promise((i, l) => {
|
|
571
|
+
_({
|
|
572
|
+
ids: e.selectedRowKeys.join(",")
|
|
573
|
+
}).then((n) => {
|
|
574
|
+
n.success ? (e.$message.success(e.$i18nt("gd.https.delSucc")), e.handleOk()) : e.$message.error(e.$i18nt("gd.https.delFail") + n.message), i();
|
|
575
|
+
}).catch((n) => {
|
|
576
|
+
e.$message.error(e.$i18nt("gd.error.error") + n.message);
|
|
577
|
+
});
|
|
578
|
+
}).catch(() => console.log("Oops errors!"));
|
|
579
|
+
}
|
|
580
|
+
});
|
|
581
|
+
},
|
|
582
|
+
initialize() {
|
|
583
|
+
let e = this;
|
|
584
|
+
this.$confirm(this.$i18nt("gd.https.initializeTip", "\u662F\u5426\u521D\u59CB\u5316\u7FFB\u8BD1?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
585
|
+
confirmButtonText: this.$i18nt("gd.translation.initializeOk", "\u7ACB\u5373\u521D\u59CB\u5316"),
|
|
586
|
+
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
587
|
+
showClose: !1,
|
|
588
|
+
confirmButtonLoading: !1,
|
|
589
|
+
cancelButtonLoading: !1,
|
|
590
|
+
closeOnClickModal: !1,
|
|
591
|
+
type: "warning",
|
|
592
|
+
confirmButtonClass: "el-button--danger",
|
|
593
|
+
customClass: "custom-alert",
|
|
594
|
+
callback: () => {
|
|
595
|
+
},
|
|
596
|
+
beforeClose: (t, s, a) => {
|
|
597
|
+
if (a(), t === "confirm")
|
|
598
|
+
return new Promise((i, l) => {
|
|
599
|
+
$({}).then((n) => {
|
|
600
|
+
n.success ? (e.$message.success(e.$i18nt("gd.https.operateSucc")), e.handleOk()) : e.$message.error(e.$i18nt("gd.https.operateFail") + n.message), i();
|
|
601
|
+
}).catch((n) => {
|
|
602
|
+
e.$message.error(e.$i18nt("gd.error.error") + n.message);
|
|
603
|
+
});
|
|
604
|
+
}).catch(() => console.log("Oops errors!"));
|
|
605
|
+
}
|
|
606
|
+
});
|
|
607
|
+
},
|
|
608
|
+
handleOk() {
|
|
609
|
+
this.$refs.table.refresh();
|
|
610
|
+
},
|
|
611
|
+
getDictionary(e) {
|
|
612
|
+
return this.$options.filters.dictData(e);
|
|
613
|
+
},
|
|
614
|
+
dictSwitch(e, t) {
|
|
615
|
+
let s = this.$options.filters.dictData(t).filter((a) => a.code == e)[0];
|
|
616
|
+
return s != null && s.colour ? s.colour : "";
|
|
617
|
+
},
|
|
618
|
+
onSelectChange(e, t) {
|
|
619
|
+
this.selectedRowKeys = e, this.selectedRows = t;
|
|
620
|
+
},
|
|
621
|
+
doEvent(e) {
|
|
622
|
+
let t = e.item.functionName;
|
|
623
|
+
this[t]();
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
};
|
|
627
|
+
var O = function() {
|
|
628
|
+
var t = this, s = t._self._c;
|
|
629
|
+
return s("div", { staticClass: "gd-page-view" }, [s("div", { staticClass: "page-view-list" }, [s("gd-tables", { ref: "table", attrs: { height: t.getHeight, columns: t.columns, dataSource: t.loadData, selectedRowKeys: t.selectedRowKeys, size: t.tableSize, pageSize: t.tablePageSize, filtering: !1 }, on: { onChange: t.onSelectChange }, scopedSlots: t._u([t.quickQuery ? { key: "operator", fn: function() {
|
|
630
|
+
return [s("div", { staticClass: "gd-table-operator" }, [s("div", { staticClass: "gd-table-operatorl", staticStyle: { width: "300px" } }, [s("el-input", { staticClass: "table-operator-input", attrs: { placeholder: t.$i18nt("gd.translation.key"), clearable: "" }, nativeOn: { keyup: function(a) {
|
|
631
|
+
return !a.type.indexOf("key") && t._k(a.keyCode, "enter", 13, a.key, "Enter") ? null : t.query.apply(null, arguments);
|
|
632
|
+
} }, model: { value: t.queryParam.name, callback: function(a) {
|
|
633
|
+
t.$set(t.queryParam, "name", a);
|
|
634
|
+
}, expression: "queryParam.name" } }), s("div", { staticClass: "table-operator-search", on: { click: t.query } }, [s("i", { staticClass: "el-input__icon el-icon-search" })])], 1), s("div", { staticClass: "gd-table-operatorr" }, [s("gd-btn-list", { attrs: { sysViewButtons: t.sysViewButtons }, on: { functionName: t.doEvent } })], 1)])];
|
|
635
|
+
}, proxy: !0 } : null, { key: "defaulttext", fn: function({ row: a }) {
|
|
636
|
+
return [s("span", { staticClass: "active-color", staticStyle: { cursor: "pointer" }, on: { click: function(i) {
|
|
637
|
+
return t.$refs.editForm.init(a);
|
|
638
|
+
} } }, [t._v(" " + t._s(a.defaulttext) + " ")])];
|
|
639
|
+
} }, { key: "type", fn: function(a) {
|
|
640
|
+
return [t.dictSwitch(a.row.type, "translation_type") ? s("el-tag", { attrs: { color: t.dictSwitch(a.row.type, "translation_type") } }, [t._v(" " + t._s(t._f("dictType")("translation_type", a.row.type)) + " ")]) : s("span", [t._v(t._s(t._f("dictType")("translation_type", a.row.type)))])];
|
|
641
|
+
} }, { key: "statecodes", fn: function(a) {
|
|
642
|
+
return [t.dictSwitch(a.row.statecodes, "state_code") ? s("el-tag", { attrs: { effect: "dark", color: t.dictSwitch(a.row.statecodes, "state_code") } }, [t._v(" " + t._s(t._f("dictType")("state_code", a.row.statecodes)) + " ")]) : s("span", [t._v(t._s(t._f("dictType")("state_code", a.row.statecodes)))])];
|
|
643
|
+
} }], null, !0) })], 1), s("editForm", { ref: "editForm", attrs: { tmtype: "translationManagement", openPermissions: !0 }, on: { ok: t.handleOk } }), s("timport", { ref: "timport", on: { ok: t.handleOk } })], 1);
|
|
644
|
+
}, K = [], R = /* @__PURE__ */ r(
|
|
645
|
+
N,
|
|
646
|
+
O,
|
|
647
|
+
K,
|
|
648
|
+
!1,
|
|
649
|
+
null,
|
|
650
|
+
"632712a2",
|
|
651
|
+
null,
|
|
652
|
+
null
|
|
653
|
+
);
|
|
654
|
+
const o = R.exports;
|
|
655
|
+
o.install = function(e) {
|
|
656
|
+
e.component(o.name, o);
|
|
657
|
+
};
|
|
658
|
+
export {
|
|
659
|
+
o as G,
|
|
660
|
+
D as e
|
|
661
|
+
};
|