gds-plus-design-vue 1.2.4 → 1.2.5
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.5eded588.js → chartbi.b5b6fdab.js} +1 -1
- package/lib/{chartbi.c3bc6adb.mjs → chartbi.b6818e8e.mjs} +3 -2
- package/lib/gd-initial.js +14 -14
- package/lib/gd-initial.mjs +3614 -2814
- package/lib/{main.00e2ba37.mjs → main.4e325110.mjs} +3 -3
- package/lib/main.6713b76c.js +1 -0
- package/lib/{main.b4ad6d81.mjs → main.955f770e.mjs} +16 -13
- package/lib/main.a28f67df.js +1 -0
- package/lib/{main.7e1495ec.js → main.b4a303dc.js} +1 -1
- package/lib/{main.b25a9b4c.mjs → main.be62e9a4.mjs} +12 -34
- package/lib/{main.55fab1ce.mjs → main.c59fc1e8.mjs} +7 -7
- package/lib/{main.a27e1e54.js → main.f3ae0933.js} +1 -1
- package/lib/messages.1346558e.js +9 -0
- package/lib/{messages.bc3bc0e8.mjs → messages.7e418640.mjs} +1095 -1065
- package/lib/style.css +3 -3
- package/lib/{system.account.868f96f9.mjs → system.account.64fbdaeb.mjs} +2 -2
- package/lib/{system.account.e82580de.js → system.account.7c43a95e.js} +1 -1
- package/lib/system.config.93d6cb7d.js +1 -0
- package/lib/{system.config.71615d2b.mjs → system.config.f0d2d130.mjs} +7 -2
- package/lib/{system.datasource.523ae242.js → system.datasource.4bb39222.js} +1 -1
- package/lib/{system.datasource.009a1673.mjs → system.datasource.61ff56ec.mjs} +3 -3
- package/lib/{system.dict.0111a3bc.js → system.dict.5a2e60fe.js} +1 -1
- package/lib/{system.dict.8f562e89.mjs → system.dict.a817cf68.mjs} +2 -2
- package/lib/{system.duplicatechecking.1865e065.js → system.duplicatechecking.65b77e64.js} +1 -1
- package/lib/{system.duplicatechecking.f517abed.mjs → system.duplicatechecking.751664ba.mjs} +15 -11
- package/lib/{system.email.4c484530.mjs → system.email.2f53252e.mjs} +2 -2
- package/lib/{system.email.70351605.js → system.email.fec5ae26.js} +1 -1
- package/lib/{system.fieldsecurity.9f9f73df.mjs → system.fieldsecurity.6feb94c3.mjs} +1 -1
- package/lib/{system.fieldsecurity.d11088e3.js → system.fieldsecurity.920adca4.js} +1 -1
- package/lib/{system.file.96b3ce1e.mjs → system.file.1930d109.mjs} +11 -6
- package/lib/system.file.5a9a5e0e.js +1 -0
- package/lib/{system.log.80feb1c4.mjs → system.log.61d303bd.mjs} +64 -81
- package/lib/system.log.b309c0e0.js +1 -0
- package/lib/{system.machine.6e46b7a3.js → system.machine.9368e508.js} +1 -1
- package/lib/{system.machine.52e8a4f3.mjs → system.machine.ed69ec93.mjs} +1 -1
- package/lib/{system.notice.b4247147.mjs → system.notice.bd18554e.mjs} +13 -10
- package/lib/system.notice.ff62c06a.js +1 -0
- package/lib/{system.noticereceived.eef2cf6e.mjs → system.noticereceived.4dc360c0.mjs} +31 -29
- package/lib/system.noticereceived.9550818b.js +1 -0
- package/lib/{system.onlineuser.de5f62bf.mjs → system.onlineuser.08a15a71.mjs} +22 -15
- package/lib/system.onlineuser.6cf4fe24.js +1 -0
- package/lib/{system.org.d22168d6.js → system.org.0c67131d.js} +1 -1
- package/lib/{system.org.94393315.mjs → system.org.6e858bf3.mjs} +3 -3
- package/lib/{system.permissions.3c5c3573.js → system.permissions.af548a3b.js} +1 -1
- package/lib/{system.permissions.ccbe352d.mjs → system.permissions.cc5ac7ac.mjs} +3 -3
- package/lib/{system.plugin.5d47e679.js → system.plugin.83d03fb2.js} +1 -1
- package/lib/{system.plugin.8caa5d1f.mjs → system.plugin.a1f1c194.mjs} +2 -2
- package/lib/{system.pos.caaef4fc.js → system.pos.eae2051e.js} +1 -1
- package/lib/{system.pos.e4be69c4.mjs → system.pos.eb8fd7dd.mjs} +2 -2
- package/lib/{system.promptmanagement.e73f64a2.js → system.promptmanagement.04501417.js} +1 -1
- package/lib/{system.promptmanagement.1ad89863.mjs → system.promptmanagement.c84db7d5.mjs} +7 -7
- package/lib/{system.role.0323ddd5.mjs → system.role.d2195303.mjs} +49 -48
- package/lib/system.role.e623c50b.js +1 -0
- package/lib/{system.sumberrules.42965c1e.mjs → system.sumberrules.141dc00b.mjs} +2 -2
- package/lib/{system.sumberrules.2babdd81.js → system.sumberrules.a01e1805.js} +1 -1
- package/lib/system.team.0cebcde7.js +1 -0
- package/lib/{system.team.28168433.mjs → system.team.27a6d5d5.mjs} +289 -246
- package/lib/system.teammembers.b67f003f.js +1 -0
- package/lib/{system.teammembers.08f3ce38.mjs → system.teammembers.d73c659f.mjs} +78 -40
- package/lib/{system.timers.040b9bce.mjs → system.timers.4a3dd57d.mjs} +2 -2
- package/lib/{system.timers.310b3710.js → system.timers.b27fcb6d.js} +1 -1
- package/lib/{system.translation.a4396166.js → system.translation.d2c982ed.js} +1 -1
- package/lib/{system.translation.c0068d8f.mjs → system.translation.d9488c23.mjs} +7 -7
- package/lib/{system.user.20a5e7b4.js → system.user.0664c21c.js} +5 -5
- package/lib/{system.user.84e77277.mjs → system.user.6874aa87.mjs} +101 -69
- package/lib/{system.useraffiliation.fb961d98.mjs → system.useraffiliation.5e3e2bab.mjs} +3 -3
- package/lib/{system.useraffiliation.307e3cd7.js → system.useraffiliation.6b7a1612.js} +1 -1
- package/lib/{system.webresource.2d0ab7a6.mjs → system.webresource.204911b7.mjs} +16 -18
- package/lib/system.webresource.5de18052.js +1 -0
- package/lib/{system.welcome.aaac4a40.mjs → system.welcome.79e15015.mjs} +1 -1
- package/lib/{system.welcome.67d20fa4.js → system.welcome.ec7aa744.js} +1 -1
- package/locale/en_US.js +25 -3
- package/locale/id_ID.js +25 -3
- package/locale/vi_VN.js +1967 -1945
- package/locale/zh_CN.js +26 -4
- package/package.json +1 -1
- package/lib/main.9c85b10c.js +0 -1
- package/lib/main.a794f7cf.js +0 -1
- package/lib/messages.fa3d97b5.js +0 -9
- package/lib/system.config.6aae9ea6.js +0 -1
- package/lib/system.file.001a01bc.js +0 -1
- package/lib/system.log.f7afb251.js +0 -1
- package/lib/system.notice.365ddd35.js +0 -1
- package/lib/system.noticereceived.5545acf8.js +0 -1
- package/lib/system.onlineuser.fd9fdc66.js +0 -1
- package/lib/system.role.b5b55ddd.js +0 -1
- package/lib/system.team.a3527834.js +0 -1
- package/lib/system.teammembers.4b11e49b.js +0 -1
- package/lib/system.webresource.0382b6b1.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as p, m as f, u as y } from "./chartbi.
|
|
2
|
-
function
|
|
1
|
+
import { n as p, m as f, u as y } from "./chartbi.b6818e8e.mjs";
|
|
2
|
+
function Ot(t, e) {
|
|
3
3
|
return window.axios({
|
|
4
4
|
url: e || "/base/page",
|
|
5
5
|
method: "post",
|
|
@@ -13,35 +13,35 @@ function g(t) {
|
|
|
13
13
|
data: t
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function Kt(t, e) {
|
|
17
17
|
return window.axios({
|
|
18
18
|
url: e || "/base/add",
|
|
19
19
|
method: "post",
|
|
20
20
|
data: t
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Et(t, e) {
|
|
24
24
|
return window.axios({
|
|
25
25
|
url: e || "/base/edit",
|
|
26
26
|
method: "post",
|
|
27
27
|
data: t
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function jt(t, e) {
|
|
31
31
|
return window.axios({
|
|
32
32
|
url: e || "/base/del",
|
|
33
33
|
method: "post",
|
|
34
34
|
data: t
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function Rt(t, e) {
|
|
38
38
|
return window.axios({
|
|
39
39
|
url: e || "/base/details",
|
|
40
40
|
method: "post",
|
|
41
41
|
data: t
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Mt(t, e) {
|
|
45
45
|
return window.axios({
|
|
46
46
|
url: e || "/base/Export",
|
|
47
47
|
method: "post",
|
|
@@ -49,14 +49,14 @@ function Rt(t, e) {
|
|
|
49
49
|
responseType: "blob"
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function It(t) {
|
|
53
53
|
return window.axios({
|
|
54
54
|
url: "/base/import",
|
|
55
55
|
method: "post",
|
|
56
56
|
data: t
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function Bt(t) {
|
|
60
60
|
return window.axios({
|
|
61
61
|
url: "/sysFileInfo/upload",
|
|
62
62
|
method: "post",
|
|
@@ -66,405 +66,405 @@ function It(t) {
|
|
|
66
66
|
}
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function At(t, e = {}) {
|
|
70
70
|
return window.axios({
|
|
71
71
|
url: t,
|
|
72
72
|
method: "post",
|
|
73
73
|
data: e
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function qt(t) {
|
|
77
77
|
return window.axios({
|
|
78
78
|
url: "/develop/fkListOnView",
|
|
79
79
|
method: "get",
|
|
80
80
|
params: t
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function Vt(t) {
|
|
84
84
|
return window.axios({
|
|
85
85
|
url: "/develop/AllTableData",
|
|
86
86
|
method: "get",
|
|
87
87
|
params: t
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function zt(t) {
|
|
91
91
|
return window.axios({
|
|
92
92
|
url: "/base/GetFkTableValue",
|
|
93
93
|
method: "get",
|
|
94
94
|
params: t
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function Wt(t) {
|
|
98
98
|
return window.axios({
|
|
99
99
|
url: "/develop/GetFkRelation",
|
|
100
100
|
method: "get",
|
|
101
101
|
params: t
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function Ht(t) {
|
|
105
105
|
return window.axios({
|
|
106
106
|
url: "/onlineForm/GetFkTableList",
|
|
107
107
|
method: "get",
|
|
108
108
|
params: t
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function Gt(t) {
|
|
112
112
|
return window.axios({
|
|
113
113
|
url: "/onlineForm/GetFieldList",
|
|
114
114
|
method: "get",
|
|
115
115
|
params: t
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function Jt(t) {
|
|
119
119
|
return window.axios({
|
|
120
120
|
url: "/SysBizProcess/add",
|
|
121
121
|
method: "post",
|
|
122
122
|
data: t
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function Qt(t) {
|
|
126
126
|
return window.axios({
|
|
127
127
|
url: "/SysBizProcess/ExtensionEdit",
|
|
128
128
|
method: "post",
|
|
129
129
|
data: t
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function Ut(t) {
|
|
133
133
|
return window.axios({
|
|
134
134
|
url: "/SysBizProcess/del",
|
|
135
135
|
method: "get",
|
|
136
136
|
params: t
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function Xt(t) {
|
|
140
140
|
return window.axios({
|
|
141
141
|
url: "/SysBizProcess/page",
|
|
142
142
|
method: "get",
|
|
143
143
|
params: t
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function Yt(t) {
|
|
147
147
|
return window.axios({
|
|
148
148
|
url: "/SysBizProcess/details",
|
|
149
149
|
method: "get",
|
|
150
150
|
params: t
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function Zt(t) {
|
|
154
154
|
return window.axios({
|
|
155
155
|
url: "/SysBizProcess/list",
|
|
156
156
|
method: "get",
|
|
157
157
|
params: t
|
|
158
158
|
});
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function ea(t) {
|
|
161
161
|
return window.axios({
|
|
162
162
|
url: "/SysBizProcess/configOrder",
|
|
163
163
|
method: "post",
|
|
164
164
|
data: t
|
|
165
165
|
});
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function ta(t) {
|
|
168
168
|
return window.axios({
|
|
169
169
|
url: "/SysBizProcess/getconfig",
|
|
170
170
|
method: "get",
|
|
171
171
|
params: t
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function aa(t) {
|
|
175
175
|
return window.axios({
|
|
176
176
|
url: "/SysWorkflow/page",
|
|
177
177
|
method: "get",
|
|
178
178
|
params: t
|
|
179
179
|
});
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function sa(t) {
|
|
182
182
|
return window.axios({
|
|
183
183
|
url: "/SysWorkflow/details",
|
|
184
184
|
method: "get",
|
|
185
185
|
params: t
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function ia(t) {
|
|
189
189
|
return window.axios({
|
|
190
190
|
url: "/SysWorkflow/del",
|
|
191
191
|
method: "get",
|
|
192
192
|
params: t
|
|
193
193
|
});
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function la(t) {
|
|
196
196
|
return window.axios({
|
|
197
197
|
url: "/SysBizProcessStage/details",
|
|
198
198
|
method: "get",
|
|
199
199
|
params: t
|
|
200
200
|
});
|
|
201
201
|
}
|
|
202
|
-
function
|
|
202
|
+
function na(t) {
|
|
203
203
|
return window.axios({
|
|
204
204
|
url: "/SysBizProcessStage/save",
|
|
205
205
|
method: "post",
|
|
206
206
|
data: t
|
|
207
207
|
});
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function ra(t) {
|
|
210
210
|
return window.axios({
|
|
211
211
|
url: "/SysWorkflow/extendAdd",
|
|
212
212
|
method: "post",
|
|
213
213
|
data: t
|
|
214
214
|
});
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function oa(t) {
|
|
217
217
|
return window.axios({
|
|
218
218
|
url: "/SysWorkflow/extendUpdate",
|
|
219
219
|
method: "post",
|
|
220
220
|
data: t
|
|
221
221
|
});
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function da(t) {
|
|
224
224
|
return window.axios({
|
|
225
225
|
url: "/base/batchUpdate",
|
|
226
226
|
method: "post",
|
|
227
227
|
data: t
|
|
228
228
|
});
|
|
229
229
|
}
|
|
230
|
-
function
|
|
230
|
+
function ca(t) {
|
|
231
231
|
return window.axios({
|
|
232
232
|
url: "/base/GetShared",
|
|
233
233
|
method: "post",
|
|
234
234
|
data: t
|
|
235
235
|
});
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function ua(t) {
|
|
238
238
|
return window.axios({
|
|
239
239
|
url: "/base/SharedDataSave",
|
|
240
240
|
method: "post",
|
|
241
241
|
data: t
|
|
242
242
|
});
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function pa(t) {
|
|
245
245
|
return window.axios({
|
|
246
246
|
url: "/base/SeniorQuery",
|
|
247
247
|
method: "post",
|
|
248
248
|
data: t
|
|
249
249
|
});
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function fa(t) {
|
|
252
252
|
return window.axios({
|
|
253
253
|
url: "/develop/Reference",
|
|
254
254
|
method: "get",
|
|
255
255
|
params: t
|
|
256
256
|
});
|
|
257
257
|
}
|
|
258
|
-
function
|
|
258
|
+
function ma(t) {
|
|
259
259
|
return window.axios({
|
|
260
260
|
url: "/approval/process",
|
|
261
261
|
method: "get",
|
|
262
262
|
params: t
|
|
263
263
|
});
|
|
264
264
|
}
|
|
265
|
-
function
|
|
265
|
+
function ha(t) {
|
|
266
266
|
return window.axios({
|
|
267
267
|
url: "/approval/process/edit",
|
|
268
268
|
method: "post",
|
|
269
269
|
data: t
|
|
270
270
|
});
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function ga(t) {
|
|
273
273
|
return window.axios({
|
|
274
274
|
url: "/approval/process/del",
|
|
275
275
|
method: "get",
|
|
276
276
|
params: t
|
|
277
277
|
});
|
|
278
278
|
}
|
|
279
|
-
function
|
|
279
|
+
function ya(t) {
|
|
280
280
|
return window.axios({
|
|
281
281
|
url: "/approval/process",
|
|
282
282
|
method: "post",
|
|
283
283
|
data: t
|
|
284
284
|
});
|
|
285
285
|
}
|
|
286
|
-
function
|
|
286
|
+
function ba(t) {
|
|
287
287
|
return window.axios({
|
|
288
288
|
url: "/approval/process/" + t,
|
|
289
289
|
method: "get"
|
|
290
290
|
});
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function va(t) {
|
|
293
293
|
return window.axios({
|
|
294
294
|
url: "/develop/fkFieldList",
|
|
295
295
|
method: "get",
|
|
296
296
|
params: t
|
|
297
297
|
});
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function wa(t) {
|
|
300
300
|
return window.axios({
|
|
301
301
|
url: "/approval/task/submit",
|
|
302
302
|
method: "post",
|
|
303
303
|
data: t
|
|
304
304
|
});
|
|
305
305
|
}
|
|
306
|
-
function
|
|
306
|
+
function _a(t) {
|
|
307
307
|
return axios({
|
|
308
308
|
url: "/approval/task/resubmit",
|
|
309
309
|
method: "post",
|
|
310
310
|
data: t
|
|
311
311
|
});
|
|
312
312
|
}
|
|
313
|
-
function
|
|
313
|
+
function $a(t) {
|
|
314
314
|
return window.axios({
|
|
315
315
|
url: "/approval/task/agree",
|
|
316
316
|
method: "post",
|
|
317
317
|
data: t
|
|
318
318
|
});
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function ka(t) {
|
|
321
321
|
return window.axios({
|
|
322
322
|
url: "/approval/task/reject",
|
|
323
323
|
method: "post",
|
|
324
324
|
data: t
|
|
325
325
|
});
|
|
326
326
|
}
|
|
327
|
-
function
|
|
327
|
+
function Ta(t) {
|
|
328
328
|
return window.axios({
|
|
329
329
|
url: "/approval/task/revoke",
|
|
330
330
|
method: "post",
|
|
331
331
|
data: t
|
|
332
332
|
});
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function Da(t) {
|
|
335
335
|
return window.axios({
|
|
336
336
|
url: "/approval/task/agreeandcc",
|
|
337
337
|
method: "post",
|
|
338
338
|
data: t
|
|
339
339
|
});
|
|
340
340
|
}
|
|
341
|
-
function
|
|
341
|
+
function xa(t) {
|
|
342
342
|
return window.axios({
|
|
343
343
|
url: "/approval/task/getTaskInfo",
|
|
344
344
|
method: "get",
|
|
345
345
|
params: t
|
|
346
346
|
});
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function Sa(t) {
|
|
349
349
|
return window.axios({
|
|
350
350
|
url: "/approval/task/getApprovalHistory",
|
|
351
351
|
method: "get",
|
|
352
352
|
params: t
|
|
353
353
|
});
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function Ca(t) {
|
|
356
356
|
return window.axios({
|
|
357
357
|
url: "/approval/task/urgentProcessing",
|
|
358
358
|
method: "post",
|
|
359
359
|
data: t
|
|
360
360
|
});
|
|
361
361
|
}
|
|
362
|
-
function
|
|
362
|
+
function Fa(t) {
|
|
363
363
|
return window.axios({
|
|
364
364
|
url: "/approval/task/return",
|
|
365
365
|
method: "post",
|
|
366
366
|
data: t
|
|
367
367
|
});
|
|
368
368
|
}
|
|
369
|
-
function
|
|
369
|
+
function La(t) {
|
|
370
370
|
return window.axios({
|
|
371
371
|
url: "/approval/task/transfer",
|
|
372
372
|
method: "post",
|
|
373
373
|
data: t
|
|
374
374
|
});
|
|
375
375
|
}
|
|
376
|
-
function
|
|
376
|
+
function Pa(t) {
|
|
377
377
|
return window.axios({
|
|
378
378
|
url: "/approval/task/addSignature",
|
|
379
379
|
method: "post",
|
|
380
380
|
data: t
|
|
381
381
|
});
|
|
382
382
|
}
|
|
383
|
-
function
|
|
383
|
+
function Na(t) {
|
|
384
384
|
return window.axios({
|
|
385
385
|
url: "/Employees/GetBUEmployeeTree",
|
|
386
386
|
method: "get",
|
|
387
387
|
params: t
|
|
388
388
|
});
|
|
389
389
|
}
|
|
390
|
-
function
|
|
390
|
+
function Oa(t) {
|
|
391
391
|
return window.axios({
|
|
392
392
|
url: "/develop/AllSavedviewData",
|
|
393
393
|
method: "get",
|
|
394
394
|
params: t
|
|
395
395
|
});
|
|
396
396
|
}
|
|
397
|
-
function
|
|
397
|
+
function Ka(t) {
|
|
398
398
|
return window.axios({
|
|
399
399
|
url: "/base/enableState",
|
|
400
400
|
method: "post",
|
|
401
401
|
data: t
|
|
402
402
|
});
|
|
403
403
|
}
|
|
404
|
-
function
|
|
404
|
+
function Ea(t) {
|
|
405
405
|
return window.axios({
|
|
406
406
|
url: "/base/deactivateState",
|
|
407
407
|
method: "post",
|
|
408
408
|
data: t
|
|
409
409
|
});
|
|
410
410
|
}
|
|
411
|
-
function
|
|
411
|
+
function ja(t) {
|
|
412
412
|
return window.axios({
|
|
413
413
|
url: "/base/assign",
|
|
414
414
|
method: "post",
|
|
415
415
|
data: t
|
|
416
416
|
});
|
|
417
417
|
}
|
|
418
|
-
function
|
|
418
|
+
function Ra(t) {
|
|
419
419
|
return window.axios({
|
|
420
420
|
url: "/SysRoleDataControl/OperationPermission",
|
|
421
421
|
method: "get",
|
|
422
422
|
params: t
|
|
423
423
|
});
|
|
424
424
|
}
|
|
425
|
-
function
|
|
425
|
+
function Ma(t) {
|
|
426
426
|
return window.axios({
|
|
427
427
|
url: "/base/chartQuery",
|
|
428
428
|
method: "post",
|
|
429
429
|
data: t
|
|
430
430
|
});
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function Ia(t) {
|
|
433
433
|
return window.axios({
|
|
434
434
|
url: "/sysAuditLog/AuditColumn",
|
|
435
435
|
method: "get",
|
|
436
436
|
params: t
|
|
437
437
|
});
|
|
438
438
|
}
|
|
439
|
-
function
|
|
439
|
+
function Ba(t) {
|
|
440
440
|
return window.axios({
|
|
441
441
|
url: "/sysAuditLog/page",
|
|
442
442
|
method: "post",
|
|
443
443
|
data: t
|
|
444
444
|
});
|
|
445
445
|
}
|
|
446
|
-
function
|
|
446
|
+
function Aa(t) {
|
|
447
447
|
return window.axios({
|
|
448
448
|
url: "/sysCodeGenerateConfig/ImportFieldList",
|
|
449
449
|
method: "get",
|
|
450
450
|
params: t
|
|
451
451
|
});
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function qa(t) {
|
|
454
454
|
return window.axios({
|
|
455
455
|
url: "/develop/addOnlineField",
|
|
456
456
|
method: "post",
|
|
457
457
|
data: t
|
|
458
458
|
});
|
|
459
459
|
}
|
|
460
|
-
function
|
|
460
|
+
function Va(t) {
|
|
461
461
|
return window.axios({
|
|
462
462
|
url: "/develop/getCodeByEntity",
|
|
463
463
|
method: "get",
|
|
464
464
|
params: t
|
|
465
465
|
});
|
|
466
466
|
}
|
|
467
|
-
function
|
|
467
|
+
function za(t) {
|
|
468
468
|
return window.axios({
|
|
469
469
|
url: "/develop/getAboutListByEntity",
|
|
470
470
|
method: "get",
|
|
@@ -478,7 +478,7 @@ function v(t) {
|
|
|
478
478
|
params: t
|
|
479
479
|
});
|
|
480
480
|
}
|
|
481
|
-
const
|
|
481
|
+
const j = {
|
|
482
482
|
props: {
|
|
483
483
|
effectType: {
|
|
484
484
|
type: String,
|
|
@@ -496,25 +496,25 @@ const E = {
|
|
|
496
496
|
},
|
|
497
497
|
methods: {}
|
|
498
498
|
};
|
|
499
|
-
var
|
|
500
|
-
var e = this,
|
|
501
|
-
return
|
|
502
|
-
},
|
|
503
|
-
E,
|
|
499
|
+
var R = function() {
|
|
500
|
+
var e = this, a = e._self._c;
|
|
501
|
+
return a("span", { staticClass: "gd-icons", class: e.icon });
|
|
502
|
+
}, M = [], I = /* @__PURE__ */ p(
|
|
504
503
|
j,
|
|
505
504
|
R,
|
|
505
|
+
M,
|
|
506
506
|
!1,
|
|
507
507
|
null,
|
|
508
508
|
"674ea292",
|
|
509
509
|
null,
|
|
510
510
|
null
|
|
511
511
|
);
|
|
512
|
-
const w =
|
|
512
|
+
const w = I.exports, _ = {
|
|
513
513
|
methods: {
|
|
514
514
|
renderHeader(t, {
|
|
515
515
|
column: e,
|
|
516
|
-
$index:
|
|
517
|
-
},
|
|
516
|
+
$index: a
|
|
517
|
+
}, s) {
|
|
518
518
|
return t(
|
|
519
519
|
"div",
|
|
520
520
|
{
|
|
@@ -527,7 +527,7 @@ const w = M.exports, _ = {
|
|
|
527
527
|
t("gd-tables-filter", {
|
|
528
528
|
style: "cursor:pointer",
|
|
529
529
|
props: {
|
|
530
|
-
column: Object.assign(e,
|
|
530
|
+
column: Object.assign(e, s || {}),
|
|
531
531
|
queryParam: this.queryParam
|
|
532
532
|
},
|
|
533
533
|
on: {
|
|
@@ -540,28 +540,28 @@ const w = M.exports, _ = {
|
|
|
540
540
|
columnQuery(t) {
|
|
541
541
|
let e = {
|
|
542
542
|
...t
|
|
543
|
-
},
|
|
544
|
-
for (let
|
|
545
|
-
e[
|
|
546
|
-
this.queryParam = Object.fromEntries(
|
|
543
|
+
}, a = /* @__PURE__ */ new Map();
|
|
544
|
+
for (let s in e)
|
|
545
|
+
e[s] !== void 0 && a.set(s, e[s]);
|
|
546
|
+
this.queryParam = Object.fromEntries(a), this.refresh();
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
549
|
};
|
|
550
|
-
function
|
|
550
|
+
function Wa(t) {
|
|
551
551
|
return window.axios({
|
|
552
552
|
url: "/sysFileInfo/page",
|
|
553
553
|
method: "get",
|
|
554
554
|
params: t
|
|
555
555
|
});
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function Ha(t) {
|
|
558
558
|
return window.axios({
|
|
559
559
|
url: "/sysFileInfo/upload",
|
|
560
560
|
method: "post",
|
|
561
561
|
data: t
|
|
562
562
|
});
|
|
563
563
|
}
|
|
564
|
-
function
|
|
564
|
+
function Ga(t) {
|
|
565
565
|
return window.axios({
|
|
566
566
|
url: "/sysFileInfo/download",
|
|
567
567
|
method: "get",
|
|
@@ -569,7 +569,7 @@ function Hs(t) {
|
|
|
569
569
|
responseType: "blob"
|
|
570
570
|
});
|
|
571
571
|
}
|
|
572
|
-
function
|
|
572
|
+
function F(t) {
|
|
573
573
|
return window.axios({
|
|
574
574
|
url: "/sysFileInfo/preview",
|
|
575
575
|
method: "get",
|
|
@@ -577,28 +577,28 @@ function C(t) {
|
|
|
577
577
|
responseType: "arraybuffer"
|
|
578
578
|
});
|
|
579
579
|
}
|
|
580
|
-
function
|
|
580
|
+
function Ja(t) {
|
|
581
581
|
return window.axios({
|
|
582
582
|
url: "/sysFileInfo/detail",
|
|
583
583
|
method: "get",
|
|
584
584
|
params: t
|
|
585
585
|
});
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function Qa(t) {
|
|
588
588
|
return window.axios({
|
|
589
589
|
url: "/sysFileInfo/delete",
|
|
590
590
|
method: "post",
|
|
591
591
|
data: t
|
|
592
592
|
});
|
|
593
593
|
}
|
|
594
|
-
function
|
|
594
|
+
function Ua(t) {
|
|
595
595
|
return window.axios({
|
|
596
596
|
url: "/sysFileInfo/uploadAvatar",
|
|
597
597
|
method: "post",
|
|
598
598
|
data: t
|
|
599
599
|
});
|
|
600
600
|
}
|
|
601
|
-
function
|
|
601
|
+
function B(t) {
|
|
602
602
|
return window.axios({
|
|
603
603
|
url: "/sysFileInfo/uploadShop",
|
|
604
604
|
method: "post",
|
|
@@ -608,236 +608,236 @@ function I(t) {
|
|
|
608
608
|
}
|
|
609
609
|
});
|
|
610
610
|
}
|
|
611
|
-
function
|
|
611
|
+
function Xa(t) {
|
|
612
612
|
return window.axios({
|
|
613
613
|
url: "/codeGenerate/page",
|
|
614
614
|
method: "get",
|
|
615
615
|
params: t
|
|
616
616
|
});
|
|
617
617
|
}
|
|
618
|
-
function
|
|
618
|
+
function Ya(t) {
|
|
619
619
|
return window.axios({
|
|
620
620
|
url: "/develop/addOnlineTable",
|
|
621
621
|
method: "post",
|
|
622
622
|
data: t
|
|
623
623
|
});
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function Za(t) {
|
|
626
626
|
return window.axios({
|
|
627
627
|
url: "/develop/updateOnlineTable",
|
|
628
628
|
method: "post",
|
|
629
629
|
data: t
|
|
630
630
|
});
|
|
631
631
|
}
|
|
632
|
-
function
|
|
632
|
+
function A(t) {
|
|
633
633
|
return window.axios({
|
|
634
634
|
url: "/develop/fkList",
|
|
635
635
|
method: "get",
|
|
636
636
|
params: t
|
|
637
637
|
});
|
|
638
638
|
}
|
|
639
|
-
function
|
|
639
|
+
function es(t) {
|
|
640
640
|
return window.axios({
|
|
641
641
|
url: "/develop/fkApprovalList",
|
|
642
642
|
method: "get",
|
|
643
643
|
params: t
|
|
644
644
|
});
|
|
645
645
|
}
|
|
646
|
-
function
|
|
646
|
+
function ts(t) {
|
|
647
647
|
return window.axios({
|
|
648
648
|
url: "/develop/getSysCodeGen",
|
|
649
649
|
method: "get",
|
|
650
650
|
params: t
|
|
651
651
|
});
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function as(t) {
|
|
654
654
|
return window.axios({
|
|
655
655
|
url: "/develop/delSysCodeGen",
|
|
656
656
|
method: "get",
|
|
657
657
|
params: t
|
|
658
658
|
});
|
|
659
659
|
}
|
|
660
|
-
function
|
|
660
|
+
function ss(t) {
|
|
661
661
|
return window.axios({
|
|
662
662
|
url: "/develop/v2/developmentdeploy",
|
|
663
663
|
method: "get",
|
|
664
664
|
params: t
|
|
665
665
|
});
|
|
666
666
|
}
|
|
667
|
-
function
|
|
667
|
+
function is() {
|
|
668
668
|
return window.axios({
|
|
669
669
|
url: "/SysNumberRules/page",
|
|
670
670
|
method: "get"
|
|
671
671
|
});
|
|
672
672
|
}
|
|
673
|
-
function
|
|
673
|
+
function ls() {
|
|
674
674
|
return window.axios({
|
|
675
675
|
url: "/develop/DeployBackend",
|
|
676
676
|
method: "get"
|
|
677
677
|
});
|
|
678
678
|
}
|
|
679
|
-
function
|
|
679
|
+
function ns(t) {
|
|
680
680
|
return window.axios({
|
|
681
681
|
url: "/develop/CreateTable",
|
|
682
682
|
method: "get",
|
|
683
683
|
params: t
|
|
684
684
|
});
|
|
685
685
|
}
|
|
686
|
-
function
|
|
686
|
+
function S(t) {
|
|
687
687
|
return window.axios({
|
|
688
688
|
url: "/Msg_MessagetemPlate/getTemplatesByType",
|
|
689
689
|
method: "get",
|
|
690
690
|
params: t
|
|
691
691
|
});
|
|
692
692
|
}
|
|
693
|
-
function
|
|
693
|
+
function C(t) {
|
|
694
694
|
return window.axios({
|
|
695
695
|
url: "/sysConfig/page",
|
|
696
696
|
method: "get",
|
|
697
697
|
params: t
|
|
698
698
|
});
|
|
699
699
|
}
|
|
700
|
-
function
|
|
700
|
+
function rs(t) {
|
|
701
701
|
return window.axios({
|
|
702
702
|
url: "/sysConfig/add",
|
|
703
703
|
method: "post",
|
|
704
704
|
data: t
|
|
705
705
|
});
|
|
706
706
|
}
|
|
707
|
-
function
|
|
707
|
+
function os(t) {
|
|
708
708
|
return window.axios({
|
|
709
709
|
url: "/sysConfig/edit",
|
|
710
710
|
method: "post",
|
|
711
711
|
data: t
|
|
712
712
|
});
|
|
713
713
|
}
|
|
714
|
-
function
|
|
714
|
+
function ds(t) {
|
|
715
715
|
return window.axios({
|
|
716
716
|
url: "/sysConfig/delete",
|
|
717
717
|
method: "post",
|
|
718
718
|
data: t
|
|
719
719
|
});
|
|
720
720
|
}
|
|
721
|
-
function
|
|
721
|
+
function q(t) {
|
|
722
722
|
return window.axios({
|
|
723
723
|
url: "/Msg_MessageSendPlan/page",
|
|
724
724
|
method: "post",
|
|
725
725
|
data: t
|
|
726
726
|
});
|
|
727
727
|
}
|
|
728
|
-
function
|
|
728
|
+
function V(t) {
|
|
729
729
|
return window.axios({
|
|
730
730
|
url: "/Msg_MessageSendPlan/del",
|
|
731
731
|
method: "get",
|
|
732
732
|
params: t
|
|
733
733
|
});
|
|
734
734
|
}
|
|
735
|
-
function
|
|
735
|
+
function z(t) {
|
|
736
736
|
return window.axios({
|
|
737
737
|
url: "/Msg_MessageSendPlan/AddExtension",
|
|
738
738
|
method: "post",
|
|
739
739
|
data: t
|
|
740
740
|
});
|
|
741
741
|
}
|
|
742
|
-
function
|
|
742
|
+
function W(t) {
|
|
743
743
|
return window.axios({
|
|
744
744
|
url: "/Msg_MessageSendPlan/EditExtension",
|
|
745
745
|
method: "post",
|
|
746
746
|
data: t
|
|
747
747
|
});
|
|
748
748
|
}
|
|
749
|
-
function
|
|
749
|
+
function H(t) {
|
|
750
750
|
return window.axios({
|
|
751
751
|
url: "/Msg_MessageSendPlan/details",
|
|
752
752
|
method: "get",
|
|
753
753
|
params: t
|
|
754
754
|
});
|
|
755
755
|
}
|
|
756
|
-
function
|
|
756
|
+
function G(t) {
|
|
757
757
|
return window.axios({
|
|
758
758
|
url: "/Msg_MessageSendRecord/page",
|
|
759
759
|
method: "post",
|
|
760
760
|
data: t
|
|
761
761
|
});
|
|
762
762
|
}
|
|
763
|
-
function
|
|
763
|
+
function J(t) {
|
|
764
764
|
return window.axios({
|
|
765
765
|
url: "/Msg_MessageSendRecord/details",
|
|
766
766
|
method: "get",
|
|
767
767
|
params: t
|
|
768
768
|
});
|
|
769
769
|
}
|
|
770
|
-
function
|
|
770
|
+
function Q(t) {
|
|
771
771
|
return window.axios({
|
|
772
772
|
url: "/Msg_MessageSendRecord/add",
|
|
773
773
|
method: "post",
|
|
774
774
|
data: t
|
|
775
775
|
});
|
|
776
776
|
}
|
|
777
|
-
function
|
|
777
|
+
function U(t) {
|
|
778
778
|
return window.axios({
|
|
779
779
|
url: "/Msg_MessageSendRecord/edit",
|
|
780
780
|
method: "post",
|
|
781
781
|
data: t
|
|
782
782
|
});
|
|
783
783
|
}
|
|
784
|
-
function
|
|
784
|
+
function X(t) {
|
|
785
785
|
return window.axios({
|
|
786
786
|
url: "/Msg_MessageSendRecord/del",
|
|
787
787
|
method: "get",
|
|
788
788
|
params: t
|
|
789
789
|
});
|
|
790
790
|
}
|
|
791
|
-
function
|
|
791
|
+
function Y(t) {
|
|
792
792
|
return window.axios({
|
|
793
793
|
url: "/Msg_MessageSendRecord/SendMsg",
|
|
794
794
|
method: "get",
|
|
795
795
|
params: t
|
|
796
796
|
});
|
|
797
797
|
}
|
|
798
|
-
function
|
|
798
|
+
function Z(t) {
|
|
799
799
|
return window.axios({
|
|
800
800
|
url: "/Msg_TemplateLibrary/page",
|
|
801
801
|
method: "post",
|
|
802
802
|
data: t
|
|
803
803
|
});
|
|
804
804
|
}
|
|
805
|
-
function
|
|
805
|
+
function ee(t) {
|
|
806
806
|
return window.axios({
|
|
807
807
|
url: "/Msg_TemplateLibrary/del",
|
|
808
808
|
method: "get",
|
|
809
809
|
params: t
|
|
810
810
|
});
|
|
811
811
|
}
|
|
812
|
-
function
|
|
812
|
+
function L(t) {
|
|
813
813
|
return window.axios({
|
|
814
814
|
url: "/Msg_TemplateLibrary/AddExtension",
|
|
815
815
|
method: "post",
|
|
816
816
|
data: t
|
|
817
817
|
});
|
|
818
818
|
}
|
|
819
|
-
function
|
|
819
|
+
function P(t) {
|
|
820
820
|
return window.axios({
|
|
821
821
|
url: "/Msg_TemplateLibrary/EditExtension",
|
|
822
822
|
method: "post",
|
|
823
823
|
data: t
|
|
824
824
|
});
|
|
825
825
|
}
|
|
826
|
-
function
|
|
826
|
+
function N(t) {
|
|
827
827
|
return window.axios({
|
|
828
828
|
url: "/Msg_TemplateLibrary/details",
|
|
829
829
|
method: "get",
|
|
830
830
|
params: t
|
|
831
831
|
});
|
|
832
832
|
}
|
|
833
|
-
function
|
|
833
|
+
function te(t) {
|
|
834
834
|
return window.axios({
|
|
835
835
|
url: "/Msg_MessagetemPlate/page",
|
|
836
836
|
method: "post",
|
|
837
837
|
data: t
|
|
838
838
|
});
|
|
839
839
|
}
|
|
840
|
-
function
|
|
840
|
+
function ae(t) {
|
|
841
841
|
return window.axios({
|
|
842
842
|
url: "/Msg_MessagetemPlate/edit",
|
|
843
843
|
method: "post",
|
|
@@ -851,28 +851,28 @@ function se(t) {
|
|
|
851
851
|
params: t
|
|
852
852
|
});
|
|
853
853
|
}
|
|
854
|
-
function
|
|
854
|
+
function ie(t) {
|
|
855
855
|
return window.axios({
|
|
856
856
|
url: "/Msg_MessagetemPlate/AddExtension",
|
|
857
857
|
method: "post",
|
|
858
858
|
data: t
|
|
859
859
|
});
|
|
860
860
|
}
|
|
861
|
-
function
|
|
861
|
+
function le(t) {
|
|
862
862
|
return window.axios({
|
|
863
863
|
url: "/Msg_MessagetemPlate/EditExtension",
|
|
864
864
|
method: "post",
|
|
865
865
|
data: t
|
|
866
866
|
});
|
|
867
867
|
}
|
|
868
|
-
function
|
|
868
|
+
function ne(t) {
|
|
869
869
|
return window.axios({
|
|
870
870
|
url: "/Msg_MessagetemPlate/details",
|
|
871
871
|
method: "get",
|
|
872
872
|
params: t
|
|
873
873
|
});
|
|
874
874
|
}
|
|
875
|
-
const
|
|
875
|
+
const re = {
|
|
876
876
|
data() {
|
|
877
877
|
return {
|
|
878
878
|
tableColumns: [
|
|
@@ -1039,7 +1039,7 @@ const ne = {
|
|
|
1039
1039
|
};
|
|
1040
1040
|
}
|
|
1041
1041
|
};
|
|
1042
|
-
const
|
|
1042
|
+
const oe = [
|
|
1043
1043
|
{
|
|
1044
1044
|
id: 1,
|
|
1045
1045
|
code: "code",
|
|
@@ -1064,7 +1064,7 @@ const re = [
|
|
|
1064
1064
|
name: "\u5907\u6CE8",
|
|
1065
1065
|
transkey: "gd.msg.temPlate.dicRemark"
|
|
1066
1066
|
}
|
|
1067
|
-
],
|
|
1067
|
+
], de = {
|
|
1068
1068
|
name: "composeMiddleConnect",
|
|
1069
1069
|
props: {
|
|
1070
1070
|
record: {
|
|
@@ -1087,7 +1087,7 @@ const re = [
|
|
|
1087
1087
|
},
|
|
1088
1088
|
data() {
|
|
1089
1089
|
return {
|
|
1090
|
-
dicData:
|
|
1090
|
+
dicData: oe,
|
|
1091
1091
|
fieldData: [],
|
|
1092
1092
|
fetching: !1,
|
|
1093
1093
|
languages: "zh_CN",
|
|
@@ -1110,10 +1110,10 @@ const re = [
|
|
|
1110
1110
|
},
|
|
1111
1111
|
getSysTable() {
|
|
1112
1112
|
let t = this.field.fkentityname ? this.field.fkentityname.split(",") : [];
|
|
1113
|
-
return this.tableLists.filter((
|
|
1113
|
+
return this.tableLists.filter((a) => t.includes(a.tablename));
|
|
1114
1114
|
},
|
|
1115
1115
|
getSysDictionary() {
|
|
1116
|
-
return this.$options.filters.dictDataAll().filter((
|
|
1116
|
+
return this.$options.filters.dictDataAll().filter((a) => a.code === this.field.dicttypecode);
|
|
1117
1117
|
},
|
|
1118
1118
|
...f(["language", "tableLists"])
|
|
1119
1119
|
},
|
|
@@ -1146,7 +1146,7 @@ const re = [
|
|
|
1146
1146
|
this.record.fieldValue = [e];
|
|
1147
1147
|
},
|
|
1148
1148
|
changeField(t) {
|
|
1149
|
-
let e = this.fieldData.filter((n) => n.columnname === t)[0],
|
|
1149
|
+
let e = this.fieldData.filter((n) => n.columnname === t)[0], a = this.getFieldType(e), s = y(), i = {
|
|
1150
1150
|
columncomment: e.columncomment,
|
|
1151
1151
|
columnname: e.columnname,
|
|
1152
1152
|
fkentityname: e.fkentityname,
|
|
@@ -1154,20 +1154,20 @@ const re = [
|
|
|
1154
1154
|
transkey: e.transkey,
|
|
1155
1155
|
effecttype: e.effecttype
|
|
1156
1156
|
}, l = {
|
|
1157
|
-
fieldtype:
|
|
1157
|
+
fieldtype: a.code,
|
|
1158
1158
|
fieldname: t,
|
|
1159
1159
|
title: e.columncomment,
|
|
1160
1160
|
transkey: e.transkey,
|
|
1161
1161
|
fieldvalue: [],
|
|
1162
|
-
id:
|
|
1162
|
+
id: s,
|
|
1163
1163
|
tablevalue: this.getSysTable[0].tablename,
|
|
1164
1164
|
uiconfig: JSON.stringify(i),
|
|
1165
1165
|
language: null
|
|
1166
1166
|
};
|
|
1167
|
-
if (
|
|
1167
|
+
if (a.code != 1) {
|
|
1168
1168
|
let n = {
|
|
1169
1169
|
id: "",
|
|
1170
|
-
pid:
|
|
1170
|
+
pid: s,
|
|
1171
1171
|
title: "",
|
|
1172
1172
|
tablevalue: null,
|
|
1173
1173
|
fieldname: null,
|
|
@@ -1195,16 +1195,16 @@ const re = [
|
|
|
1195
1195
|
let t = {
|
|
1196
1196
|
codeGenId: this.getSysTable[0].id
|
|
1197
1197
|
}, e = ["about", "participants", "fk", "user"];
|
|
1198
|
-
v(t).then((
|
|
1199
|
-
if (
|
|
1200
|
-
let
|
|
1201
|
-
this.fieldData =
|
|
1198
|
+
v(t).then((a) => {
|
|
1199
|
+
if (a.code === 200) {
|
|
1200
|
+
let s = a.data.filter((i) => !e.includes(i.effecttype));
|
|
1201
|
+
this.fieldData = s;
|
|
1202
1202
|
}
|
|
1203
1203
|
this.fetching = !1;
|
|
1204
1204
|
});
|
|
1205
1205
|
},
|
|
1206
1206
|
getFieldType(t) {
|
|
1207
|
-
return this.getDictionary("Msg_VariableValueType").filter((
|
|
1207
|
+
return this.getDictionary("Msg_VariableValueType").filter((s) => s.remark.split(",").includes(t.effecttype))[0];
|
|
1208
1208
|
},
|
|
1209
1209
|
getDictionary(t) {
|
|
1210
1210
|
return this.$options.filters.dictData(t);
|
|
@@ -1214,39 +1214,39 @@ const re = [
|
|
|
1214
1214
|
this.statu && this.seeField();
|
|
1215
1215
|
}
|
|
1216
1216
|
};
|
|
1217
|
-
var
|
|
1218
|
-
var e = this,
|
|
1219
|
-
return
|
|
1220
|
-
e.$set(e.field, "dicttypecode",
|
|
1221
|
-
}, expression: "field.dicttypecode" } }, e._l(e.getSysDictionary, function(
|
|
1222
|
-
return
|
|
1223
|
-
}), 1)], 1),
|
|
1224
|
-
e.fieldDicName =
|
|
1225
|
-
}, expression: "fieldDicName" } }, e._l(e.dicData, function(
|
|
1226
|
-
return
|
|
1227
|
-
}), 1)], 1),
|
|
1228
|
-
e.languages =
|
|
1229
|
-
}, expression: "languages" } }, [
|
|
1230
|
-
e.$set(e.field, "fkentityname",
|
|
1231
|
-
}, expression: "field.fkentityname" } }, e._l(e.getSysTable, function(
|
|
1232
|
-
return
|
|
1233
|
-
}), 1)], 1),
|
|
1234
|
-
e.fieldName =
|
|
1235
|
-
}, expression: "fieldName" } }, e._l(e.fieldData, function(
|
|
1236
|
-
return
|
|
1237
|
-
}), 1)], 1)]), e.show ?
|
|
1238
|
-
},
|
|
1239
|
-
oe,
|
|
1217
|
+
var ce = function() {
|
|
1218
|
+
var e = this, a = e._self._c;
|
|
1219
|
+
return a("div", [e.record.fieldtype == 2 ? a("div", { staticClass: "msgfield" }, [a("div", { staticClass: "r" }, [a("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: "" }, model: { value: e.field.dicttypecode, callback: function(s) {
|
|
1220
|
+
e.$set(e.field, "dicttypecode", s);
|
|
1221
|
+
}, expression: "field.dicttypecode" } }, e._l(e.getSysDictionary, function(s) {
|
|
1222
|
+
return a("el-option", { key: s.code, attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } }, [a("span", [e._v(e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.name)) + " " + e._s(s.code))])]);
|
|
1223
|
+
}), 1)], 1), a("div", { staticClass: "r" }, [a("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: e.statu }, on: { change: e.selDict }, model: { value: e.fieldDicName, callback: function(s) {
|
|
1224
|
+
e.fieldDicName = s;
|
|
1225
|
+
}, expression: "fieldDicName" } }, e._l(e.dicData, function(s) {
|
|
1226
|
+
return a("el-option", { key: s.code, attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } }, [a("span", [e._v(e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.name)) + " " + e._s(s.code))])]);
|
|
1227
|
+
}), 1)], 1), a("div", { staticClass: "r" }, [a("el-select", { staticStyle: { width: "100%" }, attrs: { disabled: e.statu }, on: { change: e.selDict }, model: { value: e.languages, callback: function(s) {
|
|
1228
|
+
e.languages = s;
|
|
1229
|
+
}, expression: "languages" } }, [a("el-option", { attrs: { label: e.$i18nt("gd.settings.chineseLanguage", "\u7B80\u4F53\u4E2D\u6587"), value: "zh_CN" } }), a("el-option", { attrs: { label: e.$i18nt("gd.settings.englishLanguage", "English (USA)"), value: "en_US" } }), a("el-option", { attrs: { label: e.$i18nt("gd.settings.vietnamLanguage", "Ti\u1EBFng Vi\u1EC7t"), value: "vi_VN" } }), a("el-option", { attrs: { label: e.$i18nt("gd.settings.indonesiaLanguage", "Indonesia"), value: "id_ID" } })], 1)], 1)]) : e._e(), e.record.fieldtype == 3 ? [a("div", { staticClass: "msgfield" }, [a("div", { staticClass: "l" }, [a("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: "" }, model: { value: e.field.fkentityname, callback: function(s) {
|
|
1230
|
+
e.$set(e.field, "fkentityname", s);
|
|
1231
|
+
}, expression: "field.fkentityname" } }, e._l(e.getSysTable, function(s) {
|
|
1232
|
+
return a("el-option", { key: s.tablename, attrs: { value: s.tablename, label: e.$i18nt(`Dynamics.${s.transkey}`, s.busname) } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.busname)) + " " + e._s(s.tablename) + " ")]);
|
|
1233
|
+
}), 1)], 1), a("div", { staticClass: "l" }, [a("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), filterable: "", disabled: e.statu }, on: { focus: e.operateField, change: e.changeField }, model: { value: e.fieldName, callback: function(s) {
|
|
1234
|
+
e.fieldName = s;
|
|
1235
|
+
}, expression: "fieldName" } }, e._l(e.fieldData, function(s) {
|
|
1236
|
+
return a("el-option", { key: s.columnname, attrs: { value: s.columnname, label: e.$i18nt(`Dynamics.${s.transkey}`, s.columncomment) } }, [a("EffectTypeIcon", { attrs: { effectType: s.effecttype } }), a("span", { staticStyle: { "padding-left": "2px" } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.columncomment)) + " (" + e._s(s.columnname) + ") ")])], 1);
|
|
1237
|
+
}), 1)], 1)]), e.show ? a("composeMiddleConnect", { ref: "composeMiddleConnect", attrs: { record: e.record.fieldvalue[0], field: e.getFieldData, statu: e.statu, mode: e.mode } }) : e._e()] : e._e()], 2);
|
|
1238
|
+
}, ue = [], pe = /* @__PURE__ */ p(
|
|
1240
1239
|
de,
|
|
1241
1240
|
ce,
|
|
1241
|
+
ue,
|
|
1242
1242
|
!1,
|
|
1243
1243
|
null,
|
|
1244
1244
|
"9a781ce0",
|
|
1245
1245
|
null,
|
|
1246
1246
|
null
|
|
1247
1247
|
);
|
|
1248
|
-
const
|
|
1249
|
-
const
|
|
1248
|
+
const fe = pe.exports;
|
|
1249
|
+
const me = {
|
|
1250
1250
|
name: "composeAbout",
|
|
1251
1251
|
props: {
|
|
1252
1252
|
record: {
|
|
@@ -1268,7 +1268,7 @@ const fe = {
|
|
|
1268
1268
|
}
|
|
1269
1269
|
},
|
|
1270
1270
|
components: {
|
|
1271
|
-
composeMiddleConnect:
|
|
1271
|
+
composeMiddleConnect: fe,
|
|
1272
1272
|
EffectTypeIcon: w
|
|
1273
1273
|
},
|
|
1274
1274
|
data() {
|
|
@@ -1285,8 +1285,8 @@ const fe = {
|
|
|
1285
1285
|
},
|
|
1286
1286
|
computed: {
|
|
1287
1287
|
getSysTable() {
|
|
1288
|
-
let t = this.fkEntityName.filter((
|
|
1289
|
-
return this.tableLists.filter((
|
|
1288
|
+
let t = this.fkEntityName.filter((a) => this.fieldValue.filter((i) => i.tablevalue === a)[0] === void 0);
|
|
1289
|
+
return this.tableLists.filter((a) => t.includes(a.tablename));
|
|
1290
1290
|
},
|
|
1291
1291
|
show() {
|
|
1292
1292
|
return !(this.fieldValue.length >= this.fkEntityName.length);
|
|
@@ -1297,18 +1297,18 @@ const fe = {
|
|
|
1297
1297
|
operateField(t, e) {
|
|
1298
1298
|
if (this.load.filter((i) => i.ind == e)[0] !== void 0 || this.mode !== "edit")
|
|
1299
1299
|
return;
|
|
1300
|
-
let
|
|
1301
|
-
this.getField(
|
|
1300
|
+
let s = this.tableLists.filter((i) => i.tablename == t.tablevalue)[0];
|
|
1301
|
+
this.getField(s, e);
|
|
1302
1302
|
},
|
|
1303
1303
|
delItem(t) {
|
|
1304
|
-
this.record.fieldvalue = this.record.fieldvalue.filter((e,
|
|
1304
|
+
this.record.fieldvalue = this.record.fieldvalue.filter((e, a) => a !== t), this.fieldValue = this.fieldValue.filter((e, a) => a !== t);
|
|
1305
1305
|
},
|
|
1306
1306
|
getFieldData(t) {
|
|
1307
|
-
let e = this.record.fieldvalue[t].fieldname,
|
|
1308
|
-
return
|
|
1307
|
+
let e = this.record.fieldvalue[t].fieldname, a = this.fieldValue[t].fielddata.filter((s) => s.columnname === e)[0];
|
|
1308
|
+
return a === void 0 ? {} : a;
|
|
1309
1309
|
},
|
|
1310
1310
|
selectTable(t) {
|
|
1311
|
-
let e = this.tableLists.filter((
|
|
1311
|
+
let e = this.tableLists.filter((s) => s.tablename == t)[0], a = {
|
|
1312
1312
|
id: y(),
|
|
1313
1313
|
pid: this.record.id,
|
|
1314
1314
|
title: "",
|
|
@@ -1324,33 +1324,33 @@ const fe = {
|
|
|
1324
1324
|
this.fieldValue = this.fieldValue.concat([
|
|
1325
1325
|
Object.assign(
|
|
1326
1326
|
{
|
|
1327
|
-
...
|
|
1327
|
+
...a
|
|
1328
1328
|
},
|
|
1329
1329
|
{
|
|
1330
1330
|
fielddata: []
|
|
1331
1331
|
}
|
|
1332
1332
|
)
|
|
1333
|
-
]), this.record.fieldvalue = this.record.fieldvalue.concat([
|
|
1333
|
+
]), this.record.fieldvalue = this.record.fieldvalue.concat([a]), this.getField(e, this.fieldValue.length - 1), this.selShow = !0, this.tableName = "";
|
|
1334
1334
|
},
|
|
1335
1335
|
changeField(t, e) {
|
|
1336
|
-
let
|
|
1337
|
-
columncomment:
|
|
1338
|
-
columnname:
|
|
1339
|
-
fkentityname:
|
|
1340
|
-
dicttypecode:
|
|
1341
|
-
transkey:
|
|
1342
|
-
effecttype:
|
|
1336
|
+
let a = this.fieldValue[e].fielddata.filter((o) => o.columnname === t)[0], s = this.getFieldType(a), i = this.record.fieldvalue[e], l = y(), n = {
|
|
1337
|
+
columncomment: a.columncomment,
|
|
1338
|
+
columnname: a.columnname,
|
|
1339
|
+
fkentityname: a.fkentityname,
|
|
1340
|
+
dicttypecode: a.dicttypecode,
|
|
1341
|
+
transkey: a.transkey,
|
|
1342
|
+
effecttype: a.effecttype
|
|
1343
1343
|
}, r = {
|
|
1344
|
-
fieldtype:
|
|
1344
|
+
fieldtype: s.code,
|
|
1345
1345
|
fieldname: t,
|
|
1346
|
-
title:
|
|
1347
|
-
transkey:
|
|
1346
|
+
title: a.columncomment,
|
|
1347
|
+
transkey: a.transkey,
|
|
1348
1348
|
fieldvalue: [],
|
|
1349
1349
|
id: l,
|
|
1350
1350
|
uiconfig: JSON.stringify(n),
|
|
1351
1351
|
language: null
|
|
1352
1352
|
};
|
|
1353
|
-
if (
|
|
1353
|
+
if (s.code != 1) {
|
|
1354
1354
|
let o = {
|
|
1355
1355
|
id: "",
|
|
1356
1356
|
pid: l,
|
|
@@ -1377,14 +1377,14 @@ const fe = {
|
|
|
1377
1377
|
});
|
|
1378
1378
|
},
|
|
1379
1379
|
getField(t, e) {
|
|
1380
|
-
let
|
|
1381
|
-
this.load =
|
|
1380
|
+
let a = this.load.filter((i) => i.ind != e);
|
|
1381
|
+
this.load = a.concat({
|
|
1382
1382
|
ind: e
|
|
1383
1383
|
}), this.fetchings = !0, this.mode === "add" && (this.fieldValue[e].fielddata = []);
|
|
1384
|
-
let
|
|
1384
|
+
let s = {
|
|
1385
1385
|
codeGenId: t.id
|
|
1386
1386
|
};
|
|
1387
|
-
v(
|
|
1387
|
+
v(s).then((i) => {
|
|
1388
1388
|
if (i.code === 200) {
|
|
1389
1389
|
let l = i.data.filter((n) => !(n.effecttype === "about" || n.effecttype === "participants"));
|
|
1390
1390
|
this.fieldValue[e].fielddata = l;
|
|
@@ -1393,7 +1393,7 @@ const fe = {
|
|
|
1393
1393
|
});
|
|
1394
1394
|
},
|
|
1395
1395
|
getFieldType(t) {
|
|
1396
|
-
return this.getDictionary("Msg_VariableValueType").filter((
|
|
1396
|
+
return this.getDictionary("Msg_VariableValueType").filter((s) => s.remark.split(",").includes(t.effecttype))[0];
|
|
1397
1397
|
},
|
|
1398
1398
|
mouseover() {
|
|
1399
1399
|
this.selShow = !1;
|
|
@@ -1407,14 +1407,14 @@ const fe = {
|
|
|
1407
1407
|
let t = JSON.parse(this.record.uiconfig);
|
|
1408
1408
|
this.fkEntityName = t.fkentityname.split(",");
|
|
1409
1409
|
let e = [];
|
|
1410
|
-
this.record.fieldvalue.forEach((
|
|
1410
|
+
this.record.fieldvalue.forEach((a) => {
|
|
1411
1411
|
e.push(
|
|
1412
1412
|
Object.assign(
|
|
1413
1413
|
{
|
|
1414
|
-
...
|
|
1414
|
+
...a
|
|
1415
1415
|
},
|
|
1416
1416
|
{
|
|
1417
|
-
fielddata: [JSON.parse(
|
|
1417
|
+
fielddata: [JSON.parse(a.uiconfig)]
|
|
1418
1418
|
}
|
|
1419
1419
|
)
|
|
1420
1420
|
);
|
|
@@ -1428,41 +1428,41 @@ const fe = {
|
|
|
1428
1428
|
this.statu ? this.seeField() : (this.showRecord = !0, this.init());
|
|
1429
1429
|
}
|
|
1430
1430
|
};
|
|
1431
|
-
var
|
|
1432
|
-
var e = this,
|
|
1433
|
-
return e.showRecord ?
|
|
1434
|
-
return
|
|
1435
|
-
e.$set(
|
|
1431
|
+
var he = function() {
|
|
1432
|
+
var e = this, a = e._self._c;
|
|
1433
|
+
return e.showRecord ? a("div", [e._l(e.record.fieldvalue, function(s, i) {
|
|
1434
|
+
return a("div", { key: i }, [a("div", { staticClass: "msgfield" }, [a("div", { staticClass: "l" }, [a("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: "" }, model: { value: s.tablevalue, callback: function(l) {
|
|
1435
|
+
e.$set(s, "tablevalue", l);
|
|
1436
1436
|
}, expression: "item.tablevalue" } }, e._l(e.tableLists, function(l) {
|
|
1437
|
-
return
|
|
1438
|
-
}), 1)], 1),
|
|
1439
|
-
return e.operateField(
|
|
1437
|
+
return a("el-option", { key: l.tablename, attrs: { value: l.tablename, label: e.$i18nt(`Dynamics.${l.transkey}`, l.busname) } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${l.transkey}`, l.busname)) + " " + e._s(l.tablename) + " ")]);
|
|
1438
|
+
}), 1)], 1), a("div", { staticClass: "l" }, [a("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), filterable: "", disabled: e.statu }, on: { focus: function(l) {
|
|
1439
|
+
return e.operateField(s, i);
|
|
1440
1440
|
}, change: function(l) {
|
|
1441
1441
|
return e.changeField(l, i);
|
|
1442
|
-
} }, model: { value:
|
|
1443
|
-
e.$set(
|
|
1442
|
+
} }, model: { value: s.fieldname, callback: function(l) {
|
|
1443
|
+
e.$set(s, "fieldname", l);
|
|
1444
1444
|
}, expression: "item.fieldname" } }, e._l(e.fieldValue[i].fielddata, function(l) {
|
|
1445
|
-
return
|
|
1446
|
-
}), 1)], 1), e.statu ? e._e() :
|
|
1445
|
+
return a("el-option", { key: l.columnname, attrs: { value: l.columnname, label: l.columncomment } }, [a("EffectTypeIcon", { attrs: { effectType: l.effecttype } }), a("span", { staticStyle: { "padding-left": "2px" } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${l.transkey}`, l.columncomment)) + " (" + e._s(l.columnname) + ") ")])], 1);
|
|
1446
|
+
}), 1)], 1), e.statu ? e._e() : a("div", { staticClass: "del" }, [a("i", { staticClass: "el-icon-delete", staticStyle: { "font-size": "16px", color: "#ff4d4f" }, on: { click: function(l) {
|
|
1447
1447
|
return e.delItem(i);
|
|
1448
|
-
} } })])]),
|
|
1449
|
-
}), e.show && !e.statu ?
|
|
1450
|
-
e.tableName =
|
|
1451
|
-
}, expression: "tableName" } }, e._l(e.getSysTable, function(
|
|
1452
|
-
return
|
|
1448
|
+
} } })])]), s.fieldvalue && s.fieldvalue.length > 0 ? a("div", { staticClass: "msgfieldb" }, [a("span", { staticClass: "gd-icons gd-icon-icon_shangxiaji", staticStyle: { "font-size": "24px" } }), a("div", { staticClass: "r" }, [a("composeMiddleConnect", { ref: `composeMiddle${i}`, refInFor: !0, attrs: { record: s, field: e.getFieldData(i), statu: e.statu, mode: e.mode } })], 1)]) : e._e()]);
|
|
1449
|
+
}), e.show && !e.statu ? a("div", [e.selShow ? a("a", { staticClass: "add", on: { mouseover: e.mouseover } }, [e._v(e._s(e.$i18nt("gd.btn.choice", "\u9009\u62E9")))]) : a("div", { staticClass: "msgfield" }, [a("div", { staticClass: "l" }, [a("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, on: { change: e.selectTable }, model: { value: e.tableName, callback: function(s) {
|
|
1450
|
+
e.tableName = s;
|
|
1451
|
+
}, expression: "tableName" } }, e._l(e.getSysTable, function(s) {
|
|
1452
|
+
return a("el-option", { key: s.tablename, attrs: { value: s.tablename, label: e.$i18nt(`Dynamics.${s.transkey}`, s.busname) } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.busname)) + " " + e._s(s.tablename) + " ")]);
|
|
1453
1453
|
}), 1)], 1)])]) : e._e()], 2) : e._e();
|
|
1454
|
-
},
|
|
1455
|
-
fe,
|
|
1454
|
+
}, ge = [], ye = /* @__PURE__ */ p(
|
|
1456
1455
|
me,
|
|
1457
1456
|
he,
|
|
1457
|
+
ge,
|
|
1458
1458
|
!1,
|
|
1459
1459
|
null,
|
|
1460
1460
|
"b020c40b",
|
|
1461
1461
|
null,
|
|
1462
1462
|
null
|
|
1463
1463
|
);
|
|
1464
|
-
const
|
|
1465
|
-
const
|
|
1464
|
+
const be = ye.exports;
|
|
1465
|
+
const ve = [
|
|
1466
1466
|
{
|
|
1467
1467
|
id: 1,
|
|
1468
1468
|
code: "code",
|
|
@@ -1487,7 +1487,7 @@ const be = [
|
|
|
1487
1487
|
name: "\u5907\u6CE8",
|
|
1488
1488
|
transkey: "gd.msg.temPlate.dicRemark"
|
|
1489
1489
|
}
|
|
1490
|
-
],
|
|
1490
|
+
], we = {
|
|
1491
1491
|
name: "composeMiddle",
|
|
1492
1492
|
props: {
|
|
1493
1493
|
record: {
|
|
@@ -1510,7 +1510,7 @@ const be = [
|
|
|
1510
1510
|
},
|
|
1511
1511
|
data() {
|
|
1512
1512
|
return {
|
|
1513
|
-
dicData:
|
|
1513
|
+
dicData: ve,
|
|
1514
1514
|
fieldData: [],
|
|
1515
1515
|
fetching: !1,
|
|
1516
1516
|
languages: "zh_CN",
|
|
@@ -1520,7 +1520,7 @@ const be = [
|
|
|
1520
1520
|
};
|
|
1521
1521
|
},
|
|
1522
1522
|
components: {
|
|
1523
|
-
composeAbout:
|
|
1523
|
+
composeAbout: be,
|
|
1524
1524
|
EffectTypeIcon: w
|
|
1525
1525
|
},
|
|
1526
1526
|
computed: {
|
|
@@ -1536,10 +1536,10 @@ const be = [
|
|
|
1536
1536
|
},
|
|
1537
1537
|
getSysTable() {
|
|
1538
1538
|
let t = this.field.fkentityname ? this.field.fkentityname.split(",") : [];
|
|
1539
|
-
return this.tableLists.filter((
|
|
1539
|
+
return this.tableLists.filter((a) => t.includes(a.tablename));
|
|
1540
1540
|
},
|
|
1541
1541
|
getSysDictionary() {
|
|
1542
|
-
return this.$options.filters.dictDataAll().filter((
|
|
1542
|
+
return this.$options.filters.dictDataAll().filter((a) => a.code === this.field.dicttypecode);
|
|
1543
1543
|
},
|
|
1544
1544
|
...f(["language", "tableLists"])
|
|
1545
1545
|
},
|
|
@@ -1572,7 +1572,7 @@ const be = [
|
|
|
1572
1572
|
this.record.fieldvalue = [e];
|
|
1573
1573
|
},
|
|
1574
1574
|
changeField(t) {
|
|
1575
|
-
let e = this.fieldData.filter((n) => n.columnname === t)[0],
|
|
1575
|
+
let e = this.fieldData.filter((n) => n.columnname === t)[0], a = this.getFieldType(e), s = y(), i = {
|
|
1576
1576
|
columncomment: e.columncomment,
|
|
1577
1577
|
columnname: e.columnname,
|
|
1578
1578
|
fkentityname: e.fkentityname,
|
|
@@ -1580,20 +1580,20 @@ const be = [
|
|
|
1580
1580
|
transkey: e.transkey,
|
|
1581
1581
|
effecttype: e.effecttype
|
|
1582
1582
|
}, l = {
|
|
1583
|
-
fieldtype:
|
|
1583
|
+
fieldtype: a.code,
|
|
1584
1584
|
fieldname: t,
|
|
1585
1585
|
title: e.columncomment,
|
|
1586
1586
|
transkey: e.transkey,
|
|
1587
1587
|
fieldvalue: [],
|
|
1588
|
-
id:
|
|
1588
|
+
id: s,
|
|
1589
1589
|
tablevalue: this.getSysTable[0].tablename,
|
|
1590
1590
|
uiconfig: JSON.stringify(i),
|
|
1591
1591
|
language: null
|
|
1592
1592
|
};
|
|
1593
|
-
if (
|
|
1593
|
+
if (a.code != 1) {
|
|
1594
1594
|
let n = {
|
|
1595
1595
|
id: "",
|
|
1596
|
-
pid:
|
|
1596
|
+
pid: s,
|
|
1597
1597
|
title: "",
|
|
1598
1598
|
tablevalue: null,
|
|
1599
1599
|
fieldname: null,
|
|
@@ -1621,16 +1621,16 @@ const be = [
|
|
|
1621
1621
|
let e = {
|
|
1622
1622
|
codeGenId: t || this.getSysTable[0].id
|
|
1623
1623
|
};
|
|
1624
|
-
v(e).then((
|
|
1625
|
-
if (
|
|
1626
|
-
let
|
|
1627
|
-
this.fieldData =
|
|
1624
|
+
v(e).then((a) => {
|
|
1625
|
+
if (a.code === 200) {
|
|
1626
|
+
let s = a.data.filter((i) => !(i.effecttype == "about" && i.columnname == (i.relations + "_AboutTable").toLowerCase()));
|
|
1627
|
+
this.fieldData = s;
|
|
1628
1628
|
}
|
|
1629
1629
|
this.fetching = !1;
|
|
1630
1630
|
});
|
|
1631
1631
|
},
|
|
1632
1632
|
getFieldType(t) {
|
|
1633
|
-
return this.getDictionary("Msg_VariableValueType").filter((
|
|
1633
|
+
return this.getDictionary("Msg_VariableValueType").filter((s) => s.remark.split(",").includes(t.effecttype))[0];
|
|
1634
1634
|
},
|
|
1635
1635
|
getDictionary(t) {
|
|
1636
1636
|
return this.$options.filters.dictData(t);
|
|
@@ -1643,39 +1643,39 @@ const be = [
|
|
|
1643
1643
|
this.statu && this.seeField();
|
|
1644
1644
|
}
|
|
1645
1645
|
};
|
|
1646
|
-
var
|
|
1647
|
-
var e = this,
|
|
1648
|
-
return
|
|
1649
|
-
e.$set(e.field, "dicttypecode",
|
|
1650
|
-
}, expression: "field.dicttypecode" } }, e._l(e.getSysDictionary, function(
|
|
1651
|
-
return
|
|
1652
|
-
}), 1)], 1),
|
|
1653
|
-
e.fieldDicName =
|
|
1654
|
-
}, expression: "fieldDicName" } }, e._l(e.dicData, function(
|
|
1655
|
-
return
|
|
1656
|
-
}), 1)], 1),
|
|
1657
|
-
e.languages =
|
|
1658
|
-
}, expression: "languages" } }, [
|
|
1659
|
-
e.$set(e.field, "fkentityname",
|
|
1660
|
-
}, expression: "field.fkentityname" } }, e._l(e.getSysTable, function(
|
|
1661
|
-
return
|
|
1662
|
-
}), 1)], 1),
|
|
1663
|
-
e.fieldName =
|
|
1664
|
-
}, expression: "fieldName" } }, e._l(e.fieldData, function(
|
|
1665
|
-
return
|
|
1666
|
-
}), 1)], 1)]),
|
|
1667
|
-
},
|
|
1668
|
-
ve,
|
|
1646
|
+
var _e = function() {
|
|
1647
|
+
var e = this, a = e._self._c;
|
|
1648
|
+
return a("div", [e.record.fieldtype == 2 ? a("div", { staticClass: "msgfield" }, [a("div", { staticClass: "r" }, [a("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: "" }, model: { value: e.field.dicttypecode, callback: function(s) {
|
|
1649
|
+
e.$set(e.field, "dicttypecode", s);
|
|
1650
|
+
}, expression: "field.dicttypecode" } }, e._l(e.getSysDictionary, function(s) {
|
|
1651
|
+
return a("el-option", { key: s.code, attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } });
|
|
1652
|
+
}), 1)], 1), a("div", { staticClass: "r" }, [a("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: e.statu }, on: { change: e.selDict }, model: { value: e.fieldDicName, callback: function(s) {
|
|
1653
|
+
e.fieldDicName = s;
|
|
1654
|
+
}, expression: "fieldDicName" } }, e._l(e.dicData, function(s) {
|
|
1655
|
+
return a("el-option", { key: s.code, attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } });
|
|
1656
|
+
}), 1)], 1), a("div", { staticClass: "r" }, [a("el-select", { staticStyle: { width: "100%" }, attrs: { disabled: e.statu }, on: { change: e.selDict }, model: { value: e.languages, callback: function(s) {
|
|
1657
|
+
e.languages = s;
|
|
1658
|
+
}, expression: "languages" } }, [a("el-option", { attrs: { label: e.$i18nt("gd.settings.chineseLanguage", "\u7B80\u4F53\u4E2D\u6587"), value: "zh_CN" } }), a("el-option", { attrs: { label: e.$i18nt("gd.settings.englishLanguage", "English (USA)"), value: "en_US" } }), a("el-option", { attrs: { label: e.$i18nt("gd.settings.vietnamLanguage", "Ti\u1EBFng Vi\u1EC7t"), value: "vi_VN" } }), a("el-option", { attrs: { label: e.$i18nt("gd.settings.indonesiaLanguage", "Indonesia"), value: "id_ID" } })], 1)], 1)]) : e._e(), e.record.fieldtype == 3 ? [a("div", { staticClass: "msgfield" }, [a("div", { staticClass: "l" }, [a("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: "" }, model: { value: e.field.fkentityname, callback: function(s) {
|
|
1659
|
+
e.$set(e.field, "fkentityname", s);
|
|
1660
|
+
}, expression: "field.fkentityname" } }, e._l(e.getSysTable, function(s) {
|
|
1661
|
+
return a("el-option", { key: s.tablename, attrs: { value: s.tablename, label: e.$i18nt(`Dynamics.${s.transkey}`, s.busname) } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.busname)) + " " + e._s(s.tablename) + " ")]);
|
|
1662
|
+
}), 1)], 1), a("div", { staticClass: "l" }, [a("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), filterable: "", disabled: e.statu }, on: { focus: e.operateField, change: e.changeField }, model: { value: e.fieldName, callback: function(s) {
|
|
1663
|
+
e.fieldName = s;
|
|
1664
|
+
}, expression: "fieldName" } }, e._l(e.fieldData, function(s) {
|
|
1665
|
+
return a("el-option", { key: s.columnname, attrs: { value: s.columnname, label: e.$i18nt(`Dynamics.${s.transkey}`, s.columncomment) } }, [a("EffectTypeIcon", { attrs: { effectType: s.effecttype } }), a("span", { staticStyle: { "padding-left": "2px" } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.columncomment)) + " (" + e._s(s.columnname) + ") ")])], 1);
|
|
1666
|
+
}), 1)], 1)]), a("div", { staticStyle: { "padding-left": "12px" } }, [e.show ? a("composeMiddle", { ref: "composeMiddle", attrs: { record: e.record.fieldvalue[0], field: e.getFieldData, statu: e.statu, mode: e.mode } }) : e._e()], 1)] : e._e(), e.record.fieldtype == 4 || e.record.fieldtype == 5 ? a("composeAbout", { attrs: { record: e.record, field: e.field, statu: e.statu, mode: e.mode } }) : e._e()], 2);
|
|
1667
|
+
}, $e = [], ke = /* @__PURE__ */ p(
|
|
1669
1668
|
we,
|
|
1670
1669
|
_e,
|
|
1670
|
+
$e,
|
|
1671
1671
|
!1,
|
|
1672
1672
|
null,
|
|
1673
1673
|
"94c5bf09",
|
|
1674
1674
|
null,
|
|
1675
1675
|
null
|
|
1676
1676
|
);
|
|
1677
|
-
const
|
|
1678
|
-
const
|
|
1677
|
+
const Te = ke.exports;
|
|
1678
|
+
const De = {
|
|
1679
1679
|
props: {
|
|
1680
1680
|
statu: {
|
|
1681
1681
|
type: Boolean,
|
|
@@ -1711,7 +1711,7 @@ const Te = {
|
|
|
1711
1711
|
};
|
|
1712
1712
|
},
|
|
1713
1713
|
components: {
|
|
1714
|
-
composeMiddle:
|
|
1714
|
+
composeMiddle: Te,
|
|
1715
1715
|
EffectTypeIcon: w
|
|
1716
1716
|
},
|
|
1717
1717
|
computed: {
|
|
@@ -1734,7 +1734,7 @@ const Te = {
|
|
|
1734
1734
|
this.load || this.mode === "edit" && this.getField();
|
|
1735
1735
|
},
|
|
1736
1736
|
changeField(t) {
|
|
1737
|
-
let e = this.fieldData.filter((n) => n.columnname === t)[0],
|
|
1737
|
+
let e = this.fieldData.filter((n) => n.columnname === t)[0], a = this.getFieldType(e), s = this.fieldValue[0], i = {
|
|
1738
1738
|
columncomment: e.columncomment,
|
|
1739
1739
|
columnname: e.columnname,
|
|
1740
1740
|
fkentityname: e.fkentityname,
|
|
@@ -1742,7 +1742,7 @@ const Te = {
|
|
|
1742
1742
|
transkey: e.transkey,
|
|
1743
1743
|
effecttype: e.effecttype
|
|
1744
1744
|
}, l = {
|
|
1745
|
-
fieldtype:
|
|
1745
|
+
fieldtype: a.code,
|
|
1746
1746
|
fieldname: t,
|
|
1747
1747
|
title: e.columncomment,
|
|
1748
1748
|
transkey: e.transkey,
|
|
@@ -1750,16 +1750,16 @@ const Te = {
|
|
|
1750
1750
|
uiconfig: JSON.stringify(i),
|
|
1751
1751
|
language: null
|
|
1752
1752
|
};
|
|
1753
|
-
if (
|
|
1753
|
+
if (a.code != 1) {
|
|
1754
1754
|
let n = {
|
|
1755
1755
|
id: "",
|
|
1756
|
-
pid:
|
|
1756
|
+
pid: s.id,
|
|
1757
1757
|
title: "",
|
|
1758
1758
|
tablevalue: null,
|
|
1759
1759
|
fieldname: null,
|
|
1760
1760
|
fieldtype: "1",
|
|
1761
1761
|
varnumber: 1e4,
|
|
1762
|
-
vartype:
|
|
1762
|
+
vartype: s.vartype,
|
|
1763
1763
|
sysvalue: "",
|
|
1764
1764
|
transkey: null,
|
|
1765
1765
|
fieldvalue: [],
|
|
@@ -1777,18 +1777,18 @@ const Te = {
|
|
|
1777
1777
|
},
|
|
1778
1778
|
getField(t) {
|
|
1779
1779
|
this.load = !0, this.fieldData = [];
|
|
1780
|
-
let e = this.tableLists.filter((
|
|
1780
|
+
let e = this.tableLists.filter((s) => s.tablename == this.fieldValue[0].tablevalue)[0], a = {
|
|
1781
1781
|
codeGenId: t || e.id
|
|
1782
1782
|
};
|
|
1783
|
-
v(
|
|
1784
|
-
if (
|
|
1785
|
-
let i =
|
|
1783
|
+
v(a).then((s) => {
|
|
1784
|
+
if (s.code === 200) {
|
|
1785
|
+
let i = s.data.filter((l) => !(l.effecttype == "about" && l.columnname == (l.relations + "_AboutTable").toLowerCase()));
|
|
1786
1786
|
this.fieldData = i;
|
|
1787
1787
|
}
|
|
1788
1788
|
});
|
|
1789
1789
|
},
|
|
1790
1790
|
changeTable(t) {
|
|
1791
|
-
let e = this.tableLists.filter((
|
|
1791
|
+
let e = this.tableLists.filter((s) => s.tablename == t)[0], a = {
|
|
1792
1792
|
id: y(),
|
|
1793
1793
|
pid: 0,
|
|
1794
1794
|
title: "",
|
|
@@ -1801,17 +1801,17 @@ const Te = {
|
|
|
1801
1801
|
transkey: null,
|
|
1802
1802
|
fieldvalue: []
|
|
1803
1803
|
};
|
|
1804
|
-
this.fieldValue = [
|
|
1804
|
+
this.fieldValue = [a], this.field = "", this.getField();
|
|
1805
1805
|
},
|
|
1806
1806
|
searchTable(t) {
|
|
1807
|
-
return this.fetching = !0, this.tableListData = [],
|
|
1807
|
+
return this.fetching = !0, this.tableListData = [], A({
|
|
1808
1808
|
busName: t
|
|
1809
1809
|
}).then((e) => {
|
|
1810
1810
|
this.fetching = !1, this.tableListData = e.data;
|
|
1811
1811
|
});
|
|
1812
1812
|
},
|
|
1813
1813
|
selectSys(t) {
|
|
1814
|
-
let e = this.getDictionary("msg_type_sys").filter((
|
|
1814
|
+
let e = this.getDictionary("msg_type_sys").filter((s) => s.code == t)[0], a = {
|
|
1815
1815
|
id: y(),
|
|
1816
1816
|
pid: 0,
|
|
1817
1817
|
title: e.name,
|
|
@@ -1825,20 +1825,20 @@ const Te = {
|
|
|
1825
1825
|
fieldvalue: [],
|
|
1826
1826
|
uiconfig: ""
|
|
1827
1827
|
};
|
|
1828
|
-
this.fieldValue = [
|
|
1829
|
-
|
|
1828
|
+
this.fieldValue = [a], this.fieldValue[0].sysvalue == 5 ? (this.fieldValue[0].cachekey = "", this.cachekey = "") : this.fieldValue[0].sysvalue == 4 && (this.fieldValue[0].cachekey = "", this.cachekey = "", this.fieldValue[0].sysconfigid = "", this.sysconfigid = "", C({ pageNo: 1, pageSize: 100 }).then((s) => {
|
|
1829
|
+
s.code === 200 && (this.sysConfigDate = s.data.rows);
|
|
1830
1830
|
}));
|
|
1831
1831
|
},
|
|
1832
1832
|
addField(t) {
|
|
1833
1833
|
this.fieldData = [], this.fieldValue = [], this.varType = "1", this.sysValue = "", this.tableValue = "", this.field = "", this.ind = t, this.tableListData = [...this.tableLists];
|
|
1834
1834
|
},
|
|
1835
1835
|
seeField() {
|
|
1836
|
-
this.load = !1, this.varType = String(this.record.vartype), this.sysValue = this.record.sysvalue ? this.record.sysvalue : "", this.tableValue = this.record.tablevalue ? this.record.tablevalue : "", this.field = this.record.fieldname, this.fieldValue = [this.record], this.tableListData = [...this.tableLists], this.fieldData = this.record.uiconfig ? [JSON.parse(this.record.uiconfig)] : [], this.fieldValue[0].sysvalue == 5 ? this.cachekey = this.fieldValue[0].cachekey ? this.fieldValue[0].cachekey : "" : this.fieldValue[0].sysvalue == 4 && (this.sysconfigid = this.fieldValue[0].sysconfigid ? this.fieldValue[0].sysconfigid : "",
|
|
1836
|
+
this.load = !1, this.varType = String(this.record.vartype), this.sysValue = this.record.sysvalue ? this.record.sysvalue : "", this.tableValue = this.record.tablevalue ? this.record.tablevalue : "", this.field = this.record.fieldname, this.fieldValue = [this.record], this.tableListData = [...this.tableLists], this.fieldData = this.record.uiconfig ? [JSON.parse(this.record.uiconfig)] : [], this.fieldValue[0].sysvalue == 5 ? this.cachekey = this.fieldValue[0].cachekey ? this.fieldValue[0].cachekey : "" : this.fieldValue[0].sysvalue == 4 && (this.sysconfigid = this.fieldValue[0].sysconfigid ? this.fieldValue[0].sysconfigid : "", C({ pageNo: 1, pageSize: 100 }).then((t) => {
|
|
1837
1837
|
t.code === 200 && (this.sysConfigDate = t.data.rows);
|
|
1838
1838
|
}));
|
|
1839
1839
|
},
|
|
1840
1840
|
getFieldType(t) {
|
|
1841
|
-
return this.getDictionary("Msg_VariableValueType").filter((
|
|
1841
|
+
return this.getDictionary("Msg_VariableValueType").filter((s) => s.remark.split(",").includes(t.effecttype))[0];
|
|
1842
1842
|
},
|
|
1843
1843
|
getDictionary(t) {
|
|
1844
1844
|
return this.$options.filters.dictData(t);
|
|
@@ -1854,47 +1854,47 @@ const Te = {
|
|
|
1854
1854
|
this.statu && this.seeField();
|
|
1855
1855
|
}
|
|
1856
1856
|
};
|
|
1857
|
-
var
|
|
1858
|
-
var e = this,
|
|
1859
|
-
return
|
|
1860
|
-
e.varType =
|
|
1861
|
-
}, expression: "varType" } }, [e._l(e.getMsgTemp, function(
|
|
1862
|
-
return [
|
|
1863
|
-
})], 2),
|
|
1864
|
-
e.varType =
|
|
1865
|
-
}, expression: "varType" } }, e._l(e.getDictionary("msg_temp"), function(
|
|
1866
|
-
return
|
|
1867
|
-
}), 1)], 1),
|
|
1868
|
-
e.sysValue =
|
|
1869
|
-
}, expression: "sysValue" } }, e._l(e.getDictionary("msg_type_sys"), function(
|
|
1870
|
-
return
|
|
1871
|
-
}), 1)], 1)])] : e._e(), e.varType == 2 ?
|
|
1872
|
-
e.cachekey =
|
|
1873
|
-
}, expression: "cachekey" } })], 1) : e._e(), e.fieldValue.length > 0 && e.fieldValue[0].sysvalue == 4 ?
|
|
1874
|
-
e.sysconfigid =
|
|
1875
|
-
}, expression: "sysconfigid" } }, e._l(e.sysConfigDate, function(
|
|
1876
|
-
return
|
|
1877
|
-
}), 1)], 1) : e._e()]) : e._e(), e.varType == 1 ? [
|
|
1878
|
-
e.tableValue =
|
|
1879
|
-
}, expression: "tableValue" } }, e._l(e.tableListData, function(
|
|
1880
|
-
return
|
|
1881
|
-
}), 1)], 1),
|
|
1882
|
-
e.field =
|
|
1883
|
-
}, expression: "field" } }, e._l(e.fieldData, function(
|
|
1884
|
-
return
|
|
1885
|
-
}), 1)], 1)])] : e._e(),
|
|
1886
|
-
},
|
|
1887
|
-
Te,
|
|
1857
|
+
var xe = function() {
|
|
1858
|
+
var e = this, a = e._self._c;
|
|
1859
|
+
return a("div", [a("div", { staticClass: "vartype" }, [a("el-radio-group", { attrs: { "button-style": "solid" }, model: { value: e.varType, callback: function(s) {
|
|
1860
|
+
e.varType = s;
|
|
1861
|
+
}, expression: "varType" } }, [e._l(e.getMsgTemp, function(s) {
|
|
1862
|
+
return [a("el-radio-button", { attrs: { label: s.code } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.name)) + " ")])];
|
|
1863
|
+
})], 2), a("div", [e._t("operate")], 2)], 1), e.varType == 2 ? [a("div", { staticClass: "msgfield" }, [a("div", { staticClass: "l" }, [a("el-select", { staticStyle: { width: "100%" }, attrs: { disabled: "", placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, model: { value: e.varType, callback: function(s) {
|
|
1864
|
+
e.varType = s;
|
|
1865
|
+
}, expression: "varType" } }, e._l(e.getDictionary("msg_temp"), function(s, i) {
|
|
1866
|
+
return a("el-option", { key: s.code, attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } });
|
|
1867
|
+
}), 1)], 1), a("div", { staticClass: "l" }, [a("el-select", { staticStyle: { width: "100%" }, attrs: { disabled: e.statu, placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, on: { change: e.selectSys }, model: { value: e.sysValue, callback: function(s) {
|
|
1868
|
+
e.sysValue = s;
|
|
1869
|
+
}, expression: "sysValue" } }, e._l(e.getDictionary("msg_type_sys"), function(s, i) {
|
|
1870
|
+
return a("el-option", { key: i, attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } });
|
|
1871
|
+
}), 1)], 1)])] : e._e(), e.varType == 2 ? a("div", { staticClass: "msgsys" }, [e.fieldValue.length > 0 && e.fieldValue[0].sysvalue == 5 ? a("div", [a("el-input", { staticStyle: { width: "100%" }, attrs: { disabled: e.statu, placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, on: { change: e.handleCacheKeyChange }, model: { value: e.cachekey, callback: function(s) {
|
|
1872
|
+
e.cachekey = s;
|
|
1873
|
+
}, expression: "cachekey" } })], 1) : e._e(), e.fieldValue.length > 0 && e.fieldValue[0].sysvalue == 4 ? a("div", [a("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), disabled: e.statu, filterable: "" }, on: { change: e.selectSysvartype }, model: { value: e.sysconfigid, callback: function(s) {
|
|
1874
|
+
e.sysconfigid = s;
|
|
1875
|
+
}, expression: "sysconfigid" } }, e._l(e.sysConfigDate, function(s) {
|
|
1876
|
+
return a("el-option", { key: s.id, attrs: { value: s.id, label: s.name } }, [a("span", { staticStyle: { "padding-left": "2px" } }, [e._v(" " + e._s(s.name) + " ")])]);
|
|
1877
|
+
}), 1)], 1) : e._e()]) : e._e(), e.varType == 1 ? [a("div", { staticClass: "msgfield" }, [a("div", { staticClass: "l" }, [a("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), "reserve-keyword": "", filterable: "", clearable: "", disabled: e.statu, "remote-method": e.searchTable }, on: { change: e.changeTable }, model: { value: e.tableValue, callback: function(s) {
|
|
1878
|
+
e.tableValue = s;
|
|
1879
|
+
}, expression: "tableValue" } }, e._l(e.tableListData, function(s, i) {
|
|
1880
|
+
return a("el-option", { key: s.tablename, attrs: { value: s.tablename, label: e.$i18nt(`Dynamics.${s.transkey}`, s.busname) } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.busname)) + " " + e._s(s.tablename) + " ")]);
|
|
1881
|
+
}), 1)], 1), a("div", { staticClass: "l" }, [a("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), filterable: "", disabled: e.statu || !e.tableValue }, on: { focus: e.operateField, change: e.changeField }, model: { value: e.field, callback: function(s) {
|
|
1882
|
+
e.field = s;
|
|
1883
|
+
}, expression: "field" } }, e._l(e.fieldData, function(s) {
|
|
1884
|
+
return a("el-option", { key: s.columnname, attrs: { value: s.columnname, label: e.$i18nt(`Dynamics.${s.transkey}`, s.columncomment) } }, [a("EffectTypeIcon", { attrs: { effectType: s.effecttype } }), a("span", { staticStyle: { "padding-left": "2px" } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.columncomment)) + " (" + e._s(s.columnname) + ") ")])], 1);
|
|
1885
|
+
}), 1)], 1)])] : e._e(), a("div", { directives: [{ name: "show", rawName: "v-show", value: e.varType == 1, expression: "varType == 1" }], staticStyle: { "padding-left": "12px" } }, [e.show ? a("composeMiddle", { ref: "composeMiddle", attrs: { record: e.fieldValue[0], field: e.getFieldData, statu: e.statu, mode: e.mode } }) : e._e()], 1)], 2);
|
|
1886
|
+
}, Se = [], Ce = /* @__PURE__ */ p(
|
|
1888
1887
|
De,
|
|
1889
1888
|
xe,
|
|
1889
|
+
Se,
|
|
1890
1890
|
!1,
|
|
1891
1891
|
null,
|
|
1892
1892
|
"96e1ac4a",
|
|
1893
1893
|
null,
|
|
1894
1894
|
null
|
|
1895
1895
|
);
|
|
1896
|
-
const
|
|
1897
|
-
const
|
|
1896
|
+
const O = Ce.exports;
|
|
1897
|
+
const Fe = {
|
|
1898
1898
|
props: {
|
|
1899
1899
|
tempData: {
|
|
1900
1900
|
type: Array,
|
|
@@ -1902,7 +1902,7 @@ const Ce = {
|
|
|
1902
1902
|
}
|
|
1903
1903
|
},
|
|
1904
1904
|
components: {
|
|
1905
|
-
composeField:
|
|
1905
|
+
composeField: O
|
|
1906
1906
|
},
|
|
1907
1907
|
data() {
|
|
1908
1908
|
return {
|
|
@@ -1951,20 +1951,20 @@ const Ce = {
|
|
|
1951
1951
|
}), this.closed();
|
|
1952
1952
|
},
|
|
1953
1953
|
isChecked(t) {
|
|
1954
|
-
return t.every((e,
|
|
1954
|
+
return t.every((e, a, s) => {
|
|
1955
1955
|
let i = e.vartype == 1 ? e.tablevalue : e.sysvalue, l = e.vartype == 1 ? e.fieldname : e.sysvalue;
|
|
1956
1956
|
return !!(i && l);
|
|
1957
1957
|
});
|
|
1958
1958
|
},
|
|
1959
1959
|
isCheckedSys(t) {
|
|
1960
|
-
return t.every((e,
|
|
1960
|
+
return t.every((e, a, s) => {
|
|
1961
1961
|
let i = "";
|
|
1962
1962
|
return e.vartype == 2 && e.sysvalue == 4 && e.sysconfigid !== "" && (i = e.sysconfigid), e.vartype == 2 && e.sysvalue == 5 && e.cachekey !== "" && (i = e.cachekey), !!i;
|
|
1963
1963
|
});
|
|
1964
1964
|
},
|
|
1965
1965
|
traverseData() {
|
|
1966
|
-
let t = [], e = this.$refs.composeField.fieldValue[0],
|
|
1967
|
-
const i = (l) => (l = l.filter((n, r) => (n.fieldvalue && n.fieldvalue.length === 1 &&
|
|
1966
|
+
let t = [], e = this.$refs.composeField.fieldValue[0], a = ["2", "4", "5"], s = !a.includes(e.fieldtype);
|
|
1967
|
+
const i = (l) => (l = l.filter((n, r) => (n.fieldvalue && n.fieldvalue.length === 1 && s && (e = n.fieldtype === "3" ? n.fieldvalue[0] : n), s && (s = !a.includes(n.fieldtype)), t.push(n), n.fieldvalue = i(n.fieldvalue), !0)), l);
|
|
1968
1968
|
return i(this.$refs.composeField.fieldValue), {
|
|
1969
1969
|
list: t,
|
|
1970
1970
|
arr: e
|
|
@@ -1979,23 +1979,23 @@ const Ce = {
|
|
|
1979
1979
|
}
|
|
1980
1980
|
}
|
|
1981
1981
|
};
|
|
1982
|
-
var
|
|
1983
|
-
var e = this,
|
|
1984
|
-
return
|
|
1985
|
-
e.visible =
|
|
1986
|
-
}, closed: e.closed } }, [
|
|
1987
|
-
},
|
|
1988
|
-
Ce,
|
|
1982
|
+
var Le = function() {
|
|
1983
|
+
var e = this, a = e._self._c;
|
|
1984
|
+
return a("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(s) {
|
|
1985
|
+
e.visible = s;
|
|
1986
|
+
}, closed: e.closed } }, [a("gd-modal-title", { attrs: { slot: "title", title: e.title, fullscreen: e.fullscreen, buttons: e.sysViewButtons, confirmLoading: e.confirmLoading, showClose: !0 }, on: { changeEvent: e.doEvent }, slot: "title" }), a("div", { class: e.fullscreen ? "modal-bodyq" : "modal-body" }, [a("composeField", { ref: "composeField" })], 1)], 1);
|
|
1987
|
+
}, Pe = [], Ne = /* @__PURE__ */ p(
|
|
1989
1988
|
Fe,
|
|
1990
1989
|
Le,
|
|
1990
|
+
Pe,
|
|
1991
1991
|
!1,
|
|
1992
1992
|
null,
|
|
1993
1993
|
"1d56a99e",
|
|
1994
1994
|
null,
|
|
1995
1995
|
null
|
|
1996
1996
|
);
|
|
1997
|
-
const
|
|
1998
|
-
const
|
|
1997
|
+
const Oe = Ne.exports;
|
|
1998
|
+
const Ke = {
|
|
1999
1999
|
props: {
|
|
2000
2000
|
item: {
|
|
2001
2001
|
type: Object,
|
|
@@ -2003,7 +2003,7 @@ const Oe = {
|
|
|
2003
2003
|
}
|
|
2004
2004
|
},
|
|
2005
2005
|
components: {
|
|
2006
|
-
composeField:
|
|
2006
|
+
composeField: O
|
|
2007
2007
|
},
|
|
2008
2008
|
data() {
|
|
2009
2009
|
return {
|
|
@@ -2021,21 +2021,21 @@ const Oe = {
|
|
|
2021
2021
|
},
|
|
2022
2022
|
methods: {
|
|
2023
2023
|
edit(t, e) {
|
|
2024
|
-
let
|
|
2025
|
-
this.list =
|
|
2024
|
+
let a = this.list.filter((i) => i.index !== e);
|
|
2025
|
+
this.list = a.concat({
|
|
2026
2026
|
index: e,
|
|
2027
2027
|
data: JSON.stringify(t)
|
|
2028
2028
|
});
|
|
2029
|
-
let
|
|
2030
|
-
|
|
2029
|
+
let s = [...this.item.fieldjsons];
|
|
2030
|
+
s[e].statu = !1, this.item.fieldjsons = [...s];
|
|
2031
2031
|
},
|
|
2032
2032
|
cancel(t, e) {
|
|
2033
|
-
let
|
|
2033
|
+
let a = this.list.filter((l) => l.index === e);
|
|
2034
2034
|
this.list = this.list.filter((l) => l.index !== e);
|
|
2035
|
-
let
|
|
2036
|
-
|
|
2035
|
+
let s = [...this.item.fieldjsons];
|
|
2036
|
+
s[e] = Object.assign(JSON.parse(a[0].data), {
|
|
2037
2037
|
statu: !0
|
|
2038
|
-
}), this.item.fieldjsons = [...
|
|
2038
|
+
}), this.item.fieldjsons = [...s];
|
|
2039
2039
|
let i = `composeField${e}`;
|
|
2040
2040
|
this.$nextTick(() => {
|
|
2041
2041
|
setTimeout(() => {
|
|
@@ -2044,13 +2044,13 @@ const Oe = {
|
|
|
2044
2044
|
});
|
|
2045
2045
|
},
|
|
2046
2046
|
save(t, e) {
|
|
2047
|
-
let
|
|
2047
|
+
let a = `composeField${e}`, s = JSON.stringify(this.$refs[a][0].fieldValue[0]), i = this.traverseData(e), l = this.list.filter((m) => m.index === e)[0], n = JSON.parse(l.data), r = `[${n.varnumber}-${n.title}]`;
|
|
2048
2048
|
if (!this.isChecked(i.list)) {
|
|
2049
2049
|
this.$message.error(this.$i18nt("gd.flow.approval.replenishData", "\u8BF7\u8865\u5145\u6570\u636E"));
|
|
2050
2050
|
return;
|
|
2051
2051
|
}
|
|
2052
2052
|
let o = [...this.item.fieldjsons];
|
|
2053
|
-
o[e] = Object.assign(JSON.parse(
|
|
2053
|
+
o[e] = Object.assign(JSON.parse(s), {
|
|
2054
2054
|
statu: !0,
|
|
2055
2055
|
varnumber: n.varnumber,
|
|
2056
2056
|
title: i.arr.title,
|
|
@@ -2059,22 +2059,22 @@ const Oe = {
|
|
|
2059
2059
|
let c = this.item.content.replace(r, `[${n.varnumber}-${i.arr.title}]`), u = c.replace(/\[/g, "<a class='varkey'>[");
|
|
2060
2060
|
this.item.content = c, this.item.html = u.replace(/\]/g, "]</a>"), this.list = this.list.filter((m) => m.index !== e), this.$nextTick(() => {
|
|
2061
2061
|
setTimeout(() => {
|
|
2062
|
-
this.$refs[
|
|
2062
|
+
this.$refs[a][0].seeField();
|
|
2063
2063
|
}, 10);
|
|
2064
2064
|
});
|
|
2065
2065
|
},
|
|
2066
2066
|
isChecked(t) {
|
|
2067
|
-
return t.every((e,
|
|
2067
|
+
return t.every((e, a, s) => {
|
|
2068
2068
|
let i = e.vartype == 1 ? e.tablevalue : e.sysvalue, l = e.vartype == 1 ? e.fieldname : e.sysvalue;
|
|
2069
2069
|
return !!(i && l);
|
|
2070
2070
|
});
|
|
2071
2071
|
},
|
|
2072
2072
|
traverseData(t) {
|
|
2073
|
-
let e = [],
|
|
2074
|
-
const n = (r) => (r = r.filter((o, c) => (o.fieldvalue && o.fieldvalue.length === 1 && l && (
|
|
2075
|
-
return n(this.$refs[
|
|
2073
|
+
let e = [], a = `composeField${t}`, s = this.$refs[a][0].fieldValue[0], i = ["2", "4", "5"], l = !i.includes(String(s.fieldtype));
|
|
2074
|
+
const n = (r) => (r = r.filter((o, c) => (o.fieldvalue && o.fieldvalue.length === 1 && l && (s = String(o.fieldtype) === "3" ? o.fieldvalue[0] : o), l && (l = !i.includes(String(o.fieldtype))), e.push(o), o.fieldvalue = n(o.fieldvalue), !0)), r);
|
|
2075
|
+
return n(this.$refs[a][0].fieldValue), {
|
|
2076
2076
|
list: e,
|
|
2077
|
-
arr:
|
|
2077
|
+
arr: s
|
|
2078
2078
|
};
|
|
2079
2079
|
},
|
|
2080
2080
|
headerTitle(t) {
|
|
@@ -2083,10 +2083,10 @@ const Oe = {
|
|
|
2083
2083
|
closed(t) {
|
|
2084
2084
|
if (this.item.fieldjsons) {
|
|
2085
2085
|
let e = [...this.item.fieldjsons];
|
|
2086
|
-
e.forEach((
|
|
2087
|
-
if (
|
|
2088
|
-
let i = this.list.filter((l) => l.index ===
|
|
2089
|
-
e[
|
|
2086
|
+
e.forEach((a, s) => {
|
|
2087
|
+
if (a.statu !== void 0 && !a.statu) {
|
|
2088
|
+
let i = this.list.filter((l) => l.index === s)[0];
|
|
2089
|
+
e[s] = Object.assign(JSON.parse(i.data), {
|
|
2090
2090
|
statu: !0
|
|
2091
2091
|
});
|
|
2092
2092
|
}
|
|
@@ -2096,29 +2096,29 @@ const Oe = {
|
|
|
2096
2096
|
}
|
|
2097
2097
|
}
|
|
2098
2098
|
};
|
|
2099
|
-
var
|
|
2100
|
-
var e = this,
|
|
2101
|
-
return
|
|
2102
|
-
return
|
|
2103
|
-
return e.edit(
|
|
2104
|
-
} } }, [e._v(" " + e._s(e.$i18nt("gd.btn.edit", "\u7F16\u8F91")) + " ")]) : e._e(),
|
|
2105
|
-
return e.cancel(
|
|
2106
|
-
} } }, [e._v(" " + e._s(e.$i18nt("gd.btn.cancel", "\u53D6\u6D88")) + " ")]) : e._e(),
|
|
2107
|
-
return e.save(
|
|
2108
|
-
} } }, [e._v(" " + e._s(e.$i18nt("gd.btn.confirm", "\u786E\u5B9A")) + " ")]) : e._e()], 1)], 2) : e._e(),
|
|
2099
|
+
var Ee = function() {
|
|
2100
|
+
var e = this, a = e._self._c;
|
|
2101
|
+
return a("el-drawer", { attrs: { title: e.item.name, size: "560px", visible: e.item.showfield, "close-on-press-escape": !1, "append-to-body": !0, "modal-append-to-body": !1, "custom-class": "gd-drawer" }, on: { close: e.closed } }, [a("el-card", { attrs: { shadow: "hover" } }, [a("el-collapse", { staticStyle: { border: "0" } }, e._l(e.item.fieldjsons, function(s, i) {
|
|
2102
|
+
return a("el-collapse-item", { key: i, staticClass: "showdoc", attrs: { title: `${s.varnumber}-${e.headerTitle(s)}` } }, [e.item.showfield ? a("composeField", { ref: `composeField${i}`, refInFor: !0, attrs: { record: s, statu: s.statu === void 0 ? !0 : s.statu, mode: s.statu === void 0 || s.statu ? "look" : "edit" } }, [a("template", { slot: "operate" }, [s.statu === void 0 || s.statu ? a("el-button", { attrs: { type: "primary", icon: "el-icon-edit", size: "mini" }, on: { click: function(l) {
|
|
2103
|
+
return e.edit(s, i);
|
|
2104
|
+
} } }, [e._v(" " + e._s(e.$i18nt("gd.btn.edit", "\u7F16\u8F91")) + " ")]) : e._e(), s.statu !== void 0 && !s.statu ? a("el-button", { staticStyle: { "margin-right": "10px" }, attrs: { size: "mini", icon: "el-icon-back" }, on: { click: function(l) {
|
|
2105
|
+
return e.cancel(s, i);
|
|
2106
|
+
} } }, [e._v(" " + e._s(e.$i18nt("gd.btn.cancel", "\u53D6\u6D88")) + " ")]) : e._e(), s.statu !== void 0 && !s.statu ? a("el-button", { attrs: { type: "primary", size: "mini", icon: "el-icon-document-checked" }, on: { click: function(l) {
|
|
2107
|
+
return e.save(s, i);
|
|
2108
|
+
} } }, [e._v(" " + e._s(e.$i18nt("gd.btn.confirm", "\u786E\u5B9A")) + " ")]) : e._e()], 1)], 2) : e._e(), a("div", { staticClass: "flex-between" })], 1);
|
|
2109
2109
|
}), 1)], 1)], 1);
|
|
2110
|
-
},
|
|
2111
|
-
Oe,
|
|
2110
|
+
}, je = [], Re = /* @__PURE__ */ p(
|
|
2112
2111
|
Ke,
|
|
2113
2112
|
Ee,
|
|
2113
|
+
je,
|
|
2114
2114
|
!1,
|
|
2115
2115
|
null,
|
|
2116
2116
|
"fad4cb10",
|
|
2117
2117
|
null,
|
|
2118
2118
|
null
|
|
2119
2119
|
);
|
|
2120
|
-
const
|
|
2121
|
-
const
|
|
2120
|
+
const Me = Re.exports;
|
|
2121
|
+
const Ie = {
|
|
2122
2122
|
props: {
|
|
2123
2123
|
record: {
|
|
2124
2124
|
type: Object,
|
|
@@ -2166,7 +2166,7 @@ const Me = {
|
|
|
2166
2166
|
},
|
|
2167
2167
|
methods: {
|
|
2168
2168
|
getField(t, e) {
|
|
2169
|
-
return new Promise((
|
|
2169
|
+
return new Promise((a, s) => {
|
|
2170
2170
|
let i = this.splitList.filter((u) => u.selIndex == this.selIndex)[0].fieldvalue, l = document.querySelectorAll(`.${this.ids}>.splicing>.splicing-l>.el-input>.el-input__inner`)[this.selIndex].selectionStart, n = i.slice(0, l), r = i.slice(l), o = "", c = [];
|
|
2171
2171
|
this.splitList.forEach((u) => {
|
|
2172
2172
|
if (u.type === 1)
|
|
@@ -2187,7 +2187,7 @@ const Me = {
|
|
|
2187
2187
|
let m = this.record.fieldjsons.filter((d) => `[${d.varnumber}-${d.title}]` == `[${u.varnumber}-${u.title}]`)[0];
|
|
2188
2188
|
m !== void 0 && c.push(m);
|
|
2189
2189
|
}
|
|
2190
|
-
}),
|
|
2190
|
+
}), a({
|
|
2191
2191
|
fieldinfos: c,
|
|
2192
2192
|
content: o
|
|
2193
2193
|
});
|
|
@@ -2198,14 +2198,14 @@ const Me = {
|
|
|
2198
2198
|
this.$refs[`splicing${e}`][0].blur(), this.$refs[`splicing${e}`][0].focus(), !t && (this.$refs[`splicing${e}`][0].$refs.input.setSelectionRange(0, 0), this.selIndex = e);
|
|
2199
2199
|
},
|
|
2200
2200
|
mergeFocused(t, e) {
|
|
2201
|
-
let
|
|
2202
|
-
this.$refs[
|
|
2201
|
+
let a = `splicing${e - 1}`;
|
|
2202
|
+
this.$refs[a][0].blur(), this.$refs[a][0].focus(), this.$refs[a][0].$refs.input.setSelectionRange(t, t), this.selIndex = this.splitList[e - 1].selIndex;
|
|
2203
2203
|
},
|
|
2204
2204
|
addField(t) {
|
|
2205
|
-
let e = this.splitList.filter((o) => o.selIndex == this.selIndex)[0].fieldvalue,
|
|
2205
|
+
let e = this.splitList.filter((o) => o.selIndex == this.selIndex)[0].fieldvalue, a = document.querySelectorAll(`.${this.ids}>.splicing>.splicing-l>.el-input`)[this.selIndex].selectionStart, s = e.slice(0, a), i = e.slice(a), l = "", n = 1, r = [];
|
|
2206
2206
|
this.splitList.forEach((o) => {
|
|
2207
2207
|
if (o.type === 1)
|
|
2208
|
-
o.selIndex == this.selIndex ? (l +=
|
|
2208
|
+
o.selIndex == this.selIndex ? (l += s, l += `[${varnumber}-${t.title}]`, l += i, r.push(
|
|
2209
2209
|
Object.assign(t, {
|
|
2210
2210
|
varnumber: n
|
|
2211
2211
|
})
|
|
@@ -2239,9 +2239,9 @@ const Me = {
|
|
|
2239
2239
|
wid: "4px",
|
|
2240
2240
|
selIndex: -1,
|
|
2241
2241
|
transkey: null
|
|
2242
|
-
},
|
|
2242
|
+
}, a = 0, s = t.content, i = [];
|
|
2243
2243
|
[...t.fieldjsons].forEach((n, r) => {
|
|
2244
|
-
let o = `[${n.varnumber}-${n.title}]`, c =
|
|
2244
|
+
let o = `[${n.varnumber}-${n.title}]`, c = s.split(o);
|
|
2245
2245
|
c.forEach((u, m) => {
|
|
2246
2246
|
m < c.length - 1 && (i = i.concat([
|
|
2247
2247
|
Object.assign(
|
|
@@ -2251,7 +2251,7 @@ const Me = {
|
|
|
2251
2251
|
{
|
|
2252
2252
|
fieldvalue: `${c[m]}`,
|
|
2253
2253
|
wid: this.styled(c[m]),
|
|
2254
|
-
selIndex:
|
|
2254
|
+
selIndex: a,
|
|
2255
2255
|
type: 1
|
|
2256
2256
|
}
|
|
2257
2257
|
)
|
|
@@ -2267,21 +2267,21 @@ const Me = {
|
|
|
2267
2267
|
varnumber: n.varnumber
|
|
2268
2268
|
}
|
|
2269
2269
|
)
|
|
2270
|
-
]),
|
|
2271
|
-
}),
|
|
2270
|
+
]), a += 1);
|
|
2271
|
+
}), s = c[c.length - 1] ? c[c.length - 1] : "";
|
|
2272
2272
|
}), i = i.concat([
|
|
2273
2273
|
Object.assign(
|
|
2274
2274
|
{
|
|
2275
2275
|
...e
|
|
2276
2276
|
},
|
|
2277
2277
|
{
|
|
2278
|
-
fieldvalue:
|
|
2278
|
+
fieldvalue: s,
|
|
2279
2279
|
wid: "4px",
|
|
2280
|
-
selIndex:
|
|
2280
|
+
selIndex: a,
|
|
2281
2281
|
type: 1
|
|
2282
2282
|
}
|
|
2283
2283
|
)
|
|
2284
|
-
]), this.splitList = [...i], this.selIndex =
|
|
2284
|
+
]), this.splitList = [...i], this.selIndex = a;
|
|
2285
2285
|
},
|
|
2286
2286
|
delItem(t) {
|
|
2287
2287
|
this.$emit("delItem", this.splitList[t]);
|
|
@@ -2289,13 +2289,13 @@ const Me = {
|
|
|
2289
2289
|
selData(t) {
|
|
2290
2290
|
this.selIndex = t.selIndex, this.$emit("selData", t);
|
|
2291
2291
|
},
|
|
2292
|
-
changeInput(t, e,
|
|
2293
|
-
console.log(t, e,
|
|
2294
|
-
let
|
|
2292
|
+
changeInput(t, e, a) {
|
|
2293
|
+
console.log(t, e, a, this.detail);
|
|
2294
|
+
let s = t, i = [];
|
|
2295
2295
|
this.detail.forEach((r) => {
|
|
2296
2296
|
r.fieldjsons.forEach((o) => {
|
|
2297
2297
|
let c = `[${o.varnumber}-${o.title}]`;
|
|
2298
|
-
|
|
2298
|
+
s.split(c).length > 1 && (i.push(
|
|
2299
2299
|
Object.assign(
|
|
2300
2300
|
{
|
|
2301
2301
|
...o
|
|
@@ -2304,68 +2304,68 @@ const Me = {
|
|
|
2304
2304
|
varnumber: 1e4
|
|
2305
2305
|
}
|
|
2306
2306
|
)
|
|
2307
|
-
),
|
|
2307
|
+
), s = s.replace(c, `[10000-${o.title}]`));
|
|
2308
2308
|
});
|
|
2309
2309
|
});
|
|
2310
2310
|
let l = "";
|
|
2311
2311
|
this.splitList.forEach((r, o) => {
|
|
2312
|
-
r.type === 1 ? (l += o == e ?
|
|
2312
|
+
r.type === 1 ? (l += o == e ? s : r.fieldvalue, this.splitList[o].fieldvalue = o == e ? s : r.fieldvalue) : r.type === 2 && (l += `[${r.varnumber}-${r.title}]`);
|
|
2313
2313
|
}), this.record.content = l, this.record.fieldjsons = this.record.fieldjsons.concat(i);
|
|
2314
2314
|
let n = l.replace(/\[/g, "<a class='varkey'>[");
|
|
2315
|
-
this.record.html = n.replace(/\]/g, "]</a>"),
|
|
2315
|
+
this.record.html = n.replace(/\]/g, "]</a>"), a.wid = this.styled(s), i.length > 0 && this.$emit("addFieldJsons", i);
|
|
2316
2316
|
},
|
|
2317
|
-
pressEnter(t, e,
|
|
2318
|
-
let
|
|
2317
|
+
pressEnter(t, e, a) {
|
|
2318
|
+
let s = document.querySelectorAll(`.${this.ids}>.splicing>.splicing-l>.el-input>.el-input__inner`)[a.selIndex].selectionStart, i = a.fieldvalue.slice(0, s), l = a.fieldvalue.slice(s);
|
|
2319
2319
|
this.$emit("add", {
|
|
2320
2320
|
qtitle: i,
|
|
2321
2321
|
hTitle: l,
|
|
2322
2322
|
i: e,
|
|
2323
|
-
item:
|
|
2323
|
+
item: a,
|
|
2324
2324
|
splitList: this.splitList
|
|
2325
2325
|
});
|
|
2326
2326
|
},
|
|
2327
|
-
keydown(t, e,
|
|
2328
|
-
this.ofieldValue =
|
|
2327
|
+
keydown(t, e, a) {
|
|
2328
|
+
this.ofieldValue = a.fieldvalue;
|
|
2329
2329
|
},
|
|
2330
|
-
keyup(t, e,
|
|
2330
|
+
keyup(t, e, a) {
|
|
2331
2331
|
if (e !== 0 && e !== this.splitList.length - 1)
|
|
2332
2332
|
return;
|
|
2333
|
-
let
|
|
2334
|
-
|
|
2333
|
+
let s = document.querySelectorAll(`.${this.ids}>.splicing>.splicing-l>.el-input>.el-input__inner`)[a.selIndex].selectionStart, i = a.fieldvalue.slice(0, s);
|
|
2334
|
+
a.fieldvalue.slice(s), e === 0 && t.keyCode === 8 && i == "" && this.ofieldValue === a.fieldvalue && s === 0 && this.$emit("merge", this.splitList);
|
|
2335
2335
|
}
|
|
2336
2336
|
}
|
|
2337
2337
|
};
|
|
2338
|
-
var
|
|
2339
|
-
var e = this,
|
|
2340
|
-
return
|
|
2341
|
-
return [
|
|
2342
|
-
return e.selData(
|
|
2343
|
-
} } }, [
|
|
2344
|
-
return e.changeInput(l, i,
|
|
2338
|
+
var Be = function() {
|
|
2339
|
+
var e = this, a = e._self._c;
|
|
2340
|
+
return a("div", { class: e.ids, staticStyle: { padding: "1px 0" } }, [a("div", { staticClass: "splicing pa" }, [e._l(e.splitList, function(s, i) {
|
|
2341
|
+
return [s.type == 1 ? a("div", { staticClass: "splicing-l pa", on: { click: function(l) {
|
|
2342
|
+
return e.selData(s);
|
|
2343
|
+
} } }, [a("div", { staticClass: "splicing-zhan line1" }, [e._v(e._s(s.fieldvalue))]), a("el-input", { ref: `splicing${i}`, refInFor: !0, on: { change: function(l) {
|
|
2344
|
+
return e.changeInput(l, i, s);
|
|
2345
2345
|
} }, nativeOn: { keyup: [function(l) {
|
|
2346
|
-
return !l.type.indexOf("key") && e._k(l.keyCode, "enter", 13, l.key, "Enter") ? null : e.pressEnter(l, i,
|
|
2346
|
+
return !l.type.indexOf("key") && e._k(l.keyCode, "enter", 13, l.key, "Enter") ? null : e.pressEnter(l, i, s);
|
|
2347
2347
|
}, function(l) {
|
|
2348
|
-
return e.keyup(l, i,
|
|
2348
|
+
return e.keyup(l, i, s);
|
|
2349
2349
|
}], keydown: function(l) {
|
|
2350
|
-
return e.keydown(l, i,
|
|
2351
|
-
} }, model: { value:
|
|
2352
|
-
e.$set(
|
|
2353
|
-
}, expression: "item.fieldvalue" } })], 1) : e._e(),
|
|
2350
|
+
return e.keydown(l, i, s);
|
|
2351
|
+
} }, model: { value: s.fieldvalue, callback: function(l) {
|
|
2352
|
+
e.$set(s, "fieldvalue", l);
|
|
2353
|
+
}, expression: "item.fieldvalue" } })], 1) : e._e(), s.type == 2 ? [a("div", { staticClass: "splicing-l pa" }, [a("div", { staticClass: "splicing-d" }, [a("span", { staticClass: "splicing-tilte" }, [e._v("[" + e._s(s.varnumber) + "-" + e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.title)) + "]")]), a("i", { staticClass: "el-icon-close close", on: { click: function(l) {
|
|
2354
2354
|
return e.delItem(i);
|
|
2355
2355
|
} } })])])] : e._e()];
|
|
2356
2356
|
})], 2)]);
|
|
2357
|
-
},
|
|
2358
|
-
Me,
|
|
2357
|
+
}, Ae = [], qe = /* @__PURE__ */ p(
|
|
2359
2358
|
Ie,
|
|
2360
2359
|
Be,
|
|
2360
|
+
Ae,
|
|
2361
2361
|
!1,
|
|
2362
2362
|
null,
|
|
2363
2363
|
"485073dc",
|
|
2364
2364
|
null,
|
|
2365
2365
|
null
|
|
2366
2366
|
);
|
|
2367
|
-
const
|
|
2368
|
-
const
|
|
2367
|
+
const Ve = qe.exports;
|
|
2368
|
+
const ze = {
|
|
2369
2369
|
props: {
|
|
2370
2370
|
record: {
|
|
2371
2371
|
type: Object,
|
|
@@ -2404,21 +2404,21 @@ const Ve = {
|
|
|
2404
2404
|
}
|
|
2405
2405
|
},
|
|
2406
2406
|
components: {
|
|
2407
|
-
fieldConcatenation:
|
|
2407
|
+
fieldConcatenation: Ve
|
|
2408
2408
|
},
|
|
2409
2409
|
methods: {
|
|
2410
2410
|
addFieldJsons(t, e) {
|
|
2411
|
-
let
|
|
2411
|
+
let a = "";
|
|
2412
2412
|
`${t[0].varnumber}${t[0].title}`;
|
|
2413
|
-
let
|
|
2413
|
+
let s = [];
|
|
2414
2414
|
this.splitList.forEach((l, n) => {
|
|
2415
|
-
n !== 0 && (
|
|
2416
|
-
`),
|
|
2415
|
+
n !== 0 && (a += `
|
|
2416
|
+
`), a += l.content, s = s.concat(l.fieldjsons);
|
|
2417
2417
|
});
|
|
2418
2418
|
let i = [];
|
|
2419
|
-
|
|
2419
|
+
s.forEach((l, n) => {
|
|
2420
2420
|
let r = `[${l.varnumber}-${l.title}]`;
|
|
2421
|
-
|
|
2421
|
+
a = a.replace(r, `[${n + 1}-${l.title}]`), i.push(
|
|
2422
2422
|
Object.assign(
|
|
2423
2423
|
{
|
|
2424
2424
|
...l
|
|
@@ -2428,36 +2428,36 @@ const Ve = {
|
|
|
2428
2428
|
}
|
|
2429
2429
|
)
|
|
2430
2430
|
);
|
|
2431
|
-
}), this.record.content =
|
|
2431
|
+
}), this.record.content = a, this.record.fieldjsons = i;
|
|
2432
2432
|
},
|
|
2433
2433
|
addField(t) {
|
|
2434
|
-
let e = JSON.parse(t.data)[0],
|
|
2434
|
+
let e = JSON.parse(t.data)[0], a = t.item;
|
|
2435
2435
|
e = Object.assign(
|
|
2436
2436
|
{
|
|
2437
2437
|
...e
|
|
2438
2438
|
},
|
|
2439
2439
|
{
|
|
2440
2440
|
pid: 0,
|
|
2441
|
-
title:
|
|
2441
|
+
title: a.title
|
|
2442
2442
|
}
|
|
2443
2443
|
);
|
|
2444
2444
|
let i = `dismantle${this.selIndex === -1 ? this.splitList.length - 1 : this.selIndex}`;
|
|
2445
|
-
this.$refs[i][0].getField(
|
|
2445
|
+
this.$refs[i][0].getField(a, e).then((l) => {
|
|
2446
2446
|
this.addFieldCount(t, l);
|
|
2447
2447
|
});
|
|
2448
2448
|
},
|
|
2449
2449
|
addFieldCount(t, e) {
|
|
2450
|
-
let
|
|
2450
|
+
let a = this.selIndex === -1 ? this.splitList.length - 1 : this.selIndex, s = "", i = [];
|
|
2451
2451
|
this.splitList.forEach((r, o) => {
|
|
2452
|
-
o !== 0 && (
|
|
2453
|
-
`), o ==
|
|
2452
|
+
o !== 0 && (s += `
|
|
2453
|
+
`), o == a ? (s += e.content, i = i.concat(e.fieldinfos)) : (s += r.content, i = i.concat(r.fieldjsons));
|
|
2454
2454
|
});
|
|
2455
2455
|
let l = [], n = [];
|
|
2456
2456
|
i.forEach((r, o) => {
|
|
2457
2457
|
n.push({
|
|
2458
2458
|
oval: `[${r.varnumber}-${r.title}-${o + 1}]`,
|
|
2459
2459
|
nval: `[${o + 1}-${r.title}]`
|
|
2460
|
-
}),
|
|
2460
|
+
}), s = s.replace(`[${r.varnumber}-${r.title}]`, `[${r.varnumber}-${r.title}-${o + 1}]`), l.push(
|
|
2461
2461
|
Object.assign(
|
|
2462
2462
|
{
|
|
2463
2463
|
...r
|
|
@@ -2468,31 +2468,31 @@ const Ve = {
|
|
|
2468
2468
|
)
|
|
2469
2469
|
);
|
|
2470
2470
|
}), n.forEach((r) => {
|
|
2471
|
-
|
|
2472
|
-
}), this.record.content =
|
|
2471
|
+
s = s.replace(r.oval, r.nval);
|
|
2472
|
+
}), this.record.content = s, this.record.fieldjsons = [...l];
|
|
2473
2473
|
},
|
|
2474
2474
|
selData(t, e) {
|
|
2475
2475
|
this.selIndex = e;
|
|
2476
2476
|
},
|
|
2477
2477
|
delItem(t, e) {
|
|
2478
|
-
let
|
|
2478
|
+
let a = "", s = `[${t.varnumber}-${t.title}]`, i = [];
|
|
2479
2479
|
this.splitList.forEach((l, n) => {
|
|
2480
|
-
if (n !== 0 && (
|
|
2480
|
+
if (n !== 0 && (a += `
|
|
2481
2481
|
`), n == e) {
|
|
2482
|
-
|
|
2483
|
-
let r = l.fieldjsons.filter((o) => `[${o.varnumber}-${o.title}]` !==
|
|
2482
|
+
a += l.content.replace(s, "");
|
|
2483
|
+
let r = l.fieldjsons.filter((o) => `[${o.varnumber}-${o.title}]` !== s);
|
|
2484
2484
|
i = i.concat(r);
|
|
2485
2485
|
} else
|
|
2486
|
-
|
|
2486
|
+
a += l.content, i = i.concat(l.fieldjsons);
|
|
2487
2487
|
}), i.map((l, n) => {
|
|
2488
2488
|
let r = `[${l.varnumber}-${l.title}]`;
|
|
2489
|
-
return
|
|
2490
|
-
}), this.record.content =
|
|
2489
|
+
return a = a.replace(r, `[${n + 1}-${l.title}]`), l.varnumber = n + 1, l;
|
|
2490
|
+
}), this.record.content = a, this.record.fieldjsons = i;
|
|
2491
2491
|
},
|
|
2492
2492
|
add(t, e) {
|
|
2493
|
-
let
|
|
2493
|
+
let a = [], s = [], i = [], l = [], n = [], r = "", o = "";
|
|
2494
2494
|
t.splitList.forEach((d, h) => {
|
|
2495
|
-
h < t.i ?
|
|
2495
|
+
h < t.i ? s.push(d) : h === t.i ? t.qtitle === "" && t.hTitle !== "" ? (i.push(
|
|
2496
2496
|
Object.assign(
|
|
2497
2497
|
{
|
|
2498
2498
|
...d
|
|
@@ -2510,7 +2510,7 @@ const Ve = {
|
|
|
2510
2510
|
fieldvalue: t.hTitle
|
|
2511
2511
|
}
|
|
2512
2512
|
)
|
|
2513
|
-
)) : t.hTitle === "" ?
|
|
2513
|
+
)) : t.hTitle === "" ? s.push(
|
|
2514
2514
|
Object.assign(
|
|
2515
2515
|
{
|
|
2516
2516
|
...d
|
|
@@ -2519,7 +2519,7 @@ const Ve = {
|
|
|
2519
2519
|
fieldvalue: t.qtitle
|
|
2520
2520
|
}
|
|
2521
2521
|
)
|
|
2522
|
-
) : (
|
|
2522
|
+
) : (s.push(
|
|
2523
2523
|
Object.assign(
|
|
2524
2524
|
{
|
|
2525
2525
|
...d
|
|
@@ -2538,7 +2538,7 @@ const Ve = {
|
|
|
2538
2538
|
}
|
|
2539
2539
|
)
|
|
2540
2540
|
)) : i.push(d);
|
|
2541
|
-
}),
|
|
2541
|
+
}), s.forEach((d) => {
|
|
2542
2542
|
if (d.type === 1)
|
|
2543
2543
|
r += d.fieldvalue;
|
|
2544
2544
|
else if (d.type === 2) {
|
|
@@ -2557,7 +2557,7 @@ const Ve = {
|
|
|
2557
2557
|
});
|
|
2558
2558
|
let c = !0, u = e;
|
|
2559
2559
|
this.splitList.forEach((d, h) => {
|
|
2560
|
-
|
|
2560
|
+
s.length === 0 ? (h === e && a.push(
|
|
2561
2561
|
Object.assign(
|
|
2562
2562
|
{
|
|
2563
2563
|
...d
|
|
@@ -2567,7 +2567,7 @@ const Ve = {
|
|
|
2567
2567
|
fieldjsons: []
|
|
2568
2568
|
}
|
|
2569
2569
|
)
|
|
2570
|
-
),
|
|
2570
|
+
), a.push(d), u = i.filter(($) => $.type == 2 ? !0 : $.type == 1 && $.fieldvalue !== "").length === 0 ? e + 1 : u) : i.length === 0 ? (a.push(d), h === e && a.push(
|
|
2571
2571
|
Object.assign(
|
|
2572
2572
|
{
|
|
2573
2573
|
...d
|
|
@@ -2577,7 +2577,7 @@ const Ve = {
|
|
|
2577
2577
|
fieldjsons: []
|
|
2578
2578
|
}
|
|
2579
2579
|
)
|
|
2580
|
-
), u = e + 1) : h === e ? (
|
|
2580
|
+
), u = e + 1) : h === e ? (a.push(
|
|
2581
2581
|
Object.assign(
|
|
2582
2582
|
{
|
|
2583
2583
|
...d
|
|
@@ -2587,7 +2587,7 @@ const Ve = {
|
|
|
2587
2587
|
fieldjsons: l
|
|
2588
2588
|
}
|
|
2589
2589
|
)
|
|
2590
|
-
),
|
|
2590
|
+
), a.push(
|
|
2591
2591
|
Object.assign(
|
|
2592
2592
|
{
|
|
2593
2593
|
...d
|
|
@@ -2597,8 +2597,8 @@ const Ve = {
|
|
|
2597
2597
|
fieldjsons: n
|
|
2598
2598
|
}
|
|
2599
2599
|
)
|
|
2600
|
-
)) :
|
|
2601
|
-
}), this.splitList = [...
|
|
2600
|
+
)) : a.push(d);
|
|
2601
|
+
}), this.splitList = [...a];
|
|
2602
2602
|
let m = `dismantle${u}`;
|
|
2603
2603
|
this.$nextTick(() => {
|
|
2604
2604
|
setTimeout(() => {
|
|
@@ -2609,14 +2609,14 @@ const Ve = {
|
|
|
2609
2609
|
merge(t, e) {
|
|
2610
2610
|
if (e === 0)
|
|
2611
2611
|
return;
|
|
2612
|
-
let
|
|
2612
|
+
let a = [], s = "";
|
|
2613
2613
|
t.forEach((r) => {
|
|
2614
|
-
r.type === 1 ?
|
|
2614
|
+
r.type === 1 ? s += r.fieldvalue : r.type === 2 && (s += `[${r.varnumber}-${r.title}]`);
|
|
2615
2615
|
}), this.splitList.forEach((r, o) => {
|
|
2616
|
-
o !== e ?
|
|
2616
|
+
o !== e ? a.push(r) : (a[a.length - 1].fieldjsons = a[a.length - 1].fieldjsons.concat(r.fieldjsons), a[a.length - 1].content = a[a.length - 1].content + s);
|
|
2617
2617
|
});
|
|
2618
2618
|
let i = `dismantle${e - 1}`, l = this.$refs[i][0].splitList.length, n = this.$refs[i][0].splitList[l - 1].fieldvalue.split("").length;
|
|
2619
|
-
this.splitList = [...
|
|
2619
|
+
this.splitList = [...a], this.$nextTick(() => {
|
|
2620
2620
|
setTimeout(() => {
|
|
2621
2621
|
this.$refs[i][0].mergeFocused(n, l), this.selData(null, e - 1);
|
|
2622
2622
|
}, 30);
|
|
@@ -2626,15 +2626,15 @@ const Ve = {
|
|
|
2626
2626
|
let e = [];
|
|
2627
2627
|
this.record.content.replace(/\\n/g, `
|
|
2628
2628
|
`).split(`
|
|
2629
|
-
`).forEach((
|
|
2629
|
+
`).forEach((s) => {
|
|
2630
2630
|
e.push(
|
|
2631
2631
|
Object.assign(
|
|
2632
2632
|
{
|
|
2633
2633
|
...this.record
|
|
2634
2634
|
},
|
|
2635
2635
|
{
|
|
2636
|
-
content:
|
|
2637
|
-
fieldjsons: this.getFieldInfos(
|
|
2636
|
+
content: s,
|
|
2637
|
+
fieldjsons: this.getFieldInfos(s)
|
|
2638
2638
|
}
|
|
2639
2639
|
)
|
|
2640
2640
|
);
|
|
@@ -2642,30 +2642,30 @@ const Ve = {
|
|
|
2642
2642
|
},
|
|
2643
2643
|
getFieldInfos(t) {
|
|
2644
2644
|
let e = [];
|
|
2645
|
-
return (this.record.fieldjsons ? this.record.fieldjsons : []).forEach((
|
|
2646
|
-
let i = `[${
|
|
2647
|
-
t.split(i).length > 1 && e.push(
|
|
2645
|
+
return (this.record.fieldjsons ? this.record.fieldjsons : []).forEach((s) => {
|
|
2646
|
+
let i = `[${s.varnumber}-${s.title}]`;
|
|
2647
|
+
t.split(i).length > 1 && e.push(s);
|
|
2648
2648
|
}), e;
|
|
2649
2649
|
}
|
|
2650
2650
|
}
|
|
2651
2651
|
};
|
|
2652
|
-
var
|
|
2653
|
-
var e = this,
|
|
2654
|
-
return
|
|
2655
|
-
return [
|
|
2652
|
+
var We = function() {
|
|
2653
|
+
var e = this, a = e._self._c;
|
|
2654
|
+
return a("div", { staticClass: "dismantle pa", style: e.style }, [e._l(e.splitList, function(s, i) {
|
|
2655
|
+
return [a("fieldConcatenation", { ref: `dismantle${i}`, refInFor: !0, attrs: { record: s, ind: `${e.ind}_${i}`, detail: e.splitList }, on: { merge: (l) => e.merge(l, i, s), add: (l) => e.add(l, i), delItem: (l) => e.delItem(l, i), selData: (l) => e.selData(l, i), addFieldJsons: (l) => e.addFieldJsons(l, i) } })];
|
|
2656
2656
|
})], 2);
|
|
2657
|
-
},
|
|
2658
|
-
Ve,
|
|
2657
|
+
}, He = [], Ge = /* @__PURE__ */ p(
|
|
2659
2658
|
ze,
|
|
2660
2659
|
We,
|
|
2660
|
+
He,
|
|
2661
2661
|
!1,
|
|
2662
2662
|
null,
|
|
2663
2663
|
"0e46c479",
|
|
2664
2664
|
null,
|
|
2665
2665
|
null
|
|
2666
2666
|
);
|
|
2667
|
-
const
|
|
2668
|
-
const
|
|
2667
|
+
const Je = Ge.exports;
|
|
2668
|
+
const Qe = {
|
|
2669
2669
|
data() {
|
|
2670
2670
|
return {
|
|
2671
2671
|
ruleFormData: {},
|
|
@@ -2677,9 +2677,9 @@ const Je = {
|
|
|
2677
2677
|
};
|
|
2678
2678
|
},
|
|
2679
2679
|
components: {
|
|
2680
|
-
fieldConfiguration:
|
|
2681
|
-
fieldLook:
|
|
2682
|
-
dismantle:
|
|
2680
|
+
fieldConfiguration: Oe,
|
|
2681
|
+
fieldLook: Me,
|
|
2682
|
+
dismantle: Je
|
|
2683
2683
|
},
|
|
2684
2684
|
computed: {
|
|
2685
2685
|
styled() {
|
|
@@ -2693,9 +2693,9 @@ const Je = {
|
|
|
2693
2693
|
methods: {
|
|
2694
2694
|
getHtml(t) {
|
|
2695
2695
|
let e = t.html;
|
|
2696
|
-
return (t.fieldjsons ? t.fieldjsons : []).forEach((
|
|
2697
|
-
let i = this.$i18nt(`Dynamics.${
|
|
2698
|
-
e = e.replace(`[${
|
|
2696
|
+
return (t.fieldjsons ? t.fieldjsons : []).forEach((s) => {
|
|
2697
|
+
let i = this.$i18nt(`Dynamics.${s.transkey}`, s.title);
|
|
2698
|
+
e = e.replace(`[${s.varnumber}-${s.title}]`, `[${s.varnumber}-${i}]`);
|
|
2699
2699
|
}), e;
|
|
2700
2700
|
},
|
|
2701
2701
|
handleSubmitOk(t) {
|
|
@@ -2713,28 +2713,28 @@ const Je = {
|
|
|
2713
2713
|
this.tempData = [];
|
|
2714
2714
|
return;
|
|
2715
2715
|
}
|
|
2716
|
-
this.id = t, this.spinning = !0,
|
|
2716
|
+
this.id = t, this.spinning = !0, N({
|
|
2717
2717
|
id: t
|
|
2718
2718
|
}).then((e) => {
|
|
2719
|
-
let
|
|
2720
|
-
e.data.msg_templatedetailedlist.forEach((
|
|
2721
|
-
if (
|
|
2719
|
+
let a = [];
|
|
2720
|
+
e.data.msg_templatedetailedlist.forEach((s) => {
|
|
2721
|
+
if (s.isdisplay == 1) {
|
|
2722
2722
|
let i = {
|
|
2723
|
-
name:
|
|
2724
|
-
content:
|
|
2723
|
+
name: s.name,
|
|
2724
|
+
content: s.content,
|
|
2725
2725
|
color: "",
|
|
2726
2726
|
showedit: !1,
|
|
2727
|
-
html:
|
|
2727
|
+
html: s.content,
|
|
2728
2728
|
showfield: !1,
|
|
2729
2729
|
fieldinfos: [],
|
|
2730
2730
|
fieldjsons: [],
|
|
2731
|
-
isdisplay:
|
|
2731
|
+
isdisplay: s.isdisplay,
|
|
2732
2732
|
isusable: 1,
|
|
2733
2733
|
isusables: !0
|
|
2734
2734
|
};
|
|
2735
|
-
|
|
2735
|
+
a.push(i);
|
|
2736
2736
|
}
|
|
2737
|
-
}), this.tempData =
|
|
2737
|
+
}), this.tempData = a, this.spinning = !1;
|
|
2738
2738
|
});
|
|
2739
2739
|
},
|
|
2740
2740
|
addField(t) {
|
|
@@ -2742,10 +2742,10 @@ const Je = {
|
|
|
2742
2742
|
this.$refs.fieldConfiguration.addField(t, e), this.currentFieldIdx = t;
|
|
2743
2743
|
},
|
|
2744
2744
|
confirmText(t) {
|
|
2745
|
-
let e = [...this.tempData],
|
|
2746
|
-
console.log(
|
|
2745
|
+
let e = [...this.tempData], a = `fieldConcatenation${t}`, s = this.$refs[a][0].splitList;
|
|
2746
|
+
console.log(s);
|
|
2747
2747
|
let i = "", l = [];
|
|
2748
|
-
|
|
2748
|
+
s.forEach((r, o) => {
|
|
2749
2749
|
o !== 0 && (i += `
|
|
2750
2750
|
`), i += r.content, l = l.concat(r.fieldjsons);
|
|
2751
2751
|
});
|
|
@@ -2762,66 +2762,66 @@ const Je = {
|
|
|
2762
2762
|
e[t].showfield = !e[t].showfield, this.tempData = [...e];
|
|
2763
2763
|
},
|
|
2764
2764
|
showEdit(t) {
|
|
2765
|
-
let e = this.otempData.filter((
|
|
2765
|
+
let e = this.otempData.filter((a) => a.ind !== t);
|
|
2766
2766
|
this.otempData = e.concat({
|
|
2767
2767
|
ind: t,
|
|
2768
2768
|
data: JSON.stringify(this.tempData[t])
|
|
2769
2769
|
}), this.tempData[t].showedit = !this.tempData[t].showedit;
|
|
2770
2770
|
},
|
|
2771
2771
|
hideEdit(t) {
|
|
2772
|
-
let e = this.otempData.filter((i) => i.ind === t)[0],
|
|
2773
|
-
|
|
2774
|
-
l === t && (
|
|
2772
|
+
let e = this.otempData.filter((i) => i.ind === t)[0], a = JSON.parse(e.data), s = [...this.tempData];
|
|
2773
|
+
s.forEach((i, l) => {
|
|
2774
|
+
l === t && (s[l] = Object.assign(
|
|
2775
2775
|
{
|
|
2776
2776
|
...i
|
|
2777
2777
|
},
|
|
2778
|
-
|
|
2778
|
+
a,
|
|
2779
2779
|
{
|
|
2780
2780
|
showedit: !1
|
|
2781
2781
|
}
|
|
2782
2782
|
));
|
|
2783
|
-
}), this.tempData = [...
|
|
2783
|
+
}), this.tempData = [...s];
|
|
2784
2784
|
},
|
|
2785
2785
|
getDictionary(t) {
|
|
2786
2786
|
return this.$options.filters.dictData(t);
|
|
2787
2787
|
}
|
|
2788
2788
|
}
|
|
2789
2789
|
};
|
|
2790
|
-
var
|
|
2791
|
-
var e = this,
|
|
2792
|
-
return
|
|
2793
|
-
|
|
2794
|
-
} } }, [
|
|
2795
|
-
return
|
|
2790
|
+
var Ue = function() {
|
|
2791
|
+
var e = this, a = e._self._c;
|
|
2792
|
+
return a("div", [a("el-form", { ref: "ruleForm", attrs: { "label-width": "110px", "label-position": e.labelPosition }, nativeOn: { submit: function(s) {
|
|
2793
|
+
s.preventDefault();
|
|
2794
|
+
} } }, [a("el-row", { attrs: { gutter: 24 } }, e._l(e.tempData, function(s, i) {
|
|
2795
|
+
return a("el-col", { key: i, attrs: { span: 24 } }, [a("el-form-item", { attrs: { label: s.name } }, [a("el-button", { directives: [{ name: "show", rawName: "v-show", value: !s.showedit, expression: "!item.showedit" }], staticStyle: { "font-size": "14px", padding: "6px 8px", "margin-left": "0px" }, attrs: { type: "primary", icon: "el-icon-edit", size: "mini" }, on: { click: function(l) {
|
|
2796
2796
|
return e.showEdit(i);
|
|
2797
|
-
} } }, [e._v(" " + e._s(e.$i18nt("gd.btn.edit", "\u7F16\u8F91")) + " ")]),
|
|
2797
|
+
} } }, [e._v(" " + e._s(e.$i18nt("gd.btn.edit", "\u7F16\u8F91")) + " ")]), s.noable ? e._e() : [a("el-checkbox", { directives: [{ name: "show", rawName: "v-show", value: !s.showedit, expression: "!item.showedit" }], staticStyle: { "margin-left": "30px" }, on: { change: function(l) {
|
|
2798
2798
|
return e.changeUsables(l, i);
|
|
2799
|
-
} }, model: { value:
|
|
2800
|
-
e.$set(
|
|
2801
|
-
}, expression: "item.isusables" } }, [e._v(" " + e._s(e.$i18nt("gd.msg.temPlate.isEnabled", "\u662F\u5426\u542F\u7528")) + " ")])],
|
|
2799
|
+
} }, model: { value: s.isusables, callback: function(l) {
|
|
2800
|
+
e.$set(s, "isusables", l);
|
|
2801
|
+
}, expression: "item.isusables" } }, [e._v(" " + e._s(e.$i18nt("gd.msg.temPlate.isEnabled", "\u662F\u5426\u542F\u7528")) + " ")])], a("div", { staticClass: "showdoc", domProps: { innerHTML: e._s(e.getHtml(s)) }, on: { click: function(l) {
|
|
2802
2802
|
return e.showField(i);
|
|
2803
|
-
} } }),
|
|
2803
|
+
} } }), a("div", { directives: [{ name: "show", rawName: "v-show", value: s.showedit, expression: "item.showedit" }], staticClass: "inputbox" }, [a("dismantle", { ref: `fieldConcatenation${i}`, refInFor: !0, attrs: { record: s, ind: i } }), a("div", { staticClass: "flex-between" }, [a("div", { staticClass: "left-btn" }, [a("el-button", { staticStyle: { "font-size": "14px", padding: "6px 8px", "margin-left": "0px" }, attrs: { type: "primary", icon: "el-icon-plus", size: "mini" }, on: { click: function(l) {
|
|
2804
2804
|
return e.addField(i);
|
|
2805
|
-
} } }, [e._v(" " + e._s(e.$i18nt("gd.msg.temPlate.addField", "\u6DFB\u52A0\u5B57\u6BB5")) + " ")])], 1),
|
|
2805
|
+
} } }, [e._v(" " + e._s(e.$i18nt("gd.msg.temPlate.addField", "\u6DFB\u52A0\u5B57\u6BB5")) + " ")])], 1), a("div", { staticClass: "right-btn" }, [a("el-button", { staticStyle: { "font-size": "14px", padding: "6px 8px" }, attrs: { size: "mini", icon: "el-icon-back", type: "info" }, on: { click: function(l) {
|
|
2806
2806
|
return e.hideEdit(i);
|
|
2807
|
-
} } }, [e._v(" " + e._s(e.$i18nt("gd.btn.cancel", "\u53D6\u6D88")) + " ")]),
|
|
2807
|
+
} } }, [e._v(" " + e._s(e.$i18nt("gd.btn.cancel", "\u53D6\u6D88")) + " ")]), a("el-button", { staticStyle: { "font-size": "14px", padding: "6px 8px", "margin-left": "1px" }, attrs: { type: "primary", size: "mini", icon: "el-icon-document-checked" }, on: { click: function(l) {
|
|
2808
2808
|
return e.confirmText(i);
|
|
2809
|
-
} } }, [e._v(" " + e._s(e.$i18nt("gd.btn.confirm", "\u786E\u5B9A")) + " ")])], 1)])], 1),
|
|
2809
|
+
} } }, [e._v(" " + e._s(e.$i18nt("gd.btn.confirm", "\u786E\u5B9A")) + " ")])], 1)])], 1), a("fieldLook", { attrs: { item: s }, on: { close: function(l) {
|
|
2810
2810
|
return e.showField(i);
|
|
2811
2811
|
} } })], 2)], 1);
|
|
2812
|
-
}), 1)], 1),
|
|
2813
|
-
},
|
|
2814
|
-
Je,
|
|
2812
|
+
}), 1)], 1), a("fieldConfiguration", { ref: "fieldConfiguration", attrs: { tempData: e.tempData }, on: { ok: e.handleSubmitOk } })], 1);
|
|
2813
|
+
}, Xe = [], Ye = /* @__PURE__ */ p(
|
|
2815
2814
|
Qe,
|
|
2816
2815
|
Ue,
|
|
2816
|
+
Xe,
|
|
2817
2817
|
!1,
|
|
2818
2818
|
null,
|
|
2819
2819
|
"4bad43e9",
|
|
2820
2820
|
null,
|
|
2821
2821
|
null
|
|
2822
2822
|
);
|
|
2823
|
-
const
|
|
2824
|
-
const
|
|
2823
|
+
const Ze = Ye.exports;
|
|
2824
|
+
const et = {
|
|
2825
2825
|
data() {
|
|
2826
2826
|
return {
|
|
2827
2827
|
fullscreen: !1,
|
|
@@ -2882,19 +2882,19 @@ const Ze = {
|
|
|
2882
2882
|
...f(["tablePageSize", "tableSize", "tableLists", "screenHeight", "labelPosition", "formMode"])
|
|
2883
2883
|
},
|
|
2884
2884
|
components: {
|
|
2885
|
-
plateTemp:
|
|
2885
|
+
plateTemp: Ze
|
|
2886
2886
|
},
|
|
2887
2887
|
methods: {
|
|
2888
2888
|
lookupSeled(t) {
|
|
2889
2889
|
this.dataList = t.fkData, this.ruleFormData.msg_templatelibraryid = t.data[0], this.changeTemplate(t.data[0]);
|
|
2890
2890
|
},
|
|
2891
2891
|
lookup(t) {
|
|
2892
|
-
let e = t,
|
|
2892
|
+
let e = t, a = {
|
|
2893
2893
|
effectType: "fk",
|
|
2894
2894
|
fkEntityName: "SysMsgTemplateLibrary",
|
|
2895
2895
|
val: e || []
|
|
2896
2896
|
};
|
|
2897
|
-
this.$refs.msgSearch.open(
|
|
2897
|
+
this.$refs.msgSearch.open(a);
|
|
2898
2898
|
},
|
|
2899
2899
|
copyInit(t) {
|
|
2900
2900
|
this.parameterData = {}, this.fullScreen = !1, this.visible = !0, this.detail = t, this.type = 1, this.title = this.$i18nt("gd.https.copy", "\u590D\u5236\u65B0\u589E"), this.getDetail(!1);
|
|
@@ -2907,21 +2907,21 @@ const Ze = {
|
|
|
2907
2907
|
}));
|
|
2908
2908
|
},
|
|
2909
2909
|
getDetail(t) {
|
|
2910
|
-
this.confirmLoading = !0,
|
|
2910
|
+
this.confirmLoading = !0, ne({
|
|
2911
2911
|
id: this.detail.id
|
|
2912
2912
|
}).then((e) => {
|
|
2913
2913
|
if (e.code === 200) {
|
|
2914
2914
|
this.parameterData = e.data.msg_templatelibrary;
|
|
2915
|
-
let
|
|
2916
|
-
|
|
2917
|
-
let
|
|
2918
|
-
name:
|
|
2919
|
-
msg_templatelibraryid:
|
|
2920
|
-
example:
|
|
2915
|
+
let a = e.data.msg_templatelibrary;
|
|
2916
|
+
a.example != "" && a.example != null ? this.sysFileInfoPreview(a.example) : this.fileList = [];
|
|
2917
|
+
let s = {
|
|
2918
|
+
name: a.name,
|
|
2919
|
+
msg_templatelibraryid: a.msg_templatelibraryid ? a.msg_templatelibraryid : "",
|
|
2920
|
+
example: a.example
|
|
2921
2921
|
};
|
|
2922
|
-
t && (
|
|
2923
|
-
id:
|
|
2924
|
-
})), this.ruleFormData =
|
|
2922
|
+
t && (s = Object.assign(s, {
|
|
2923
|
+
id: a.id
|
|
2924
|
+
})), this.ruleFormData = s, e.data.msg_templatedetailedlist.length > 0 && this.$refs.plateTemp.setTempData(e.data), a.msg_templatelibraryid ? (this.searchId(a.msg_templatelibraryid), this.confirmLoading = !1) : (this.searchData(""), this.confirmLoading = !1);
|
|
2925
2925
|
} else
|
|
2926
2926
|
this.confirmLoading = !1;
|
|
2927
2927
|
});
|
|
@@ -2937,14 +2937,14 @@ const Ze = {
|
|
|
2937
2937
|
fkEntityName: this.fkEntityName,
|
|
2938
2938
|
name: t
|
|
2939
2939
|
}).then((e) => {
|
|
2940
|
-
this.dataList = e.success ? e.data.map((
|
|
2940
|
+
this.dataList = e.success ? e.data.map((a) => (a.tableName = this.fkEntityName, a)) : [];
|
|
2941
2941
|
});
|
|
2942
2942
|
},
|
|
2943
2943
|
searchId(t) {
|
|
2944
2944
|
return this.dataList = [], this.fetching = !0, g({
|
|
2945
2945
|
fkEntityName: this.fkEntityName,
|
|
2946
2946
|
id: t
|
|
2947
|
-
}).then((e) => (this.dataList = e.success ? e.data.map((
|
|
2947
|
+
}).then((e) => (this.dataList = e.success ? e.data.map((a) => (a.tableName = this.fkEntityName, a)) : [], this.fetching = !1, e));
|
|
2948
2948
|
},
|
|
2949
2949
|
closed() {
|
|
2950
2950
|
this.$refs.ruleForm.resetFields(), this.visible = !1, this.showParseInfo = !1, this.fullscreen = !1, this.parseData = [];
|
|
@@ -2955,21 +2955,21 @@ const Ze = {
|
|
|
2955
2955
|
handleSubmit() {
|
|
2956
2956
|
this.confirmLoading = !0, this.$refs.ruleForm.validate((t) => {
|
|
2957
2957
|
if (t) {
|
|
2958
|
-
let e = this.$refs.plateTemp.tempData,
|
|
2959
|
-
|
|
2960
|
-
let
|
|
2961
|
-
this.type == 1 ?
|
|
2962
|
-
msg_messagetemplatedetailed_msg_messagetemplateid:
|
|
2963
|
-
}) :
|
|
2964
|
-
msg_messagetemplatedetailed_msg_messagetemplateid:
|
|
2965
|
-
}), (this.type == 1 ?
|
|
2966
|
-
l.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.confirmLoading = !1, this.$emit("ok",
|
|
2958
|
+
let e = this.$refs.plateTemp.tempData, a = JSON.parse(JSON.stringify(e));
|
|
2959
|
+
a.forEach((l, n) => (l.isusable = l.isusables ? 1 : 0, l.templatejson = JSON.stringify(l.fieldjsons), l));
|
|
2960
|
+
let s;
|
|
2961
|
+
this.type == 1 ? s = Object.assign(this.ruleFormData, {
|
|
2962
|
+
msg_messagetemplatedetailed_msg_messagetemplateid: a
|
|
2963
|
+
}) : s = Object.assign(this.parameterData, this.ruleFormData, {
|
|
2964
|
+
msg_messagetemplatedetailed_msg_messagetemplateid: a
|
|
2965
|
+
}), (this.type == 1 ? ie : le)(s).then((l) => {
|
|
2966
|
+
l.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.confirmLoading = !1, this.$emit("ok", s), this.closed()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + l.message), this.confirmLoading = !1;
|
|
2967
2967
|
});
|
|
2968
2968
|
} else
|
|
2969
2969
|
this.confirmLoading = !1;
|
|
2970
2970
|
});
|
|
2971
2971
|
},
|
|
2972
|
-
successImg(t, e,
|
|
2972
|
+
successImg(t, e, a) {
|
|
2973
2973
|
this.ruleFormData.example = t.id;
|
|
2974
2974
|
},
|
|
2975
2975
|
removeImg() {
|
|
@@ -2979,14 +2979,14 @@ const Ze = {
|
|
|
2979
2979
|
this.imgList = [t.url], this.currentImg = t.url, this.$refs.imgPreview.open();
|
|
2980
2980
|
},
|
|
2981
2981
|
uploadImg(t) {
|
|
2982
|
-
new FormData().append("file", t.file),
|
|
2983
|
-
|
|
2984
|
-
}).catch((
|
|
2985
|
-
t.onError(
|
|
2982
|
+
new FormData().append("file", t.file), B(t).then((a) => {
|
|
2983
|
+
a.code === 200 ? t.onSuccess(a.data) : (this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25:") + a.message), t.onError());
|
|
2984
|
+
}).catch((a) => {
|
|
2985
|
+
t.onError(a);
|
|
2986
2986
|
});
|
|
2987
2987
|
},
|
|
2988
2988
|
sysFileInfoPreview(t) {
|
|
2989
|
-
|
|
2989
|
+
F({
|
|
2990
2990
|
id: t
|
|
2991
2991
|
}).then((e) => {
|
|
2992
2992
|
this.confirmLoading = !1, this.downloadfile(e);
|
|
@@ -3012,33 +3012,33 @@ const Ze = {
|
|
|
3012
3012
|
}
|
|
3013
3013
|
}
|
|
3014
3014
|
};
|
|
3015
|
-
var
|
|
3016
|
-
var e = this,
|
|
3017
|
-
return
|
|
3018
|
-
e.visible =
|
|
3019
|
-
}, closed: e.closed } }, [
|
|
3020
|
-
|
|
3021
|
-
} } }, [
|
|
3022
|
-
e.$set(e.ruleFormData, "name",
|
|
3023
|
-
}, expression: "ruleFormData.name" } })], 1)], 1),
|
|
3024
|
-
e.$set(e.ruleFormData, "msg_templatelibraryid",
|
|
3025
|
-
}, expression: "ruleFormData.msg_templatelibraryid" } }, e._l(e.dataList, function(
|
|
3026
|
-
return
|
|
3027
|
-
}), 1),
|
|
3028
|
-
return
|
|
3029
|
-
} } })])], 1)])], 1)], 1),
|
|
3030
|
-
},
|
|
3031
|
-
Ze,
|
|
3015
|
+
var tt = function() {
|
|
3016
|
+
var e = this, a = e._self._c;
|
|
3017
|
+
return a("div", [a("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(s) {
|
|
3018
|
+
e.visible = s;
|
|
3019
|
+
}, closed: e.closed } }, [a("gd-modal-title", { attrs: { slot: "title", title: e.title, fullscreen: e.fullscreen, buttons: e.sysViewButtons, confirmLoading: e.confirmLoading, showClose: !0 }, on: { changeEvent: e.doEvent }, slot: "title" }), a("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], staticClass: "b" }, [a("el-form", { ref: "ruleForm", attrs: { "label-width": "110px", "label-position": e.labelPosition, model: e.ruleFormData, rules: e.rules }, nativeOn: { submit: function(s) {
|
|
3020
|
+
s.preventDefault();
|
|
3021
|
+
} } }, [a("el-row", { attrs: { gutter: 20 } }, [a("el-col", { attrs: { md: 12, sm: 24 } }, [a("el-form-item", { attrs: { label: e.$i18nt("gd.msg.temPlate.name", "\u540D\u79F0"), prop: "name" } }, [a("el-input", { model: { value: e.ruleFormData.name, callback: function(s) {
|
|
3022
|
+
e.$set(e.ruleFormData, "name", s);
|
|
3023
|
+
}, expression: "ruleFormData.name" } })], 1)], 1), a("el-col", { attrs: { md: 12, sm: 24 } }, [a("el-form-item", { attrs: { label: e.$i18nt("gd.msg.temPlate.temPlate", "\u6A21\u677F\u5E93"), prop: "msg_templatelibraryid" } }, [a("div", { staticClass: "cao_about" }, [a("el-select", { staticClass: "cao_input", attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), loading: e.loading, "reserve-keyword": "", filterable: "", remote: "", clearable: "", "remote-method": e.searchData, "collapse-tags": !0 }, on: { focus: e.searchList, change: e.changeTemplate }, model: { value: e.ruleFormData.msg_templatelibraryid, callback: function(s) {
|
|
3024
|
+
e.$set(e.ruleFormData, "msg_templatelibraryid", s);
|
|
3025
|
+
}, expression: "ruleFormData.msg_templatelibraryid" } }, e._l(e.dataList, function(s) {
|
|
3026
|
+
return a("el-option", { key: s.id, attrs: { label: s.name, value: s.id } });
|
|
3027
|
+
}), 1), a("div", { staticClass: "cao_setting" }, [a("i", { staticClass: "el-input__icon el-icon-search", on: { click: function(s) {
|
|
3028
|
+
return s.stopPropagation(), e.lookup(e.ruleFormData.msg_templatelibraryid);
|
|
3029
|
+
} } })])], 1)])], 1)], 1), a("el-row", { attrs: { gutter: 20 } }, [a("el-col", { attrs: { md: 12, sm: 24 } }, [a("el-form-item", { attrs: { label: e.$i18nt("gd.msg.temPlate.diagram", "\u793A\u4F8B\u56FE"), prop: "example" } }, [a("el-upload", { staticClass: "upload-demo", class: e.ruleFormData.example ? "hide-demo" : "", attrs: { action: "", "list-type": "picture-card", "on-preview": e.previewImg, "on-remove": e.removeImg, limit: 1, "http-request": e.uploadImg, "on-success": e.successImg, "file-list": e.fileList, accept: "image/gif, image/jpeg, image/png" } }, [a("i", { staticClass: "el-icon-plus", staticStyle: { "font-size": "18px" } })])], 1)], 1)], 1)], 1), e.visible ? a("plateTemp", { ref: "plateTemp" }) : e._e()], 1)], 1), a("gd-search", { ref: "msgSearch", attrs: { appendToBody: !0 }, on: { lookupSeled: e.lookupSeled } }), a("gd-img-preview", { ref: "imgPreview", attrs: { filePreviewShow: e.imgList.length > 0, imgList: e.imgList, currentImg: e.currentImg } })], 1);
|
|
3030
|
+
}, at = [], st = /* @__PURE__ */ p(
|
|
3032
3031
|
et,
|
|
3033
3032
|
tt,
|
|
3033
|
+
at,
|
|
3034
3034
|
!1,
|
|
3035
3035
|
null,
|
|
3036
3036
|
"ad6c78fa",
|
|
3037
3037
|
null,
|
|
3038
3038
|
null
|
|
3039
3039
|
);
|
|
3040
|
-
const
|
|
3041
|
-
const
|
|
3040
|
+
const K = st.exports;
|
|
3041
|
+
const it = {
|
|
3042
3042
|
data() {
|
|
3043
3043
|
return {
|
|
3044
3044
|
fullscreen: !1,
|
|
@@ -3134,7 +3134,7 @@ const at = {
|
|
|
3134
3134
|
computed: {
|
|
3135
3135
|
getSendType() {
|
|
3136
3136
|
let t = [], e = [];
|
|
3137
|
-
return this.getDictionary("SendType").map((
|
|
3137
|
+
return this.getDictionary("SendType").map((s) => (s.disabled = s.statecodes != 1, s.disabled ? e.push(s) : t.push(s), s)), this.type == 1 ? t : t.concat(e);
|
|
3138
3138
|
},
|
|
3139
3139
|
...f(["tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode"])
|
|
3140
3140
|
},
|
|
@@ -3144,10 +3144,10 @@ const at = {
|
|
|
3144
3144
|
},
|
|
3145
3145
|
lookup(t, e) {
|
|
3146
3146
|
this.lookField = e;
|
|
3147
|
-
let
|
|
3147
|
+
let a = t, s = this.fkEntity.filter((n) => n.field === e)[0], i = s.filterd.filter((n) => n.fieldValue !== ""), l = {
|
|
3148
3148
|
effectType: "fk",
|
|
3149
|
-
fkEntityName:
|
|
3150
|
-
val:
|
|
3149
|
+
fkEntityName: s.fkEntityName,
|
|
3150
|
+
val: a || []
|
|
3151
3151
|
};
|
|
3152
3152
|
e === "enterprisewechatappid" && (l = Object.assign(l, {
|
|
3153
3153
|
filterList: i
|
|
@@ -3165,26 +3165,26 @@ const at = {
|
|
|
3165
3165
|
};
|
|
3166
3166
|
},
|
|
3167
3167
|
getDetail() {
|
|
3168
|
-
this.confirmLoading = !0,
|
|
3168
|
+
this.confirmLoading = !0, N({
|
|
3169
3169
|
id: this.detail.id
|
|
3170
3170
|
}).then((t) => {
|
|
3171
3171
|
if (t.code === 200) {
|
|
3172
|
-
let e = t.data.msg_templatelibrary,
|
|
3172
|
+
let e = t.data.msg_templatelibrary, a = {
|
|
3173
3173
|
id: e.id,
|
|
3174
3174
|
name: e.name,
|
|
3175
3175
|
bas_wechatappid: e.bas_wechatappid ? e.bas_wechatappid : void 0,
|
|
3176
3176
|
content: e.content,
|
|
3177
3177
|
templatetype: e.templatetype != null ? String(e.templatetype) : void 0
|
|
3178
|
-
},
|
|
3179
|
-
this.parseData =
|
|
3178
|
+
}, s = t.data.msg_templatedetailedlist ? t.data.msg_templatedetailedlist : [];
|
|
3179
|
+
this.parseData = s.map((i) => (i.isdisplays = i.isdisplay === 1, i)), this.showParseInfo = s.length != 0, e.templatetype == 1 ? (this.showWeCom = !0, a = Object.assign(a, {
|
|
3180
3180
|
enterprisewechatid: e.enterprisewechatid,
|
|
3181
3181
|
enterprisewechatappid: e.enterprisewechatappid
|
|
3182
|
-
}), this.getWechatData(e, ["bas_enterprisewechat", "bas_enterprisewechatapp"]), this.loadWeCom = !0, this.loadWeComApp = !0) : e.templatetype == 3 ? (this.showWeOfficial = !0,
|
|
3182
|
+
}), this.getWechatData(e, ["bas_enterprisewechat", "bas_enterprisewechatapp"]), this.loadWeCom = !0, this.loadWeComApp = !0) : e.templatetype == 3 ? (this.showWeOfficial = !0, a = Object.assign(a, {
|
|
3183
3183
|
wechatpublicaccountid: e.wechatpublicaccountid
|
|
3184
3184
|
}), this.getWechatData(e, ["bas_wechatpublicaccount"]), this.loadWeOfficial = !0) : this.confirmLoading = !1, this.$nextTick(() => {
|
|
3185
3185
|
setTimeout(() => {
|
|
3186
3186
|
this.ruleFormData = Object.assign({
|
|
3187
|
-
...
|
|
3187
|
+
...a
|
|
3188
3188
|
});
|
|
3189
3189
|
}, 0);
|
|
3190
3190
|
});
|
|
@@ -3193,22 +3193,22 @@ const at = {
|
|
|
3193
3193
|
});
|
|
3194
3194
|
},
|
|
3195
3195
|
getWechatData(t, e) {
|
|
3196
|
-
let
|
|
3196
|
+
let a = [];
|
|
3197
3197
|
this.fkEntity.filter((i) => e.includes(i.fkEntityName)).forEach((i) => {
|
|
3198
3198
|
let l = i.filterd.filter((o) => o.fieldValue !== ""), n = {
|
|
3199
3199
|
fkEntityName: i.fkEntityName,
|
|
3200
3200
|
filter: l,
|
|
3201
3201
|
id: t[i.field] ? t[i.field] : ""
|
|
3202
3202
|
}, r = this.searchFk(n);
|
|
3203
|
-
|
|
3204
|
-
}), Promise.all(
|
|
3203
|
+
a.push(r);
|
|
3204
|
+
}), Promise.all(a).then(() => {
|
|
3205
3205
|
this.confirmLoading = !1;
|
|
3206
3206
|
});
|
|
3207
3207
|
},
|
|
3208
3208
|
searchFk(t) {
|
|
3209
3209
|
return this.weComList = t.fkEntityName === "bas_enterprisewechat" ? [] : this.weComList, this.weComAppList = t.fkEntityName === "bas_enterprisewechatapp" ? [] : this.weComAppList, this.weOfficialList = t.fkEntityName === "bas_wechatpublicaccount" ? [] : this.weOfficialList, g(t).then((e) => {
|
|
3210
|
-
let
|
|
3211
|
-
return this.weComList = t.fkEntityName === "bas_enterprisewechat" ?
|
|
3210
|
+
let a = e.success ? e.data.map((s) => (s.tableName = t.fkEntityName, s)) : [];
|
|
3211
|
+
return this.weComList = t.fkEntityName === "bas_enterprisewechat" ? a : this.weComList, this.weComAppList = t.fkEntityName === "bas_enterprisewechatapp" ? a : this.weComAppList, this.weOfficialList = t.fkEntityName === "bas_wechatpublicaccount" ? a : this.weOfficialList, e;
|
|
3212
3212
|
});
|
|
3213
3213
|
},
|
|
3214
3214
|
selTemplateType(t) {
|
|
@@ -3220,45 +3220,45 @@ const at = {
|
|
|
3220
3220
|
operator: "equal",
|
|
3221
3221
|
columnName: "enterprisewechatid",
|
|
3222
3222
|
fieldValue: t || ""
|
|
3223
|
-
},
|
|
3224
|
-
|
|
3223
|
+
}, a = [...this.fkEntity];
|
|
3224
|
+
a.map((s) => (s.field === "enterprisewechatappid" && (s.filterd = [e]), s)), this.fkEntity = [...a], this.loadWeComApp = !1;
|
|
3225
3225
|
},
|
|
3226
3226
|
fkSearch() {
|
|
3227
3227
|
this.firstLoading || (this.searchData(""), this.firstLoading = !0);
|
|
3228
3228
|
},
|
|
3229
3229
|
searchData(t) {
|
|
3230
|
-
let e = this.fkEntity.filter((
|
|
3230
|
+
let e = this.fkEntity.filter((a) => a.field === "enterprisewechatid")[0];
|
|
3231
3231
|
this.weComList = [], g({
|
|
3232
3232
|
fkEntityName: e.fkEntityName,
|
|
3233
3233
|
name: t
|
|
3234
|
-
}).then((
|
|
3235
|
-
this.weComList =
|
|
3234
|
+
}).then((a) => {
|
|
3235
|
+
this.weComList = a.success ? a.data.map((s) => (s.tableName = e.fkEntityName, s)) : [], this.loadWeCom = !0;
|
|
3236
3236
|
});
|
|
3237
3237
|
},
|
|
3238
3238
|
fkSearchWech() {
|
|
3239
3239
|
this.firstWeComApp || (this.searchWeComApp(""), this.firstWeComApp = !0);
|
|
3240
3240
|
},
|
|
3241
3241
|
searchWeComApp(t) {
|
|
3242
|
-
let e = this.fkEntity.filter((
|
|
3242
|
+
let e = this.fkEntity.filter((s) => s.field === "enterprisewechatappid")[0], a = e.filterd.filter((s) => s.fieldValue !== "");
|
|
3243
3243
|
this.weComAppList = [], g({
|
|
3244
3244
|
fkEntityName: e.fkEntityName,
|
|
3245
3245
|
name: t,
|
|
3246
|
-
filter:
|
|
3247
|
-
}).then((
|
|
3248
|
-
this.weComAppList =
|
|
3246
|
+
filter: a
|
|
3247
|
+
}).then((s) => {
|
|
3248
|
+
this.weComAppList = s.success ? s.data.map((i) => (i.tableName = e.fkEntityName, i)) : [], this.fetching = !1, this.loadWeComApp = !0;
|
|
3249
3249
|
});
|
|
3250
3250
|
},
|
|
3251
3251
|
searchWeOff() {
|
|
3252
3252
|
this.firstWeOfficial || (this.searchWeOfficial(""), this.firstWeOfficial = !0);
|
|
3253
3253
|
},
|
|
3254
3254
|
searchWeOfficial(t) {
|
|
3255
|
-
let e = this.fkEntity.filter((
|
|
3255
|
+
let e = this.fkEntity.filter((s) => s.field === "wechatpublicaccountid")[0], a = e.filterd.filter((s) => s.fieldValue !== "");
|
|
3256
3256
|
this.weOfficialList = [], this.fetching = !0, g({
|
|
3257
3257
|
fkEntityName: e.fkEntityName,
|
|
3258
3258
|
name: t,
|
|
3259
|
-
filter:
|
|
3260
|
-
}).then((
|
|
3261
|
-
this.weOfficialList =
|
|
3259
|
+
filter: a
|
|
3260
|
+
}).then((s) => {
|
|
3261
|
+
this.weOfficialList = s.success ? s.data.map((i) => (i.tableName = e.fkEntityName, i)) : [], this.fetching = !1, this.loadWeOfficial = !0;
|
|
3262
3262
|
});
|
|
3263
3263
|
},
|
|
3264
3264
|
selData(t) {
|
|
@@ -3284,19 +3284,19 @@ const at = {
|
|
|
3284
3284
|
this.parseDataparseData = [], this.showParseInfo = !1;
|
|
3285
3285
|
return;
|
|
3286
3286
|
}
|
|
3287
|
-
let e = new RegExp(/\{\{(.+?)\}\}/g),
|
|
3288
|
-
if (!
|
|
3287
|
+
let e = new RegExp(/\{\{(.+?)\}\}/g), a = t.match(e);
|
|
3288
|
+
if (!a)
|
|
3289
3289
|
return;
|
|
3290
|
-
let
|
|
3291
|
-
|
|
3290
|
+
let s = [];
|
|
3291
|
+
a.forEach((i) => {
|
|
3292
3292
|
let l = i.substring(2, i.length - 2), n = this.parseData.filter((r) => r.name == l)[0];
|
|
3293
|
-
n ?
|
|
3293
|
+
n ? s.push(n) : s.push({
|
|
3294
3294
|
name: l,
|
|
3295
3295
|
content: "",
|
|
3296
3296
|
isdisplays: !0,
|
|
3297
3297
|
isdisplay: 1
|
|
3298
3298
|
});
|
|
3299
|
-
}), this.parseData =
|
|
3299
|
+
}), this.parseData = s, this.showParseInfo = !0;
|
|
3300
3300
|
},
|
|
3301
3301
|
closed() {
|
|
3302
3302
|
this.$refs.ruleForm.resetFields(), this.visible = !1, this.showParseInfo = !1, this.fullscreen = !1, this.parseData = [];
|
|
@@ -3310,11 +3310,11 @@ const at = {
|
|
|
3310
3310
|
this.confirmLoading = !0;
|
|
3311
3311
|
let e = {
|
|
3312
3312
|
...this.ruleFormData
|
|
3313
|
-
},
|
|
3314
|
-
msg_templatedetailed_msg_templatelibraryid:
|
|
3313
|
+
}, a = [...this.parseData].map((l) => (l.isdisplay = l.isdisplays ? 1 : 0, l)), s = Object.assign(e, {
|
|
3314
|
+
msg_templatedetailed_msg_templatelibraryid: a
|
|
3315
3315
|
});
|
|
3316
|
-
(this.type == 1 ?
|
|
3317
|
-
l.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.confirmLoading = !1, this.$emit("ok",
|
|
3316
|
+
(this.type == 1 ? L : P)(s).then((l) => {
|
|
3317
|
+
l.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.confirmLoading = !1, this.$emit("ok", s), this.closed()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + l.message), this.confirmLoading = !1;
|
|
3318
3318
|
});
|
|
3319
3319
|
}
|
|
3320
3320
|
});
|
|
@@ -3328,61 +3328,61 @@ const at = {
|
|
|
3328
3328
|
}
|
|
3329
3329
|
}
|
|
3330
3330
|
};
|
|
3331
|
-
var
|
|
3332
|
-
var e = this,
|
|
3333
|
-
return
|
|
3334
|
-
e.visible =
|
|
3335
|
-
}, closed: e.closed } }, [
|
|
3336
|
-
|
|
3337
|
-
} } }, [
|
|
3338
|
-
e.$set(e.ruleFormData, "name",
|
|
3339
|
-
}, expression: "ruleFormData.name" } })], 1)], 1),
|
|
3340
|
-
e.$set(e.ruleFormData, "templatetype",
|
|
3341
|
-
}, expression: "ruleFormData.templatetype" } }, e._l(e.getSendType, function(
|
|
3342
|
-
return
|
|
3343
|
-
}), 1)], 1)], 1)], 1), e.showWeCom ?
|
|
3344
|
-
e.$set(e.ruleFormData, "enterprisewechatid",
|
|
3345
|
-
}, expression: "ruleFormData.enterprisewechatid" } }, e._l(e.weComList, function(
|
|
3346
|
-
return
|
|
3347
|
-
}), 1),
|
|
3348
|
-
return
|
|
3349
|
-
} } })])], 1)])], 1),
|
|
3331
|
+
var lt = function() {
|
|
3332
|
+
var e = this, a = e._self._c;
|
|
3333
|
+
return a("div", [a("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(s) {
|
|
3334
|
+
e.visible = s;
|
|
3335
|
+
}, closed: e.closed } }, [a("gd-modal-title", { attrs: { slot: "title", title: e.title, fullscreen: e.fullscreen, buttons: e.sysViewButtons, confirmLoading: e.confirmLoading, showClose: !0 }, on: { changeEvent: e.doEvent }, slot: "title" }), a("div", { staticClass: "b" }, [a("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(s) {
|
|
3336
|
+
s.preventDefault();
|
|
3337
|
+
} } }, [a("el-row", { attrs: { gutter: 20 } }, [a("el-col", { attrs: { md: 12, sm: 24 } }, [a("el-form-item", { attrs: { label: e.$i18nt("gd.msg.templateLibrary.name", "\u540D\u79F0"), prop: "name" } }, [a("el-input", { model: { value: e.ruleFormData.name, callback: function(s) {
|
|
3338
|
+
e.$set(e.ruleFormData, "name", s);
|
|
3339
|
+
}, expression: "ruleFormData.name" } })], 1)], 1), a("el-col", { attrs: { md: 12, sm: 24 } }, [a("el-form-item", { attrs: { label: e.$i18nt("gd.msg.templateLibrary.sendType", "\u6A21\u677F\u7C7B\u522B"), prop: "templatetype" } }, [a("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, on: { change: e.selTemplateType }, model: { value: e.ruleFormData.templatetype, callback: function(s) {
|
|
3340
|
+
e.$set(e.ruleFormData, "templatetype", s);
|
|
3341
|
+
}, expression: "ruleFormData.templatetype" } }, e._l(e.getSendType, function(s, i) {
|
|
3342
|
+
return a("el-option", { key: i, attrs: { label: s.name, value: s.code, disabled: s.disabled } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.name)) + " ")]);
|
|
3343
|
+
}), 1)], 1)], 1)], 1), e.showWeCom ? a("el-row", { attrs: { gutter: 24 } }, [a("el-col", { attrs: { md: 12, sm: 24 } }, [a("el-form-item", { attrs: { label: e.$i18nt("gd.msg.templateLibrary.weChatName", "\u4F01\u4E1A\u5FAE\u4FE1"), prop: "enterprisewechatid" } }, [a("div", { staticClass: "cao_about" }, [a("el-select", { staticClass: "cao_input", attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), loading: e.loading, "reserve-keyword": "", filterable: "", remote: "", clearable: "", "remote-method": e.searchData, "collapse-tags": !0 }, on: { focus: e.fkSearch, change: e.changeWeCom }, model: { value: e.ruleFormData.enterprisewechatid, callback: function(s) {
|
|
3344
|
+
e.$set(e.ruleFormData, "enterprisewechatid", s);
|
|
3345
|
+
}, expression: "ruleFormData.enterprisewechatid" } }, e._l(e.weComList, function(s) {
|
|
3346
|
+
return a("el-option", { key: s.id, attrs: { label: s.name, value: s.id } });
|
|
3347
|
+
}), 1), a("div", { staticClass: "cao_setting" }, [a("i", { staticClass: "el-input__icon el-icon-search", on: { click: function(s) {
|
|
3348
|
+
return s.stopPropagation(), e.lookup(e.ruleFormData.enterprisewechatid, "enterprisewechatid");
|
|
3349
|
+
} } })])], 1)])], 1), a("el-col", { attrs: { md: 12, sm: 24 } }, [a("el-form-item", { attrs: { label: e.$i18nt("gd.msg.templateLibrary.weChatApplicationName", "\u4F01\u4E1A\u5FAE\u4FE1\u5E94\u7528"), prop: "enterprisewechatappid" } }, [a("div", { staticClass: "cao_about", on: { click: function(s) {
|
|
3350
3350
|
return e.selData("enterprisewechatappid");
|
|
3351
|
-
} } }, [
|
|
3352
|
-
e.$set(e.ruleFormData, "enterprisewechatappid",
|
|
3353
|
-
}, expression: "ruleFormData.enterprisewechatappid" } }, e._l(e.weComAppList, function(
|
|
3354
|
-
return
|
|
3355
|
-
}), 1),
|
|
3356
|
-
return
|
|
3357
|
-
} } })])], 1)])], 1)], 1) : e._e(), e.showWeOfficial ?
|
|
3351
|
+
} } }, [a("el-select", { staticClass: "cao_input", staticStyle: { flex: "1", overflow: "hidden" }, attrs: { "reserve-keyword": "", filterable: "", remote: "", clearable: "", placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), loading: e.loading, "remote-method": e.searchWeComApp }, on: { focus: e.fkSearchWech }, model: { value: e.ruleFormData.enterprisewechatappid, callback: function(s) {
|
|
3352
|
+
e.$set(e.ruleFormData, "enterprisewechatappid", s);
|
|
3353
|
+
}, expression: "ruleFormData.enterprisewechatappid" } }, e._l(e.weComAppList, function(s, i) {
|
|
3354
|
+
return a("el-option", { key: i, attrs: { label: s.name, value: s.id } }, [e._v(" " + e._s(s.name) + " ")]);
|
|
3355
|
+
}), 1), a("div", { staticClass: "cao_setting" }, [a("i", { staticClass: "el-input__icon el-icon-search", on: { click: function(s) {
|
|
3356
|
+
return s.stopPropagation(), e.lookup(e.ruleFormData.enterprisewechatappid, "enterprisewechatappid");
|
|
3357
|
+
} } })])], 1)])], 1)], 1) : e._e(), e.showWeOfficial ? a("el-row", { attrs: { gutter: 24 } }, [a("el-col", { attrs: { md: 12, sm: 24 } }, [a("el-form-item", { attrs: { label: e.$i18nt("gd.msg.templateLibrary.weChatOfficialAccounts"), prop: "wechatpublicaccountid" } }, [a("div", { staticClass: "cao_about", on: { click: function(s) {
|
|
3358
3358
|
return e.selData("wechatpublicaccountid");
|
|
3359
|
-
} } }, [
|
|
3360
|
-
e.$set(e.ruleFormData, "wechatpublicaccountid",
|
|
3361
|
-
}, expression: "ruleFormData.wechatpublicaccountid" } }, e._l(e.weOfficialList, function(
|
|
3362
|
-
return
|
|
3363
|
-
}), 1),
|
|
3364
|
-
return
|
|
3365
|
-
} } })])], 1)])], 1)], 1) : e._e(),
|
|
3366
|
-
e.$set(e.ruleFormData, "content",
|
|
3367
|
-
}, expression: "ruleFormData.content" } })], 1)], 1),
|
|
3368
|
-
return
|
|
3369
|
-
e.$set(
|
|
3370
|
-
}, expression: "item.content" } }),
|
|
3371
|
-
e.$set(
|
|
3359
|
+
} } }, [a("el-select", { staticClass: "cao_input", staticStyle: { flex: "1", overflow: "hidden" }, attrs: { "reserve-keyword": "", filterable: "", remote: "", clearable: "", placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), loading: e.loading, "remote-method": e.searchWeOfficial }, on: { focus: e.searchWeOff }, model: { value: e.ruleFormData.wechatpublicaccountid, callback: function(s) {
|
|
3360
|
+
e.$set(e.ruleFormData, "wechatpublicaccountid", s);
|
|
3361
|
+
}, expression: "ruleFormData.wechatpublicaccountid" } }, e._l(e.weOfficialList, function(s, i) {
|
|
3362
|
+
return a("el-option", { key: i, attrs: { label: s.name, value: s.id } });
|
|
3363
|
+
}), 1), a("div", { staticClass: "cao_setting" }, [a("i", { staticClass: "el-input__icon el-icon-search", on: { click: function(s) {
|
|
3364
|
+
return s.stopPropagation(), e.lookup(e.ruleFormData.wechatpublicaccountid, "wechatpublicaccountid");
|
|
3365
|
+
} } })])], 1)])], 1)], 1) : e._e(), a("el-row", { attrs: { gutter: 24 } }, [a("el-col", { attrs: { span: 24, md: 24 } }, [a("el-form-item", { attrs: { label: e.$i18nt("gd.msg.templateLibrary.content"), prop: "content" } }, [a("el-input", { attrs: { autosize: { minRows: 10, maxRows: 16 }, type: "textarea", placeholder: e.$i18nt("gd.placeholder.input") }, on: { blur: e.contentBlur }, model: { value: e.ruleFormData.content, callback: function(s) {
|
|
3366
|
+
e.$set(e.ruleFormData, "content", s);
|
|
3367
|
+
}, expression: "ruleFormData.content" } })], 1)], 1), a("el-col", { attrs: { span: 24, md: 24 } }, [a("el-button", { staticStyle: { "font-size": "14px", padding: "6px 8px", float: "right" }, attrs: { type: "primary", size: "mini", icon: "el-icon-notebook-2" }, on: { click: e.analysis } }, [e._v(" " + e._s(e.$i18nt("gd.msg.templateLibrary.analysis")) + " ")])], 1)], 1), e.showParseInfo ? a("el-row", { attrs: { gutter: 24 } }, [a("el-col", { attrs: { span: 24 } }, e._l(e.parseData, function(s, i) {
|
|
3368
|
+
return a("el-form-item", { key: i, attrs: { label: s.name } }, [a("el-input", { staticStyle: { width: "450px" }, attrs: { type: "textarea", autosize: { minRows: 3, maxRows: 6 } }, model: { value: s.content, callback: function(l) {
|
|
3369
|
+
e.$set(s, "content", l);
|
|
3370
|
+
}, expression: "item.content" } }), a("el-checkbox", { staticStyle: { "margin-left": "30px" }, model: { value: s.isdisplays, callback: function(l) {
|
|
3371
|
+
e.$set(s, "isdisplays", l);
|
|
3372
3372
|
}, expression: "item.isdisplays" } }, [e._v(" " + e._s(e.$i18nt("gd.msg.templateLibrary.display", "\u662F\u5426\u663E\u793A")) + " ")])], 1);
|
|
3373
|
-
}), 1)], 1) : e._e()], 1)], 1)], 1),
|
|
3374
|
-
},
|
|
3375
|
-
at,
|
|
3373
|
+
}), 1)], 1) : e._e()], 1)], 1)], 1), a("gd-search", { ref: "msgSearch", attrs: { appendToBody: !0 }, on: { lookupSeled: e.lookupSeled } })], 1);
|
|
3374
|
+
}, nt = [], rt = /* @__PURE__ */ p(
|
|
3376
3375
|
it,
|
|
3377
3376
|
lt,
|
|
3377
|
+
nt,
|
|
3378
3378
|
!1,
|
|
3379
3379
|
null,
|
|
3380
3380
|
"55c6ff7d",
|
|
3381
3381
|
null,
|
|
3382
3382
|
null
|
|
3383
3383
|
);
|
|
3384
|
-
const
|
|
3385
|
-
const
|
|
3384
|
+
const E = rt.exports;
|
|
3385
|
+
const ot = {
|
|
3386
3386
|
props: {
|
|
3387
3387
|
height: {
|
|
3388
3388
|
type: Number,
|
|
@@ -3390,7 +3390,7 @@ const rt = {
|
|
|
3390
3390
|
}
|
|
3391
3391
|
},
|
|
3392
3392
|
name: "GdSysMsgTemPlate",
|
|
3393
|
-
mixins: [_,
|
|
3393
|
+
mixins: [_, re],
|
|
3394
3394
|
data() {
|
|
3395
3395
|
return {
|
|
3396
3396
|
formLoading: !1,
|
|
@@ -3408,10 +3408,10 @@ const rt = {
|
|
|
3408
3408
|
currentImg: "",
|
|
3409
3409
|
loadData: (t, e) => {
|
|
3410
3410
|
this.sorter = e;
|
|
3411
|
-
let
|
|
3412
|
-
return this.isLoading = !0,
|
|
3413
|
-
this.$refs.table && this.$refs.table.updateSelect(
|
|
3414
|
-
}, 10)),
|
|
3411
|
+
let a = [...this.oselectedRowKeys];
|
|
3412
|
+
return this.isLoading = !0, te(Object.assign(t, this.getQueryParam)).then((s) => (this.ppShow = !0, this.isLoading = !1, this.isChangeSize = !1, s.success && this.openMode == 2 && (this.$emit("changeData", s.data.rows), setTimeout(() => {
|
|
3413
|
+
this.$refs.table && this.$refs.table.updateSelect(a, []), this.selectedRowKeys = [...a], this.onSelectChange(a, []);
|
|
3414
|
+
}, 10)), s.data));
|
|
3415
3415
|
},
|
|
3416
3416
|
visible: !1
|
|
3417
3417
|
};
|
|
@@ -3429,8 +3429,8 @@ const rt = {
|
|
|
3429
3429
|
...f(["tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode"])
|
|
3430
3430
|
},
|
|
3431
3431
|
components: {
|
|
3432
|
-
editForm:
|
|
3433
|
-
editFormTemplate:
|
|
3432
|
+
editForm: K,
|
|
3433
|
+
editFormTemplate: E
|
|
3434
3434
|
},
|
|
3435
3435
|
methods: {
|
|
3436
3436
|
templateLibrary(t) {
|
|
@@ -3442,11 +3442,11 @@ const rt = {
|
|
|
3442
3442
|
this.refresh();
|
|
3443
3443
|
},
|
|
3444
3444
|
showImg(t) {
|
|
3445
|
-
|
|
3445
|
+
F({
|
|
3446
3446
|
id: t.example
|
|
3447
3447
|
}).then((e) => {
|
|
3448
|
-
const
|
|
3449
|
-
this.imgList = [
|
|
3448
|
+
const a = window.URL.createObjectURL(new Blob([e]));
|
|
3449
|
+
this.imgList = [a], this.currentImg = a, this.$refs.imgPreview.open();
|
|
3450
3450
|
});
|
|
3451
3451
|
},
|
|
3452
3452
|
saveQueries(t) {
|
|
@@ -3509,35 +3509,35 @@ const rt = {
|
|
|
3509
3509
|
customClass: "custom-alert",
|
|
3510
3510
|
callback: () => {
|
|
3511
3511
|
},
|
|
3512
|
-
beforeClose: (t, e,
|
|
3513
|
-
this.delHand(t, e,
|
|
3512
|
+
beforeClose: (t, e, a) => {
|
|
3513
|
+
this.delHand(t, e, a);
|
|
3514
3514
|
}
|
|
3515
3515
|
});
|
|
3516
3516
|
},
|
|
3517
|
-
delHand(t, e,
|
|
3517
|
+
delHand(t, e, a) {
|
|
3518
3518
|
if (t !== "confirm") {
|
|
3519
|
-
|
|
3519
|
+
a();
|
|
3520
3520
|
return;
|
|
3521
3521
|
}
|
|
3522
|
-
let
|
|
3522
|
+
let s = [], i = se({
|
|
3523
3523
|
ids: this.selectedRowKeys.join(",")
|
|
3524
3524
|
}).then((l) => l);
|
|
3525
|
-
|
|
3526
|
-
|
|
3525
|
+
s.push(i), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(s).then((l) => {
|
|
3526
|
+
a();
|
|
3527
3527
|
const n = l.filter((r) => !r.success);
|
|
3528
3528
|
n.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") + n[0].message), this.refresh(), e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0;
|
|
3529
3529
|
});
|
|
3530
3530
|
},
|
|
3531
3531
|
enabling(t) {
|
|
3532
3532
|
},
|
|
3533
|
-
enabHand(t, e,
|
|
3533
|
+
enabHand(t, e, a, s) {
|
|
3534
3534
|
if (t !== "confirm") {
|
|
3535
|
-
|
|
3535
|
+
a();
|
|
3536
3536
|
return;
|
|
3537
3537
|
}
|
|
3538
|
-
let i = [], l =
|
|
3538
|
+
let i = [], l = ae(s).then((n) => n);
|
|
3539
3539
|
i.push(l), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(i).then((n) => {
|
|
3540
|
-
|
|
3540
|
+
a();
|
|
3541
3541
|
const r = n.filter((o) => !o.success);
|
|
3542
3542
|
r.length === 0 ? this.$message.success(this.$i18nt("gd.https.editSucc", "\u7F16\u8F91\u6210\u529F")) : this.$message.error(this.$i18nt("gd.https.editFail", "\u7F16\u8F91\u5931\u8D25") + r[0].message), this.refresh(), e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0;
|
|
3543
3543
|
});
|
|
@@ -3549,8 +3549,8 @@ const rt = {
|
|
|
3549
3549
|
this.$refs.table.refresh();
|
|
3550
3550
|
},
|
|
3551
3551
|
dictSwitch(t, e) {
|
|
3552
|
-
let
|
|
3553
|
-
return
|
|
3552
|
+
let a = this.$options.filters.dictData(e).filter((s) => s.code == t)[0];
|
|
3553
|
+
return a && a.colour ? a.colour : null;
|
|
3554
3554
|
},
|
|
3555
3555
|
getDict(t) {
|
|
3556
3556
|
return this.$options.filters.dictData(t);
|
|
@@ -3561,48 +3561,48 @@ const rt = {
|
|
|
3561
3561
|
}
|
|
3562
3562
|
}
|
|
3563
3563
|
};
|
|
3564
|
-
var
|
|
3565
|
-
var e = this,
|
|
3566
|
-
return
|
|
3567
|
-
return [
|
|
3568
|
-
return !
|
|
3569
|
-
} }, model: { value: e.queryParam.name, callback: function(
|
|
3570
|
-
e.$set(e.queryParam, "name",
|
|
3571
|
-
}, expression: "queryParam.name" } }),
|
|
3572
|
-
}, proxy: !0 }, { key: "name", fn: function({ column:
|
|
3573
|
-
return [
|
|
3574
|
-
} }, { key: "msg_TemplateLibraryId", fn: function({ column:
|
|
3575
|
-
return [
|
|
3564
|
+
var dt = function() {
|
|
3565
|
+
var e = this, a = e._self._c;
|
|
3566
|
+
return a("div", { staticClass: "gd-page-view" }, [a("div", { staticClass: "page-view-list", staticStyle: { padding: "0px" } }, [a("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: "operator", fn: function() {
|
|
3567
|
+
return [a("div", { staticClass: "gd-table-operator" }, [a("div", { staticClass: "gd-table-operatorl" }, [a("el-input", { staticClass: "table-operator-input", attrs: { placeholder: e.$i18nt("gd.msg.templateLibrary.name", "\u540D\u79F0"), clearable: "" }, nativeOn: { keyup: function(s) {
|
|
3568
|
+
return !s.type.indexOf("key") && e._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : e.refresh.apply(null, arguments);
|
|
3569
|
+
} }, model: { value: e.queryParam.name, callback: function(s) {
|
|
3570
|
+
e.$set(e.queryParam, "name", s);
|
|
3571
|
+
}, expression: "queryParam.name" } }), a("div", { staticClass: "table-operator-search", on: { click: e.refresh } }, [a("i", { staticClass: "el-input__icon el-icon-search" })])], 1), a("div", { staticClass: "gd-table-operatorr" }, [a("gd-btn-list", { attrs: { sysViewButtons: e.tableButtons }, on: { functionName: e.doEvent } })], 1)])];
|
|
3572
|
+
}, proxy: !0 }, { key: "name", fn: function({ column: s, row: i }) {
|
|
3573
|
+
return [a("gd-tooltip", { attrs: { rowKey: "name", row: i, highlight: "" }, on: { click: e.editForm } })];
|
|
3574
|
+
} }, { key: "msg_TemplateLibraryId", fn: function({ column: s, row: i }) {
|
|
3575
|
+
return [a("gd-tooltip", { attrs: { rowKey: "msg_templatelibraryidname", row: i, highlight: "" }, on: { click: function(l) {
|
|
3576
3576
|
return e.templateLibrary(i);
|
|
3577
3577
|
} } })];
|
|
3578
|
-
} }, { key: "example", fn: function(
|
|
3579
|
-
return [
|
|
3580
|
-
return e.showImg(
|
|
3578
|
+
} }, { key: "example", fn: function(s) {
|
|
3579
|
+
return [s.row.example ? a("el-button", { staticStyle: { margin: "0 1px 0 0", padding: "6px 8px" }, attrs: { type: "primary" }, on: { click: function(i) {
|
|
3580
|
+
return e.showImg(s.row);
|
|
3581
3581
|
} } }, [e._v(" " + e._s(e.$i18nt("gd.btn.viewPicture")) + " ")]) : e._e()];
|
|
3582
|
-
} }, { key: "stateCodes", fn: function(
|
|
3583
|
-
return [e.dictSwitch(
|
|
3584
|
-
return e.enabling(
|
|
3585
|
-
} } }, [e._v(" " + e._s(e._f("dictType")("state_code",
|
|
3586
|
-
return e.enabling(
|
|
3587
|
-
} } }, [e._v(e._s(e._f("dictType")("state_code",
|
|
3588
|
-
} }, { key: "filtering", fn: function({ colse:
|
|
3589
|
-
return [
|
|
3590
|
-
} }]) })], 1),
|
|
3591
|
-
},
|
|
3592
|
-
rt,
|
|
3582
|
+
} }, { key: "stateCodes", fn: function(s) {
|
|
3583
|
+
return [e.dictSwitch(s.row.statecodes, "state_code") ? a("el-tag", { staticStyle: { "border-color": "transparent" }, attrs: { effect: "dark", color: e.dictSwitch(s.row.statecodes, "state_code") }, on: { click: function(i) {
|
|
3584
|
+
return e.enabling(s.row);
|
|
3585
|
+
} } }, [e._v(" " + e._s(e._f("dictType")("state_code", s.row.statecodes)) + " ")]) : a("span", { on: { click: function(i) {
|
|
3586
|
+
return e.enabling(s.row);
|
|
3587
|
+
} } }, [e._v(e._s(e._f("dictType")("state_code", s.row.statecodes)))])];
|
|
3588
|
+
} }, { key: "filtering", fn: function({ colse: s, visible: i }) {
|
|
3589
|
+
return [a("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: s, visible: i }, on: { save: e.saveQueries } })];
|
|
3590
|
+
} }]) })], 1), a("editForm", { ref: "editForm", on: { ok: e.refresh } }), a("editFormTemplate", { ref: "editFormTemplate", on: { ok: e.templateOk } }), a("gd-img-preview", { ref: "imgPreview", attrs: { filePreviewShow: e.imgList.length > 0, imgList: e.imgList, currentImg: e.currentImg } })], 1);
|
|
3591
|
+
}, ct = [], ut = /* @__PURE__ */ p(
|
|
3593
3592
|
ot,
|
|
3594
3593
|
dt,
|
|
3594
|
+
ct,
|
|
3595
3595
|
!1,
|
|
3596
3596
|
null,
|
|
3597
3597
|
"56a42211",
|
|
3598
3598
|
null,
|
|
3599
3599
|
null
|
|
3600
3600
|
);
|
|
3601
|
-
const k =
|
|
3601
|
+
const k = ut.exports;
|
|
3602
3602
|
k.install = function(t) {
|
|
3603
3603
|
t.component(k.name, k);
|
|
3604
3604
|
};
|
|
3605
|
-
const
|
|
3605
|
+
const pt = {
|
|
3606
3606
|
data() {
|
|
3607
3607
|
return {
|
|
3608
3608
|
tableColumns: [
|
|
@@ -3966,7 +3966,7 @@ const ut = {
|
|
|
3966
3966
|
};
|
|
3967
3967
|
}
|
|
3968
3968
|
};
|
|
3969
|
-
const
|
|
3969
|
+
const ft = {
|
|
3970
3970
|
props: {
|
|
3971
3971
|
fieldData: {
|
|
3972
3972
|
type: Array,
|
|
@@ -4003,7 +4003,9 @@ const pt = {
|
|
|
4003
4003
|
msgAlertRuleType: "",
|
|
4004
4004
|
lookType: "",
|
|
4005
4005
|
oldfkData: [],
|
|
4006
|
-
ruleFormData: {
|
|
4006
|
+
ruleFormData: {
|
|
4007
|
+
msg_messagetemplateid: null
|
|
4008
|
+
},
|
|
4007
4009
|
rules: {
|
|
4008
4010
|
name: [
|
|
4009
4011
|
{
|
|
@@ -4026,6 +4028,13 @@ const pt = {
|
|
|
4026
4028
|
trigger: "change"
|
|
4027
4029
|
}
|
|
4028
4030
|
],
|
|
4031
|
+
templatetype: [
|
|
4032
|
+
{
|
|
4033
|
+
required: !0,
|
|
4034
|
+
message: this.$i18nt("gd.btn.select", "\u8BF7\u9009\u62E9"),
|
|
4035
|
+
trigger: "change"
|
|
4036
|
+
}
|
|
4037
|
+
],
|
|
4029
4038
|
sendobject: [
|
|
4030
4039
|
{
|
|
4031
4040
|
required: !0,
|
|
@@ -4110,6 +4119,10 @@ const pt = {
|
|
|
4110
4119
|
disabled() {
|
|
4111
4120
|
return this.type != 1;
|
|
4112
4121
|
},
|
|
4122
|
+
getSendType() {
|
|
4123
|
+
let t = [], e = [];
|
|
4124
|
+
return this.getDictionary("SendType").map((s) => (s.disabled = s.statecodes != 1, s.disabled ? e.push(s) : t.push(s), s)), t.concat(e);
|
|
4125
|
+
},
|
|
4113
4126
|
...f(["tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode"])
|
|
4114
4127
|
},
|
|
4115
4128
|
methods: {
|
|
@@ -4117,20 +4130,16 @@ const pt = {
|
|
|
4117
4130
|
this.msgAlertRuleType = t;
|
|
4118
4131
|
},
|
|
4119
4132
|
lookupSeled(t) {
|
|
4120
|
-
|
|
4121
|
-
this.dataList = t.fkData, this.ruleFormData.msg_messagetemplateid = t.data[0];
|
|
4122
|
-
return;
|
|
4123
|
-
}
|
|
4124
|
-
this.sendObjectList = t.fkData, this.oldfkData = t.fkData, this.ruleFormData.sendobject = t.data;
|
|
4133
|
+
this.lookType !== "msg_messagetemplateid" && (this.sendObjectList = t.fkData, this.oldfkData = t.fkData, this.ruleFormData.sendobject = t.data);
|
|
4125
4134
|
},
|
|
4126
4135
|
lookup(t, e) {
|
|
4127
|
-
let
|
|
4136
|
+
let a = e;
|
|
4128
4137
|
this.lookType = t;
|
|
4129
|
-
let
|
|
4138
|
+
let s = t === "msg_messagetemplateid" ? this.fkEntityName : this.fksEntityName, i = {
|
|
4130
4139
|
effectType: t === "msg_messagetemplateid" ? "fk" : "participants",
|
|
4131
|
-
fkEntityName:
|
|
4140
|
+
fkEntityName: s,
|
|
4132
4141
|
fkData: t === "msg_messagetemplateid" ? this.dataList : this.sendObjectList,
|
|
4133
|
-
val:
|
|
4142
|
+
val: a || ""
|
|
4134
4143
|
};
|
|
4135
4144
|
this.$refs.msgSearch.open(i);
|
|
4136
4145
|
},
|
|
@@ -4138,7 +4147,7 @@ const pt = {
|
|
|
4138
4147
|
this.fullscreen = !this.fullscreen;
|
|
4139
4148
|
},
|
|
4140
4149
|
open(t) {
|
|
4141
|
-
this.oldfkData = [], this.fullscreen = !1, this.visible = !0, this.detail = t || {}, this.type = t ? 2 : 1, this.title = t ? this.$i18nt("gd.https.edit") : this.$i18nt("gd.https.add"), t ? this.getDetail() : (this.
|
|
4150
|
+
this.oldfkData = [], this.fullscreen = !1, this.visible = !0, this.detail = t || {}, this.type = t ? 2 : 1, this.title = t ? this.$i18nt("gd.https.edit") : this.$i18nt("gd.https.add"), t ? this.getDetail() : (this.sendData(""), this.times = [], this.msgAlertRuleType = "", this.sendObjectList = [], this.$nextTick(() => {
|
|
4142
4151
|
setTimeout(() => {
|
|
4143
4152
|
this.ruleFormData = {
|
|
4144
4153
|
advanceday: 0,
|
|
@@ -4146,13 +4155,14 @@ const pt = {
|
|
|
4146
4155
|
advanceminute: 0,
|
|
4147
4156
|
delayedday: 0,
|
|
4148
4157
|
delayedhours: 0,
|
|
4149
|
-
delayedminute: 0
|
|
4158
|
+
delayedminute: 0,
|
|
4159
|
+
msg_messagetemplateid: null
|
|
4150
4160
|
};
|
|
4151
4161
|
}, 0);
|
|
4152
4162
|
}));
|
|
4153
4163
|
},
|
|
4154
4164
|
getDetail() {
|
|
4155
|
-
this.confirmLoading = !0,
|
|
4165
|
+
this.confirmLoading = !0, H({
|
|
4156
4166
|
id: this.detail.id
|
|
4157
4167
|
}).then((t) => {
|
|
4158
4168
|
if (t.code === 200) {
|
|
@@ -4164,21 +4174,23 @@ const pt = {
|
|
|
4164
4174
|
};
|
|
4165
4175
|
e.push(n);
|
|
4166
4176
|
}), this.times = e;
|
|
4167
|
-
let
|
|
4168
|
-
this.msgAlertRuleType =
|
|
4177
|
+
let s = t.data.msg_templatelibrary;
|
|
4178
|
+
this.msgAlertRuleType = s.msgalertruletype ? s.msgalertruletype : "";
|
|
4169
4179
|
let i = {
|
|
4170
|
-
id:
|
|
4171
|
-
name:
|
|
4172
|
-
advanceday:
|
|
4173
|
-
advancehours:
|
|
4174
|
-
advanceminute:
|
|
4175
|
-
delayedday:
|
|
4176
|
-
delayedhours:
|
|
4177
|
-
delayedminute:
|
|
4178
|
-
msgalertruletype:
|
|
4180
|
+
id: s.id,
|
|
4181
|
+
name: s.name,
|
|
4182
|
+
advanceday: s.advanceday,
|
|
4183
|
+
advancehours: s.advancehours,
|
|
4184
|
+
advanceminute: s.advanceminute,
|
|
4185
|
+
delayedday: s.delayedday,
|
|
4186
|
+
delayedhours: s.delayedhours,
|
|
4187
|
+
delayedminute: s.delayedminute,
|
|
4188
|
+
msgalertruletype: s.msgalertruletype ? String(s.msgalertruletype) : "",
|
|
4189
|
+
templatetype: t.data.templatetype ? String(t.data.templatetype) : ""
|
|
4179
4190
|
};
|
|
4180
4191
|
if (this.msgAlertRuleType == 1) {
|
|
4181
|
-
|
|
4192
|
+
this.inittype(String(t.data.templatetype));
|
|
4193
|
+
let l = s.sendobject ? JSON.parse(s.sendobject) : [], n = [];
|
|
4182
4194
|
l.forEach((r) => {
|
|
4183
4195
|
n.push(r.id);
|
|
4184
4196
|
}), this.sendObjectList = [...l], this.oldfkData = [...l], i = Object.assign(
|
|
@@ -4186,18 +4198,18 @@ const pt = {
|
|
|
4186
4198
|
...i
|
|
4187
4199
|
},
|
|
4188
4200
|
{
|
|
4189
|
-
sendobject:
|
|
4190
|
-
alertdate:
|
|
4191
|
-
msg_messagetemplateid:
|
|
4192
|
-
content:
|
|
4193
|
-
remark:
|
|
4201
|
+
sendobject: s.sendobject ? n : void 0,
|
|
4202
|
+
alertdate: s.alertdate ? s.alertdate : void 0,
|
|
4203
|
+
msg_messagetemplateid: s.msg_messagetemplateid ? s.msg_messagetemplateid : void 0,
|
|
4204
|
+
content: s.content ? s.content : "",
|
|
4205
|
+
remark: s.remark ? s.remark : ""
|
|
4194
4206
|
}
|
|
4195
4207
|
);
|
|
4196
4208
|
}
|
|
4197
|
-
|
|
4209
|
+
s.msg_messagetemplateid, this.sendObjectList.length, this.$nextTick(() => {
|
|
4198
4210
|
setTimeout(() => {
|
|
4199
4211
|
this.ruleFormData = i;
|
|
4200
|
-
},
|
|
4212
|
+
}, 100);
|
|
4201
4213
|
}), this.confirmLoading = !1;
|
|
4202
4214
|
}
|
|
4203
4215
|
});
|
|
@@ -4216,7 +4228,7 @@ const pt = {
|
|
|
4216
4228
|
this.$message.warning(this.$i18nt("gd.msg.sendPlan.correctTimeTip"));
|
|
4217
4229
|
return;
|
|
4218
4230
|
}
|
|
4219
|
-
let
|
|
4231
|
+
let a = Object.assign(
|
|
4220
4232
|
{
|
|
4221
4233
|
...e
|
|
4222
4234
|
},
|
|
@@ -4226,18 +4238,18 @@ const pt = {
|
|
|
4226
4238
|
);
|
|
4227
4239
|
if (this.msgAlertRuleType == 1) {
|
|
4228
4240
|
let i = this.oldfkData.filter((l) => e.sendobject.includes(l.id));
|
|
4229
|
-
|
|
4241
|
+
a = Object.assign(
|
|
4230
4242
|
{
|
|
4231
|
-
...
|
|
4243
|
+
...a
|
|
4232
4244
|
},
|
|
4233
4245
|
{
|
|
4234
4246
|
sendobject: JSON.stringify(i)
|
|
4235
4247
|
}
|
|
4236
4248
|
);
|
|
4237
4249
|
} else
|
|
4238
|
-
|
|
4250
|
+
a = Object.assign(
|
|
4239
4251
|
{
|
|
4240
|
-
...
|
|
4252
|
+
...a
|
|
4241
4253
|
},
|
|
4242
4254
|
{
|
|
4243
4255
|
sendobject: null,
|
|
@@ -4247,19 +4259,19 @@ const pt = {
|
|
|
4247
4259
|
remark: ""
|
|
4248
4260
|
}
|
|
4249
4261
|
);
|
|
4250
|
-
(this.type == 1 ?
|
|
4251
|
-
i.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.confirmLoading = !1, this.$emit("ok",
|
|
4262
|
+
(this.type == 1 ? z : W)(a).then((i) => {
|
|
4263
|
+
i.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.confirmLoading = !1, this.$emit("ok", a), this.closed()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + i.message), this.confirmLoading = !1;
|
|
4252
4264
|
});
|
|
4253
4265
|
}
|
|
4254
4266
|
});
|
|
4255
4267
|
},
|
|
4256
4268
|
isChecked() {
|
|
4257
|
-
return this.times.every((t, e,
|
|
4269
|
+
return this.times.every((t, e, a) => t.starttime !== "" && t.endtime !== "");
|
|
4258
4270
|
},
|
|
4259
4271
|
isCheckedLong() {
|
|
4260
|
-
return this.times.every((t, e,
|
|
4261
|
-
let
|
|
4262
|
-
return
|
|
4272
|
+
return this.times.every((t, e, a) => {
|
|
4273
|
+
let s = t.endtime.split(":").join("") * 1, i = t.starttime.split(":").join("") * 1;
|
|
4274
|
+
return s - i >= 0;
|
|
4263
4275
|
});
|
|
4264
4276
|
},
|
|
4265
4277
|
sendCick(t) {
|
|
@@ -4271,11 +4283,11 @@ const pt = {
|
|
|
4271
4283
|
g({
|
|
4272
4284
|
fkEntityName: "sys_employees",
|
|
4273
4285
|
name: t
|
|
4274
|
-
}).then((
|
|
4275
|
-
let
|
|
4286
|
+
}).then((a) => {
|
|
4287
|
+
let s = a.success ? a.data.map((r) => (r.tableName = "sys_employees", r)) : [], i = e.concat(s), l = [], n = [];
|
|
4276
4288
|
for (let r = 0; r < i.length; r++)
|
|
4277
4289
|
l.indexOf(i[r].id) <= -1 && (l.push(i[r].id), n.push(i[r])), this.oldfkData = [...n];
|
|
4278
|
-
this.sendObjectList = [...
|
|
4290
|
+
this.sendObjectList = [...s];
|
|
4279
4291
|
});
|
|
4280
4292
|
},
|
|
4281
4293
|
searchList() {
|
|
@@ -4286,17 +4298,17 @@ const pt = {
|
|
|
4286
4298
|
fkEntityName: "msg_messagetemplate",
|
|
4287
4299
|
name: t
|
|
4288
4300
|
}).then((e) => {
|
|
4289
|
-
let
|
|
4290
|
-
this.dataList = [...
|
|
4301
|
+
let a = e.success ? e.data.map((s) => (s.tableName = "msg_messagetemplate", s)) : [];
|
|
4302
|
+
this.dataList = [...a];
|
|
4291
4303
|
});
|
|
4292
4304
|
},
|
|
4293
4305
|
searchData(t, e) {
|
|
4294
4306
|
this.dataList = [], this.fetching = !0;
|
|
4295
|
-
const
|
|
4307
|
+
const a = e === "msg_messagetemplateid" ? this.fkEntityName : this.fksEntityName.split(",")[0];
|
|
4296
4308
|
return g({
|
|
4297
|
-
fkEntityName:
|
|
4309
|
+
fkEntityName: a,
|
|
4298
4310
|
id: t
|
|
4299
|
-
}).then((
|
|
4311
|
+
}).then((s) => (this.dataList = s.success ? s.data.map((i) => (i.tableName = a, i)) : [], this.fetching = !1, s));
|
|
4300
4312
|
},
|
|
4301
4313
|
closed() {
|
|
4302
4314
|
this.$refs.ruleForm.resetFields(), this.times = [], this.visible = !1;
|
|
@@ -4307,74 +4319,92 @@ const pt = {
|
|
|
4307
4319
|
doEvent(t) {
|
|
4308
4320
|
let e = t.item.functionName;
|
|
4309
4321
|
this[e] && this[e]();
|
|
4322
|
+
},
|
|
4323
|
+
selTemplateType() {
|
|
4324
|
+
this.dataList = [], S({
|
|
4325
|
+
templateType: this.ruleFormData.templatetype
|
|
4326
|
+
}).then((t) => {
|
|
4327
|
+
this.dataList = t.data, this.$nextTick(() => {
|
|
4328
|
+
this.ruleFormData.msg_messagetemplateid = null;
|
|
4329
|
+
});
|
|
4330
|
+
});
|
|
4331
|
+
},
|
|
4332
|
+
inittype(t) {
|
|
4333
|
+
this.dataList = [], S({
|
|
4334
|
+
templateType: t
|
|
4335
|
+
}).then((e) => {
|
|
4336
|
+
this.dataList = e.data;
|
|
4337
|
+
});
|
|
4310
4338
|
}
|
|
4311
4339
|
}
|
|
4312
4340
|
};
|
|
4313
|
-
var
|
|
4314
|
-
var e = this,
|
|
4315
|
-
return
|
|
4316
|
-
e.visible =
|
|
4317
|
-
}, closed: e.closed } }, [
|
|
4318
|
-
|
|
4319
|
-
} } }, [
|
|
4320
|
-
e.$set(e.ruleFormData, "id",
|
|
4321
|
-
}, expression: "ruleFormData.id" } }) : e._e()], 1),
|
|
4322
|
-
e.$set(e.ruleFormData, "name",
|
|
4323
|
-
}, expression: "ruleFormData.name" } })], 1)], 1),
|
|
4324
|
-
e.$set(e.ruleFormData, "msgalertruletype",
|
|
4325
|
-
}, expression: "ruleFormData.msgalertruletype" } }, e._l(e.getDictionary("msgalertruletype"), function(
|
|
4326
|
-
return
|
|
4327
|
-
}), 1)], 1)], 1)], 1), e.msgAlertRuleType == 1 ? [
|
|
4328
|
-
e.$set(e.ruleFormData, "
|
|
4329
|
-
}, expression: "ruleFormData.
|
|
4330
|
-
return
|
|
4331
|
-
}), 1),
|
|
4332
|
-
|
|
4333
|
-
}
|
|
4334
|
-
|
|
4335
|
-
},
|
|
4336
|
-
|
|
4337
|
-
}
|
|
4341
|
+
var mt = function() {
|
|
4342
|
+
var e = this, a = e._self._c;
|
|
4343
|
+
return a("div", [a("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(s) {
|
|
4344
|
+
e.visible = s;
|
|
4345
|
+
}, closed: e.closed } }, [a("gd-modal-title", { attrs: { slot: "title", title: e.title, fullscreen: e.fullscreen, buttons: e.sysViewButtons, confirmLoading: e.confirmLoading, showClose: !0 }, on: { changeEvent: e.doEvent }, slot: "title" }), a("div", { class: e.fullscreen ? "modal-bodyq" : "modal-body" }, [a("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(s) {
|
|
4346
|
+
s.preventDefault();
|
|
4347
|
+
} } }, [a("el-form-item", { staticStyle: { display: "none" } }, [e.type == 2 ? a("el-input", { model: { value: e.ruleFormData.id, callback: function(s) {
|
|
4348
|
+
e.$set(e.ruleFormData, "id", s);
|
|
4349
|
+
}, expression: "ruleFormData.id" } }) : e._e()], 1), a("el-row", { attrs: { gutter: 24 } }, [a("el-col", { attrs: { md: 12, sm: 24 } }, [a("el-form-item", { attrs: { label: e.$i18nt("gd.msg.sendPlan.name"), prop: "name" } }, [a("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input") }, model: { value: e.ruleFormData.name, callback: function(s) {
|
|
4350
|
+
e.$set(e.ruleFormData, "name", s);
|
|
4351
|
+
}, expression: "ruleFormData.name" } })], 1)], 1), a("el-col", { attrs: { md: 12, sm: 24 } }, [a("el-form-item", { attrs: { label: e.$i18nt("gd.msg.sendPlan.msgAlertRuleType"), prop: "msgalertruletype" } }, [a("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select"), clearable: "" }, on: { change: e.selectRuleType }, model: { value: e.ruleFormData.msgalertruletype, callback: function(s) {
|
|
4352
|
+
e.$set(e.ruleFormData, "msgalertruletype", s);
|
|
4353
|
+
}, expression: "ruleFormData.msgalertruletype" } }, e._l(e.getDictionary("msgalertruletype"), function(s, i) {
|
|
4354
|
+
return a("el-option", { key: i, attrs: { value: s.code, label: e.$i18nt(`Dynamics.${s.transkey}`, s.name) } });
|
|
4355
|
+
}), 1)], 1)], 1)], 1), e.msgAlertRuleType == 1 ? [a("el-row", { attrs: { gutter: 24 } }, [a("el-col", { attrs: { md: 12, sm: 24 } }, [a("el-form-item", { attrs: { label: e.$i18nt("gd.templateLibrary.templateCategory", "\u6A21\u677F\u7C7B\u578B"), prop: "templatetype" } }, [a("div", { staticClass: "cao_about" }, [a("el-select", { staticClass: "cao_input", attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, on: { change: e.selTemplateType }, model: { value: e.ruleFormData.templatetype, callback: function(s) {
|
|
4356
|
+
e.$set(e.ruleFormData, "templatetype", s);
|
|
4357
|
+
}, expression: "ruleFormData.templatetype" } }, e._l(e.getSendType, function(s, i) {
|
|
4358
|
+
return a("el-option", { key: i, attrs: { label: s.name, value: s.code, disabled: s.disabled } }, [e._v(" " + e._s(e.$i18nt(`Dynamics.${s.transkey}`, s.name)) + " ")]);
|
|
4359
|
+
}), 1)], 1)])], 1), a("el-col", { attrs: { md: 12, sm: 24 } }, [a("el-form-item", { attrs: { label: e.$i18nt("gd.msg.sendPlan.messagetemPlate", "\u7C7B\u578B"), prop: "msg_messagetemplateid" } }, [a("div", { staticClass: "cao_about" }, [a("el-select", { staticClass: "cao_input", attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), clearable: "" }, model: { value: e.ruleFormData.msg_messagetemplateid, callback: function(s) {
|
|
4360
|
+
e.$set(e.ruleFormData, "msg_messagetemplateid", s);
|
|
4361
|
+
}, expression: "ruleFormData.msg_messagetemplateid" } }, e._l(e.dataList, function(s) {
|
|
4362
|
+
return a("el-option", { key: s.id, attrs: { label: s.name, value: s.id } });
|
|
4363
|
+
}), 1)], 1)])], 1)], 1), a("el-row", { attrs: { gutter: 24 } }, [a("el-col", { attrs: { md: 12, sm: 24 } }, [a("el-form-item", { attrs: { label: e.$i18nt("gd.msg.sendPlan.sendObject"), prop: "sendobject" } }, [a("div", { staticClass: "cao_about" }, [a("el-select", { staticClass: "cao_input", attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), loading: e.loading, "reserve-keyword": "", filterable: "", remote: "", clearable: "", "remote-method": e.sendData, "collapse-tags": !0, multiple: "" }, on: { focus: e.sendCick }, model: { value: e.ruleFormData.sendobject, callback: function(s) {
|
|
4364
|
+
e.$set(e.ruleFormData, "sendobject", s);
|
|
4365
|
+
}, expression: "ruleFormData.sendobject" } }, e._l(e.sendObjectList, function(s) {
|
|
4366
|
+
return a("el-option", { key: s.id, attrs: { value: s.id, label: s.name } });
|
|
4367
|
+
}), 1), a("div", { staticClass: "cao_setting" }, [a("i", { staticClass: "el-input__icon el-icon-search", on: { click: function(s) {
|
|
4338
4368
|
return e.lookup("sendobject", e.ruleFormData.sendobject);
|
|
4339
|
-
} } })])], 1)])], 1),
|
|
4340
|
-
e.$set(e.ruleFormData, "alertdate",
|
|
4341
|
-
}, expression: "ruleFormData.alertdate" } })], 1)], 1)], 1),
|
|
4342
|
-
e.$set(e.ruleFormData, "content",
|
|
4343
|
-
}, expression: "ruleFormData.content" } })], 1)], 1),
|
|
4344
|
-
e.$set(e.ruleFormData, "remark",
|
|
4345
|
-
}, expression: "ruleFormData.remark" } })], 1)], 1)], 1)] : e._e(),
|
|
4346
|
-
e.$set(e.ruleFormData, "advanceday",
|
|
4347
|
-
}, expression: "ruleFormData.advanceday" } })], 1)], 1),
|
|
4348
|
-
e.$set(e.ruleFormData, "advancehours",
|
|
4349
|
-
}, expression: "ruleFormData.advancehours" } })], 1)], 1),
|
|
4350
|
-
e.$set(e.ruleFormData, "advanceminute",
|
|
4351
|
-
}, expression: "ruleFormData.advanceminute" } })], 1)], 1)], 1),
|
|
4352
|
-
e.$set(e.ruleFormData, "delayedday",
|
|
4353
|
-
}, expression: "ruleFormData.delayedday" } })], 1)], 1),
|
|
4354
|
-
e.$set(e.ruleFormData, "delayedhours",
|
|
4355
|
-
}, expression: "ruleFormData.delayedhours" } })], 1)], 1),
|
|
4356
|
-
e.$set(e.ruleFormData, "delayedminute",
|
|
4357
|
-
}, expression: "ruleFormData.delayedminute" } })], 1)], 1)], 1),
|
|
4369
|
+
} } })])], 1)])], 1), a("el-col", { attrs: { md: 12, sm: 24 } }, [a("el-form-item", { attrs: { label: e.$i18nt("gd.msg.sendPlan.alertDate"), prop: "alertdate" } }, [a("el-date-picker", { staticStyle: { width: "100%" }, attrs: { type: "datetime", placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, model: { value: e.ruleFormData.alertdate, callback: function(s) {
|
|
4370
|
+
e.$set(e.ruleFormData, "alertdate", s);
|
|
4371
|
+
}, expression: "ruleFormData.alertdate" } })], 1)], 1)], 1), a("el-row", { attrs: { gutter: 24 } }, [a("el-col", { attrs: { md: 12, sm: 24 } }, [a("el-form-item", { attrs: { label: e.$i18nt("gd.msg.sendPlan.content"), prop: "content" } }, [a("el-input", { attrs: { type: "textarea", placeholder: e.$i18nt("gd.placeholder.input"), "auto-size": { minRows: 3, maxRows: 5 } }, model: { value: e.ruleFormData.content, callback: function(s) {
|
|
4372
|
+
e.$set(e.ruleFormData, "content", s);
|
|
4373
|
+
}, expression: "ruleFormData.content" } })], 1)], 1), a("el-col", { attrs: { md: 12, sm: 24 } }, [a("el-form-item", { attrs: { label: e.$i18nt("gd.msg.sendPlan.remark"), prop: "remark" } }, [a("el-input", { attrs: { type: "textarea", placeholder: e.$i18nt("gd.placeholder.input"), "auto-size": { minRows: 3, maxRows: 5 } }, model: { value: e.ruleFormData.remark, callback: function(s) {
|
|
4374
|
+
e.$set(e.ruleFormData, "remark", s);
|
|
4375
|
+
}, expression: "ruleFormData.remark" } })], 1)], 1)], 1)] : e._e(), a("el-row", { attrs: { gutter: 24 } }, [a("el-col", { attrs: { md: 8, sm: 24 } }, [a("el-form-item", { attrs: { prop: "advanceday" } }, [a("span", { attrs: { slot: "label" }, slot: "label" }, [e._v(" " + e._s(e.$i18nt("gd.msg.sendPlan.advanceDays")) + "\xA0 "), a("el-tooltip", { attrs: { content: e.$i18nt("gd.msg.sendPlan.advanceDaysTip"), placement: "top" } }, [a("i", { staticClass: "gd-icons gd-icon-question-line" })])], 1), a("el-input-number", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.input"), "controls-position": "right" }, model: { value: e.ruleFormData.advanceday, callback: function(s) {
|
|
4376
|
+
e.$set(e.ruleFormData, "advanceday", s);
|
|
4377
|
+
}, expression: "ruleFormData.advanceday" } })], 1)], 1), a("el-col", { attrs: { md: 8, sm: 24 } }, [a("el-form-item", { attrs: { prop: "advancehours" } }, [a("span", { attrs: { slot: "label" }, slot: "label" }, [e._v(" " + e._s(e.$i18nt("gd.msg.sendPlan.advanceHour")) + "\xA0 "), a("el-tooltip", { attrs: { content: e.$i18nt("gd.msg.sendPlan.advanceHourTip"), placement: "top" } }, [a("i", { staticClass: "gd-icons gd-icon-question-line" })])], 1), a("el-input-number", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.input"), "controls-position": "right" }, model: { value: e.ruleFormData.advancehours, callback: function(s) {
|
|
4378
|
+
e.$set(e.ruleFormData, "advancehours", s);
|
|
4379
|
+
}, expression: "ruleFormData.advancehours" } })], 1)], 1), a("el-col", { attrs: { md: 8, sm: 24 } }, [a("el-form-item", { attrs: { prop: "advanceminute" } }, [a("span", { attrs: { slot: "label" }, slot: "label" }, [e._v(" " + e._s(e.$i18nt("gd.msg.sendPlan.advanceMin")) + "\xA0 "), a("el-tooltip", { attrs: { content: e.$i18nt("gd.msg.sendPlan.advanceMinTip"), placement: "top" } }, [a("i", { staticClass: "gd-icons gd-icon-question-line" })])], 1), a("el-input-number", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.input"), "controls-position": "right" }, model: { value: e.ruleFormData.advanceminute, callback: function(s) {
|
|
4380
|
+
e.$set(e.ruleFormData, "advanceminute", s);
|
|
4381
|
+
}, expression: "ruleFormData.advanceminute" } })], 1)], 1)], 1), a("el-row", { attrs: { gutter: 24 } }, [a("el-col", { attrs: { md: 8, sm: 24 } }, [a("el-form-item", { attrs: { prop: "delayedday" } }, [a("span", { attrs: { slot: "label" }, slot: "label" }, [e._v(" " + e._s(e.$i18nt("gd.msg.sendPlan.delayDays")) + "\xA0 "), a("el-tooltip", { attrs: { content: e.$i18nt("gd.msg.sendPlan.delayDaysTip"), placement: "top" } }, [a("i", { staticClass: "gd-icons gd-icon-question-line" })])], 1), a("el-input-number", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.input"), "controls-position": "right" }, model: { value: e.ruleFormData.delayedday, callback: function(s) {
|
|
4382
|
+
e.$set(e.ruleFormData, "delayedday", s);
|
|
4383
|
+
}, expression: "ruleFormData.delayedday" } })], 1)], 1), a("el-col", { attrs: { md: 8, sm: 24 } }, [a("el-form-item", { attrs: { prop: "delayedhours" } }, [a("span", { attrs: { slot: "label" }, slot: "label" }, [e._v(" " + e._s(e.$i18nt("gd.msg.sendPlan.delayHour")) + "\xA0 "), a("el-tooltip", { attrs: { content: e.$i18nt("gd.msg.sendPlan.delayHourTip"), placement: "top" } }, [a("i", { staticClass: "gd-icons gd-icon-question-line" })])], 1), a("el-input-number", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.input"), "controls-position": "right" }, model: { value: e.ruleFormData.delayedhours, callback: function(s) {
|
|
4384
|
+
e.$set(e.ruleFormData, "delayedhours", s);
|
|
4385
|
+
}, expression: "ruleFormData.delayedhours" } })], 1)], 1), a("el-col", { attrs: { md: 8, sm: 24 } }, [a("el-form-item", { attrs: { prop: "delayedminute" } }, [a("span", { attrs: { slot: "label" }, slot: "label" }, [e._v(" " + e._s(e.$i18nt("gd.msg.sendPlan.delayMin")) + "\xA0 "), a("el-tooltip", { attrs: { content: e.$i18nt("gd.msg.sendPlan.delayMinTip"), placement: "top" } }, [a("i", { staticClass: "gd-icons gd-icon-question-line" })])], 1), a("el-input-number", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.input"), "controls-position": "right" }, model: { value: e.ruleFormData.delayedminute, callback: function(s) {
|
|
4386
|
+
e.$set(e.ruleFormData, "delayedminute", s);
|
|
4387
|
+
}, expression: "ruleFormData.delayedminute" } })], 1)], 1)], 1), a("el-row", { attrs: { gutter: 24 } }, [a("el-col", { attrs: { span: 24 } }, [a("el-form-item", [a("span", { attrs: { slot: "label" }, slot: "label" }, [e._v(" " + e._s(e.$i18nt("gd.msg.sendPlan.exclusionTime")) + "\xA0 "), a("el-tooltip", [a("template", { slot: "content" }, [a("p", [e._v(e._s(e.$i18nt("gd.msg.sendPlan.exclusionTimeTip", "\u5982\u9700\u8DE8\u5929,\u8BF7\u586B\u5199\u4E24\u6BB5\u65F6\u95F4\u6BB5\uFF0C\u5982\uFF1A")))]), a("p", [e._v(e._s(e.$i18nt("gd.msg.sendPlan.exclusionTimeTi", "\u7B2C\u4E00\u6BB5 22:00:00-23:59:59")))]), a("p", [e._v(e._s(e.$i18nt("gd.msg.sendPlan.exclusionTimeT", "\u7B2C\u4E8C\u6BB5 00:00:00-8:00:00")))])]), a("i", { staticClass: "gd-icons gd-icon-question-line" })], 2)], 1), a("el-button", { staticStyle: { "font-size": "14px", padding: "6px 8px", "margin-left": "1px" }, attrs: { type: "primary", size: "mini", icon: "el-icon-plus" }, on: { click: function(s) {
|
|
4358
4388
|
return e.times.push({ startTime: "", endTime: "" });
|
|
4359
|
-
} } }, [e._v(" " + e._s(e.$i18nt("gd.msg.sendPlan.addTime")) + " ")]),
|
|
4360
|
-
return
|
|
4361
|
-
e.$set(
|
|
4362
|
-
}, expression: "item.starttime" } }),
|
|
4363
|
-
e.$set(
|
|
4389
|
+
} } }, [e._v(" " + e._s(e.$i18nt("gd.msg.sendPlan.addTime")) + " ")]), a("div", { staticClass: "time-list" }, e._l(e.times, function(s, i) {
|
|
4390
|
+
return a("div", { key: i, staticClass: "time-item" }, [a("el-time-picker", { attrs: { "value-format": e.format, format: e.format, placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, model: { value: s.starttime, callback: function(l) {
|
|
4391
|
+
e.$set(s, "starttime", l);
|
|
4392
|
+
}, expression: "item.starttime" } }), a("span", { staticStyle: { padding: "0 10px" } }, [e._v("-")]), a("el-time-picker", { attrs: { "value-format": e.format, format: e.format, placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, model: { value: s.endtime, callback: function(l) {
|
|
4393
|
+
e.$set(s, "endtime", l);
|
|
4364
4394
|
}, expression: "item.endtime" } })], 1);
|
|
4365
|
-
}), 0)], 1)], 1)], 1)], 2)], 1)], 1),
|
|
4366
|
-
},
|
|
4367
|
-
pt,
|
|
4395
|
+
}), 0)], 1)], 1)], 1)], 2)], 1)], 1), a("gd-search", { ref: "msgSearch", attrs: { appendToBody: !0 }, on: { lookupSeled: e.lookupSeled } })], 1);
|
|
4396
|
+
}, ht = [], gt = /* @__PURE__ */ p(
|
|
4368
4397
|
ft,
|
|
4369
4398
|
mt,
|
|
4399
|
+
ht,
|
|
4370
4400
|
!1,
|
|
4371
4401
|
null,
|
|
4372
|
-
"
|
|
4402
|
+
"c6abda2b",
|
|
4373
4403
|
null,
|
|
4374
4404
|
null
|
|
4375
4405
|
);
|
|
4376
|
-
const
|
|
4377
|
-
const
|
|
4406
|
+
const yt = gt.exports;
|
|
4407
|
+
const bt = {
|
|
4378
4408
|
props: {
|
|
4379
4409
|
height: {
|
|
4380
4410
|
type: Number,
|
|
@@ -4382,7 +4412,7 @@ const yt = {
|
|
|
4382
4412
|
}
|
|
4383
4413
|
},
|
|
4384
4414
|
name: "GdSysMsgSendPlan",
|
|
4385
|
-
mixins: [_,
|
|
4415
|
+
mixins: [_, pt],
|
|
4386
4416
|
data() {
|
|
4387
4417
|
return {
|
|
4388
4418
|
statu: !1,
|
|
@@ -4402,23 +4432,23 @@ const yt = {
|
|
|
4402
4432
|
transKey: "gd.btn.edit",
|
|
4403
4433
|
loadData: (t, e) => {
|
|
4404
4434
|
this.sorter = e;
|
|
4405
|
-
let
|
|
4406
|
-
return this.isLoading = !0,
|
|
4435
|
+
let a = [...this.oselectedRowKeys];
|
|
4436
|
+
return this.isLoading = !0, q(Object.assign(t, this.getQueryParam)).then((s) => {
|
|
4407
4437
|
this.ppShow = !0, this.isLoading = !1, this.isChangeSize = !1;
|
|
4408
|
-
let i =
|
|
4438
|
+
let i = s.data && s.data.rows ? s.data.rows : [];
|
|
4409
4439
|
i.forEach((n, r) => {
|
|
4410
4440
|
i[r].sendObjectList = n.sendobject ? JSON.parse(n.sendobject) : [];
|
|
4411
4441
|
});
|
|
4412
4442
|
let l = Object.assign(
|
|
4413
4443
|
{
|
|
4414
|
-
...
|
|
4444
|
+
...s.data
|
|
4415
4445
|
},
|
|
4416
4446
|
{
|
|
4417
4447
|
rows: i
|
|
4418
4448
|
}
|
|
4419
4449
|
);
|
|
4420
|
-
return
|
|
4421
|
-
this.$refs.table && this.$refs.table.updateSelect(
|
|
4450
|
+
return s.success && this.openMode == 2 && (this.$emit("changeData", i), setTimeout(() => {
|
|
4451
|
+
this.$refs.table && this.$refs.table.updateSelect(a, []), this.selectedRowKeys = [...a], this.onSelectChange(a, []);
|
|
4422
4452
|
}, 10)), l;
|
|
4423
4453
|
});
|
|
4424
4454
|
}
|
|
@@ -4440,8 +4470,8 @@ const yt = {
|
|
|
4440
4470
|
...f(["tableLists", "tablePageSize", "tableSize", "screenHeight", "labelPosition", "formMode", "primaryColor"])
|
|
4441
4471
|
},
|
|
4442
4472
|
components: {
|
|
4443
|
-
editForm:
|
|
4444
|
-
editFormTemplate:
|
|
4473
|
+
editForm: yt,
|
|
4474
|
+
editFormTemplate: K
|
|
4445
4475
|
},
|
|
4446
4476
|
created() {
|
|
4447
4477
|
this.getTableList();
|
|
@@ -4463,13 +4493,13 @@ const yt = {
|
|
|
4463
4493
|
baseQuickForm(t) {
|
|
4464
4494
|
if (this.statu)
|
|
4465
4495
|
return;
|
|
4466
|
-
let e = this.tableLists.filter((
|
|
4496
|
+
let e = this.tableLists.filter((s) => s.tablename == t.tableName)[0];
|
|
4467
4497
|
if (e === void 0) {
|
|
4468
4498
|
this.$message.error(this.$i18nt("gd.solution.dataErrorTip", "\u6570\u636E\u9519\u8BEF\uFF0C\u5F53\u524D\u6570\u636E(\u8868)\u4E0D\u5B58\u5728\u6216\u8005\u5DF2\u5220\u9664\uFF01"));
|
|
4469
4499
|
return;
|
|
4470
4500
|
}
|
|
4471
4501
|
this.statu = !0;
|
|
4472
|
-
const
|
|
4502
|
+
const a = this.$message({
|
|
4473
4503
|
message: this.$i18nt("gd.https.Loading", "\u52A0\u8F7D\u4E2D..."),
|
|
4474
4504
|
duration: 0,
|
|
4475
4505
|
iconClass: "el-icon-loading"
|
|
@@ -4477,8 +4507,8 @@ const yt = {
|
|
|
4477
4507
|
this.$refs.middleware.init({
|
|
4478
4508
|
tableId: e.id,
|
|
4479
4509
|
data: [t]
|
|
4480
|
-
}).then((
|
|
4481
|
-
this.statu = !1,
|
|
4510
|
+
}).then((s) => {
|
|
4511
|
+
this.statu = !1, a.close();
|
|
4482
4512
|
});
|
|
4483
4513
|
},
|
|
4484
4514
|
saveQueries(t) {
|
|
@@ -4488,9 +4518,9 @@ const yt = {
|
|
|
4488
4518
|
},
|
|
4489
4519
|
editForm(t) {
|
|
4490
4520
|
this.transKey = "gd.btn.edit";
|
|
4491
|
-
let e = t.sendobject ? JSON.parse(t.sendobject) : [],
|
|
4492
|
-
e.forEach((
|
|
4493
|
-
|
|
4521
|
+
let e = t.sendobject ? JSON.parse(t.sendobject) : [], a = [];
|
|
4522
|
+
e.forEach((s) => {
|
|
4523
|
+
a.push(s.id);
|
|
4494
4524
|
}), this.sendObjectList = [...e], this.oldfkData = [...e], this.$refs.editForm.open(
|
|
4495
4525
|
Object.assign(
|
|
4496
4526
|
{
|
|
@@ -4498,7 +4528,7 @@ const yt = {
|
|
|
4498
4528
|
},
|
|
4499
4529
|
{
|
|
4500
4530
|
msgAlertRuleType: String(t.msgalertruletype),
|
|
4501
|
-
sendobject: t.sendobject ?
|
|
4531
|
+
sendobject: t.sendobject ? a : []
|
|
4502
4532
|
}
|
|
4503
4533
|
)
|
|
4504
4534
|
);
|
|
@@ -4517,7 +4547,7 @@ const yt = {
|
|
|
4517
4547
|
}
|
|
4518
4548
|
this.editForm(this.selectedRows[0]);
|
|
4519
4549
|
},
|
|
4520
|
-
sbumit({ data: t, record: e, btn:
|
|
4550
|
+
sbumit({ data: t, record: e, btn: a }, s, i) {
|
|
4521
4551
|
console.log(t, this.oldfkData, "data");
|
|
4522
4552
|
},
|
|
4523
4553
|
del() {
|
|
@@ -4537,21 +4567,21 @@ const yt = {
|
|
|
4537
4567
|
customClass: "custom-alert",
|
|
4538
4568
|
callback: () => {
|
|
4539
4569
|
},
|
|
4540
|
-
beforeClose: (t, e,
|
|
4541
|
-
this.delHand(t, e,
|
|
4570
|
+
beforeClose: (t, e, a) => {
|
|
4571
|
+
this.delHand(t, e, a);
|
|
4542
4572
|
}
|
|
4543
4573
|
});
|
|
4544
4574
|
},
|
|
4545
|
-
delHand(t, e,
|
|
4575
|
+
delHand(t, e, a) {
|
|
4546
4576
|
if (t !== "confirm") {
|
|
4547
|
-
|
|
4577
|
+
a();
|
|
4548
4578
|
return;
|
|
4549
4579
|
}
|
|
4550
|
-
let
|
|
4580
|
+
let s = [], i = V({
|
|
4551
4581
|
ids: this.selectedRowKeys.join(",")
|
|
4552
4582
|
}).then((l) => l);
|
|
4553
|
-
|
|
4554
|
-
e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0,
|
|
4583
|
+
s.push(i), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(s).then((l) => {
|
|
4584
|
+
e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0, a();
|
|
4555
4585
|
const n = l.filter((r) => !r.success);
|
|
4556
4586
|
n.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") + n[0].message), this.refresh();
|
|
4557
4587
|
});
|
|
@@ -4563,8 +4593,8 @@ const yt = {
|
|
|
4563
4593
|
this.$refs.table.refresh();
|
|
4564
4594
|
},
|
|
4565
4595
|
dictSwitch(t, e) {
|
|
4566
|
-
let
|
|
4567
|
-
return
|
|
4596
|
+
let a = this.$options.filters.dictData(e).filter((s) => s.code == t)[0];
|
|
4597
|
+
return a != null && a.colour ? a.colour : null;
|
|
4568
4598
|
},
|
|
4569
4599
|
getDict(t) {
|
|
4570
4600
|
return this.$options.filters.dictData(t);
|
|
@@ -4575,46 +4605,46 @@ const yt = {
|
|
|
4575
4605
|
}
|
|
4576
4606
|
}
|
|
4577
4607
|
};
|
|
4578
|
-
var
|
|
4579
|
-
var e = this,
|
|
4580
|
-
return
|
|
4581
|
-
return [
|
|
4582
|
-
return !
|
|
4583
|
-
} }, model: { value: e.queryParam.name, callback: function(
|
|
4584
|
-
e.$set(e.queryParam, "name",
|
|
4585
|
-
}, expression: "queryParam.name" } }),
|
|
4586
|
-
}, proxy: !0 }, { key: "name", fn: function({ column:
|
|
4587
|
-
return [
|
|
4588
|
-
} }, { key: "msg_MessagetemplateIdName", fn: function({ column:
|
|
4589
|
-
return [
|
|
4608
|
+
var vt = function() {
|
|
4609
|
+
var e = this, a = e._self._c;
|
|
4610
|
+
return a("div", { staticClass: "gd-page-view" }, [a("div", { staticClass: "page-view-list", staticStyle: { padding: "0px" } }, [a("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: "operator", fn: function() {
|
|
4611
|
+
return [a("div", { staticClass: "gd-table-operator" }, [a("div", { staticClass: "gd-table-operatorl" }, [a("el-input", { staticClass: "table-operator-input", attrs: { placeholder: e.$i18nt("gd.msg.sendPlan.name", "\u540D\u79F0"), clearable: "" }, nativeOn: { keyup: function(s) {
|
|
4612
|
+
return !s.type.indexOf("key") && e._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : e.refresh.apply(null, arguments);
|
|
4613
|
+
} }, model: { value: e.queryParam.name, callback: function(s) {
|
|
4614
|
+
e.$set(e.queryParam, "name", s);
|
|
4615
|
+
}, expression: "queryParam.name" } }), a("div", { staticClass: "table-operator-search", on: { click: e.refresh } }, [a("i", { staticClass: "el-input__icon el-icon-search" })])], 1), a("div", { staticClass: "gd-table-operatorr" }, [a("gd-btn-list", { attrs: { sysViewButtons: e.tableButtons }, on: { functionName: e.doEvent } })], 1)])];
|
|
4616
|
+
}, proxy: !0 }, { key: "name", fn: function({ column: s, row: i }) {
|
|
4617
|
+
return [a("gd-tooltip", { attrs: { rowKey: "name", row: i, highlight: "" }, on: { click: e.editForm } })];
|
|
4618
|
+
} }, { key: "msg_MessagetemplateIdName", fn: function({ column: s, row: i }) {
|
|
4619
|
+
return [a("gd-tooltip", { attrs: { rowKey: "msg_messagetemplateidname", row: i, highlight: "" }, on: { click: function(l) {
|
|
4590
4620
|
return e.seeMessagetemPlate(i);
|
|
4591
4621
|
} } })];
|
|
4592
|
-
} }, { key: "sendObject", fn: function(
|
|
4593
|
-
return [
|
|
4594
|
-
return [
|
|
4622
|
+
} }, { key: "sendObject", fn: function(s) {
|
|
4623
|
+
return [a("el-popover", { attrs: { placement: "top", trigger: "hover", "close-delay": 34 } }, [a("div", { staticClass: "file-popover" }, [e._l(s.row.sendObjectList, function(i, l) {
|
|
4624
|
+
return [a("span", { staticClass: "file-popover-item", on: { click: function(n) {
|
|
4595
4625
|
return e.baseQuickForm(i);
|
|
4596
4626
|
} } }, [e._v(e._s(i.name))])];
|
|
4597
|
-
})], 2),
|
|
4598
|
-
return [
|
|
4627
|
+
})], 2), a("div", { staticClass: "line1", attrs: { slot: "reference" }, slot: "reference" }, [e._l(s.row.sendObjectList, function(i, l) {
|
|
4628
|
+
return [a("span", [l !== 0 ? a("span", { staticStyle: { padding: "0 4px 0 2px" } }, [e._v(",")]) : e._e(), a("span", [e._v(e._s(i.name))])])];
|
|
4599
4629
|
})], 2)])];
|
|
4600
|
-
} }, { key: "filtering", fn: function({ colse:
|
|
4601
|
-
return [
|
|
4602
|
-
} }]) })], 1),
|
|
4603
|
-
},
|
|
4604
|
-
yt,
|
|
4630
|
+
} }, { key: "filtering", fn: function({ colse: s, visible: i }) {
|
|
4631
|
+
return [a("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: s, visible: i }, on: { save: e.saveQueries } })];
|
|
4632
|
+
} }]) })], 1), a("editForm", { ref: "editForm", attrs: { fieldData: e.fieldData }, on: { ok: e.refresh } }), a("editFormTemplate", { ref: "editFormTemplate", on: { ok: e.refresh } }), a("gd-middleware", { ref: "middleware", on: { ok: e.refresh } })], 1);
|
|
4633
|
+
}, wt = [], _t = /* @__PURE__ */ p(
|
|
4605
4634
|
bt,
|
|
4606
4635
|
vt,
|
|
4636
|
+
wt,
|
|
4607
4637
|
!1,
|
|
4608
4638
|
null,
|
|
4609
4639
|
"2c6c3930",
|
|
4610
4640
|
null,
|
|
4611
4641
|
null
|
|
4612
4642
|
);
|
|
4613
|
-
const T =
|
|
4643
|
+
const T = _t.exports;
|
|
4614
4644
|
T.install = function(t) {
|
|
4615
4645
|
t.component(T.name, T);
|
|
4616
4646
|
};
|
|
4617
|
-
const
|
|
4647
|
+
const $t = {
|
|
4618
4648
|
data() {
|
|
4619
4649
|
return {
|
|
4620
4650
|
tableColumns: [
|
|
@@ -4962,7 +4992,7 @@ const _t = {
|
|
|
4962
4992
|
};
|
|
4963
4993
|
}
|
|
4964
4994
|
};
|
|
4965
|
-
const
|
|
4995
|
+
const kt = {
|
|
4966
4996
|
props: {
|
|
4967
4997
|
height: {
|
|
4968
4998
|
type: Number,
|
|
@@ -4970,7 +5000,7 @@ const $t = {
|
|
|
4970
5000
|
}
|
|
4971
5001
|
},
|
|
4972
5002
|
name: "GdSysMsgSendRecord",
|
|
4973
|
-
mixins: [_,
|
|
5003
|
+
mixins: [_, $t],
|
|
4974
5004
|
data() {
|
|
4975
5005
|
return {
|
|
4976
5006
|
statu: !1,
|
|
@@ -4987,10 +5017,10 @@ const $t = {
|
|
|
4987
5017
|
transKey: "gd.btn.edit",
|
|
4988
5018
|
loadData: (t, e) => {
|
|
4989
5019
|
this.sorter = e;
|
|
4990
|
-
let
|
|
4991
|
-
return this.isLoading = !0,
|
|
4992
|
-
this.$refs.table && this.$refs.table.updateSelect(
|
|
4993
|
-
}, 10)),
|
|
5020
|
+
let a = [...this.oselectedRowKeys];
|
|
5021
|
+
return this.isLoading = !0, G(Object.assign(t, this.getQueryParam)).then((s) => (this.ppShow = !0, this.isLoading = !1, this.isChangeSize = !1, s.success && this.openMode == 2 && (this.$emit("changeData", s.data.rows), setTimeout(() => {
|
|
5022
|
+
this.$refs.table && this.$refs.table.updateSelect(a, []), this.selectedRowKeys = [...a], this.onSelectChange(a, []);
|
|
5023
|
+
}, 10)), s.data));
|
|
4994
5024
|
}
|
|
4995
5025
|
};
|
|
4996
5026
|
},
|
|
@@ -5005,8 +5035,8 @@ const $t = {
|
|
|
5005
5035
|
t.set(e, this.queryParam[e].join(","));
|
|
5006
5036
|
else if (this.queryParam[e] && (e === "actualOn" || e === "createdTime" || e === "scheduledStartedOn")) {
|
|
5007
5037
|
if (this.queryParam[e].length > 0) {
|
|
5008
|
-
let
|
|
5009
|
-
t.set(`${e}Start`, `${
|
|
5038
|
+
let a = this.queryParam[e], s = a[0].split(" ")[0], i = a[1].split(" ")[0];
|
|
5039
|
+
t.set(`${e}Start`, `${s} 00:00:00`), t.set(`${e}End`, `${i} 23:59:59`);
|
|
5010
5040
|
}
|
|
5011
5041
|
} else
|
|
5012
5042
|
t.set(e, this.queryParam[e]);
|
|
@@ -5023,7 +5053,7 @@ const $t = {
|
|
|
5023
5053
|
this.$message.error(this.$i18nt("gd.solution.dataErrorTip", "\u6570\u636E\u9519\u8BEF\uFF0C\u5F53\u524D\u6570\u636E(\u8868)\u4E0D\u5B58\u5728\u6216\u8005\u5DF2\u5220\u9664\uFF01"));
|
|
5024
5054
|
return;
|
|
5025
5055
|
}
|
|
5026
|
-
let
|
|
5056
|
+
let a = {
|
|
5027
5057
|
tableId: e.id,
|
|
5028
5058
|
data: [
|
|
5029
5059
|
{
|
|
@@ -5032,13 +5062,13 @@ const $t = {
|
|
|
5032
5062
|
]
|
|
5033
5063
|
};
|
|
5034
5064
|
this.statu = !0;
|
|
5035
|
-
const
|
|
5065
|
+
const s = this.$message({
|
|
5036
5066
|
message: this.$i18nt("gd.https.Loading", "\u52A0\u8F7D\u4E2D..."),
|
|
5037
5067
|
duration: 0,
|
|
5038
5068
|
iconClass: "el-icon-loading"
|
|
5039
5069
|
});
|
|
5040
|
-
this.$refs.middleware.init(
|
|
5041
|
-
this.statu = !1,
|
|
5070
|
+
this.$refs.middleware.init(a).then((i) => {
|
|
5071
|
+
this.statu = !1, s.close();
|
|
5042
5072
|
});
|
|
5043
5073
|
},
|
|
5044
5074
|
saveQueries(t) {
|
|
@@ -5049,48 +5079,48 @@ const $t = {
|
|
|
5049
5079
|
this.initForm(e, t);
|
|
5050
5080
|
});
|
|
5051
5081
|
},
|
|
5052
|
-
initForm({ instance: t, done: e },
|
|
5053
|
-
|
|
5054
|
-
|
|
5082
|
+
initForm({ instance: t, done: e }, a) {
|
|
5083
|
+
J({ id: a.id }).then((s) => {
|
|
5084
|
+
s.code === 200 && (e(
|
|
5055
5085
|
Object.assign(
|
|
5056
|
-
{ ...
|
|
5086
|
+
{ ...a },
|
|
5057
5087
|
{
|
|
5058
|
-
sendtype:
|
|
5059
|
-
msgstatus:
|
|
5060
|
-
isauto:
|
|
5088
|
+
sendtype: s.data.sendtype ? String(s.data.sendtype) : "",
|
|
5089
|
+
msgstatus: s.data.msgstatus ? String(s.data.msgstatus) : "",
|
|
5090
|
+
isauto: s.data.isauto === 1
|
|
5061
5091
|
}
|
|
5062
5092
|
)
|
|
5063
|
-
), this.getFkDada(
|
|
5093
|
+
), this.getFkDada(s.data));
|
|
5064
5094
|
});
|
|
5065
5095
|
},
|
|
5066
5096
|
getFkDada(t) {
|
|
5067
5097
|
let e = [];
|
|
5068
5098
|
if (t.msg_messagesendplanid) {
|
|
5069
|
-
let
|
|
5099
|
+
let a = this.searchData(
|
|
5070
5100
|
{ id: t.msg_messagesendplanid, fkEntityName: "msg_messagesendplan" },
|
|
5071
5101
|
"msg_messagesendplanid"
|
|
5072
5102
|
);
|
|
5073
|
-
e.push(
|
|
5103
|
+
e.push(a);
|
|
5074
5104
|
}
|
|
5075
5105
|
if (t.msg_messagetemplateid) {
|
|
5076
|
-
let
|
|
5106
|
+
let a = this.searchData(
|
|
5077
5107
|
{ id: t.msg_messagetemplateid, fkEntityName: "msg_messagetemplate" },
|
|
5078
5108
|
"msg_messagetemplateid"
|
|
5079
5109
|
);
|
|
5080
|
-
e.push(
|
|
5110
|
+
e.push(a);
|
|
5081
5111
|
}
|
|
5082
5112
|
if (t.aboutrecord_aboutid) {
|
|
5083
|
-
let
|
|
5084
|
-
e.push(
|
|
5113
|
+
let a = this.searchData({ id: t.aboutrecord_aboutid, fkEntityName: t.aboutrecord_abouttable }, "aboutrecord_aboutid");
|
|
5114
|
+
e.push(a);
|
|
5085
5115
|
}
|
|
5086
5116
|
if (e.length === 0) {
|
|
5087
5117
|
this.formLoading = !1;
|
|
5088
5118
|
return;
|
|
5089
5119
|
}
|
|
5090
|
-
Promise.all(e).then((
|
|
5091
|
-
|
|
5092
|
-
const i = this.formColumns.filter((l) => l.prop ===
|
|
5093
|
-
|
|
5120
|
+
Promise.all(e).then((a) => {
|
|
5121
|
+
a.forEach((s) => {
|
|
5122
|
+
const i = this.formColumns.filter((l) => l.prop === s.prop)[0];
|
|
5123
|
+
s.res.code === 200 && i && i.setData && (s.res.data.map((l) => (l.tableName = s.data.fkEntityName, l)), i.setData(s.res.data));
|
|
5094
5124
|
}), this.formLoading = !1;
|
|
5095
5125
|
});
|
|
5096
5126
|
},
|
|
@@ -5108,8 +5138,8 @@ const $t = {
|
|
|
5108
5138
|
}
|
|
5109
5139
|
this.editForm(this.selectedRows[0]);
|
|
5110
5140
|
},
|
|
5111
|
-
sbumit({ data: t, record: e, btn:
|
|
5112
|
-
this.formLoading = !0, (e ?
|
|
5141
|
+
sbumit({ data: t, record: e, btn: a }, s, i) {
|
|
5142
|
+
this.formLoading = !0, (e ? U : Q)(t).then((n) => {
|
|
5113
5143
|
n.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), i(), this.refresh()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + n.message), this.formLoading = !1;
|
|
5114
5144
|
});
|
|
5115
5145
|
},
|
|
@@ -5130,21 +5160,21 @@ const $t = {
|
|
|
5130
5160
|
customClass: "custom-alert",
|
|
5131
5161
|
callback: () => {
|
|
5132
5162
|
},
|
|
5133
|
-
beforeClose: (t, e,
|
|
5134
|
-
this.delHand(t, e,
|
|
5163
|
+
beforeClose: (t, e, a) => {
|
|
5164
|
+
this.delHand(t, e, a);
|
|
5135
5165
|
}
|
|
5136
5166
|
});
|
|
5137
5167
|
},
|
|
5138
|
-
delHand(t, e,
|
|
5168
|
+
delHand(t, e, a) {
|
|
5139
5169
|
if (t !== "confirm") {
|
|
5140
|
-
|
|
5170
|
+
a();
|
|
5141
5171
|
return;
|
|
5142
5172
|
}
|
|
5143
|
-
let
|
|
5173
|
+
let s = [], i = X({
|
|
5144
5174
|
ids: this.selectedRowKeys.join(",")
|
|
5145
5175
|
}).then((l) => l);
|
|
5146
|
-
|
|
5147
|
-
e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0,
|
|
5176
|
+
s.push(i), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(s).then((l) => {
|
|
5177
|
+
e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0, a();
|
|
5148
5178
|
const n = l.filter((r) => !r.success);
|
|
5149
5179
|
n.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") + n[0].message), this.refresh();
|
|
5150
5180
|
});
|
|
@@ -5169,38 +5199,38 @@ const $t = {
|
|
|
5169
5199
|
customClass: "custom-alert",
|
|
5170
5200
|
callback: () => {
|
|
5171
5201
|
},
|
|
5172
|
-
beforeClose: (t, e,
|
|
5173
|
-
this.sendHand(t, e,
|
|
5202
|
+
beforeClose: (t, e, a) => {
|
|
5203
|
+
this.sendHand(t, e, a);
|
|
5174
5204
|
}
|
|
5175
5205
|
}
|
|
5176
5206
|
);
|
|
5177
5207
|
},
|
|
5178
|
-
sendHand(t, e,
|
|
5179
|
-
let
|
|
5208
|
+
sendHand(t, e, a) {
|
|
5209
|
+
let s = this;
|
|
5180
5210
|
if (t !== "confirm") {
|
|
5181
|
-
|
|
5211
|
+
a();
|
|
5182
5212
|
return;
|
|
5183
5213
|
}
|
|
5184
5214
|
let i = [];
|
|
5185
|
-
|
|
5186
|
-
let n =
|
|
5215
|
+
s.selectedRowKeys.forEach((l) => {
|
|
5216
|
+
let n = s.sendMsg(l);
|
|
5187
5217
|
i.push(n);
|
|
5188
5218
|
}), Promise.all(i).then((l) => {
|
|
5189
|
-
|
|
5219
|
+
a();
|
|
5190
5220
|
let n = "";
|
|
5191
5221
|
l.forEach((r, o) => {
|
|
5192
5222
|
n += r + `
|
|
5193
5223
|
\r`;
|
|
5194
|
-
}),
|
|
5224
|
+
}), s.$message.info(n), s.refresh();
|
|
5195
5225
|
});
|
|
5196
5226
|
},
|
|
5197
5227
|
sendMsg(t) {
|
|
5198
|
-
return
|
|
5228
|
+
return Y({
|
|
5199
5229
|
id: t
|
|
5200
5230
|
}).then((e) => e);
|
|
5201
5231
|
},
|
|
5202
5232
|
searchData(t, e) {
|
|
5203
|
-
return g(t).then((
|
|
5233
|
+
return g(t).then((a) => ({ res: a, data: t, prop: e }));
|
|
5204
5234
|
},
|
|
5205
5235
|
onSelectChange(t, e) {
|
|
5206
5236
|
this.selectedRowKeys = t, this.selectedRows = e, this.isChangeSize || (this.oselectedRowKeys = t), this.$emit("onSelectChange", t, e);
|
|
@@ -5209,8 +5239,8 @@ const $t = {
|
|
|
5209
5239
|
this.$refs.table.refresh();
|
|
5210
5240
|
},
|
|
5211
5241
|
dictSwitch(t, e) {
|
|
5212
|
-
let
|
|
5213
|
-
return
|
|
5242
|
+
let a = this.$options.filters.dictData(e).filter((s) => s.code == t)[0];
|
|
5243
|
+
return a && a.colour ? a.colour : null;
|
|
5214
5244
|
},
|
|
5215
5245
|
getDict(t) {
|
|
5216
5246
|
return this.$options.filters.dictData(t);
|
|
@@ -5221,44 +5251,44 @@ const $t = {
|
|
|
5221
5251
|
}
|
|
5222
5252
|
}
|
|
5223
5253
|
};
|
|
5224
|
-
var
|
|
5225
|
-
var e = this,
|
|
5226
|
-
return
|
|
5227
|
-
return [
|
|
5228
|
-
e.$set(e.queryParam, "sendType",
|
|
5229
|
-
}, expression: "queryParam.sendType" } }, e._l(e.getDict("SendType"), function(
|
|
5230
|
-
return
|
|
5231
|
-
}), 1),
|
|
5232
|
-
}, proxy: !0 }, { key: "name", fn: function({ column:
|
|
5233
|
-
return [
|
|
5234
|
-
} }, { key: "sendType", fn: function(
|
|
5235
|
-
return [e.dictSwitch(
|
|
5236
|
-
} }, { key: "aboutRecord_AboutId", fn: function({ column:
|
|
5237
|
-
return [
|
|
5254
|
+
var Tt = function() {
|
|
5255
|
+
var e = this, a = e._self._c;
|
|
5256
|
+
return a("div", { staticClass: "gd-page-view" }, [a("div", { staticClass: "page-view-list", staticStyle: { padding: "0px" } }, [a("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: "operator", fn: function() {
|
|
5257
|
+
return [a("div", { staticClass: "gd-table-operator" }, [a("div", { staticClass: "gd-table-operatorl" }, [a("el-select", { staticClass: "table-operator-input", staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.msg.sendRecord.sendMode", "\u53D1\u9001\u65B9\u5F0F"), "reserve-keyword": "", clearable: "", multiple: "", "collapse-tags": !0 }, model: { value: e.queryParam.sendType, callback: function(s) {
|
|
5258
|
+
e.$set(e.queryParam, "sendType", s);
|
|
5259
|
+
}, expression: "queryParam.sendType" } }, e._l(e.getDict("SendType"), function(s) {
|
|
5260
|
+
return a("el-option", { key: s.code, attrs: { value: s.code, label: e.$i18nt(s.prefix ? `${s.prefix}.${s.transkey}` : `Dynamics.${s.transkey}`, s.name) } }, [e._v(" " + e._s(e.$i18nt(s.prefix ? `${s.prefix}.${s.transkey}` : `Dynamics.${s.transkey}`, s.name)) + " ")]);
|
|
5261
|
+
}), 1), a("div", { staticClass: "table-operator-search", on: { click: e.refresh } }, [a("i", { staticClass: "el-input__icon el-icon-search" })])], 1), a("div", { staticClass: "gd-table-operatorr" }, [a("gd-btn-list", { attrs: { sysViewButtons: e.tableButtons }, on: { functionName: e.doEvent } })], 1)])];
|
|
5262
|
+
}, proxy: !0 }, { key: "name", fn: function({ column: s, row: i }) {
|
|
5263
|
+
return [a("gd-tooltip", { attrs: { rowKey: "name", row: i, highlight: "" }, on: { click: e.editForm } })];
|
|
5264
|
+
} }, { key: "sendType", fn: function(s) {
|
|
5265
|
+
return [e.dictSwitch(s.row.sendtype, "sendtype") ? a("el-tag", { style: e._f("dictColor")("sendtype", s.row.sendtype), attrs: { effect: "dark" } }, [e._v(" " + e._s(e._f("dictType")("SendType", s.row.sendtype)) + " ")]) : a("span", [e._v(e._s(e._f("dictType")("SendType", s.row.sendtype)))])];
|
|
5266
|
+
} }, { key: "aboutRecord_AboutId", fn: function({ column: s, row: i }) {
|
|
5267
|
+
return [a("gd-tooltip", { attrs: { rowKey: "aboutrecord_aboutidname", row: i, highlight: "" }, on: { click: function(l) {
|
|
5238
5268
|
return e.aboutRecord(i);
|
|
5239
5269
|
} } })];
|
|
5240
|
-
} }, { key: "msgStatus", fn: function(
|
|
5241
|
-
return [e.dictSwitch(
|
|
5242
|
-
} }, { key: "isAuto", fn: function(
|
|
5243
|
-
return [e.dictSwitch(
|
|
5244
|
-
} }, { key: "filtering", fn: function({ colse:
|
|
5245
|
-
return [
|
|
5246
|
-
} }]) })], 1),
|
|
5247
|
-
},
|
|
5248
|
-
$t,
|
|
5270
|
+
} }, { key: "msgStatus", fn: function(s) {
|
|
5271
|
+
return [e.dictSwitch(s.row.msgstatus, "MessageStatus") ? a("el-tag", { staticStyle: { "border-color": "transparent" }, attrs: { effect: "dark", color: e.dictSwitch(s.row.msgstatus, "MessageStatus") } }, [e._v(" " + e._s(e._f("dictType")("MessageStatus", s.row.msgstatus)) + " ")]) : e._e()];
|
|
5272
|
+
} }, { key: "isAuto", fn: function(s) {
|
|
5273
|
+
return [e.dictSwitch(s.row.isauto, "yes_or_no") ? a("el-tag", { staticStyle: { "border-color": "transparent" }, attrs: { effect: "dark", color: e.dictSwitch(s.row.isauto, "yes_or_no") } }, [e._v(" " + e._s(e._f("dictType")("yes_or_no", s.row.isauto)) + " ")]) : a("span", [e._v(e._s(e._f("dictType")("yes_or_no", s.row.isauto)))])];
|
|
5274
|
+
} }, { key: "filtering", fn: function({ colse: s, visible: i }) {
|
|
5275
|
+
return [a("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: s, visible: i }, on: { save: e.saveQueries } })];
|
|
5276
|
+
} }]) })], 1), a("gd-middleware", { ref: "middleware", on: { ok: e.refresh } }), a("gd-edit-form", { ref: "editForm", attrs: { formItemWidth: "90%", loading: e.formLoading, transKey: e.transKey, buttons: e.formButtons, columns: e.formColumns, labelPosition: e.labelPosition, formMode: e.formMode, inline: !0, needLoad: !0, width: "1000px" }, on: { sbumit: e.sbumit } })], 1);
|
|
5277
|
+
}, Dt = [], xt = /* @__PURE__ */ p(
|
|
5249
5278
|
kt,
|
|
5250
5279
|
Tt,
|
|
5280
|
+
Dt,
|
|
5251
5281
|
!1,
|
|
5252
5282
|
null,
|
|
5253
5283
|
"6b568d9e",
|
|
5254
5284
|
null,
|
|
5255
5285
|
null
|
|
5256
5286
|
);
|
|
5257
|
-
const D =
|
|
5287
|
+
const D = xt.exports;
|
|
5258
5288
|
D.install = function(t) {
|
|
5259
5289
|
t.component(D.name, D);
|
|
5260
5290
|
};
|
|
5261
|
-
const
|
|
5291
|
+
const St = {
|
|
5262
5292
|
data() {
|
|
5263
5293
|
return {
|
|
5264
5294
|
tableColumns: [
|
|
@@ -5442,7 +5472,7 @@ const xt = {
|
|
|
5442
5472
|
};
|
|
5443
5473
|
}
|
|
5444
5474
|
};
|
|
5445
|
-
const
|
|
5475
|
+
const Ct = {
|
|
5446
5476
|
props: {
|
|
5447
5477
|
height: {
|
|
5448
5478
|
type: Number,
|
|
@@ -5458,7 +5488,7 @@ const St = {
|
|
|
5458
5488
|
}
|
|
5459
5489
|
},
|
|
5460
5490
|
name: "GdSysMsgTemplateLibrary",
|
|
5461
|
-
mixins: [_,
|
|
5491
|
+
mixins: [_, St],
|
|
5462
5492
|
data() {
|
|
5463
5493
|
return {
|
|
5464
5494
|
statu: !1,
|
|
@@ -5474,11 +5504,11 @@ const St = {
|
|
|
5474
5504
|
queryParam: {},
|
|
5475
5505
|
oselectedRowKeys: [],
|
|
5476
5506
|
transKey: "gd.btn.edit",
|
|
5477
|
-
loadData: (t, e) => (this.sorter = e, this.isLoading = !0,
|
|
5507
|
+
loadData: (t, e) => (this.sorter = e, this.isLoading = !0, Z(Object.assign(t, this.getQueryParam)).then((a) => (this.ppShow = !0, this.isLoading = !1, this.isChangeSize = !1, a.success && this.openMode == 2 && this.$emit("changeData", a.data.rows), a.data)))
|
|
5478
5508
|
};
|
|
5479
5509
|
},
|
|
5480
5510
|
components: {
|
|
5481
|
-
editForm:
|
|
5511
|
+
editForm: E
|
|
5482
5512
|
},
|
|
5483
5513
|
computed: {
|
|
5484
5514
|
getTableColumns() {
|
|
@@ -5500,7 +5530,7 @@ const St = {
|
|
|
5500
5530
|
wechatAppId(t, e) {
|
|
5501
5531
|
if (this.statu)
|
|
5502
5532
|
return;
|
|
5503
|
-
let
|
|
5533
|
+
let s = {
|
|
5504
5534
|
tableId: this.tableLists.filter((l) => l.tablename === e)[0].id,
|
|
5505
5535
|
data: [
|
|
5506
5536
|
{
|
|
@@ -5514,7 +5544,7 @@ const St = {
|
|
|
5514
5544
|
duration: 0,
|
|
5515
5545
|
iconClass: "el-icon-loading"
|
|
5516
5546
|
});
|
|
5517
|
-
this.$refs.middleware.init(
|
|
5547
|
+
this.$refs.middleware.init(s).then((l) => {
|
|
5518
5548
|
this.statu = !1, i.close();
|
|
5519
5549
|
});
|
|
5520
5550
|
},
|
|
@@ -5549,8 +5579,8 @@ const St = {
|
|
|
5549
5579
|
}
|
|
5550
5580
|
this.editForm(this.selectedRows[0]);
|
|
5551
5581
|
},
|
|
5552
|
-
sbumit({ data: t, record: e, btn:
|
|
5553
|
-
this.formLoading = !0, (e ?
|
|
5582
|
+
sbumit({ data: t, record: e, btn: a }, s, i) {
|
|
5583
|
+
this.formLoading = !0, (e ? P : L)(t).then((n) => {
|
|
5554
5584
|
n.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), i(), this.refresh()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + n.message), this.formLoading = !1;
|
|
5555
5585
|
});
|
|
5556
5586
|
},
|
|
@@ -5571,21 +5601,21 @@ const St = {
|
|
|
5571
5601
|
customClass: "custom-alert",
|
|
5572
5602
|
callback: () => {
|
|
5573
5603
|
},
|
|
5574
|
-
beforeClose: (t, e,
|
|
5575
|
-
this.delHand(t, e,
|
|
5604
|
+
beforeClose: (t, e, a) => {
|
|
5605
|
+
this.delHand(t, e, a);
|
|
5576
5606
|
}
|
|
5577
5607
|
});
|
|
5578
5608
|
},
|
|
5579
|
-
delHand(t, e,
|
|
5609
|
+
delHand(t, e, a) {
|
|
5580
5610
|
if (t !== "confirm") {
|
|
5581
|
-
|
|
5611
|
+
a();
|
|
5582
5612
|
return;
|
|
5583
5613
|
}
|
|
5584
|
-
let
|
|
5614
|
+
let s = [], i = ee({
|
|
5585
5615
|
ids: this.selectedRowKeys.join(",")
|
|
5586
5616
|
}).then((l) => l);
|
|
5587
|
-
|
|
5588
|
-
e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0,
|
|
5617
|
+
s.push(i), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(s).then((l) => {
|
|
5618
|
+
e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0, a();
|
|
5589
5619
|
const n = l.filter((r) => !r.success);
|
|
5590
5620
|
n.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") + n[0].message), this.refresh();
|
|
5591
5621
|
});
|
|
@@ -5610,29 +5640,29 @@ const St = {
|
|
|
5610
5640
|
customClass: "custom-alert",
|
|
5611
5641
|
callback: () => {
|
|
5612
5642
|
},
|
|
5613
|
-
beforeClose: (t, e,
|
|
5614
|
-
this.sendHand(t, e,
|
|
5643
|
+
beforeClose: (t, e, a) => {
|
|
5644
|
+
this.sendHand(t, e, a);
|
|
5615
5645
|
}
|
|
5616
5646
|
}
|
|
5617
5647
|
);
|
|
5618
5648
|
},
|
|
5619
|
-
sendHand(t, e,
|
|
5620
|
-
let
|
|
5649
|
+
sendHand(t, e, a) {
|
|
5650
|
+
let s = this;
|
|
5621
5651
|
if (t !== "confirm") {
|
|
5622
|
-
|
|
5652
|
+
a();
|
|
5623
5653
|
return;
|
|
5624
5654
|
}
|
|
5625
5655
|
let i = [];
|
|
5626
|
-
|
|
5627
|
-
let n =
|
|
5656
|
+
s.selectedRowKeys.forEach((l) => {
|
|
5657
|
+
let n = s.sendMsg(l);
|
|
5628
5658
|
i.push(n);
|
|
5629
5659
|
}), Promise.all(i).then((l) => {
|
|
5630
|
-
|
|
5660
|
+
a();
|
|
5631
5661
|
let n = "";
|
|
5632
5662
|
l.forEach((r, o) => {
|
|
5633
5663
|
n += r + `
|
|
5634
5664
|
\r`;
|
|
5635
|
-
}),
|
|
5665
|
+
}), s.$message.info(n), s.refresh();
|
|
5636
5666
|
});
|
|
5637
5667
|
},
|
|
5638
5668
|
enabling() {
|
|
@@ -5649,8 +5679,8 @@ const St = {
|
|
|
5649
5679
|
this.$refs.table.refresh();
|
|
5650
5680
|
},
|
|
5651
5681
|
dictSwitch(t, e) {
|
|
5652
|
-
let
|
|
5653
|
-
return
|
|
5682
|
+
let a = this.$options.filters.dictData(e).filter((s) => s.code == t)[0];
|
|
5683
|
+
return a != null && a.colour ? a.colour : null;
|
|
5654
5684
|
},
|
|
5655
5685
|
getDict(t) {
|
|
5656
5686
|
return this.$options.filters.dictData(t);
|
|
@@ -5664,154 +5694,154 @@ const St = {
|
|
|
5664
5694
|
if (this.openMode == 2 && this.record.options.val !== void 0) {
|
|
5665
5695
|
const t = typeof this.record.options.val;
|
|
5666
5696
|
let e = t === "string" || t === "number" ? [this.record.options.val] : [...this.record.options.val];
|
|
5667
|
-
this.selectedRowKeys = e.filter((
|
|
5697
|
+
this.selectedRowKeys = e.filter((a) => a !== "");
|
|
5668
5698
|
}
|
|
5669
5699
|
}
|
|
5670
5700
|
};
|
|
5671
|
-
var
|
|
5672
|
-
var e = this,
|
|
5673
|
-
return
|
|
5674
|
-
return [
|
|
5675
|
-
return !
|
|
5676
|
-
} }, model: { value: e.queryParam.name, callback: function(
|
|
5677
|
-
e.$set(e.queryParam, "name",
|
|
5678
|
-
}, expression: "queryParam.name" } }),
|
|
5679
|
-
}, proxy: !0 }, { key: "name", fn: function({ column:
|
|
5680
|
-
return [
|
|
5681
|
-
} }, { key: "templateType", fn: function(
|
|
5682
|
-
return [e.dictSwitch(
|
|
5683
|
-
} }, { key: "nameBas_EnterpriseWechatenterpriseWechatId", fn: function({ column:
|
|
5684
|
-
return [
|
|
5701
|
+
var Ft = function() {
|
|
5702
|
+
var e = this, a = e._self._c;
|
|
5703
|
+
return a("div", { staticClass: "gd-page-view" }, [a("div", { staticClass: "page-view-list", staticStyle: { padding: "0px" } }, [a("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.getTableColumns, selectedRowKeys: e.selectedRowKeys, height: e.getHeight, filtering: !0 }, on: { onChange: e.onSelectChange }, scopedSlots: e._u([{ key: "operator", fn: function() {
|
|
5704
|
+
return [a("div", { staticClass: "gd-table-operator" }, [a("div", { staticClass: "gd-table-operatorl" }, [a("el-input", { staticClass: "table-operator-input", attrs: { placeholder: e.$i18nt("gd.msg.templateLibrary.name", "\u540D\u79F0"), clearable: "" }, nativeOn: { keyup: function(s) {
|
|
5705
|
+
return !s.type.indexOf("key") && e._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : e.refresh.apply(null, arguments);
|
|
5706
|
+
} }, model: { value: e.queryParam.name, callback: function(s) {
|
|
5707
|
+
e.$set(e.queryParam, "name", s);
|
|
5708
|
+
}, expression: "queryParam.name" } }), a("div", { staticClass: "table-operator-search", on: { click: e.refresh } }, [a("i", { staticClass: "el-input__icon el-icon-search" })])], 1), a("div", { staticClass: "gd-table-operatorr" }, [a("gd-btn-list", { attrs: { sysViewButtons: e.tableButtons }, on: { functionName: e.doEvent } })], 1)])];
|
|
5709
|
+
}, proxy: !0 }, { key: "name", fn: function({ column: s, row: i }) {
|
|
5710
|
+
return [a("gd-tooltip", { attrs: { rowKey: "name", row: i, highlight: "" }, on: { click: e.editForm } })];
|
|
5711
|
+
} }, { key: "templateType", fn: function(s) {
|
|
5712
|
+
return [e.dictSwitch(s.row.templatetype, "SendType") ? a("el-tag", { style: e._f("dictColor")("SendType", s.row.templatetype), attrs: { effect: "dark" } }, [e._v(" " + e._s(e._f("dictType")("SendType", s.row.templatetype)) + " ")]) : a("span", [e._v(e._s(e._f("dictType")("SendType", s.row.templatetype)))])];
|
|
5713
|
+
} }, { key: "nameBas_EnterpriseWechatenterpriseWechatId", fn: function({ column: s, row: i }) {
|
|
5714
|
+
return [a("gd-tooltip", { attrs: { rowKey: "namebas_enterprisewechatenterprisewechattd", row: i, highlight: "" }, on: { click: function(l) {
|
|
5685
5715
|
return e.wechatAppId(i.enterprisewechatid, "bas_enterprisewechat");
|
|
5686
5716
|
} } })];
|
|
5687
|
-
} }, { key: "nameBas_EnterpriseWechatAppenterpriseWechatAppId", fn: function({ column:
|
|
5688
|
-
return [
|
|
5717
|
+
} }, { key: "nameBas_EnterpriseWechatAppenterpriseWechatAppId", fn: function({ column: s, row: i }) {
|
|
5718
|
+
return [a("gd-tooltip", { attrs: { rowKey: "namebas_enterprisewechatappenterprisewechatappid", row: i, highlight: "" }, on: { click: function(l) {
|
|
5689
5719
|
return e.wechatAppId(i.enterprisewechatappid, "bas_enterprisewechatapp");
|
|
5690
5720
|
} } })];
|
|
5691
|
-
} }, { key: "wechatPublicAccountID", fn: function({ column:
|
|
5692
|
-
return [
|
|
5721
|
+
} }, { key: "wechatPublicAccountID", fn: function({ column: s, row: i }) {
|
|
5722
|
+
return [a("gd-tooltip", { attrs: { rowKey: "wechatpublicaccountidname", row: i, highlight: "" }, on: { click: function(l) {
|
|
5693
5723
|
return e.wechatAppId(i.wechatpublicaccountid, "bas_wechatpublicaccount");
|
|
5694
5724
|
} } })];
|
|
5695
|
-
} }, { key: "stateCodes", fn: function(
|
|
5696
|
-
return [e.dictSwitch(
|
|
5697
|
-
return e.enabling(
|
|
5698
|
-
} } }, [e._v(" " + e._s(e._f("dictType")("state_code",
|
|
5699
|
-
return e.enabling(
|
|
5700
|
-
} } }, [e._v(e._s(e._f("dictType")("state_code",
|
|
5701
|
-
} }, { key: "filtering", fn: function({ colse:
|
|
5702
|
-
return [
|
|
5703
|
-
} }]) })], 1),
|
|
5704
|
-
},
|
|
5705
|
-
St,
|
|
5725
|
+
} }, { key: "stateCodes", fn: function(s) {
|
|
5726
|
+
return [e.dictSwitch(s.row.statecodes, "state_code") ? a("el-tag", { staticStyle: { "border-color": "transparent" }, attrs: { effect: "dark", color: e.dictSwitch(s.row.statecodes, "state_code") }, on: { click: function(i) {
|
|
5727
|
+
return e.enabling(s.row);
|
|
5728
|
+
} } }, [e._v(" " + e._s(e._f("dictType")("state_code", s.row.statecodes)) + " ")]) : a("span", { on: { click: function(i) {
|
|
5729
|
+
return e.enabling(s.row);
|
|
5730
|
+
} } }, [e._v(e._s(e._f("dictType")("state_code", s.row.statecodes)))])];
|
|
5731
|
+
} }, { key: "filtering", fn: function({ colse: s, visible: i }) {
|
|
5732
|
+
return [a("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: s, visible: i }, on: { save: e.saveQueries } })];
|
|
5733
|
+
} }]) })], 1), a("editForm", { ref: "editForm", attrs: { fkEntityName: e.fkEntityName }, on: { ok: e.refresh } }), a("gd-middleware", { ref: "middleware", on: { ok: e.refresh } })], 1);
|
|
5734
|
+
}, Lt = [], Pt = /* @__PURE__ */ p(
|
|
5706
5735
|
Ct,
|
|
5707
5736
|
Ft,
|
|
5737
|
+
Lt,
|
|
5708
5738
|
!1,
|
|
5709
5739
|
null,
|
|
5710
5740
|
"16da1bae",
|
|
5711
5741
|
null,
|
|
5712
5742
|
null
|
|
5713
5743
|
);
|
|
5714
|
-
const x =
|
|
5744
|
+
const x = Pt.exports;
|
|
5715
5745
|
x.install = function(t) {
|
|
5716
5746
|
t.component(x.name, x);
|
|
5717
5747
|
};
|
|
5718
5748
|
export {
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
5749
|
+
ma as $,
|
|
5750
|
+
ua as A,
|
|
5751
|
+
ca as B,
|
|
5752
|
+
Vt as C,
|
|
5753
|
+
Oa as D,
|
|
5724
5754
|
w as E,
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
|
|
5736
|
-
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
-
|
|
5740
|
-
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
|
|
5744
|
-
|
|
5745
|
-
|
|
5746
|
-
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
|
|
5754
|
-
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
|
|
5758
|
-
|
|
5759
|
-
|
|
5760
|
-
|
|
5761
|
-
|
|
5755
|
+
da as F,
|
|
5756
|
+
ja as G,
|
|
5757
|
+
Ot as H,
|
|
5758
|
+
A as I,
|
|
5759
|
+
At as J,
|
|
5760
|
+
Zt as K,
|
|
5761
|
+
ea as L,
|
|
5762
|
+
Yt as M,
|
|
5763
|
+
Jt as N,
|
|
5764
|
+
Qt as O,
|
|
5765
|
+
sa as P,
|
|
5766
|
+
ra as Q,
|
|
5767
|
+
oa as R,
|
|
5768
|
+
es as S,
|
|
5769
|
+
S as T,
|
|
5770
|
+
Na as U,
|
|
5771
|
+
ba as V,
|
|
5772
|
+
ya as W,
|
|
5773
|
+
ha as X,
|
|
5774
|
+
Xa as Y,
|
|
5775
|
+
Xt as Z,
|
|
5776
|
+
aa as _,
|
|
5777
|
+
F as a,
|
|
5778
|
+
Ut as a0,
|
|
5779
|
+
ia as a1,
|
|
5780
|
+
ga as a2,
|
|
5781
|
+
Gt as a3,
|
|
5782
|
+
Ht as a4,
|
|
5783
|
+
ts as a5,
|
|
5784
|
+
va as a6,
|
|
5785
|
+
jt as a7,
|
|
5786
|
+
zt as a8,
|
|
5787
|
+
Ma as a9,
|
|
5788
|
+
la as aA,
|
|
5789
|
+
na as aB,
|
|
5790
|
+
Ka as aC,
|
|
5791
|
+
Ea as aD,
|
|
5762
5792
|
k as aE,
|
|
5763
5793
|
T as aF,
|
|
5764
5794
|
D as aG,
|
|
5765
5795
|
x as aH,
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
|
|
5773
|
-
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5777
|
-
|
|
5778
|
-
|
|
5779
|
-
|
|
5780
|
-
|
|
5781
|
-
|
|
5782
|
-
|
|
5783
|
-
|
|
5784
|
-
|
|
5785
|
-
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
-
|
|
5789
|
-
|
|
5790
|
-
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
+
xa as aa,
|
|
5797
|
+
Da as ab,
|
|
5798
|
+
ka as ac,
|
|
5799
|
+
$a as ad,
|
|
5800
|
+
Sa as ae,
|
|
5801
|
+
wa as af,
|
|
5802
|
+
_a as ag,
|
|
5803
|
+
Ta as ah,
|
|
5804
|
+
Ca as ai,
|
|
5805
|
+
Fa as aj,
|
|
5806
|
+
Pa as ak,
|
|
5807
|
+
La as al,
|
|
5808
|
+
Ia as am,
|
|
5809
|
+
Ba as an,
|
|
5810
|
+
qa as ao,
|
|
5811
|
+
is as ap,
|
|
5812
|
+
ns as aq,
|
|
5813
|
+
ss as ar,
|
|
5814
|
+
ls as as,
|
|
5815
|
+
as as at,
|
|
5816
|
+
Za as au,
|
|
5817
|
+
Ya as av,
|
|
5818
|
+
Kt as aw,
|
|
5819
|
+
Et as ax,
|
|
5820
|
+
Ra as ay,
|
|
5821
|
+
ta as az,
|
|
5822
|
+
C as b,
|
|
5823
|
+
ds as c,
|
|
5824
|
+
os as d,
|
|
5825
|
+
rs as e,
|
|
5796
5826
|
g as f,
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
|
|
5827
|
+
fa as g,
|
|
5828
|
+
qt as h,
|
|
5829
|
+
Wa as i,
|
|
5830
|
+
Ha as j,
|
|
5831
|
+
Ga as k,
|
|
5832
|
+
Qa as l,
|
|
5833
|
+
B as m,
|
|
5834
|
+
Ja as n,
|
|
5805
5835
|
v as o,
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
|
|
5836
|
+
Bt as p,
|
|
5837
|
+
za as q,
|
|
5838
|
+
Aa as r,
|
|
5839
|
+
Ua as s,
|
|
5810
5840
|
_ as t,
|
|
5811
|
-
|
|
5812
|
-
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
5841
|
+
It as u,
|
|
5842
|
+
Va as v,
|
|
5843
|
+
Mt as w,
|
|
5844
|
+
pa as x,
|
|
5845
|
+
Rt as y,
|
|
5846
|
+
Wt as z
|
|
5817
5847
|
};
|