sohelp-eleplus 1.1.19 → 1.1.20
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/components.js +2 -0
- package/http/SohelpHttp.js +14 -5
- package/package.json +1 -1
- package/sohelp-card/index.vue +13 -0
- package/sohelp-dict/index.vue +25 -1
- package/sohelp-grid/components/filter-condition-item.vue +7 -3
- package/sohelp-grid/index.vue +289 -148
- package/sohelp-grid/js/DefaultGridOptions.js +25 -16
- package/sohelp-grid/js/useSohelpGridConfig.js +159 -89
- package/sohelp-grid-view/filter/filter-form.vue +10 -4
- package/sohelp-grid-view/filter/index.vue +5 -2
- package/sohelp-grid-view/index.vue +15 -6
- package/sohelp-import/index.vue +470 -0
- package/sohelp-modal/index.vue +6 -2
- package/sohelp-page/index.vue +13 -0
- package/sohelp-vxe-grid/DefaultGridOptions.js +51 -26
- package/sohelp-vxe-grid/index.vue +376 -375
- package/sohelp-workflow/nodes/approver.vue +0 -1
package/components.js
CHANGED
|
@@ -44,3 +44,5 @@ export { default as SohelpTenantSelect } from './sohelp-tenant-select/index.vue'
|
|
|
44
44
|
export { default as SohelpVxeGridSelect } from './sohelp-vxe-grid-select/index.vue';
|
|
45
45
|
export { default as SohelpIconSelect } from './sohelp-icon-select/index.vue';
|
|
46
46
|
export { default as SohelpModal } from './sohelp-modal/index.vue';
|
|
47
|
+
export { default as SohelpCard } from './sohelp-card/index.vue';
|
|
48
|
+
export { default as SohelpPage } from './sohelp-page/index.vue';
|
package/http/SohelpHttp.js
CHANGED
|
@@ -18,9 +18,11 @@ export const SohelpHttp = {
|
|
|
18
18
|
* @param _url
|
|
19
19
|
* @param param
|
|
20
20
|
* @param fileName
|
|
21
|
+
* @param onProgress
|
|
22
|
+
* @param config
|
|
21
23
|
* @returns {Promise<never>}
|
|
22
24
|
*/
|
|
23
|
-
download: async function(_url, param, fileName) {
|
|
25
|
+
download: async function(_url, param, fileName, onProgress, config = {}) {
|
|
24
26
|
if (window.$axios == null) {
|
|
25
27
|
console.error("请在配置main.js中配置window.$axios实例!!");
|
|
26
28
|
return;
|
|
@@ -29,10 +31,17 @@ export const SohelpHttp = {
|
|
|
29
31
|
if (!fileName) {
|
|
30
32
|
fileName = (new Date()).getTime();
|
|
31
33
|
}
|
|
32
|
-
// 发起
|
|
33
|
-
const response = await window.$axios.
|
|
34
|
-
responseType:
|
|
35
|
-
|
|
34
|
+
// 发起POST请求,设置responseType为blob
|
|
35
|
+
const response = await window.$axios.post(_url, param || {}, {
|
|
36
|
+
responseType: 'blob',
|
|
37
|
+
...config,
|
|
38
|
+
onDownloadProgress: (evt) => {
|
|
39
|
+
if (typeof onProgress === "function") {
|
|
40
|
+
const total = evt?.total || 0;
|
|
41
|
+
const loaded = evt?.loaded || 0;
|
|
42
|
+
onProgress(loaded, total);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
36
45
|
}).catch(e => {
|
|
37
46
|
return Promise.reject(e.message);
|
|
38
47
|
});
|
package/package.json
CHANGED
package/sohelp-dict/index.vue
CHANGED
|
@@ -11,10 +11,19 @@
|
|
|
11
11
|
padding-right: 6px;
|
|
12
12
|
padding-top: 3px;
|
|
13
13
|
padding-bottom: 3px;
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
14
16
|
"
|
|
15
17
|
v-for="(item, index) in valueData"
|
|
16
18
|
:key="item.value"
|
|
17
|
-
|
|
19
|
+
>
|
|
20
|
+
<el-icon :size="18" style="margin: 2px 5px 0 0">
|
|
21
|
+
<component :is="ElementPlusIcons[icon]" v-if="ElementPlusIcons[icon]" />
|
|
22
|
+
<component :is="EleAdminPlusIcons[icon]" v-else-if="EleAdminPlusIcons[icon]" />
|
|
23
|
+
<span :class="icon" v-else></span>
|
|
24
|
+
</el-icon>
|
|
25
|
+
|
|
26
|
+
{{ item.label }}
|
|
18
27
|
</el-text>
|
|
19
28
|
</template>
|
|
20
29
|
<template v-else-if="type === 'tag'">
|
|
@@ -27,6 +36,11 @@
|
|
|
27
36
|
:key="item.value"
|
|
28
37
|
:disable-transitions="true"
|
|
29
38
|
>
|
|
39
|
+
<el-icon :size="18" style="margin: 2px 5px 0 0">
|
|
40
|
+
<component :is="ElementPlusIcons[icon]" v-if="ElementPlusIcons[icon]" />
|
|
41
|
+
<component :is="EleAdminPlusIcons[icon]" v-else-if="EleAdminPlusIcons[icon]" />
|
|
42
|
+
<span :class="icon" v-else></span>
|
|
43
|
+
</el-icon>
|
|
30
44
|
{{ item.label }}
|
|
31
45
|
</el-tag>
|
|
32
46
|
</div>
|
|
@@ -39,6 +53,11 @@
|
|
|
39
53
|
@change="change"
|
|
40
54
|
>
|
|
41
55
|
<el-radio v-for="item in data.value" :key="item.value" :label="item.value">
|
|
56
|
+
<el-icon :size="18" style="margin: 2px 5px 0 0">
|
|
57
|
+
<component :is="ElementPlusIcons[icon]" v-if="ElementPlusIcons[icon]" />
|
|
58
|
+
<component :is="EleAdminPlusIcons[icon]" v-else-if="EleAdminPlusIcons[icon]" />
|
|
59
|
+
<span :class="icon" v-else></span>
|
|
60
|
+
</el-icon>
|
|
42
61
|
{{ item.label }}
|
|
43
62
|
</el-radio>
|
|
44
63
|
</el-radio-group>
|
|
@@ -50,6 +69,11 @@
|
|
|
50
69
|
@change="change"
|
|
51
70
|
>
|
|
52
71
|
<el-checkbox v-for="item in data.value" :key="item.value" :label="item.value">
|
|
72
|
+
<el-icon :size="18" style="margin: 2px 5px 0 0">
|
|
73
|
+
<component :is="ElementPlusIcons[icon]" v-if="ElementPlusIcons[icon]" />
|
|
74
|
+
<component :is="EleAdminPlusIcons[icon]" v-else-if="EleAdminPlusIcons[icon]" />
|
|
75
|
+
<span :class="icon" v-else></span>
|
|
76
|
+
</el-icon>
|
|
53
77
|
{{ item.label }}
|
|
54
78
|
</el-checkbox>
|
|
55
79
|
</el-checkbox-group>
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
17
|
|
|
18
|
-
const emit = defineEmits(['update:modelValue', 'change']);
|
|
18
|
+
const emit = defineEmits(['update:modelValue', 'change', 'search']);
|
|
19
19
|
const condition = reactive({});
|
|
20
20
|
|
|
21
21
|
const dropDownRef = ref(null);
|
|
@@ -24,6 +24,10 @@
|
|
|
24
24
|
return typeof val === 'number';
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
+
const search = () => {
|
|
28
|
+
emit('search', condition);
|
|
29
|
+
};
|
|
30
|
+
|
|
27
31
|
const getComparisonByEditor = (type) => {
|
|
28
32
|
let data = null;
|
|
29
33
|
if (comparisonType[type]) {
|
|
@@ -80,7 +84,7 @@
|
|
|
80
84
|
};
|
|
81
85
|
</script>
|
|
82
86
|
<template>
|
|
83
|
-
<
|
|
87
|
+
<el-form class="sohelp-filter-condition" v-if="properties" @keyup.enter="search" @submit.prevent="">
|
|
84
88
|
<el-form-item :label="t(properties.i18n) || properties.label">
|
|
85
89
|
<ele-dropdown
|
|
86
90
|
ref="dropDownRef"
|
|
@@ -275,7 +279,7 @@
|
|
|
275
279
|
style="width: 160px"
|
|
276
280
|
class="filter-condition"
|
|
277
281
|
></sohelp-input>
|
|
278
|
-
</
|
|
282
|
+
</el-form>
|
|
279
283
|
</template>
|
|
280
284
|
|
|
281
285
|
<style lang="scss" scoped>
|