gds-plus-design-vue 1.1.64 → 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.665d9127.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 +67 -9
- package/locale/id_ID.js +66 -8
- package/locale/vi_VN.js +66 -8
- package/locale/zh_CN.js +65 -8
- package/package.json +105 -105
- package/lib/gd-initial.umd.js +0 -435
- package/lib/index.32120001.mjs +0 -157708
|
@@ -0,0 +1,946 @@
|
|
|
1
|
+
import { m as n, n as r } from "./chartbi.48631362.mjs";
|
|
2
|
+
import { t as u } from "./messages.7e85146d.mjs";
|
|
3
|
+
function c(s) {
|
|
4
|
+
return window.axios({
|
|
5
|
+
url: "/SysPlugin/page",
|
|
6
|
+
method: "post",
|
|
7
|
+
data: s
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
function g(s) {
|
|
11
|
+
return window.axios({
|
|
12
|
+
url: "/SysPlugin/add",
|
|
13
|
+
method: "post",
|
|
14
|
+
data: s
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
function m(s) {
|
|
18
|
+
return window.axios({
|
|
19
|
+
url: "/SysPlugin/edit",
|
|
20
|
+
method: "post",
|
|
21
|
+
data: s
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
function h(s) {
|
|
25
|
+
return window.axios({
|
|
26
|
+
url: "/SysPlugin/delete",
|
|
27
|
+
method: "post",
|
|
28
|
+
data: s
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function p(s) {
|
|
32
|
+
return window.axios({
|
|
33
|
+
url: "/SysPluginStep/page",
|
|
34
|
+
method: "post",
|
|
35
|
+
data: s
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
function f(s) {
|
|
39
|
+
return window.axios({
|
|
40
|
+
url: "/SysPluginStep/add",
|
|
41
|
+
method: "post",
|
|
42
|
+
data: s
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
function y(s) {
|
|
46
|
+
return window.axios({
|
|
47
|
+
url: "/SysPluginStep/edit",
|
|
48
|
+
method: "post",
|
|
49
|
+
data: s
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
function b(s) {
|
|
53
|
+
return window.axios({
|
|
54
|
+
url: "/SysPluginStep/changeStatus",
|
|
55
|
+
method: "post",
|
|
56
|
+
data: s
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
function v(s) {
|
|
60
|
+
return window.axios({
|
|
61
|
+
url: "/SysPluginStep/delete",
|
|
62
|
+
method: "post",
|
|
63
|
+
data: s
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
function w(s) {
|
|
67
|
+
return window.axios({
|
|
68
|
+
url: "/SysPluginStep/getNameSpacesDetails",
|
|
69
|
+
method: "post",
|
|
70
|
+
data: s
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
const $ = {
|
|
74
|
+
data() {
|
|
75
|
+
return {
|
|
76
|
+
tableColumns: [{
|
|
77
|
+
type: "selection",
|
|
78
|
+
width: "60",
|
|
79
|
+
fixed: !0
|
|
80
|
+
}, {
|
|
81
|
+
transKey: "gd.plugin.name",
|
|
82
|
+
prop: "name",
|
|
83
|
+
label: "\u540D\u79F0",
|
|
84
|
+
type: "slot",
|
|
85
|
+
slotType: "name",
|
|
86
|
+
align: "left",
|
|
87
|
+
fixed: !0,
|
|
88
|
+
renderHeader: (s, ...e) => this.renderHeader(s, ...e, {
|
|
89
|
+
effectType: "input"
|
|
90
|
+
}),
|
|
91
|
+
showOverflowTooltip: !0
|
|
92
|
+
}, {
|
|
93
|
+
transKey: "gd.plugin.status",
|
|
94
|
+
prop: "statecodes",
|
|
95
|
+
label: "\u72B6\u6001",
|
|
96
|
+
type: "slot",
|
|
97
|
+
slotType: "statecodes",
|
|
98
|
+
align: "left",
|
|
99
|
+
showOverflowTooltip: !0
|
|
100
|
+
}, {
|
|
101
|
+
transKey: "gd.plugin.remarks",
|
|
102
|
+
prop: "description",
|
|
103
|
+
label: "\u5907\u6CE8",
|
|
104
|
+
align: "left"
|
|
105
|
+
}],
|
|
106
|
+
tableButtons: [
|
|
107
|
+
{
|
|
108
|
+
displayName: "\u65B0\u589E",
|
|
109
|
+
functionName: "add",
|
|
110
|
+
show: !0,
|
|
111
|
+
transKey: "gd.btn.add",
|
|
112
|
+
icon: "el-icon-plus",
|
|
113
|
+
name: "sysPlugin:add"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
displayName: "\u7F16\u8F91",
|
|
117
|
+
functionName: "edit",
|
|
118
|
+
show: !0,
|
|
119
|
+
transKey: "gd.btn.edit",
|
|
120
|
+
icon: "el-icon-edit",
|
|
121
|
+
name: "sysPlugin:edit"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
displayName: "\u5220\u9664",
|
|
125
|
+
functionName: "del",
|
|
126
|
+
show: !0,
|
|
127
|
+
transKey: "gd.btn.del",
|
|
128
|
+
icon: "el-icon-delete",
|
|
129
|
+
btnType: "danger",
|
|
130
|
+
name: "sysPlugin:delete"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
displayName: "\u6B65\u9AA4",
|
|
134
|
+
functionName: "step",
|
|
135
|
+
show: !0,
|
|
136
|
+
transKey: "gd.plugin.step",
|
|
137
|
+
icon: "gd-icons gd-icon-caozuojilu",
|
|
138
|
+
name: "sysPlugin:step"
|
|
139
|
+
}
|
|
140
|
+
],
|
|
141
|
+
tableQueries: [{
|
|
142
|
+
transKey: "gd.plugin.name",
|
|
143
|
+
effectType: "input",
|
|
144
|
+
prop: "name",
|
|
145
|
+
label: "\u540D\u79F0",
|
|
146
|
+
placeholder: "\u8BF7\u8F93\u5165",
|
|
147
|
+
placeholderTransKey: "gd.placeholder.input",
|
|
148
|
+
rules: []
|
|
149
|
+
}]
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
}, F = {
|
|
153
|
+
props: {
|
|
154
|
+
formMode: {
|
|
155
|
+
type: String,
|
|
156
|
+
default: "dialog"
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
data() {
|
|
160
|
+
return {
|
|
161
|
+
sysViewButtons: [
|
|
162
|
+
{
|
|
163
|
+
displayName: "\u786E\u5B9A",
|
|
164
|
+
functionName: "handleSubmit",
|
|
165
|
+
show: !0,
|
|
166
|
+
transKey: "gd.btn.confirm",
|
|
167
|
+
icon: "el-icon-document-checked"
|
|
168
|
+
}
|
|
169
|
+
],
|
|
170
|
+
visible: !1,
|
|
171
|
+
confirmLoading: !1,
|
|
172
|
+
fileList: [],
|
|
173
|
+
record: null,
|
|
174
|
+
title: "",
|
|
175
|
+
fullscreen: !1,
|
|
176
|
+
width: "700px",
|
|
177
|
+
ruleFormData: {}
|
|
178
|
+
};
|
|
179
|
+
},
|
|
180
|
+
computed: {
|
|
181
|
+
modalStyle() {
|
|
182
|
+
return this.fullscreen ? {
|
|
183
|
+
width: "100%",
|
|
184
|
+
dialogStyle: {
|
|
185
|
+
top: "0px"
|
|
186
|
+
}
|
|
187
|
+
} : {
|
|
188
|
+
width: this.width,
|
|
189
|
+
dialogStyle: {
|
|
190
|
+
top: "80px"
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
},
|
|
194
|
+
...n(["labelPosition"])
|
|
195
|
+
},
|
|
196
|
+
methods: {
|
|
197
|
+
togglefullscreen() {
|
|
198
|
+
this.fullscreen = !this.fullscreen;
|
|
199
|
+
},
|
|
200
|
+
open(s) {
|
|
201
|
+
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 = {
|
|
202
|
+
id: s.id,
|
|
203
|
+
name: s.name,
|
|
204
|
+
description: s.description
|
|
205
|
+
} : this.$nextTick(() => {
|
|
206
|
+
this.ruleFormData = {}, this.$refs.ruleForm.resetFields();
|
|
207
|
+
});
|
|
208
|
+
},
|
|
209
|
+
handleAvatarSuccess(s, e, t) {
|
|
210
|
+
this.$refs.fileUploadBtn.clearFiles();
|
|
211
|
+
},
|
|
212
|
+
uploadLogo(s) {
|
|
213
|
+
if (s.file.type == "application/x-msdownload") {
|
|
214
|
+
if (this.fileList = [s.file], !this.record) {
|
|
215
|
+
let t = s.file.name.lastIndexOf(".");
|
|
216
|
+
var e = s.file.name.substring(0, t);
|
|
217
|
+
this.ruleFormData.name = e;
|
|
218
|
+
}
|
|
219
|
+
} else
|
|
220
|
+
this.$message.warning(this.$i18nt("gd.plugin.fileFormatTip", "\u6587\u4EF6\u683C\u5F0F\u9519\u8BEF!")), this.fileList = [];
|
|
221
|
+
return !1;
|
|
222
|
+
},
|
|
223
|
+
handleChange(s, e) {
|
|
224
|
+
if (e.length > 1 && e.splice(0, 1), s.raw.type == "application/x-msdownload") {
|
|
225
|
+
if (this.fileList = [s.raw], !this.record) {
|
|
226
|
+
let a = s.raw.name.lastIndexOf(".");
|
|
227
|
+
var t = s.raw.name.substring(0, a);
|
|
228
|
+
this.ruleFormData.name = t;
|
|
229
|
+
}
|
|
230
|
+
} else
|
|
231
|
+
this.$message.warning(this.$i18nt("gd.plugin.fileFormatTip", "\u6587\u4EF6\u683C\u5F0F\u9519\u8BEF!")), this.fileList = [];
|
|
232
|
+
return !1;
|
|
233
|
+
},
|
|
234
|
+
handleRemove(s) {
|
|
235
|
+
const e = this.fileList.indexOf(s), t = this.fileList.slice();
|
|
236
|
+
t.splice(e, 1), this.fileList = t;
|
|
237
|
+
},
|
|
238
|
+
handleSubmit() {
|
|
239
|
+
this.$refs.ruleForm.validate((s) => {
|
|
240
|
+
s && (this.record ? this.edit(this.ruleFormData) : this.add(this.ruleFormData));
|
|
241
|
+
});
|
|
242
|
+
},
|
|
243
|
+
add(s) {
|
|
244
|
+
this.confirmLoading = !0;
|
|
245
|
+
let { fileList: e } = this;
|
|
246
|
+
if (e.length == 0)
|
|
247
|
+
return this.$message.error(this.$i18nt("gd.web.selectFileTip")), this.confirmLoading = !1, !1;
|
|
248
|
+
{
|
|
249
|
+
let t = new FormData();
|
|
250
|
+
t.append("file", e[0]), t.append("name", s.name), g(t).then((a) => {
|
|
251
|
+
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;
|
|
252
|
+
}).finally((a) => {
|
|
253
|
+
this.confirmLoading = !1;
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
edit(s) {
|
|
258
|
+
this.confirmLoading = !0;
|
|
259
|
+
let { fileList: e } = this, t = new FormData();
|
|
260
|
+
t.append("file", e[0]), t.append("description", s.description), t.append("id", s.id), m(t).then((a) => {
|
|
261
|
+
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;
|
|
262
|
+
}).finally((a) => {
|
|
263
|
+
this.confirmLoading = !1;
|
|
264
|
+
});
|
|
265
|
+
},
|
|
266
|
+
handleCancel() {
|
|
267
|
+
this.$refs.ruleForm.resetFields(), this.visible = !1;
|
|
268
|
+
},
|
|
269
|
+
selType(s) {
|
|
270
|
+
this.type = s;
|
|
271
|
+
},
|
|
272
|
+
doEvent(s) {
|
|
273
|
+
let e = s.item.functionName;
|
|
274
|
+
this[e] && this[e]();
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
};
|
|
278
|
+
var _ = function() {
|
|
279
|
+
var e = this, t = e._self._c;
|
|
280
|
+
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) {
|
|
281
|
+
e.visible = a;
|
|
282
|
+
}, 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) {
|
|
283
|
+
a.preventDefault();
|
|
284
|
+
} } }, [t("el-form-item", { staticStyle: { display: "none" } }, [t("el-input", { model: { value: e.ruleFormData.id, callback: function(a) {
|
|
285
|
+
e.$set(e.ruleFormData, "id", a);
|
|
286
|
+
}, 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) {
|
|
287
|
+
e.$set(e.ruleFormData, "name", a);
|
|
288
|
+
}, 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) {
|
|
289
|
+
e.$set(e.ruleFormData, "description", a);
|
|
290
|
+
}, 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) {
|
|
291
|
+
e.visible = a;
|
|
292
|
+
} } }, [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) {
|
|
293
|
+
a.preventDefault();
|
|
294
|
+
} } }, [t("el-form-item", { staticStyle: { display: "none" } }, [t("el-input", { model: { value: e.ruleFormData.id, callback: function(a) {
|
|
295
|
+
e.$set(e.ruleFormData, "id", a);
|
|
296
|
+
}, 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) {
|
|
297
|
+
e.$set(e.ruleFormData, "name", a);
|
|
298
|
+
}, 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) {
|
|
299
|
+
e.$set(e.ruleFormData, "description", a);
|
|
300
|
+
}, expression: "ruleFormData.description" } })], 1)], 1)], 1)], 1)], 1);
|
|
301
|
+
}, S = [], D = /* @__PURE__ */ r(
|
|
302
|
+
F,
|
|
303
|
+
_,
|
|
304
|
+
S,
|
|
305
|
+
!1,
|
|
306
|
+
null,
|
|
307
|
+
null,
|
|
308
|
+
null,
|
|
309
|
+
null
|
|
310
|
+
);
|
|
311
|
+
const k = D.exports, x = {
|
|
312
|
+
data() {
|
|
313
|
+
return {
|
|
314
|
+
visible: !1,
|
|
315
|
+
confirmLoading: !1,
|
|
316
|
+
stageId: "",
|
|
317
|
+
ruleFormData: {},
|
|
318
|
+
rules: {
|
|
319
|
+
eventhandler: [
|
|
320
|
+
{
|
|
321
|
+
required: !0,
|
|
322
|
+
message: this.$i18nt("gd.btn.input", "\u8BF7\u8F93\u5165"),
|
|
323
|
+
trigger: "change"
|
|
324
|
+
}
|
|
325
|
+
],
|
|
326
|
+
stage: [
|
|
327
|
+
{
|
|
328
|
+
required: !0,
|
|
329
|
+
message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
|
|
330
|
+
trigger: "change"
|
|
331
|
+
}
|
|
332
|
+
],
|
|
333
|
+
entityName: [
|
|
334
|
+
{
|
|
335
|
+
required: !0,
|
|
336
|
+
message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
|
|
337
|
+
trigger: "change"
|
|
338
|
+
}
|
|
339
|
+
],
|
|
340
|
+
sdkmessage: [
|
|
341
|
+
{
|
|
342
|
+
required: !0,
|
|
343
|
+
message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
|
|
344
|
+
trigger: "change"
|
|
345
|
+
}
|
|
346
|
+
],
|
|
347
|
+
eventhandler: [
|
|
348
|
+
{
|
|
349
|
+
required: (this.type == "edit", !1),
|
|
350
|
+
message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
|
|
351
|
+
trigger: "change"
|
|
352
|
+
}
|
|
353
|
+
]
|
|
354
|
+
},
|
|
355
|
+
title: "",
|
|
356
|
+
sysViewButtons: [
|
|
357
|
+
{
|
|
358
|
+
displayName: "\u786E\u5B9A",
|
|
359
|
+
functionName: "handleSubmit",
|
|
360
|
+
show: !0,
|
|
361
|
+
transKey: "gd.btn.confirm",
|
|
362
|
+
name: "sysPluginStep:edit",
|
|
363
|
+
icon: "el-icon-document-checked"
|
|
364
|
+
}
|
|
365
|
+
],
|
|
366
|
+
type: null,
|
|
367
|
+
fullscreen: !1,
|
|
368
|
+
width: "700px",
|
|
369
|
+
currentSelectedIcon: "",
|
|
370
|
+
visibleIcon: !1,
|
|
371
|
+
sdkEventHandler: [],
|
|
372
|
+
eventName: ""
|
|
373
|
+
};
|
|
374
|
+
},
|
|
375
|
+
computed: {
|
|
376
|
+
sdkStageType() {
|
|
377
|
+
return this.getDictionary("Stage");
|
|
378
|
+
},
|
|
379
|
+
options() {
|
|
380
|
+
return this.getDictionary("SdkMessage");
|
|
381
|
+
},
|
|
382
|
+
...n(["labelPosition", "formMode", "tableLists"])
|
|
383
|
+
},
|
|
384
|
+
methods: {
|
|
385
|
+
togglefullscreen() {
|
|
386
|
+
this.fullscreen = !this.fullscreen;
|
|
387
|
+
},
|
|
388
|
+
edit(s, e) {
|
|
389
|
+
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(() => {
|
|
390
|
+
setTimeout(() => {
|
|
391
|
+
this.type == "add" ? (this.ruleFormData = {
|
|
392
|
+
sysPluginId: s[0].sysPluginId,
|
|
393
|
+
pluginName: s[0].name
|
|
394
|
+
}, this.ruleFormData.order = 1, this.getEventhandler(s[0].sysPluginId)) : this.ruleFormData = {
|
|
395
|
+
id: s.id,
|
|
396
|
+
sysPluginId: s.syspluginid,
|
|
397
|
+
entityName: s.entityname,
|
|
398
|
+
sdkmessage: String(s.sdkmessage),
|
|
399
|
+
stage: String(s.stage),
|
|
400
|
+
order: s.order,
|
|
401
|
+
description: s.description,
|
|
402
|
+
securityString: s.securitystring,
|
|
403
|
+
eventhandler: s.eventhandler
|
|
404
|
+
}, this.$refs.ruleForm.resetFields();
|
|
405
|
+
}, 0);
|
|
406
|
+
});
|
|
407
|
+
},
|
|
408
|
+
stageremarkFilter(s) {
|
|
409
|
+
const e = this.sdkStageType.filter((t) => t.code == s);
|
|
410
|
+
if (e.length > 0)
|
|
411
|
+
return e[0].remark;
|
|
412
|
+
},
|
|
413
|
+
stageNameFilter(s) {
|
|
414
|
+
const e = this.sdkStageType.filter((t) => t.code == s);
|
|
415
|
+
if (e.length > 0)
|
|
416
|
+
return e[0].code;
|
|
417
|
+
},
|
|
418
|
+
messageTypeFilter(s) {
|
|
419
|
+
const e = this.options.filter((t) => t.code == s);
|
|
420
|
+
if (e.length > 0)
|
|
421
|
+
return e[0].name;
|
|
422
|
+
},
|
|
423
|
+
entityNameFilter(s) {
|
|
424
|
+
const e = this.optionsentityname.filter((t) => t.value == s);
|
|
425
|
+
if (e.length > 0)
|
|
426
|
+
return e[0].label;
|
|
427
|
+
},
|
|
428
|
+
handleChange(s) {
|
|
429
|
+
console.log(`selected ${s}`), this.sdkmessageId = s;
|
|
430
|
+
},
|
|
431
|
+
handleChangeEntityName(s) {
|
|
432
|
+
this.entityNameId = s;
|
|
433
|
+
},
|
|
434
|
+
getEventhandler(s) {
|
|
435
|
+
w({
|
|
436
|
+
pluginId: s
|
|
437
|
+
}).then((t) => {
|
|
438
|
+
t.success ? this.sdkEventHandler = t.data : this.$message.error(this.$i18nt("Locals.common.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + t.message);
|
|
439
|
+
}).finally((t) => {
|
|
440
|
+
this.confirmLoading = !1;
|
|
441
|
+
});
|
|
442
|
+
},
|
|
443
|
+
sdkEventHandlerType(s) {
|
|
444
|
+
this.eventName = s;
|
|
445
|
+
},
|
|
446
|
+
handleSubmit() {
|
|
447
|
+
this.$refs.ruleForm.validate((s) => {
|
|
448
|
+
if (s) {
|
|
449
|
+
if (this.confirmLoading = !0, this.type == "edit") {
|
|
450
|
+
var e = this.stageremarkFilter(this.stageId), t = this.messageTypeFilter(this.sdkmessageId);
|
|
451
|
+
this.ruleFormData.name = e + this.entityNameId + t, this.ruleFormData.sdkmessage = String(this.sdkmessageId), this.ruleFormData.entityName = this.entityNameId;
|
|
452
|
+
} else
|
|
453
|
+
this.ruleFormData.name = this.eventName;
|
|
454
|
+
(this.type == "edit" ? y : f)(this.ruleFormData).then((i) => {
|
|
455
|
+
if (i.success) {
|
|
456
|
+
let l = this.type == "edit" ? this.$i18nt("gd.https.editSucc", "\u7F16\u8F91\u6210\u529F") : this.$i18nt("Locals.common.https.addSucc", "\u65B0\u589E\u6210\u529F");
|
|
457
|
+
this.$message.success(l), this.visible = !1, this.confirmLoading = !1, this.$emit("ok", this.ruleFormData), this.$refs.ruleForm.resetFields();
|
|
458
|
+
} else
|
|
459
|
+
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);
|
|
460
|
+
}).finally((i) => {
|
|
461
|
+
this.confirmLoading = !1;
|
|
462
|
+
});
|
|
463
|
+
}
|
|
464
|
+
});
|
|
465
|
+
},
|
|
466
|
+
handleCancel() {
|
|
467
|
+
this.$refs.ruleForm.resetFields(), this.visible = !1;
|
|
468
|
+
},
|
|
469
|
+
getDictionary(s) {
|
|
470
|
+
return this.$options.filters.dictData(s);
|
|
471
|
+
},
|
|
472
|
+
selType(s) {
|
|
473
|
+
this.stageId = s;
|
|
474
|
+
},
|
|
475
|
+
doEvent(s) {
|
|
476
|
+
let e = s.item.functionName;
|
|
477
|
+
this[e] && this[e]();
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
};
|
|
481
|
+
var P = function() {
|
|
482
|
+
var e = this, t = e._self._c;
|
|
483
|
+
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) {
|
|
484
|
+
e.visible = a;
|
|
485
|
+
}, 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) {
|
|
486
|
+
a.preventDefault();
|
|
487
|
+
} } }, [t("el-form-item", { staticStyle: { display: "none" } }, [t("el-input", { model: { value: e.ruleFormData.sysPluginId, callback: function(a) {
|
|
488
|
+
e.$set(e.ruleFormData, "sysPluginId", a);
|
|
489
|
+
}, 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) {
|
|
490
|
+
e.$set(e.ruleFormData, "id", a);
|
|
491
|
+
}, expression: "ruleFormData.id" } }) : t("el-input", { model: { value: e.ruleFormData.pluginName, callback: function(a) {
|
|
492
|
+
e.$set(e.ruleFormData, "pluginName", a);
|
|
493
|
+
}, 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) {
|
|
494
|
+
e.$set(e.ruleFormData, "sdkmessage", a);
|
|
495
|
+
}, expression: "ruleFormData.sdkmessage" } }, e._l(e.options, function(a, i) {
|
|
496
|
+
return t("el-option", { key: i, attrs: { value: a.code, label: a.name } });
|
|
497
|
+
}), 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) {
|
|
498
|
+
e.$set(e.ruleFormData, "entityName", a);
|
|
499
|
+
}, expression: "ruleFormData.entityName" } }, e._l(e.tableLists, function(a, i) {
|
|
500
|
+
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) + " ")]);
|
|
501
|
+
}), 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) {
|
|
502
|
+
e.$set(e.ruleFormData, "stage", a);
|
|
503
|
+
}, expression: "ruleFormData.stage" } }, e._l(e.sdkStageType, function(a, i) {
|
|
504
|
+
return t("el-option", { key: i, attrs: { value: a.code, label: a.name }, on: { click: function(l) {
|
|
505
|
+
return e.selType(a.code);
|
|
506
|
+
} } });
|
|
507
|
+
}), 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) {
|
|
508
|
+
e.$set(e.ruleFormData, "eventhandler", a);
|
|
509
|
+
}, 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) {
|
|
510
|
+
e.$set(e.ruleFormData, "eventhandler", a);
|
|
511
|
+
}, expression: "ruleFormData.eventhandler" } }, e._l(e.sdkEventHandler, function(a, i) {
|
|
512
|
+
return t("el-option", { key: i, attrs: { value: a.eventHandlerId, label: a.eventHandlerName }, nativeOn: { click: function(l) {
|
|
513
|
+
return e.sdkEventHandlerType(a.eventHandlerName);
|
|
514
|
+
} } });
|
|
515
|
+
}), 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) {
|
|
516
|
+
e.$set(e.ruleFormData, "order", a);
|
|
517
|
+
}, 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) {
|
|
518
|
+
e.$set(e.ruleFormData, "securityString", a);
|
|
519
|
+
}, 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) {
|
|
520
|
+
e.$set(e.ruleFormData, "description", a);
|
|
521
|
+
}, expression: "ruleFormData.description" } })], 1)], 1)], 1)], 1);
|
|
522
|
+
}, C = [], T = /* @__PURE__ */ r(
|
|
523
|
+
x,
|
|
524
|
+
P,
|
|
525
|
+
C,
|
|
526
|
+
!1,
|
|
527
|
+
null,
|
|
528
|
+
null,
|
|
529
|
+
null,
|
|
530
|
+
null
|
|
531
|
+
);
|
|
532
|
+
const N = T.exports, L = {
|
|
533
|
+
data() {
|
|
534
|
+
return {
|
|
535
|
+
tableColumns: [
|
|
536
|
+
{
|
|
537
|
+
type: "selection",
|
|
538
|
+
width: "60",
|
|
539
|
+
fixed: !0
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
label: "\u5B9E\u4F53\u540D\u79F0",
|
|
543
|
+
prop: "entityName",
|
|
544
|
+
type: "slot",
|
|
545
|
+
slotType: "entityName",
|
|
546
|
+
align: "left",
|
|
547
|
+
showOverflowTooltip: !0,
|
|
548
|
+
transKey: "gd.plugin.entityName"
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
label: "\u6267\u884C\u6D88\u606F",
|
|
552
|
+
prop: "sdkMessage",
|
|
553
|
+
type: "slot",
|
|
554
|
+
slotType: "sdkMessage",
|
|
555
|
+
align: "left",
|
|
556
|
+
showOverflowTooltip: !0,
|
|
557
|
+
transKey: "gd.plugin.executeMessage"
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
label: "\u6267\u884C\u9636\u6BB5",
|
|
561
|
+
prop: "stage",
|
|
562
|
+
type: "slot",
|
|
563
|
+
slotType: "stage",
|
|
564
|
+
align: "left",
|
|
565
|
+
showOverflowTooltip: !0,
|
|
566
|
+
transKey: "gd.plugin.executePhase"
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
label: "\u4E8B\u4EF6\u5904\u7406\u7A0B\u5E8F",
|
|
570
|
+
prop: "eventHandler",
|
|
571
|
+
type: "slot",
|
|
572
|
+
slotType: "eventHandler",
|
|
573
|
+
align: "left",
|
|
574
|
+
showOverflowTooltip: !0,
|
|
575
|
+
transKey: "gd.plugin.eventHandler"
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
label: "\u6392\u5E8F",
|
|
579
|
+
prop: "order",
|
|
580
|
+
align: "left",
|
|
581
|
+
showOverflowTooltip: !0,
|
|
582
|
+
transKey: "gd.plugin.sort"
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
label: "\u72B6\u6001",
|
|
586
|
+
prop: "stateCodes",
|
|
587
|
+
type: "slot",
|
|
588
|
+
slotType: "stateCodes",
|
|
589
|
+
align: "left",
|
|
590
|
+
showOverflowTooltip: !0,
|
|
591
|
+
transKey: "gd.plugin.status"
|
|
592
|
+
}
|
|
593
|
+
],
|
|
594
|
+
formColumns: [{
|
|
595
|
+
transKey: "gd.plugin.executeMessage",
|
|
596
|
+
effectType: "select",
|
|
597
|
+
prop: "sdkmessage",
|
|
598
|
+
label: "\u6267\u884C\u6D88\u606F",
|
|
599
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
|
600
|
+
placeholderTransKey: "gd.placeholder.select",
|
|
601
|
+
dictTypeCode: "SdkMessage",
|
|
602
|
+
disabled: !1,
|
|
603
|
+
rules: [{
|
|
604
|
+
required: !0,
|
|
605
|
+
message: "\u8BF7\u9009\u62E9",
|
|
606
|
+
transKey: "gd.placeholder.select",
|
|
607
|
+
trigger: "change"
|
|
608
|
+
}]
|
|
609
|
+
}, {
|
|
610
|
+
transKey: "gd.plugin.executePhase",
|
|
611
|
+
effectType: "select",
|
|
612
|
+
prop: "stage",
|
|
613
|
+
label: "\u6267\u884C\u9636\u6BB5",
|
|
614
|
+
placeholder: "\u8BF7\u9009\u62E9",
|
|
615
|
+
placeholderTransKey: "gd.placeholder.select",
|
|
616
|
+
dictTypeCode: "Stage",
|
|
617
|
+
disabled: !1,
|
|
618
|
+
rules: [{
|
|
619
|
+
required: !0,
|
|
620
|
+
message: "\u8BF7\u9009\u62E9",
|
|
621
|
+
transKey: "gd.placeholder.select",
|
|
622
|
+
trigger: "change"
|
|
623
|
+
}]
|
|
624
|
+
}],
|
|
625
|
+
tableButtons: [
|
|
626
|
+
{
|
|
627
|
+
displayName: "\u65B0\u589E",
|
|
628
|
+
functionName: "add",
|
|
629
|
+
show: !0,
|
|
630
|
+
transKey: "gd.btn.add",
|
|
631
|
+
icon: "el-icon-plus",
|
|
632
|
+
name: "sysPluginStep:add"
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
displayName: "\u91CD\u7F6E",
|
|
636
|
+
functionName: "reset",
|
|
637
|
+
show: !0,
|
|
638
|
+
transKey: "gd.btn.reset",
|
|
639
|
+
icon: "el-icon-refresh-left",
|
|
640
|
+
name: "sysPluginStep:delete",
|
|
641
|
+
btnType: "danger"
|
|
642
|
+
}
|
|
643
|
+
]
|
|
644
|
+
};
|
|
645
|
+
}
|
|
646
|
+
};
|
|
647
|
+
const K = {
|
|
648
|
+
props: {
|
|
649
|
+
height: {
|
|
650
|
+
type: Number,
|
|
651
|
+
default: 400
|
|
652
|
+
}
|
|
653
|
+
},
|
|
654
|
+
mixins: [u, L],
|
|
655
|
+
components: {
|
|
656
|
+
editForm: N
|
|
657
|
+
},
|
|
658
|
+
data() {
|
|
659
|
+
return {
|
|
660
|
+
advanced: !1,
|
|
661
|
+
queryParam: {},
|
|
662
|
+
visible: !1,
|
|
663
|
+
typeId: [],
|
|
664
|
+
id: [],
|
|
665
|
+
name: "",
|
|
666
|
+
loadData: (s) => (this.queryParam.typeId = this.id, p(Object.assign(s, this.queryParam)).then((e) => e.data)),
|
|
667
|
+
selectedRowKeys: [],
|
|
668
|
+
selectedRows: [],
|
|
669
|
+
fullscreen: !1,
|
|
670
|
+
width: "80%",
|
|
671
|
+
quickQuery: !1,
|
|
672
|
+
seeQuerys: !1,
|
|
673
|
+
transKey: "gd.btn.add"
|
|
674
|
+
};
|
|
675
|
+
},
|
|
676
|
+
computed: {
|
|
677
|
+
sdkStageType() {
|
|
678
|
+
return this.getDictionary("Stage");
|
|
679
|
+
},
|
|
680
|
+
getHeight() {
|
|
681
|
+
let s = this.fullscreen ? 170 : 320;
|
|
682
|
+
return this.screenHeight - s;
|
|
683
|
+
},
|
|
684
|
+
...n(["tablePageSize", "tableSize", "labelPosition", "formMode", "screenHeight"])
|
|
685
|
+
},
|
|
686
|
+
methods: {
|
|
687
|
+
reset() {
|
|
688
|
+
this.queryParam = {};
|
|
689
|
+
},
|
|
690
|
+
editForm(s) {
|
|
691
|
+
this.transKey = "gd.btn.edit", this.$refs.editForm.open(
|
|
692
|
+
Object.assign({
|
|
693
|
+
...s
|
|
694
|
+
})
|
|
695
|
+
);
|
|
696
|
+
},
|
|
697
|
+
add() {
|
|
698
|
+
this.transKey = "gd.btn.add", this.$refs.editForm.edit(this.typeId, "add");
|
|
699
|
+
},
|
|
700
|
+
togglefullscreen() {
|
|
701
|
+
this.fullscreen = !this.fullscreen;
|
|
702
|
+
},
|
|
703
|
+
index(s) {
|
|
704
|
+
let e = [];
|
|
705
|
+
this.fullscreen = !1, this.visible = !0, this.id = s.id, this.queryParam.typeId = s.id, e.push({
|
|
706
|
+
sysPluginId: s.id,
|
|
707
|
+
name: s.name
|
|
708
|
+
}), this.typeId = e, this.$nextTick(() => {
|
|
709
|
+
setTimeout(() => {
|
|
710
|
+
this.$refs.table && this.$refs.table.refresh();
|
|
711
|
+
}, 0);
|
|
712
|
+
});
|
|
713
|
+
},
|
|
714
|
+
handleCancel() {
|
|
715
|
+
this.queryParam = {}, this.visible = !1;
|
|
716
|
+
},
|
|
717
|
+
editSysDictDataStatus(s, e) {
|
|
718
|
+
b({
|
|
719
|
+
id: e.id,
|
|
720
|
+
stateCodes: s == 0 ? 1 : 0
|
|
721
|
+
}).then((t) => {
|
|
722
|
+
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);
|
|
723
|
+
});
|
|
724
|
+
},
|
|
725
|
+
sysDataDelete(s) {
|
|
726
|
+
v(s).then((e) => {
|
|
727
|
+
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);
|
|
728
|
+
}).catch((e) => {
|
|
729
|
+
this.$message.error(this.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25") + e.message);
|
|
730
|
+
});
|
|
731
|
+
},
|
|
732
|
+
toggleAdvanced() {
|
|
733
|
+
this.advanced = !this.advanced;
|
|
734
|
+
},
|
|
735
|
+
refresh() {
|
|
736
|
+
this.$refs.table.refresh();
|
|
737
|
+
},
|
|
738
|
+
onSelectChange(s, e) {
|
|
739
|
+
this.selectedRowKeys = s, this.selectedRows = e;
|
|
740
|
+
},
|
|
741
|
+
dictSwitch(s, e) {
|
|
742
|
+
let t = this.$options.filters.dictData(e).filter((a) => a.code == s)[0];
|
|
743
|
+
return t && t.colour ? t.colour : null;
|
|
744
|
+
},
|
|
745
|
+
getDictionary(s) {
|
|
746
|
+
return this.$options.filters.dictData(s);
|
|
747
|
+
},
|
|
748
|
+
doEvent(s) {
|
|
749
|
+
let e = s.item.functionName;
|
|
750
|
+
this[e] && this[e]();
|
|
751
|
+
}
|
|
752
|
+
},
|
|
753
|
+
created() {
|
|
754
|
+
(this.$hasPerm("sysDictData:edit") || this.$hasPerm("sysDictData:delete")) && this.tableColumns.push({
|
|
755
|
+
label: "\u64CD\u4F5C",
|
|
756
|
+
width: "200px",
|
|
757
|
+
prop: "action",
|
|
758
|
+
align: "left",
|
|
759
|
+
type: "slot",
|
|
760
|
+
slotType: "action",
|
|
761
|
+
transKey: "gd.btn.handle"
|
|
762
|
+
});
|
|
763
|
+
}
|
|
764
|
+
};
|
|
765
|
+
var I = function() {
|
|
766
|
+
var e = this, t = e._self._c;
|
|
767
|
+
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) {
|
|
768
|
+
e.visible = a;
|
|
769
|
+
}, 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 }) {
|
|
770
|
+
return [t("gd-tooltip", { attrs: { rowKey: "entityname", row: i } })];
|
|
771
|
+
} }, { key: "stateCodes", fn: function(a) {
|
|
772
|
+
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)];
|
|
773
|
+
} }, { key: "stage", fn: function(a) {
|
|
774
|
+
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)))])];
|
|
775
|
+
} }, { key: "sdkMessage", fn: function(a) {
|
|
776
|
+
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)))])];
|
|
777
|
+
} }, { key: "eventHandler", fn: function({ column: a, row: i }) {
|
|
778
|
+
return [t("gd-tooltip", { attrs: { rowKey: "eventhandler", row: i } })];
|
|
779
|
+
} }, { key: "action", fn: function(a) {
|
|
780
|
+
return [e.$hasPerm("sysPluginStep:edit") ? t("a", { on: { click: function(i) {
|
|
781
|
+
return e.$refs.editForm.edit(a.row, "edit");
|
|
782
|
+
} } }, [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()];
|
|
783
|
+
} }, { key: "operator", fn: function() {
|
|
784
|
+
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) {
|
|
785
|
+
e.$set(e.queryParam, "stage", a);
|
|
786
|
+
}, expression: "queryParam.stage" } }, e._l(e.sdkStageType, function(a, i) {
|
|
787
|
+
return t("el-option", { key: i, attrs: { label: a.value, value: a.code } });
|
|
788
|
+
}), 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)])];
|
|
789
|
+
}, proxy: !0 }]) })], 1)], 1), t("edit-form", { ref: "editForm", on: { ok: e.refresh } })], 1);
|
|
790
|
+
}, E = [], q = /* @__PURE__ */ r(
|
|
791
|
+
K,
|
|
792
|
+
I,
|
|
793
|
+
E,
|
|
794
|
+
!1,
|
|
795
|
+
null,
|
|
796
|
+
"2f4a16a5",
|
|
797
|
+
null,
|
|
798
|
+
null
|
|
799
|
+
);
|
|
800
|
+
const R = q.exports;
|
|
801
|
+
const B = {
|
|
802
|
+
name: "GdPlugin",
|
|
803
|
+
props: {
|
|
804
|
+
height: {
|
|
805
|
+
type: Number,
|
|
806
|
+
default: 100
|
|
807
|
+
}
|
|
808
|
+
},
|
|
809
|
+
mixins: [u, $],
|
|
810
|
+
data() {
|
|
811
|
+
return {
|
|
812
|
+
selectedRowKeys: [],
|
|
813
|
+
loadData: (s) => c(Object.assign(s, this.queryParam)).then((e) => e.data),
|
|
814
|
+
queryParam: {}
|
|
815
|
+
};
|
|
816
|
+
},
|
|
817
|
+
components: {
|
|
818
|
+
editForm: k,
|
|
819
|
+
dataIndex: R
|
|
820
|
+
},
|
|
821
|
+
computed: {
|
|
822
|
+
getHeight() {
|
|
823
|
+
return this.height;
|
|
824
|
+
},
|
|
825
|
+
...n(["tablePageSize", "tableSize", "labelPosition", "formMode"])
|
|
826
|
+
},
|
|
827
|
+
methods: {
|
|
828
|
+
onSelectChange(s, e) {
|
|
829
|
+
this.selectedRows = e, this.selectedRowKeys = s;
|
|
830
|
+
},
|
|
831
|
+
editForm(s) {
|
|
832
|
+
this.transKey = "gd.btn.edit", this.$refs.editForm.open(Object.assign({
|
|
833
|
+
...s
|
|
834
|
+
}, {
|
|
835
|
+
status: String(s.status)
|
|
836
|
+
}));
|
|
837
|
+
},
|
|
838
|
+
add() {
|
|
839
|
+
this.$refs.editForm.open(null);
|
|
840
|
+
},
|
|
841
|
+
edit() {
|
|
842
|
+
if (this.selectedRowKeys.length === 0) {
|
|
843
|
+
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
844
|
+
return;
|
|
845
|
+
}
|
|
846
|
+
if (this.selectedRowKeys.length > 1) {
|
|
847
|
+
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
848
|
+
return;
|
|
849
|
+
}
|
|
850
|
+
this.editForm(this.selectedRows[0]);
|
|
851
|
+
},
|
|
852
|
+
del() {
|
|
853
|
+
if (this.selectedRowKeys.length === 0) {
|
|
854
|
+
this.$message.warning(this.$i18nt("gd.https.delTip", "\u8BF7\u9009\u62E9\u9700\u8981\u5220\u9664\u7684\u6570\u636E!"));
|
|
855
|
+
return;
|
|
856
|
+
}
|
|
857
|
+
this.$confirm(this.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E?"), this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
|
|
858
|
+
confirmButtonText: this.$i18nt("gd.https.delOk", "\u786E\u5B9A\u5220\u9664"),
|
|
859
|
+
cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
|
|
860
|
+
showClose: !1,
|
|
861
|
+
confirmButtonLoading: !1,
|
|
862
|
+
cancelButtonLoading: !1,
|
|
863
|
+
closeOnClickModal: !1,
|
|
864
|
+
type: "warning",
|
|
865
|
+
confirmButtonClass: "el-button--danger",
|
|
866
|
+
customClass: "custom-alert",
|
|
867
|
+
callback: () => {
|
|
868
|
+
},
|
|
869
|
+
beforeClose: (s, e, t) => {
|
|
870
|
+
this.delHand(s, e, t);
|
|
871
|
+
}
|
|
872
|
+
});
|
|
873
|
+
},
|
|
874
|
+
delHand(s, e, t) {
|
|
875
|
+
if (s !== "confirm") {
|
|
876
|
+
t();
|
|
877
|
+
return;
|
|
878
|
+
}
|
|
879
|
+
let a = [];
|
|
880
|
+
this.selectedRows.forEach((i) => {
|
|
881
|
+
let l = h(i).then((o) => o);
|
|
882
|
+
a.push(l);
|
|
883
|
+
}), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(a).then((i) => {
|
|
884
|
+
t();
|
|
885
|
+
const l = i.filter((o) => !o.success);
|
|
886
|
+
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;
|
|
887
|
+
});
|
|
888
|
+
},
|
|
889
|
+
saveQueries(s) {
|
|
890
|
+
this.queryParam = {
|
|
891
|
+
...s
|
|
892
|
+
}, this.refresh();
|
|
893
|
+
},
|
|
894
|
+
step() {
|
|
895
|
+
if (this.selectedRowKeys.length === 0) {
|
|
896
|
+
this.$message.warning(this.$i18nt("gd.https.editTip", "\u8BF7\u9009\u62E9\u9700\u8981\u7F16\u8F91\u7684\u6570\u636E!"));
|
|
897
|
+
return;
|
|
898
|
+
}
|
|
899
|
+
if (this.selectedRowKeys.length > 1) {
|
|
900
|
+
this.$message.warning(this.$i18nt("gd.https.editTipOne", "\u53EA\u80FD\u9009\u62E9\u4E00\u6761\u6570\u636E\u7F16\u8F91!"));
|
|
901
|
+
return;
|
|
902
|
+
}
|
|
903
|
+
this.$refs.dataIndex.index(this.selectedRows[0]);
|
|
904
|
+
},
|
|
905
|
+
refresh() {
|
|
906
|
+
this.$refs.table.refresh();
|
|
907
|
+
},
|
|
908
|
+
doEvent(s) {
|
|
909
|
+
let e = s.item.functionName;
|
|
910
|
+
this[e] && this[e]();
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
};
|
|
914
|
+
var O = function() {
|
|
915
|
+
var e = this, t = e._self._c;
|
|
916
|
+
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 }) {
|
|
917
|
+
return [t("gd-tooltip", { attrs: { rowKey: "name", row: i, highlight: "" }, on: { click: e.editForm } })];
|
|
918
|
+
} }, { key: "statecodes", fn: function(a) {
|
|
919
|
+
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)) + " ")])];
|
|
920
|
+
} }, { key: "operator", fn: function() {
|
|
921
|
+
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) {
|
|
922
|
+
return !a.type.indexOf("key") && e._k(a.keyCode, "enter", 13, a.key, "Enter") ? null : e.refresh.apply(null, arguments);
|
|
923
|
+
} }, model: { value: e.queryParam.name, callback: function(a) {
|
|
924
|
+
e.$set(e.queryParam, "name", a);
|
|
925
|
+
}, 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)])];
|
|
926
|
+
}, proxy: !0 }, { key: "filtering", fn: function({ colse: a, visible: i }) {
|
|
927
|
+
return [t("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: a, visible: i }, on: { save: e.saveQueries } })];
|
|
928
|
+
} }]) })], 1), t("editForm", { ref: "editForm", attrs: { formMode: e.formMode }, on: { ok: e.refresh } }), t("dataIndex", { ref: "dataIndex", on: { ok: e.refresh } })], 1);
|
|
929
|
+
}, H = [], M = /* @__PURE__ */ r(
|
|
930
|
+
B,
|
|
931
|
+
O,
|
|
932
|
+
H,
|
|
933
|
+
!1,
|
|
934
|
+
null,
|
|
935
|
+
"ae7ebe6d",
|
|
936
|
+
null,
|
|
937
|
+
null
|
|
938
|
+
);
|
|
939
|
+
const d = M.exports;
|
|
940
|
+
d.install = function(s) {
|
|
941
|
+
s.component(d.name, d);
|
|
942
|
+
};
|
|
943
|
+
export {
|
|
944
|
+
d as G,
|
|
945
|
+
c as s
|
|
946
|
+
};
|