hy-dispatch-ui-v3 0.2.59 → 0.2.60
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/tailwind.css +129 -0
- package/es/_virtual/_plugin-vue_export-helper.mjs +9 -0
- package/es/api/index.mjs +137 -0
- package/es/bussiness/hyAddDepartmentType/addDepartmentType.vue.mjs +365 -0
- package/es/bussiness/hyAddDepartmentType/index.mjs +6 -0
- package/es/bussiness/hyAddDepartmentType/style/addDepartmentType.scss +31 -0
- package/es/bussiness/index.mjs +1 -1
- package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +1 -1
- package/es/components/hyBatchUploadDialog/batchUploadDialog.vue.mjs +45 -36
- package/es/components/hyDatePicker/datePicker.vue.mjs +2 -0
- package/es/components/hyForm/cpns/formItem.vue.mjs +106 -43
- package/es/components/hyForm/cpns/locationSelect.vue.mjs +358 -0
- package/es/components/hyForm/form.vue.mjs +83 -31
- package/es/components/hyForm/js/index.mjs +9 -2
- package/es/components/hyForm/js/useAppForm.mjs +6 -36
- package/es/components/hyMap/map.vue.mjs +3 -3
- package/es/components/hyRadioGroup/index.mjs +6 -0
- package/es/components/hyRadioGroup/radioGroup.vue.mjs +123 -0
- package/es/components/hyRadioGroup/style/radioGroup.scss +0 -0
- package/es/components/hySearch/cpns/searchItem.vue.mjs +20 -13
- package/es/components/hySearch/js/useAppSearch.mjs +3 -33
- package/es/components/hyTable/cpns/virtualTable.vue.mjs +9 -1
- package/es/components/hyTable/js/index.mjs +6 -3
- package/es/components/hyTable/js/search.mjs +1 -0
- package/es/components/hyTable/table.vue.mjs +11 -4
- package/es/components/hyTableForm/batchTableForm.vue.mjs +5 -2
- package/es/components/hyTableForm/tableForm.vue.mjs +6 -0
- package/es/components/hyTree/js/index.mjs +69 -53
- package/es/components/hyTree/tree.vue.mjs +36 -1
- package/es/components/index.mjs +1 -0
- package/es/index.mjs +3 -1
- package/es/locale/en.mjs +17 -1
- package/es/locale/zh_CN.mjs +17 -1
- package/es/static/hy-svg-icons/hy-icon-ops-linear-shouqi.js +8 -0
- package/es/static/hy-svg-icons/hy-icon-ops-linear-zhankai.js +8 -0
- package/es/style/index.scss +53 -0
- package/es/style/theme.scss +0 -53
- package/es/utils/form.mjs +56 -7
- package/es/utils/index.mjs +1 -1
- package/es/utils/map/hook/bigMap.mjs +4 -0
- package/es/utils/map/hook/gaode.mjs +3 -0
- package/es/utils/map/hook/leafletjs.mjs +10 -10
- package/es/utils/map/index.mjs +27 -7
- package/es/version.mjs +1 -1
- package/lib/_virtual/_plugin-vue_export-helper.js +13 -0
- package/lib/api/index.js +147 -0
- package/lib/bussiness/hyAddDepartmentType/addDepartmentType.vue.js +369 -0
- package/lib/bussiness/hyAddDepartmentType/index.js +11 -0
- package/lib/bussiness/hyAddDepartmentType/style/addDepartmentType.scss +31 -0
- package/lib/bussiness/index.js +5 -0
- package/lib/components/hyBatchUploadDialog/batchUploadDialog.vue.js +44 -35
- package/lib/components/hyDatePicker/datePicker.vue.js +2 -0
- package/lib/components/hyForm/cpns/formItem.vue.js +111 -48
- package/lib/components/hyForm/cpns/locationSelect.vue.js +362 -0
- package/lib/components/hyForm/form.vue.js +79 -27
- package/lib/components/hyForm/js/index.js +9 -1
- package/lib/components/hyForm/js/useAppForm.js +5 -35
- package/lib/components/hyMap/map.vue.js +3 -3
- package/lib/components/hyRadioGroup/index.js +11 -0
- package/lib/components/hyRadioGroup/radioGroup.vue.js +127 -0
- package/lib/components/hyRadioGroup/style/radioGroup.scss +0 -0
- package/lib/components/hySearch/cpns/searchItem.vue.js +19 -12
- package/lib/components/hySearch/js/useAppSearch.js +2 -32
- package/lib/components/hyTable/cpns/virtualTable.vue.js +9 -1
- package/lib/components/hyTable/js/index.js +6 -3
- package/lib/components/hyTable/js/search.js +1 -0
- package/lib/components/hyTable/table.vue.js +43 -36
- package/lib/components/hyTableForm/batchTableForm.vue.js +5 -2
- package/lib/components/hyTableForm/tableForm.vue.js +6 -0
- package/lib/components/hyTree/js/index.js +69 -53
- package/lib/components/hyTree/tree.vue.js +36 -1
- package/lib/components/index.js +14 -12
- package/lib/index.js +56 -49
- package/lib/locale/en.js +17 -1
- package/lib/locale/zh_CN.js +17 -1
- package/lib/static/hy-svg-icons/hy-icon-ops-linear-shouqi.js +8 -0
- package/lib/static/hy-svg-icons/hy-icon-ops-linear-zhankai.js +8 -0
- package/lib/style/index.scss +53 -0
- package/lib/style/theme.scss +0 -53
- package/lib/utils/form.js +57 -5
- package/lib/utils/index.js +3 -0
- package/lib/utils/map/hook/bigMap.js +4 -0
- package/lib/utils/map/hook/gaode.js +3 -0
- package/lib/utils/map/hook/leafletjs.js +10 -10
- package/lib/utils/map/index.js +26 -6
- package/lib/version.js +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
import { defineComponent, useTemplateRef, resolveComponent, openBlock, createBlock, unref, isRef, withCtx, createCommentVNode, createElementVNode, createVNode, toDisplayString, createTextVNode, ref } from 'vue';
|
|
2
|
+
import { ElForm, ElFormItem, ElUpload, ElImage, ElMessage } from 'element-plus';
|
|
3
|
+
import { saveApi } from '../../api/index.mjs';
|
|
4
|
+
import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
|
|
5
|
+
import { useLocale } from '../../hooks/useLocale.mjs';
|
|
6
|
+
import { useMixins } from '../../hooks/useMixins.mjs';
|
|
7
|
+
import { HyDialog } from '../../components/hyDialog/index.mjs';
|
|
8
|
+
import { HyIcon } from '../../components/hyIcon/index.mjs';
|
|
9
|
+
import { HyButton } from '../../components/hyButton/index.mjs';
|
|
10
|
+
import { HyCutter } from '../../components/hyCutter/index.mjs';
|
|
11
|
+
import { fileUpload } from '../../utils/file.mjs';
|
|
12
|
+
|
|
13
|
+
const __default__ = defineComponent({
|
|
14
|
+
name: "HyAddDepartmentType"
|
|
15
|
+
});
|
|
16
|
+
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
17
|
+
props: {
|
|
18
|
+
// 是否可缩小化
|
|
19
|
+
ifShrink: { type: Boolean, default: false },
|
|
20
|
+
// 是否拖拽
|
|
21
|
+
ifDraggable: { type: Boolean, default: false }
|
|
22
|
+
},
|
|
23
|
+
emits: ["on-submit", "onMinimized", "onDialogMousedown"],
|
|
24
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
25
|
+
const { t } = useLocale();
|
|
26
|
+
const props = __props;
|
|
27
|
+
const emit = __emit;
|
|
28
|
+
const HyCutterRef = useTemplateRef("HyCutterRef");
|
|
29
|
+
function useAddDepartmentType(hy) {
|
|
30
|
+
const { emit: emit2 } = hy;
|
|
31
|
+
const formRef2 = ref(null);
|
|
32
|
+
const HyDialogRef2 = ref();
|
|
33
|
+
const visible2 = ref(false);
|
|
34
|
+
const form2 = ref({
|
|
35
|
+
icon: null,
|
|
36
|
+
typeName: null
|
|
37
|
+
});
|
|
38
|
+
const rules2 = ref({
|
|
39
|
+
typeName: [
|
|
40
|
+
{
|
|
41
|
+
required: true,
|
|
42
|
+
message: t("departmentType.pleaseEnterTheDepartmentTypeName"),
|
|
43
|
+
trigger: "blur"
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
});
|
|
47
|
+
const title2 = ref(t("departmentType.addDepartmentType"));
|
|
48
|
+
function beforeAvatarUpload2(file) {
|
|
49
|
+
const width = 44;
|
|
50
|
+
const height = 44;
|
|
51
|
+
const isLt2M = file.size / 1024 / 1024 < 2;
|
|
52
|
+
if (!isLt2M) {
|
|
53
|
+
ElMessage.error(t("departmentType.imageUploadFailedLogoSizeWithin2M"));
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
HyCutterRef.value.open({
|
|
57
|
+
file,
|
|
58
|
+
options: {
|
|
59
|
+
outputType: "png",
|
|
60
|
+
// 裁剪生成图片的格式
|
|
61
|
+
canScale: true,
|
|
62
|
+
// 图片是否允许滚轮缩放
|
|
63
|
+
fixedBox: true,
|
|
64
|
+
// 固定截图框大小 不允许改变
|
|
65
|
+
infoTrue: false,
|
|
66
|
+
// 是否开启截图框宽高固定比例
|
|
67
|
+
autoCropWidth: width,
|
|
68
|
+
autoCropHeight: height,
|
|
69
|
+
centerBox: false,
|
|
70
|
+
original: true,
|
|
71
|
+
fixed: false
|
|
72
|
+
},
|
|
73
|
+
onSubmit: ({ url, key }) => {
|
|
74
|
+
hy.form.value.icon = url;
|
|
75
|
+
hy.form.value.iconKey = key;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
return false;
|
|
79
|
+
}
|
|
80
|
+
async function handleHttpRequestImg2(object) {
|
|
81
|
+
await fileUpload(object.file).then((url) => {
|
|
82
|
+
hy.form.value.icon = url;
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
function submit2() {
|
|
86
|
+
hy.formRef.value?.validate((valid) => {
|
|
87
|
+
if (valid) {
|
|
88
|
+
if (!hy.form.value.icon) {
|
|
89
|
+
hy.form.value.iconKey = null;
|
|
90
|
+
}
|
|
91
|
+
saveApi("organization/orgType", {
|
|
92
|
+
...hy.form.value,
|
|
93
|
+
icon: null
|
|
94
|
+
}).then((res) => {
|
|
95
|
+
if (res.code === 200) {
|
|
96
|
+
emit2("on-submit", hy.form.value.id ? null : 1);
|
|
97
|
+
hy.visible.value = false;
|
|
98
|
+
ElMessage.success(t("videoPlayer.operationSuccessful"));
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
function onClose2() {
|
|
105
|
+
hy.visible.value = false;
|
|
106
|
+
}
|
|
107
|
+
function setDragLevelIndex2(dragLevel) {
|
|
108
|
+
HyDialogRef2.value.setDragLevelIndex(dragLevel);
|
|
109
|
+
}
|
|
110
|
+
function onMinimized2(e) {
|
|
111
|
+
emit2("onMinimized", e);
|
|
112
|
+
}
|
|
113
|
+
function onDialogMousedown2(e) {
|
|
114
|
+
emit2("onDialogMousedown", e);
|
|
115
|
+
}
|
|
116
|
+
function show2(row) {
|
|
117
|
+
if (row) {
|
|
118
|
+
hy.form.value = { ...row };
|
|
119
|
+
} else {
|
|
120
|
+
hy.form.value = {
|
|
121
|
+
icon: null,
|
|
122
|
+
typeName: null
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
hy.visible.value = true;
|
|
126
|
+
}
|
|
127
|
+
return {
|
|
128
|
+
// HyCutterRef,
|
|
129
|
+
formRef: formRef2,
|
|
130
|
+
visible: visible2,
|
|
131
|
+
form: form2,
|
|
132
|
+
rules: rules2,
|
|
133
|
+
beforeAvatarUpload: beforeAvatarUpload2,
|
|
134
|
+
handleHttpRequestImg: handleHttpRequestImg2,
|
|
135
|
+
submit: submit2,
|
|
136
|
+
onClose: onClose2,
|
|
137
|
+
show: show2,
|
|
138
|
+
onDialogMousedown: onDialogMousedown2,
|
|
139
|
+
onMinimized: onMinimized2,
|
|
140
|
+
setDragLevelIndex: setDragLevelIndex2,
|
|
141
|
+
title: title2,
|
|
142
|
+
HyDialogRef: HyDialogRef2
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
const {
|
|
146
|
+
// HyCutterRef,
|
|
147
|
+
formRef,
|
|
148
|
+
visible,
|
|
149
|
+
form,
|
|
150
|
+
rules,
|
|
151
|
+
beforeAvatarUpload,
|
|
152
|
+
handleHttpRequestImg,
|
|
153
|
+
submit,
|
|
154
|
+
onClose,
|
|
155
|
+
show,
|
|
156
|
+
title,
|
|
157
|
+
setDragLevelIndex,
|
|
158
|
+
HyDialogRef,
|
|
159
|
+
onMinimized,
|
|
160
|
+
onDialogMousedown
|
|
161
|
+
} = useMixins({ emit, props }, [useAddDepartmentType]);
|
|
162
|
+
__expose({
|
|
163
|
+
show,
|
|
164
|
+
setDragLevelIndex
|
|
165
|
+
});
|
|
166
|
+
return (_ctx, _cache) => {
|
|
167
|
+
const _component_el_input = resolveComponent("el-input");
|
|
168
|
+
return openBlock(), createBlock(unref(HyDialog), {
|
|
169
|
+
ref_key: "HyDialogRef",
|
|
170
|
+
ref: HyDialogRef,
|
|
171
|
+
modelValue: unref(visible),
|
|
172
|
+
"onUpdate:modelValue": ($event) => isRef(visible) ? visible.value = $event : null,
|
|
173
|
+
"if-shrink": props.ifShrink,
|
|
174
|
+
"if-draggable": props.ifDraggable,
|
|
175
|
+
width: "310px",
|
|
176
|
+
title: unref(title),
|
|
177
|
+
showOperate: false,
|
|
178
|
+
"on-close": unref(onClose),
|
|
179
|
+
onOnMinimized: unref(onMinimized),
|
|
180
|
+
onOnDialogMousedown: unref(onDialogMousedown)
|
|
181
|
+
}, {
|
|
182
|
+
default: withCtx(() => [
|
|
183
|
+
createCommentVNode(` <template #header>
|
|
184
|
+
<div
|
|
185
|
+
class="box-border w-full border-0 border-b border-solid border-background-3 px-4 py-[10px] text-main text-sm font-bold flex justify-between items-center relative"
|
|
186
|
+
>
|
|
187
|
+
<span v-if="form.id">{{ t('editDepartmentType') }}</span>
|
|
188
|
+
<span v-else>{{ t('addDepartmentType') }}</span>
|
|
189
|
+
<div class="text-lg absolute right-4 cursor-pointer text-danger-2">
|
|
190
|
+
<HyIcon
|
|
191
|
+
svg-name="layout-dialog-close-v2"
|
|
192
|
+
class="!w-[20px] !h-[20px]"
|
|
193
|
+
@click="onClose"
|
|
194
|
+
/>
|
|
195
|
+
</div>
|
|
196
|
+
</div>
|
|
197
|
+
</template> `),
|
|
198
|
+
createElementVNode("div", { class: "text-main" }, [
|
|
199
|
+
createElementVNode("div", { class: "box-border" }, [
|
|
200
|
+
createElementVNode("div", { class: "overflow-hidden" }, [
|
|
201
|
+
createVNode(unref(ElForm), {
|
|
202
|
+
ref_key: "formRef",
|
|
203
|
+
ref: formRef,
|
|
204
|
+
"label-position": "top",
|
|
205
|
+
model: unref(form),
|
|
206
|
+
rules: unref(rules),
|
|
207
|
+
"label-width": "0px"
|
|
208
|
+
}, {
|
|
209
|
+
default: withCtx(() => [
|
|
210
|
+
createVNode(unref(ElFormItem), { prop: "companyName" }, {
|
|
211
|
+
label: withCtx(() => [
|
|
212
|
+
createElementVNode(
|
|
213
|
+
"span",
|
|
214
|
+
{ class: "form-label" },
|
|
215
|
+
toDisplayString(unref(t)("departmentType.departmentIcon")),
|
|
216
|
+
1
|
|
217
|
+
/* TEXT */
|
|
218
|
+
)
|
|
219
|
+
]),
|
|
220
|
+
default: withCtx(() => [
|
|
221
|
+
createElementVNode("div", { class: "flex flex-row" }, [
|
|
222
|
+
createVNode(unref(ElUpload), {
|
|
223
|
+
class: "w-[80px] flex items-center justify-center",
|
|
224
|
+
accept: ".png,.jpg,.gif",
|
|
225
|
+
"before-upload": unref(beforeAvatarUpload),
|
|
226
|
+
"http-request": unref(handleHttpRequestImg),
|
|
227
|
+
action: "",
|
|
228
|
+
"show-file-list": false
|
|
229
|
+
}, {
|
|
230
|
+
default: withCtx(() => [
|
|
231
|
+
createElementVNode("div", { class: "click-box emptyHead" }, [
|
|
232
|
+
unref(form).icon ? (openBlock(), createBlock(unref(ElImage), {
|
|
233
|
+
key: 0,
|
|
234
|
+
fit: "contain",
|
|
235
|
+
class: "w-[44px] h-[44px]",
|
|
236
|
+
src: unref(form).icon
|
|
237
|
+
}, null, 8, ["src"])) : (openBlock(), createBlock(unref(HyIcon), {
|
|
238
|
+
key: 1,
|
|
239
|
+
"svg-name": "ops-file-empty-head",
|
|
240
|
+
class: "text-auxiliary !w-[42px] !h-[42px]"
|
|
241
|
+
})),
|
|
242
|
+
createElementVNode(
|
|
243
|
+
"span",
|
|
244
|
+
{ class: "uploadTips text-center" },
|
|
245
|
+
toDisplayString(unref(t)("departmentType.upload")),
|
|
246
|
+
1
|
|
247
|
+
/* TEXT */
|
|
248
|
+
)
|
|
249
|
+
])
|
|
250
|
+
]),
|
|
251
|
+
_: 1
|
|
252
|
+
/* STABLE */
|
|
253
|
+
}, 8, ["before-upload", "http-request"]),
|
|
254
|
+
createElementVNode("div", { class: "flex-grow leading-[20px] text-auxiliary text-xs text-center" }, [
|
|
255
|
+
createElementVNode(
|
|
256
|
+
"div",
|
|
257
|
+
null,
|
|
258
|
+
toDisplayString(unref(t)("departmentType.pleaseUploadDepartmentTypeIcon")),
|
|
259
|
+
1
|
|
260
|
+
/* TEXT */
|
|
261
|
+
),
|
|
262
|
+
createElementVNode(
|
|
263
|
+
"div",
|
|
264
|
+
null,
|
|
265
|
+
toDisplayString(unref(t)("departmentType.iconSize44px")) + "*44px",
|
|
266
|
+
1
|
|
267
|
+
/* TEXT */
|
|
268
|
+
),
|
|
269
|
+
createElementVNode(
|
|
270
|
+
"div",
|
|
271
|
+
null,
|
|
272
|
+
toDisplayString(unref(t)("departmentType.ifNoIconUseTheDefaultIcon")),
|
|
273
|
+
1
|
|
274
|
+
/* TEXT */
|
|
275
|
+
)
|
|
276
|
+
])
|
|
277
|
+
])
|
|
278
|
+
]),
|
|
279
|
+
_: 1
|
|
280
|
+
/* STABLE */
|
|
281
|
+
}),
|
|
282
|
+
createVNode(unref(ElFormItem), { prop: "typeName" }, {
|
|
283
|
+
label: withCtx(() => [
|
|
284
|
+
createElementVNode(
|
|
285
|
+
"span",
|
|
286
|
+
{ class: "form-label" },
|
|
287
|
+
toDisplayString(unref(t)("departmentType.departmentTypeName")),
|
|
288
|
+
1
|
|
289
|
+
/* TEXT */
|
|
290
|
+
)
|
|
291
|
+
]),
|
|
292
|
+
default: withCtx(() => [
|
|
293
|
+
createVNode(_component_el_input, {
|
|
294
|
+
modelValue: unref(form).typeName,
|
|
295
|
+
"onUpdate:modelValue": ($event) => unref(form).typeName = $event,
|
|
296
|
+
placeholder: unref(t)("departmentType.pleaseEnterTheDepartmentTypeName"),
|
|
297
|
+
clearable: ""
|
|
298
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
299
|
+
]),
|
|
300
|
+
_: 1
|
|
301
|
+
/* STABLE */
|
|
302
|
+
})
|
|
303
|
+
]),
|
|
304
|
+
_: 1
|
|
305
|
+
/* STABLE */
|
|
306
|
+
}, 8, ["model", "rules"])
|
|
307
|
+
]),
|
|
308
|
+
createElementVNode("div", { class: "flex items-center justify-center mt-5" }, [
|
|
309
|
+
createVNode(unref(HyButton), {
|
|
310
|
+
class: "!min-w-[120px]",
|
|
311
|
+
onClick: unref(onClose)
|
|
312
|
+
}, {
|
|
313
|
+
default: withCtx(() => [
|
|
314
|
+
createTextVNode(
|
|
315
|
+
toDisplayString(unref(t)("departmentType.close")),
|
|
316
|
+
1
|
|
317
|
+
/* TEXT */
|
|
318
|
+
)
|
|
319
|
+
]),
|
|
320
|
+
_: 1
|
|
321
|
+
/* STABLE */
|
|
322
|
+
}, 8, ["onClick"]),
|
|
323
|
+
createVNode(unref(HyButton), {
|
|
324
|
+
type: "primary",
|
|
325
|
+
class: "!min-w-[120px]",
|
|
326
|
+
onClick: unref(submit)
|
|
327
|
+
}, {
|
|
328
|
+
default: withCtx(() => [
|
|
329
|
+
createTextVNode(
|
|
330
|
+
toDisplayString(unref(t)("departmentType.save")),
|
|
331
|
+
1
|
|
332
|
+
/* TEXT */
|
|
333
|
+
)
|
|
334
|
+
]),
|
|
335
|
+
_: 1
|
|
336
|
+
/* STABLE */
|
|
337
|
+
}, 8, ["onClick"])
|
|
338
|
+
])
|
|
339
|
+
])
|
|
340
|
+
]),
|
|
341
|
+
unref(visible) ? (openBlock(), createBlock(
|
|
342
|
+
unref(HyCutter),
|
|
343
|
+
{
|
|
344
|
+
key: 0,
|
|
345
|
+
ref_key: "HyCutterRef",
|
|
346
|
+
ref: HyCutterRef,
|
|
347
|
+
"show-upload": false,
|
|
348
|
+
"z-index": 1e4
|
|
349
|
+
},
|
|
350
|
+
null,
|
|
351
|
+
512
|
|
352
|
+
/* NEED_PATCH */
|
|
353
|
+
)) : createCommentVNode("v-if", true)
|
|
354
|
+
]),
|
|
355
|
+
_: 1
|
|
356
|
+
/* STABLE */
|
|
357
|
+
}, 8, ["modelValue", "onUpdate:modelValue", "if-shrink", "if-draggable", "title", "on-close", "onOnMinimized", "onOnDialogMousedown"]);
|
|
358
|
+
};
|
|
359
|
+
}
|
|
360
|
+
});
|
|
361
|
+
import "./style/addDepartmentType.scss?vue&type=style&index=0&src=1a1962e6&scoped=1a1962e6&lang.css";
|
|
362
|
+
|
|
363
|
+
var componnet = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1a1962e6"]]);
|
|
364
|
+
|
|
365
|
+
export { componnet as default };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
.emptyHead {
|
|
2
|
+
color: rgba(var(--hy-auxiliary), 1);
|
|
3
|
+
height: 44px;
|
|
4
|
+
width: 44px;
|
|
5
|
+
background: var(--item-background-main-color);
|
|
6
|
+
box-shadow: 0 0 10px 2px var(--background-auxiliary-color);
|
|
7
|
+
border-radius: 6px;
|
|
8
|
+
border: 1px solid #454b5f;
|
|
9
|
+
position: relative;
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
span.uploadTips {
|
|
12
|
+
color: #fff;
|
|
13
|
+
position: absolute;
|
|
14
|
+
top: 50%;
|
|
15
|
+
left: 50%;
|
|
16
|
+
width: 44px;
|
|
17
|
+
font-size: 12px;
|
|
18
|
+
line-height: 20px;
|
|
19
|
+
transform: translate(-50%, -50%);
|
|
20
|
+
opacity: 0;
|
|
21
|
+
transition: 0.5s;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
.emptyHead:hover {
|
|
25
|
+
img {
|
|
26
|
+
opacity: 0.5;
|
|
27
|
+
}
|
|
28
|
+
span.uploadTips {
|
|
29
|
+
opacity: 1;
|
|
30
|
+
}
|
|
31
|
+
}
|
package/es/bussiness/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export { HyAddDepartmentType } from './hyAddDepartmentType/index.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useTemplateRef, computed, onMounted, onUnmounted, openBlock, createElementBlock, normalizeClass, unref, createVNode, createElementVNode, toDisplayString, withDirectives, vShow, createCommentVNode, createTextVNode, normalizeStyle, isRef, vModelText, withCtx, Fragment, renderList, createBlock
|
|
1
|
+
import { defineComponent, useTemplateRef, computed, onMounted, onUnmounted, openBlock, createElementBlock, normalizeClass, unref, createVNode, createElementVNode, toDisplayString, withDirectives, vShow, createCommentVNode, createTextVNode, normalizeStyle, isRef, vModelText, withCtx, Fragment, renderList, createBlock } from 'vue';
|
|
2
2
|
import { ElPopover, ElSlider } from 'element-plus';
|
|
3
3
|
import _sfc_main$1 from '../hyVideoPlayer/cpns/mediaLoading.vue.mjs';
|
|
4
4
|
import { useAudioPlayer } from './js/index.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, useTemplateRef, useModel, ref, openBlock, createBlock, unref, mergeProps, createSlots, withCtx,
|
|
1
|
+
import { defineComponent, useTemplateRef, useModel, ref, openBlock, createBlock, unref, mergeProps, createSlots, withCtx, createElementVNode, renderSlot, normalizeProps, guardReactiveProps, renderList, createCommentVNode, createTextVNode, createVNode, toDisplayString, createElementBlock, mergeModels } from 'vue';
|
|
2
2
|
import { ElIcon } from 'element-plus';
|
|
3
3
|
import { Warning } from '@element-plus/icons-vue';
|
|
4
4
|
import { HyDialog } from '../hyDialog/index.mjs';
|
|
@@ -78,6 +78,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
78
78
|
beforeDataHandle: {
|
|
79
79
|
type: Function
|
|
80
80
|
},
|
|
81
|
+
onExpandRowChange: {
|
|
82
|
+
type: Function
|
|
83
|
+
},
|
|
81
84
|
submitHandler: {
|
|
82
85
|
type: Function
|
|
83
86
|
}
|
|
@@ -288,41 +291,47 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
288
291
|
}, 8, ["disabled"])) : createCommentVNode("v-if", true)
|
|
289
292
|
]),
|
|
290
293
|
default: withCtx(() => [
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
294
|
+
createElementVNode("div", { class: "flex flex-col w-full h-full" }, [
|
|
295
|
+
renderSlot(_ctx.$slots, "dialog-head-box", normalizeProps(guardReactiveProps({ currentStep: currentStep.value }))),
|
|
296
|
+
createElementVNode("div", { class: "flex-grow h-0" }, [
|
|
297
|
+
visible.value ? (openBlock(), createBlock(unref(HyBatchTableForm), {
|
|
298
|
+
key: 0,
|
|
299
|
+
ref_key: "batchTableFormRef",
|
|
300
|
+
ref: batchTableFormRef,
|
|
301
|
+
step: currentStep.value,
|
|
302
|
+
"onUpdate:step": ($event) => currentStep.value = $event,
|
|
303
|
+
tableColumns: __props.tableColumns,
|
|
304
|
+
formColumns: __props.formColumns,
|
|
305
|
+
rules: __props.rules,
|
|
306
|
+
emptyText: __props.emptyText,
|
|
307
|
+
fontSize: __props.fontSize,
|
|
308
|
+
rowClickExpand: __props.rowClickExpand,
|
|
309
|
+
columnNum: __props.columnNum,
|
|
310
|
+
size: __props.size,
|
|
311
|
+
beforeDataHandle: __props.beforeDataHandle,
|
|
312
|
+
onExpandRowChange: __props.onExpandRowChange,
|
|
313
|
+
"submit-handler": __props.submitHandler,
|
|
314
|
+
onUploading: onTableUploadingHandler,
|
|
315
|
+
onUploaded: onTableUploadedHandler,
|
|
316
|
+
onReset: onTableResetHandler,
|
|
317
|
+
onValidate: onTableValidateHandler,
|
|
318
|
+
onSubmitting: onTableSubmittingHandler,
|
|
319
|
+
onSubmit: onTableSubmitHandler
|
|
320
|
+
}, createSlots({
|
|
321
|
+
_: 2
|
|
322
|
+
/* DYNAMIC */
|
|
323
|
+
}, [
|
|
324
|
+
renderList(_ctx.$slots, (_, slotName) => {
|
|
325
|
+
return {
|
|
326
|
+
name: slotName,
|
|
327
|
+
fn: withCtx((scope) => [
|
|
328
|
+
renderSlot(_ctx.$slots, slotName, normalizeProps(guardReactiveProps(scope)))
|
|
329
|
+
])
|
|
330
|
+
};
|
|
331
|
+
})
|
|
332
|
+
]), 1032, ["step", "onUpdate:step", "tableColumns", "formColumns", "rules", "emptyText", "fontSize", "rowClickExpand", "columnNum", "size", "beforeDataHandle", "onExpandRowChange", "submit-handler"])) : createCommentVNode("v-if", true)
|
|
333
|
+
])
|
|
334
|
+
])
|
|
326
335
|
]),
|
|
327
336
|
_: 2
|
|
328
337
|
/* DYNAMIC */
|