zsysview 0.0.26 → 0.0.28
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/dist/backup-BKq6sQjF.js +519 -0
- package/dist/breadcrumb.vue_vue_type_script_setup_true_lang-Ca489fLF.js +43 -0
- package/dist/change_password-DHURkzza.js +135 -0
- package/dist/department-nsjoJXue.js +410 -0
- package/dist/desktop-CcKDaeCI.js +9 -0
- package/dist/http_api_v1-CkjqXdob.js +1008 -0
- package/dist/index-BGMV_V_g.js +6688 -0
- package/dist/{index-BaFHeDAF.js → index-DG0x9mYD.js} +105 -105
- package/dist/index.es-DrN1BLo5.js +170 -0
- package/dist/log-4jRKPEKy.js +163 -0
- package/dist/login-Df4BMtP8.js +111 -0
- package/dist/main-CaR_6gzq.js +293 -0
- package/dist/message-CVTa4Hb1.js +26 -0
- package/dist/position-UV9V8NKa.js +311 -0
- package/dist/role-Co7zqJq3.js +405 -0
- package/dist/self-CZaIzR2G.js +102 -0
- package/dist/sys-BZgBUI3k.js +30 -0
- package/dist/user-D8k4kb-7.js +650 -0
- package/dist/zsys_delbutton.vue_vue_type_script_setup_true_lang-JGPGvAqL.js +72 -0
- package/dist/zsys_eventBus-CZOk9fTb.js +178 -0
- package/dist/zsys_time-4KclnYJN.js +17 -0
- package/dist/zsyslist.vue_vue_type_script_setup_true_lang-C714Dj9O.js +465 -0
- package/dist/zsysview.es.js +1 -1
- package/package.json +1 -1
- package/dist/backup-BrCAKHW5.js +0 -519
- package/dist/breadcrumb.vue_vue_type_script_setup_true_lang-DxqktuR5.js +0 -43
- package/dist/change_password-CY87a5gc.js +0 -135
- package/dist/department-BDW7DB5F.js +0 -410
- package/dist/desktop-DgyBqclt.js +0 -9
- package/dist/http_api_v1-BQLGtV9G.js +0 -1008
- package/dist/index-DXGp4B8l.js +0 -6688
- package/dist/index.es-BcGc183Q.js +0 -170
- package/dist/log-2ZY0HGuh.js +0 -163
- package/dist/login-BAuvM04T.js +0 -111
- package/dist/main-CxdkVN-C.js +0 -293
- package/dist/message-CdVUOGzt.js +0 -26
- package/dist/position-D7wr1m96.js +0 -311
- package/dist/role-M_ZYR2ta.js +0 -405
- package/dist/self-DAB-5Co8.js +0 -102
- package/dist/sys-BjlP52cg.js +0 -30
- package/dist/user-CEaf7VIW.js +0 -650
- package/dist/zsys_delbutton.vue_vue_type_script_setup_true_lang-BYahBvHu.js +0 -72
- package/dist/zsys_eventBus-DDrk0Aw8.js +0 -178
- package/dist/zsys_time-DHEMuVgo.js +0 -17
- package/dist/zsyslist.vue_vue_type_script_setup_true_lang-Bl1QXOML.js +0 -466
|
@@ -0,0 +1,465 @@
|
|
|
1
|
+
import { defineComponent, reactive, watch, resolveComponent, createElementBlock, openBlock, createCommentVNode, createElementVNode, createBlock, toDisplayString, withCtx, createTextVNode, createVNode, Fragment, renderList, unref, ref, withDirectives, withModifiers, vShow, renderSlot, withKeys, onMounted, onUnmounted, resolveDirective } from "vue";
|
|
2
|
+
import { j as refresh_default, k as search_default } from "./index-DG0x9mYD.js";
|
|
3
|
+
import { H as HttpApiV1 } from "./http_api_v1-CkjqXdob.js";
|
|
4
|
+
import { Z as ZSYSMessage } from "./message-CVTa4Hb1.js";
|
|
5
|
+
import { u as useMagicKeys, w as whenever, z as zsysEventBus } from "./zsys_eventBus-CZOk9fTb.js";
|
|
6
|
+
import { _ as _export_sfc } from "./index-BGMV_V_g.js";
|
|
7
|
+
const _hoisted_1$1 = { style: { "padding-left": "20px", "padding-right": "20px", "padding-top": "6px" } }, _hoisted_2 = {
|
|
8
|
+
key: 0,
|
|
9
|
+
style: { "font-size": "x-large" }
|
|
10
|
+
}, _hoisted_3 = {
|
|
11
|
+
key: 1,
|
|
12
|
+
style: { "font-size": "x-large" }
|
|
13
|
+
}, _hoisted_4 = { style: { "font-size": "large", "margin-top": "10px" } }, _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
14
|
+
__name: "export_progress",
|
|
15
|
+
props: {
|
|
16
|
+
exportId: { type: BigInt, required: !0 }
|
|
17
|
+
},
|
|
18
|
+
setup(__props) {
|
|
19
|
+
const props = __props, view = reactive({
|
|
20
|
+
state: 1,
|
|
21
|
+
progress: 0n,
|
|
22
|
+
file_ids: []
|
|
23
|
+
});
|
|
24
|
+
return watch(props, (newVal) => {
|
|
25
|
+
if (newVal.exportId != 0n)
|
|
26
|
+
var intervalId = setInterval(async () => {
|
|
27
|
+
let xRes = await HttpApiV1.Post(HttpApiV1.url_export_detail, { id: props.exportId });
|
|
28
|
+
if (xRes.IsSuccess) {
|
|
29
|
+
let data = xRes.data;
|
|
30
|
+
view.progress = data.progress, view.state = data.state, view.file_ids = [];
|
|
31
|
+
let fs = data.file_ids.split(",");
|
|
32
|
+
for (let f of fs)
|
|
33
|
+
view.file_ids.push(BigInt(f));
|
|
34
|
+
view.state != 1 && clearInterval(intervalId);
|
|
35
|
+
}
|
|
36
|
+
}, 3600);
|
|
37
|
+
}), (_ctx, _cache) => {
|
|
38
|
+
const _component_el_progress = resolveComponent("el-progress"), _component_el_text = resolveComponent("el-text"), _component_el_link = resolveComponent("el-link"), _component_el_space = resolveComponent("el-space");
|
|
39
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
40
|
+
view.state == 1 ? (openBlock(), createElementBlock("div", _hoisted_2, "正在导出")) : createCommentVNode("", !0),
|
|
41
|
+
view.state == 2 ? (openBlock(), createElementBlock("div", _hoisted_3, "导出完成")) : createCommentVNode("", !0),
|
|
42
|
+
createElementVNode("div", _hoisted_4, " 累计处理: " + toDisplayString(view.progress), 1),
|
|
43
|
+
view.state == 1 ? (openBlock(), createBlock(_component_el_progress, {
|
|
44
|
+
key: 2,
|
|
45
|
+
percentage: 50,
|
|
46
|
+
indeterminate: !0,
|
|
47
|
+
style: { "margin-top": "10px" }
|
|
48
|
+
}, {
|
|
49
|
+
default: withCtx(() => [
|
|
50
|
+
createTextVNode(toDisplayString(view.progress), 1)
|
|
51
|
+
]),
|
|
52
|
+
_: 1
|
|
53
|
+
})) : createCommentVNode("", !0),
|
|
54
|
+
view.state == 2 ? (openBlock(), createBlock(_component_el_space, {
|
|
55
|
+
key: 3,
|
|
56
|
+
wrap: "",
|
|
57
|
+
style: { "font-size": "large", "margin-top": "10px" }
|
|
58
|
+
}, {
|
|
59
|
+
default: withCtx(() => [
|
|
60
|
+
createVNode(_component_el_text, null, {
|
|
61
|
+
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
|
62
|
+
createTextVNode("文件(点击下载):", -1)
|
|
63
|
+
])]),
|
|
64
|
+
_: 1
|
|
65
|
+
}),
|
|
66
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(view.file_ids, (item) => (openBlock(), createBlock(_component_el_link, {
|
|
67
|
+
href: unref(HttpApiV1).url_export_file + "?id=" + item.toString(),
|
|
68
|
+
target: "_blank",
|
|
69
|
+
underline: "always",
|
|
70
|
+
type: "primary"
|
|
71
|
+
}, {
|
|
72
|
+
default: withCtx(() => [
|
|
73
|
+
createTextVNode("文件" + toDisplayString(item.toString()), 1)
|
|
74
|
+
]),
|
|
75
|
+
_: 2
|
|
76
|
+
}, 1032, ["href"]))), 256))
|
|
77
|
+
]),
|
|
78
|
+
_: 1
|
|
79
|
+
})) : createCommentVNode("", !0)
|
|
80
|
+
]);
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
}), _hoisted_1 = { style: { display: "flex", "justify-content": "right" } }, _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
84
|
+
__name: "export_dialog",
|
|
85
|
+
props: {
|
|
86
|
+
modelValue: { type: Boolean, required: !0 },
|
|
87
|
+
// 控制显示隐藏
|
|
88
|
+
exportUrl: { type: String, required: !0 },
|
|
89
|
+
exportColumn: { type: [] }
|
|
90
|
+
},
|
|
91
|
+
emits: ["update:modelValue"],
|
|
92
|
+
setup(__props, { emit: __emit }) {
|
|
93
|
+
const inputRef = ref(null), props = __props, emit = __emit, visible = ref(!1);
|
|
94
|
+
watch(
|
|
95
|
+
() => props.modelValue,
|
|
96
|
+
(val) => {
|
|
97
|
+
visible.value = val;
|
|
98
|
+
},
|
|
99
|
+
{ immediate: !0 }
|
|
100
|
+
), watch(visible, (val) => {
|
|
101
|
+
emit("update:modelValue", val);
|
|
102
|
+
});
|
|
103
|
+
const open = () => {
|
|
104
|
+
view.exporting = !1;
|
|
105
|
+
}, handleBeforeClose = (done) => {
|
|
106
|
+
ruleFormRef.value?.clearValidate(), done();
|
|
107
|
+
}, view = reactive({
|
|
108
|
+
exporting: !1,
|
|
109
|
+
// 导出框当前的状态
|
|
110
|
+
exportId: 0n
|
|
111
|
+
//导出id
|
|
112
|
+
});
|
|
113
|
+
async function startExport() {
|
|
114
|
+
view.exporting = !0;
|
|
115
|
+
let res = await HttpApiV1.Post(props.exportUrl, {});
|
|
116
|
+
res.IsSuccess ? view.exportId = BigInt(res.data) : (ZSYSMessage.ShowError(res.message), view.exporting = !1);
|
|
117
|
+
}
|
|
118
|
+
const ruleFormRef = ref(), form = ref({
|
|
119
|
+
columnOption: "all",
|
|
120
|
+
exportColumnWanted: []
|
|
121
|
+
}), rules = reactive({}), focus = () => {
|
|
122
|
+
inputRef.value?.focus(), inputRef.value?.select();
|
|
123
|
+
}, keys = useMagicKeys();
|
|
124
|
+
return whenever(keys.alt_s, () => {
|
|
125
|
+
visible.value && console.log("Alt+S提交");
|
|
126
|
+
}), (_ctx, _cache) => {
|
|
127
|
+
const _component_el_radio = resolveComponent("el-radio"), _component_el_radio_group = resolveComponent("el-radio-group"), _component_el_form_item = resolveComponent("el-form-item"), _component_el_empty = resolveComponent("el-empty"), _component_el_transfer = resolveComponent("el-transfer"), _component_el_form = resolveComponent("el-form"), _component_el_button = resolveComponent("el-button"), _component_el_dialog = resolveComponent("el-dialog");
|
|
128
|
+
return openBlock(), createBlock(_component_el_dialog, {
|
|
129
|
+
modelValue: visible.value,
|
|
130
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => visible.value = $event),
|
|
131
|
+
title: "导出",
|
|
132
|
+
"align-center": !0,
|
|
133
|
+
"before-close": handleBeforeClose,
|
|
134
|
+
onOpen: open,
|
|
135
|
+
width: "800",
|
|
136
|
+
draggable: !0,
|
|
137
|
+
overflow: !0,
|
|
138
|
+
onOpened: focus,
|
|
139
|
+
"destroy-on-close": "",
|
|
140
|
+
"close-on-click-modal": !1
|
|
141
|
+
}, {
|
|
142
|
+
footer: withCtx(() => [
|
|
143
|
+
createElementVNode("div", _hoisted_1, [
|
|
144
|
+
withDirectives(createVNode(_component_el_button, {
|
|
145
|
+
type: "primary",
|
|
146
|
+
onClick: startExport
|
|
147
|
+
}, {
|
|
148
|
+
default: withCtx(() => [..._cache[6] || (_cache[6] = [
|
|
149
|
+
createTextVNode("开始导出", -1)
|
|
150
|
+
])]),
|
|
151
|
+
_: 1
|
|
152
|
+
}, 512), [
|
|
153
|
+
[vShow, view.exporting == !1]
|
|
154
|
+
])
|
|
155
|
+
])
|
|
156
|
+
]),
|
|
157
|
+
default: withCtx(() => [
|
|
158
|
+
withDirectives(createVNode(_component_el_form, {
|
|
159
|
+
onSubmit: _cache[2] || (_cache[2] = withModifiers(() => {
|
|
160
|
+
}, ["prevent"])),
|
|
161
|
+
ref_key: "ruleFormRef",
|
|
162
|
+
ref: ruleFormRef,
|
|
163
|
+
model: form.value,
|
|
164
|
+
rules,
|
|
165
|
+
style: { "padding-left": "10px", "padding-right": "10px" },
|
|
166
|
+
"label-width": "auto"
|
|
167
|
+
}, {
|
|
168
|
+
default: withCtx(() => [
|
|
169
|
+
createVNode(_component_el_form_item, {
|
|
170
|
+
label: "字段选项",
|
|
171
|
+
prop: "role_title"
|
|
172
|
+
}, {
|
|
173
|
+
default: withCtx(() => [
|
|
174
|
+
createVNode(_component_el_radio_group, {
|
|
175
|
+
modelValue: form.value.columnOption,
|
|
176
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => form.value.columnOption = $event)
|
|
177
|
+
}, {
|
|
178
|
+
default: withCtx(() => [
|
|
179
|
+
createVNode(_component_el_radio, { value: "all" }, {
|
|
180
|
+
default: withCtx(() => [..._cache[4] || (_cache[4] = [
|
|
181
|
+
createTextVNode("全部支持的字段", -1)
|
|
182
|
+
])]),
|
|
183
|
+
_: 1
|
|
184
|
+
}),
|
|
185
|
+
props.exportColumn ? (openBlock(), createBlock(_component_el_radio, {
|
|
186
|
+
key: 0,
|
|
187
|
+
value: "custom"
|
|
188
|
+
}, {
|
|
189
|
+
default: withCtx(() => [..._cache[5] || (_cache[5] = [
|
|
190
|
+
createTextVNode("自定义", -1)
|
|
191
|
+
])]),
|
|
192
|
+
_: 1
|
|
193
|
+
})) : createCommentVNode("", !0)
|
|
194
|
+
]),
|
|
195
|
+
_: 1
|
|
196
|
+
}, 8, ["modelValue"])
|
|
197
|
+
]),
|
|
198
|
+
_: 1
|
|
199
|
+
}),
|
|
200
|
+
withDirectives(createVNode(_component_el_form_item, { label: "自定义" }, {
|
|
201
|
+
default: withCtx(() => [
|
|
202
|
+
createVNode(_component_el_transfer, {
|
|
203
|
+
modelValue: form.value.exportColumnWanted,
|
|
204
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => form.value.exportColumnWanted = $event),
|
|
205
|
+
data: props.exportColumn,
|
|
206
|
+
titles: ["可选", "已选"],
|
|
207
|
+
props: {
|
|
208
|
+
key: "ColumnName",
|
|
209
|
+
label: "ColumnTitle"
|
|
210
|
+
}
|
|
211
|
+
}, {
|
|
212
|
+
"left-empty": withCtx(() => [
|
|
213
|
+
createVNode(_component_el_empty, {
|
|
214
|
+
"image-size": 60,
|
|
215
|
+
description: "无可选项"
|
|
216
|
+
})
|
|
217
|
+
]),
|
|
218
|
+
"right-empty": withCtx(() => [
|
|
219
|
+
createVNode(_component_el_empty, {
|
|
220
|
+
"image-size": 60,
|
|
221
|
+
description: "请从左侧选择"
|
|
222
|
+
})
|
|
223
|
+
]),
|
|
224
|
+
_: 1
|
|
225
|
+
}, 8, ["modelValue", "data"])
|
|
226
|
+
]),
|
|
227
|
+
_: 1
|
|
228
|
+
}, 512), [
|
|
229
|
+
[vShow, form.value.columnOption == "custom"]
|
|
230
|
+
])
|
|
231
|
+
]),
|
|
232
|
+
_: 1
|
|
233
|
+
}, 8, ["model", "rules"]), [
|
|
234
|
+
[vShow, view.exporting == !1]
|
|
235
|
+
]),
|
|
236
|
+
withDirectives(createVNode(_sfc_main$3, {
|
|
237
|
+
"export-id": view.exportId
|
|
238
|
+
}, null, 8, ["export-id"]), [
|
|
239
|
+
[vShow, view.exporting]
|
|
240
|
+
])
|
|
241
|
+
]),
|
|
242
|
+
_: 1
|
|
243
|
+
}, 8, ["modelValue"]);
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
}), export_dialog = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-641a8d31"]]), _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
247
|
+
__name: "zsyslist_header",
|
|
248
|
+
props: ["config", "query"],
|
|
249
|
+
emits: ["refresh"],
|
|
250
|
+
setup(__props, { emit: __emit }) {
|
|
251
|
+
const props = __props, config = props.config, query = props.query, view = reactive({
|
|
252
|
+
exportDialogShow: !1
|
|
253
|
+
}), emit = __emit, refresh = () => {
|
|
254
|
+
emit("refresh");
|
|
255
|
+
};
|
|
256
|
+
return (_ctx, _cache) => {
|
|
257
|
+
const _component_el_button = resolveComponent("el-button"), _component_el_tooltip = resolveComponent("el-tooltip"), _component_el_input = resolveComponent("el-input"), _component_el_space = resolveComponent("el-space"), _component_el_col = resolveComponent("el-col"), _component_el_row = resolveComponent("el-row"), _component_el_text = resolveComponent("el-text"), _component_el_radio_button = resolveComponent("el-radio-button"), _component_el_radio_group = resolveComponent("el-radio-group"), _component_el_divider = resolveComponent("el-divider");
|
|
258
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
259
|
+
createVNode(_component_el_row, null, {
|
|
260
|
+
default: withCtx(() => [
|
|
261
|
+
createVNode(_component_el_col, { span: 24 }, {
|
|
262
|
+
default: withCtx(() => [
|
|
263
|
+
createVNode(_component_el_space, {
|
|
264
|
+
size: 4,
|
|
265
|
+
wrap: ""
|
|
266
|
+
}, {
|
|
267
|
+
default: withCtx(() => [
|
|
268
|
+
renderSlot(_ctx.$slots, "headermain"),
|
|
269
|
+
createVNode(_component_el_tooltip, { content: "刷新列表数据" }, {
|
|
270
|
+
default: withCtx(() => [
|
|
271
|
+
createVNode(_component_el_button, {
|
|
272
|
+
icon: unref(refresh_default),
|
|
273
|
+
onClick: refresh
|
|
274
|
+
}, null, 8, ["icon"])
|
|
275
|
+
]),
|
|
276
|
+
_: 1
|
|
277
|
+
}),
|
|
278
|
+
unref(config).KeywordTip ? (openBlock(), createBlock(_component_el_tooltip, {
|
|
279
|
+
key: 0,
|
|
280
|
+
"show-after": 800,
|
|
281
|
+
content: unref(config).KeywordTip ? unref(config).KeywordTip : "快捷搜索"
|
|
282
|
+
}, {
|
|
283
|
+
default: withCtx(() => [
|
|
284
|
+
createVNode(_component_el_input, {
|
|
285
|
+
style: { width: "160px" },
|
|
286
|
+
placeholder: unref(config).KeywordTip ? unref(config).KeywordTip : "快捷搜索",
|
|
287
|
+
"prefix-icon": unref(search_default),
|
|
288
|
+
modelValue: unref(query).keyword,
|
|
289
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(query).keyword = $event),
|
|
290
|
+
clearable: "",
|
|
291
|
+
onKeyup: withKeys(refresh, ["enter", "native"])
|
|
292
|
+
}, null, 8, ["placeholder", "prefix-icon", "modelValue"])
|
|
293
|
+
]),
|
|
294
|
+
_: 1
|
|
295
|
+
}, 8, ["content"])) : createCommentVNode("", !0),
|
|
296
|
+
unref(config).ExportUrl ? (openBlock(), createBlock(_component_el_tooltip, {
|
|
297
|
+
key: 1,
|
|
298
|
+
content: "将查询的结果全部导出"
|
|
299
|
+
}, {
|
|
300
|
+
default: withCtx(() => [
|
|
301
|
+
createVNode(_component_el_button, {
|
|
302
|
+
onClick: _cache[1] || (_cache[1] = ($event) => view.exportDialogShow = !0)
|
|
303
|
+
}, {
|
|
304
|
+
default: withCtx(() => [..._cache[3] || (_cache[3] = [
|
|
305
|
+
createTextVNode("导出", -1)
|
|
306
|
+
])]),
|
|
307
|
+
_: 1
|
|
308
|
+
})
|
|
309
|
+
]),
|
|
310
|
+
_: 1
|
|
311
|
+
})) : createCommentVNode("", !0)
|
|
312
|
+
]),
|
|
313
|
+
_: 3
|
|
314
|
+
})
|
|
315
|
+
]),
|
|
316
|
+
_: 3
|
|
317
|
+
})
|
|
318
|
+
]),
|
|
319
|
+
_: 3
|
|
320
|
+
}),
|
|
321
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(config).QuickConditionsGroups, (v) => (openBlock(), createBlock(_component_el_row, { style: { "margin-top": "8px" } }, {
|
|
322
|
+
default: withCtx(() => [
|
|
323
|
+
createVNode(_component_el_col, { span: 24 }, {
|
|
324
|
+
default: withCtx(() => [
|
|
325
|
+
createVNode(_component_el_space, {
|
|
326
|
+
size: 4,
|
|
327
|
+
wrap: ""
|
|
328
|
+
}, {
|
|
329
|
+
default: withCtx(() => [
|
|
330
|
+
createVNode(_component_el_text, null, {
|
|
331
|
+
default: withCtx(() => [
|
|
332
|
+
createTextVNode(toDisplayString(v.Label), 1)
|
|
333
|
+
]),
|
|
334
|
+
_: 2
|
|
335
|
+
}, 1024),
|
|
336
|
+
createVNode(_component_el_radio_group, {
|
|
337
|
+
modelValue: v.Select,
|
|
338
|
+
"onUpdate:modelValue": ($event) => v.Select = $event,
|
|
339
|
+
size: "small"
|
|
340
|
+
}, {
|
|
341
|
+
default: withCtx(() => [
|
|
342
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(v.QuickConditions, (q, index) => (openBlock(), createBlock(_component_el_radio_button, {
|
|
343
|
+
value: index,
|
|
344
|
+
onChange: refresh
|
|
345
|
+
}, {
|
|
346
|
+
default: withCtx(() => [
|
|
347
|
+
createTextVNode(toDisplayString(q.label), 1)
|
|
348
|
+
]),
|
|
349
|
+
_: 2
|
|
350
|
+
}, 1032, ["value"]))), 256))
|
|
351
|
+
]),
|
|
352
|
+
_: 2
|
|
353
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"])
|
|
354
|
+
]),
|
|
355
|
+
_: 2
|
|
356
|
+
}, 1024)
|
|
357
|
+
]),
|
|
358
|
+
_: 2
|
|
359
|
+
}, 1024)
|
|
360
|
+
]),
|
|
361
|
+
_: 2
|
|
362
|
+
}, 1024))), 256)),
|
|
363
|
+
createVNode(_component_el_divider, { style: { "margin-top": "4px", "margin-bottom": "4px" } }),
|
|
364
|
+
createVNode(export_dialog, {
|
|
365
|
+
modelValue: view.exportDialogShow,
|
|
366
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => view.exportDialogShow = $event),
|
|
367
|
+
"export-url": unref(config).ExportUrl,
|
|
368
|
+
"export-column": unref(config).ExportColumn
|
|
369
|
+
}, null, 8, ["modelValue", "export-url", "export-column"])
|
|
370
|
+
], 64);
|
|
371
|
+
};
|
|
372
|
+
}
|
|
373
|
+
}), _sfc_main = /* @__PURE__ */ defineComponent({
|
|
374
|
+
__name: "zsyslist",
|
|
375
|
+
props: {
|
|
376
|
+
config: { type: Object, required: !0 },
|
|
377
|
+
module: { type: String, default: "" }
|
|
378
|
+
// closeOnClickModal: { type: Boolean, default: true }
|
|
379
|
+
},
|
|
380
|
+
setup(__props) {
|
|
381
|
+
const eventBus = zsysEventBus(), view = reactive({
|
|
382
|
+
loading: !1
|
|
383
|
+
}), props = __props;
|
|
384
|
+
console.log("zlist", props.module);
|
|
385
|
+
const config = props.config, query = reactive({ keyword: "" }), currentPage = ref(1), pageSize = ref(30), total = ref(0), data = ref({}), GetListData = async () => {
|
|
386
|
+
view.loading = !0;
|
|
387
|
+
let q = {
|
|
388
|
+
page_size: pageSize.value,
|
|
389
|
+
page_index: currentPage.value,
|
|
390
|
+
user_query_param: GetUserQueryParam(),
|
|
391
|
+
keyword: query.keyword
|
|
392
|
+
}, res = await HttpApiV1.Post(config.ApiUrl, q);
|
|
393
|
+
if (res.IsSuccess) {
|
|
394
|
+
let d = res.data;
|
|
395
|
+
data.value = d, total.value = d.count;
|
|
396
|
+
}
|
|
397
|
+
view.loading = !1;
|
|
398
|
+
}, aud_event = (payload) => {
|
|
399
|
+
console.log("aud_event:", payload), (payload.module == props.module || payload.module == "all") && GetListData();
|
|
400
|
+
}, GetUserQueryParam = () => {
|
|
401
|
+
let re = [];
|
|
402
|
+
for (const g of config.QuickConditionsGroups || [])
|
|
403
|
+
g.QuickConditions[g.Select].column != null && re.push(g.QuickConditions[g.Select]);
|
|
404
|
+
return re;
|
|
405
|
+
};
|
|
406
|
+
onMounted(() => {
|
|
407
|
+
eventBus.on("aud", aud_event), GetListData();
|
|
408
|
+
}), onUnmounted(() => {
|
|
409
|
+
eventBus.off("aud", aud_event);
|
|
410
|
+
});
|
|
411
|
+
const pageChange = (pageindex, size) => {
|
|
412
|
+
currentPage.value = pageindex, pageSize.value = size, console.log(currentPage.value, pageSize.value), GetListData();
|
|
413
|
+
};
|
|
414
|
+
return (_ctx, _cache) => {
|
|
415
|
+
const _component_el_empty = resolveComponent("el-empty"), _component_el_table = resolveComponent("el-table"), _component_el_pagination = resolveComponent("el-pagination"), _directive_loading = resolveDirective("loading");
|
|
416
|
+
return withDirectives((openBlock(), createElementBlock("div", null, [
|
|
417
|
+
createVNode(_sfc_main$1, {
|
|
418
|
+
config: unref(config),
|
|
419
|
+
query,
|
|
420
|
+
onRefresh: _cache[0] || (_cache[0] = ($event) => GetListData())
|
|
421
|
+
}, {
|
|
422
|
+
headermain: withCtx(() => [
|
|
423
|
+
renderSlot(_ctx.$slots, "headermain")
|
|
424
|
+
]),
|
|
425
|
+
_: 3
|
|
426
|
+
}, 8, ["config", "query"]),
|
|
427
|
+
createVNode(_component_el_table, {
|
|
428
|
+
data: data.value.listdata,
|
|
429
|
+
style: { width: "100%" },
|
|
430
|
+
stripe: !0
|
|
431
|
+
}, {
|
|
432
|
+
empty: withCtx(() => [
|
|
433
|
+
createVNode(_component_el_empty, {
|
|
434
|
+
description: "无相关数据",
|
|
435
|
+
"image-size": 100
|
|
436
|
+
})
|
|
437
|
+
]),
|
|
438
|
+
default: withCtx(() => [
|
|
439
|
+
renderSlot(_ctx.$slots, "content")
|
|
440
|
+
]),
|
|
441
|
+
_: 3
|
|
442
|
+
}, 8, ["data"]),
|
|
443
|
+
unref(config).HideBottomToolbar != !0 ? (openBlock(), createBlock(_component_el_pagination, {
|
|
444
|
+
key: 0,
|
|
445
|
+
"current-page": currentPage.value,
|
|
446
|
+
"onUpdate:currentPage": _cache[1] || (_cache[1] = ($event) => currentPage.value = $event),
|
|
447
|
+
"page-size": pageSize.value,
|
|
448
|
+
"onUpdate:pageSize": _cache[2] || (_cache[2] = ($event) => pageSize.value = $event),
|
|
449
|
+
"page-sizes": [30, 50, 100, 150, 200],
|
|
450
|
+
layout: "total, sizes, prev, next, pager, jumper",
|
|
451
|
+
total: total.value,
|
|
452
|
+
"prev-text": "上一页",
|
|
453
|
+
"next-text": "下一页",
|
|
454
|
+
onChange: pageChange,
|
|
455
|
+
style: { "margin-top": "6px", "margin-bottom": "6px" }
|
|
456
|
+
}, null, 8, ["current-page", "page-size", "total"])) : createCommentVNode("", !0)
|
|
457
|
+
])), [
|
|
458
|
+
[_directive_loading, view.loading]
|
|
459
|
+
]);
|
|
460
|
+
};
|
|
461
|
+
}
|
|
462
|
+
});
|
|
463
|
+
export {
|
|
464
|
+
_sfc_main as _
|
|
465
|
+
};
|
package/dist/zsysview.es.js
CHANGED