resolver-egretimp-plus 0.0.300 → 0.0.302
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/const/index.js +1 -1
- package/dist/h5/index.js +1 -1
- package/dist/theme/element/index.css +1 -1
- package/dist/theme/element/src/components/dialog.scss +5 -4
- package/dist/web/index.js +2 -2
- package/package.json +1 -1
- package/src/api/builtIn.js +5 -1
- package/src/components/childDialog/src/index.vue +2 -5
- package/src/components/packages-web/CustomComponentFileExport.vue +60 -0
- package/src/components/packages-web/CustomComponentFileImport.vue +60 -0
- package/src/components/packages-web/CustomComponentSendMail.vue +3 -15
- package/src/components/thirdPartyFrame/src/ThirdPartyFrame.vue +3 -1
- package/src/theme/element/components/dialog.scss +5 -4
- package/src/utils/const.js +2 -1
package/package.json
CHANGED
package/src/api/builtIn.js
CHANGED
|
@@ -3,4 +3,8 @@ export const LCP_LOGIN = '/sa-lcp/login'
|
|
|
3
3
|
export const GET_SYS_PARAM_CACHE = '/sa-lcp/api/v1/sysparam/getSysParamCache'
|
|
4
4
|
export const REFRESH_TOKEN = '/sa-lcp/changePwd/refreshToken'
|
|
5
5
|
export const DATA_VALID_RULE_EXECUTE = '/sa-lcp/api/v1/validate/dataValidRuleExecute'
|
|
6
|
-
export const FIND_FILEA_NND_CONENT_BY_ID = '/sa-lcp/api/v1/fileopertate/findFileAndContentById'
|
|
6
|
+
export const FIND_FILEA_NND_CONENT_BY_ID = '/sa-lcp/api/v1/fileopertate/findFileAndContentById'
|
|
7
|
+
|
|
8
|
+
export const MAIL_SEND_URL = '/gcweb/External_Mail'
|
|
9
|
+
export const FILE_IMPORT_URL = '/gcweb/External_Import'
|
|
10
|
+
export const FILE_EXPORT_URL = '/gcweb/External_Export'
|
|
@@ -159,18 +159,15 @@ defineExpose({
|
|
|
159
159
|
|
|
160
160
|
<style lang="scss">
|
|
161
161
|
.open-child-frame {
|
|
162
|
+
padding: 16px 20px 20px 20px;
|
|
162
163
|
overflow-y: auto;
|
|
163
164
|
overflow-x: hidden;
|
|
164
165
|
&.el-dialog {
|
|
165
166
|
margin-top: 30px !important;
|
|
166
167
|
margin-bottom: 30px;
|
|
167
|
-
iframe {
|
|
168
|
-
border: 1px solid #dee0e3;
|
|
169
|
-
height: 80vh;
|
|
170
|
-
width: 100%;
|
|
171
|
-
}
|
|
172
168
|
}
|
|
173
169
|
.el-dialog__header {
|
|
170
|
+
--el-dialog-title-font-size: 16px;
|
|
174
171
|
min-height: 40px;
|
|
175
172
|
}
|
|
176
173
|
&.hidden-head {
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<ElButton @click="buttonAction" v-bind="{...attrs, ...calcPorps}">
|
|
3
|
+
{{label}}
|
|
4
|
+
</ElButton>
|
|
5
|
+
</template>
|
|
6
|
+
<script setup>
|
|
7
|
+
import { ElButton } from 'element-plus'
|
|
8
|
+
import { defineProps, inject, computed, useAttrs } from 'vue'
|
|
9
|
+
import { commonPropsType } from '../../utils/index.js'
|
|
10
|
+
import thirdPartyFrame from '../thirdPartyFrame'
|
|
11
|
+
import { FILE_EXPORT_URL } from '../../api/builtIn.js'
|
|
12
|
+
|
|
13
|
+
const props = defineProps({
|
|
14
|
+
...commonPropsType,
|
|
15
|
+
...ElButton.props,
|
|
16
|
+
toHref: String
|
|
17
|
+
})
|
|
18
|
+
const calcPorps = computed(() => {
|
|
19
|
+
const ret = {
|
|
20
|
+
...props
|
|
21
|
+
}
|
|
22
|
+
if (ret.plain == '1') {
|
|
23
|
+
ret.plain = true
|
|
24
|
+
} else {
|
|
25
|
+
ret.plain = false
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
if (ret.circle == '1') {
|
|
29
|
+
ret.circle = true
|
|
30
|
+
} else {
|
|
31
|
+
ret.circle = false
|
|
32
|
+
}
|
|
33
|
+
if (props?.config?.rounds && props?.config?.rounds == '1') {
|
|
34
|
+
ret.round = true
|
|
35
|
+
}
|
|
36
|
+
if (props?.config?.widgetSize) {
|
|
37
|
+
ret.size = props?.config?.widgetSize
|
|
38
|
+
}
|
|
39
|
+
if (props?.config?.displayType) {
|
|
40
|
+
ret.type = props?.config?.displayType
|
|
41
|
+
}
|
|
42
|
+
return ret
|
|
43
|
+
})
|
|
44
|
+
|
|
45
|
+
const attrs = useAttrs()
|
|
46
|
+
|
|
47
|
+
const lang = inject('lang')
|
|
48
|
+
|
|
49
|
+
const label = computed(() => {
|
|
50
|
+
return lang.value.indexOf('zh') > -1 ? (props.config?.labelZh || props.config?.metaNameZh) : (props.config?.labelEn || props.config?.metaNameEn)
|
|
51
|
+
})
|
|
52
|
+
|
|
53
|
+
const buttonAction = () => {
|
|
54
|
+
thirdPartyFrame({
|
|
55
|
+
lang: lang?.value,
|
|
56
|
+
showClose: true,
|
|
57
|
+
src: `${FILE_EXPORT_URL}?showMenuHead=5&fullScreen=true&apToken=${props.toHref}`
|
|
58
|
+
})
|
|
59
|
+
}
|
|
60
|
+
</script>
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<ElButton @click="buttonAction" v-bind="{...attrs, ...calcPorps}">
|
|
3
|
+
{{label}}
|
|
4
|
+
</ElButton>
|
|
5
|
+
</template>
|
|
6
|
+
<script setup>
|
|
7
|
+
import { ElButton } from 'element-plus'
|
|
8
|
+
import { defineProps, inject, computed, useAttrs } from 'vue'
|
|
9
|
+
import { commonPropsType } from '../../utils/index.js'
|
|
10
|
+
import thirdPartyFrame from '../thirdPartyFrame'
|
|
11
|
+
import { FILE_IMPORT_URL } from '../../api/builtIn.js'
|
|
12
|
+
|
|
13
|
+
const props = defineProps({
|
|
14
|
+
...commonPropsType,
|
|
15
|
+
...ElButton.props,
|
|
16
|
+
toHref: String
|
|
17
|
+
})
|
|
18
|
+
const calcPorps = computed(() => {
|
|
19
|
+
const ret = {
|
|
20
|
+
...props
|
|
21
|
+
}
|
|
22
|
+
if (ret.plain == '1') {
|
|
23
|
+
ret.plain = true
|
|
24
|
+
} else {
|
|
25
|
+
ret.plain = false
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
if (ret.circle == '1') {
|
|
29
|
+
ret.circle = true
|
|
30
|
+
} else {
|
|
31
|
+
ret.circle = false
|
|
32
|
+
}
|
|
33
|
+
if (props?.config?.rounds && props?.config?.rounds == '1') {
|
|
34
|
+
ret.round = true
|
|
35
|
+
}
|
|
36
|
+
if (props?.config?.widgetSize) {
|
|
37
|
+
ret.size = props?.config?.widgetSize
|
|
38
|
+
}
|
|
39
|
+
if (props?.config?.displayType) {
|
|
40
|
+
ret.type = props?.config?.displayType
|
|
41
|
+
}
|
|
42
|
+
return ret
|
|
43
|
+
})
|
|
44
|
+
|
|
45
|
+
const attrs = useAttrs()
|
|
46
|
+
|
|
47
|
+
const lang = inject('lang')
|
|
48
|
+
|
|
49
|
+
const label = computed(() => {
|
|
50
|
+
return lang.value.indexOf('zh') > -1 ? (props.config?.labelZh || props.config?.metaNameZh) : (props.config?.labelEn || props.config?.metaNameEn)
|
|
51
|
+
})
|
|
52
|
+
|
|
53
|
+
const buttonAction = () => {
|
|
54
|
+
thirdPartyFrame({
|
|
55
|
+
lang: lang?.value,
|
|
56
|
+
showClose: true,
|
|
57
|
+
src: `${FILE_IMPORT_URL}?showMenuHead=5&fullScreen=true&apToken=${props.toHref}`
|
|
58
|
+
})
|
|
59
|
+
}
|
|
60
|
+
</script>
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
</template>
|
|
6
6
|
<script setup>
|
|
7
7
|
import { ElButton } from 'element-plus'
|
|
8
|
-
import { defineProps, inject,
|
|
9
|
-
import { commonPropsType
|
|
10
|
-
import { useRoute } from 'vue-router'
|
|
8
|
+
import { defineProps, inject, computed, useAttrs } from 'vue'
|
|
9
|
+
import { commonPropsType } from '../../utils/index.js'
|
|
11
10
|
import thirdPartyFrame from '../thirdPartyFrame'
|
|
11
|
+
import { MAIL_SEND_URL } from '../../api/builtIn.js'
|
|
12
12
|
|
|
13
13
|
const props = defineProps({
|
|
14
14
|
...commonPropsType,
|
|
@@ -49,18 +49,6 @@ const lang = inject('lang')
|
|
|
49
49
|
const label = computed(() => {
|
|
50
50
|
return lang.value.indexOf('zh') > -1 ? (props.config?.labelZh || props.config?.metaNameZh) : (props.config?.labelEn || props.config?.metaNameEn)
|
|
51
51
|
})
|
|
52
|
-
// const route = useRoute()
|
|
53
|
-
// const buttonActions = inject('buttonActions', {})
|
|
54
|
-
|
|
55
|
-
// const dynamicMapComp = inject('dynamicMapComp')
|
|
56
|
-
// const hireRelatMapRules = inject('hireRelatMapRules')
|
|
57
|
-
// const components = inject('components')
|
|
58
|
-
// const selects = inject('selects')
|
|
59
|
-
// const rootValue = inject('rootValue')
|
|
60
|
-
// const dataLoad = inject('dataLoad')
|
|
61
|
-
// const rootForm = inject('rootForm')
|
|
62
|
-
// const _axiosInstance = inject('_axiosInstance')
|
|
63
|
-
// const routeQuery= route?.query
|
|
64
52
|
|
|
65
53
|
const buttonAction = () => {
|
|
66
54
|
thirdPartyFrame({
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
<div class="header" v-if="!!props.title">
|
|
4
4
|
<span>{{ props.title }}</span>
|
|
5
5
|
</div>
|
|
6
|
-
|
|
6
|
+
<!-- :style="{marginTop: !!props.title ? 0 : '16px'}" -->
|
|
7
|
+
<iframe ref="iframeRef" class="iframe-box" :src="dialogVisible ? props.src : ''"></iframe>
|
|
7
8
|
<div class="footer">
|
|
8
9
|
<div class="dialog-footer">
|
|
9
10
|
<ElButton @click="dialogVisible = false" v-if="showClose">
|
|
@@ -120,4 +121,5 @@ onUnmounted(() => {
|
|
|
120
121
|
margin-top: 10px;
|
|
121
122
|
text-align: right;
|
|
122
123
|
}
|
|
124
|
+
|
|
123
125
|
</style>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
// 组件弹框样式定义调整
|
|
3
3
|
.custom-component-dialog {
|
|
4
|
-
padding-top: 0px;
|
|
5
|
-
padding-bottom: 0;
|
|
4
|
+
// padding-top: 0px;
|
|
5
|
+
// padding-bottom: 0;
|
|
6
6
|
|
|
7
7
|
.el-dialog__header {
|
|
8
8
|
display: none;
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
.el-dialog__body {
|
|
11
11
|
height: 100%;
|
|
12
12
|
.header {
|
|
13
|
-
line-height: 46px;
|
|
13
|
+
// line-height: 46px;
|
|
14
|
+
margin-bottom: 16px;
|
|
14
15
|
font-size: 14px;
|
|
15
16
|
font-weight: 500;
|
|
16
17
|
color: #1F2329;
|
|
@@ -26,7 +27,7 @@
|
|
|
26
27
|
// }
|
|
27
28
|
}
|
|
28
29
|
.footer {
|
|
29
|
-
height: 68px;
|
|
30
|
+
// height: 68px;
|
|
30
31
|
text-align: right;
|
|
31
32
|
overflow: hidden;
|
|
32
33
|
.dialog-footer {
|
package/src/utils/const.js
CHANGED
|
@@ -51,7 +51,6 @@ export const DISPLAY_HIDDEN = '0'
|
|
|
51
51
|
export const PLAIN_TYPE_ALONG_COLUMNS = ['ElText']
|
|
52
52
|
export const PLAIN_TYPE_COLUMNS = ['ElInput', 'ElDatePicker', 'ElInputNumber']
|
|
53
53
|
export const PLAIN_TYPE_OPTIONS_COLUMNS = ['ElSelect']
|
|
54
|
-
export const MAIL_SEND_URL = '/gcweb/External_Mail'
|
|
55
54
|
export const commonPropsType = {
|
|
56
55
|
// 这边是组件的信息
|
|
57
56
|
compInfo: {
|
|
@@ -218,6 +217,8 @@ export const META_TYPE_MAP = {
|
|
|
218
217
|
'tree': 'CustomComponentTree',
|
|
219
218
|
'steps': 'CustomComponentSteps',
|
|
220
219
|
'mail-send': 'CustomComponentSendMail',
|
|
220
|
+
'file-import': 'CustomComponentFileImport',
|
|
221
|
+
'file-export': 'CustomComponentFileExport',
|
|
221
222
|
|
|
222
223
|
'cmi-card': 'CustomComponentCardH5',
|
|
223
224
|
'cmi-collapse': 'CustomComponentCollapseH5',
|