resolver-egretimp-plus 0.0.52 → 0.0.54
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/h5/index.js +1 -1
- package/dist/web/index.js +1 -1
- package/package.json +1 -1
- package/src/components/helper/resolver.js +7 -16
- package/src/components/packages-web/CustomComponentCollapse.vue +21 -12
- package/src/components/packages-web/ElInputNumber.vue +6 -1
- package/src/utils/respone.js +6 -6
package/package.json
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { resultToast } from "../../utils/respone"
|
|
2
|
+
|
|
1
3
|
export async function executeLoadServices(services = [], { axiosInstance, messageInstance, reqData, respCb }) {
|
|
2
4
|
const loadServices = services.filter(ser => ser.eventType == '1')
|
|
3
5
|
const mixinServiceConfig = services.find(service => service.serviceType === '1')
|
|
@@ -18,23 +20,12 @@ export async function executeLoadServices(services = [], { axiosInstance, messag
|
|
|
18
20
|
...(reqData || {})
|
|
19
21
|
}
|
|
20
22
|
}))
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
// data: {
|
|
25
|
-
// success: true,
|
|
26
|
-
// result: {
|
|
27
|
-
// studentId: 121212
|
|
28
|
-
// }
|
|
29
|
-
// }
|
|
30
|
-
// })
|
|
31
|
-
// }, 3000);
|
|
32
|
-
// }))
|
|
33
|
-
if (!ret?.data?.success) {
|
|
34
|
-
messageInstance?.value?.error(ret?.data?.resultMessage || '')
|
|
35
|
-
await Promise.reject()
|
|
23
|
+
if (resultToast(ret.data, messageInstance, { noSuccessIip: true })) {
|
|
24
|
+
respCb && respCb(ret?.data?.result?.['PC-root-panel'])
|
|
25
|
+
return
|
|
36
26
|
}
|
|
37
|
-
|
|
27
|
+
messageInstance?.value?.error(ret?.data?.resultMessage || '')
|
|
28
|
+
await Promise.reject()
|
|
38
29
|
}
|
|
39
30
|
}
|
|
40
31
|
|
|
@@ -4,7 +4,10 @@
|
|
|
4
4
|
<ElCollapseItem v-bind="collapseItemProps" >
|
|
5
5
|
<template #title>
|
|
6
6
|
<div class="collapge-slot-title">
|
|
7
|
-
<
|
|
7
|
+
<ElRow>
|
|
8
|
+
<span>{{ lang.indexOf('zh') > -1 ? props.config.metaNameZh : props.config.metaNameEn }}</span>
|
|
9
|
+
<Renderer @click="stopPropagation" :config="rightSlotPmPageMetaList" v-model="props.refValue.value"></Renderer>
|
|
10
|
+
</ElRow>
|
|
8
11
|
<ElRow>
|
|
9
12
|
<Renderer @click="stopPropagation" :config="slotPmPageMetaList" v-model="props.refValue.value"></Renderer>
|
|
10
13
|
</ElRow>
|
|
@@ -64,13 +67,17 @@ const collapseItemProps = computed(() => {
|
|
|
64
67
|
})
|
|
65
68
|
|
|
66
69
|
const pmPageMetaList = computed(() => {
|
|
67
|
-
return props.config?.pmPageMetaList?.filter(item => !item.collapseSlot) || []
|
|
70
|
+
return props.config?.pmPageMetaList?.filter(item => !item.collapseSlot && !item.collapseRightSlot) || []
|
|
68
71
|
})
|
|
69
72
|
|
|
70
73
|
const slotPmPageMetaList = computed(() => {
|
|
71
74
|
return props.config?.pmPageMetaList?.filter(item => item.collapseSlot) || []
|
|
72
75
|
})
|
|
73
76
|
|
|
77
|
+
const rightSlotPmPageMetaList = computed(() => {
|
|
78
|
+
return props.config?.pmPageMetaList?.filter(item => item.collapseRightSlot) || []
|
|
79
|
+
})
|
|
80
|
+
|
|
74
81
|
const stopPropagation = (e) => {
|
|
75
82
|
e.stopPropagation()
|
|
76
83
|
}
|
|
@@ -99,16 +106,18 @@ const activeNames = computed({
|
|
|
99
106
|
justify-content: space-between;
|
|
100
107
|
align-items: center;
|
|
101
108
|
width: 100%;
|
|
102
|
-
>
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
109
|
+
> .el-row {
|
|
110
|
+
> span {
|
|
111
|
+
&::before {
|
|
112
|
+
content: "";
|
|
113
|
+
display: inline-block;
|
|
114
|
+
width: 3px;
|
|
115
|
+
height: 12px;
|
|
116
|
+
margin-right: 8px;
|
|
117
|
+
border-radius: 3px;
|
|
118
|
+
vertical-align: baseline;
|
|
119
|
+
background-color: #3271fe;
|
|
120
|
+
}
|
|
112
121
|
}
|
|
113
122
|
}
|
|
114
123
|
}
|
|
@@ -23,7 +23,12 @@ const inputNumberProps = computed(() => {
|
|
|
23
23
|
ret[key] = props[key]
|
|
24
24
|
return ret
|
|
25
25
|
}, {})
|
|
26
|
-
|
|
26
|
+
if (props.config?.maxValue && !isNaN(props.config.maxValue)) {
|
|
27
|
+
ret.max = props.config.maxValue
|
|
28
|
+
}
|
|
29
|
+
if (props.config?.minValue && !isNaN(props.config.minValue)) {
|
|
30
|
+
ret.min = props.config.minValue
|
|
31
|
+
}
|
|
27
32
|
return ret
|
|
28
33
|
})
|
|
29
34
|
const attrs = useAttrs()
|
package/src/utils/respone.js
CHANGED
|
@@ -45,22 +45,22 @@ export function resultToast(result = {}, messageInstance, {messageCb, service, c
|
|
|
45
45
|
if (isPromise(messageCb)) {
|
|
46
46
|
messageCb({resultMessage, result, resultCode, service, compConfig}).then(res => {
|
|
47
47
|
if (res === true) {
|
|
48
|
-
if (service?.transactionType === '2') {
|
|
48
|
+
// if (service?.transactionType === '2') {
|
|
49
49
|
messageInstance?.[cbKey]?.(resultMessage)
|
|
50
|
-
}
|
|
50
|
+
// }
|
|
51
51
|
}
|
|
52
52
|
})
|
|
53
53
|
} else {
|
|
54
54
|
if (messageCb({resultMessage, result, resultCode, service, compConfig}) === true) {
|
|
55
|
-
if (service?.transactionType === '2') {
|
|
55
|
+
// if (service?.transactionType === '2') {
|
|
56
56
|
messageInstance?.[cbKey]?.(resultMessage)
|
|
57
|
-
}
|
|
57
|
+
// }
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
} else {
|
|
61
|
-
if (service?.transactionType === '2') {
|
|
61
|
+
// if (service?.transactionType === '2') {
|
|
62
62
|
messageInstance?.[cbKey]?.(resultMessage)
|
|
63
|
-
}
|
|
63
|
+
// }
|
|
64
64
|
}
|
|
65
65
|
return ret
|
|
66
66
|
}
|