vue2-client 1.16.39 → 1.16.41
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/package.json +1 -1
- package/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox.vue +18 -4
- package/src/base-client/components/common/HIS/HFormTable/HFormTable.vue +43 -18
- package/src/base-client/components/common/XDescriptions/XDescriptions.vue +174 -174
- package/src/base-client/components/common/XReport/XReport.vue +9 -18
- package/src/base-client/components/common/XSimpleDescriptions/XSimpleDescriptions.vue +166 -166
- package/src/base-client/components/his/XHDescriptions/XHDescriptions.vue +22 -14
- package/src/config/CreateQueryConfig.js +325 -325
- package/src/pages/XTreeOneProExample/index.vue +67 -67
- package/src/router/async/router.map.js +1 -4
- package/src/services/api/common.js +0 -1
- package/src/assets/img/paymentMethod/icon1.png +0 -0
- package/src/assets/img/paymentMethod/icon2.png +0 -0
- package/src/assets/img/paymentMethod/icon3.png +0 -0
- package/src/assets/img/paymentMethod/icon4.png +0 -0
- package/src/assets/img/paymentMethod/icon5.png +0 -0
- package/src/assets/img/paymentMethod/icon6.png +0 -0
- package/src/base-client/components/common/XReport/XReportHospitalizationDemo.vue +0 -45
- package/src/base-client/components/his/XCharge/testConfig.js +0 -149
package/package.json
CHANGED
@@ -85,7 +85,7 @@
|
|
85
85
|
import { GetGDMap } from '@vue2-client/utils/map-utils'
|
86
86
|
import { debounce } from 'ant-design-vue/lib/vc-table/src/utils'
|
87
87
|
import { mapState } from 'vuex'
|
88
|
-
import { runLogic } from '@vue2-client/services/api/common'
|
88
|
+
import { getConfigByName, runLogic } from '@vue2-client/services/api/common'
|
89
89
|
import IcMapIcon from '@vue2-client/base-client/components/common/AddressSearchCombobox/IcMapIcon.vue'
|
90
90
|
|
91
91
|
export default {
|
@@ -117,12 +117,14 @@ export default {
|
|
117
117
|
// 生成地址串中省市区街道信息禁止修改
|
118
118
|
readOnlyDivisions: false,
|
119
119
|
// cur 位置
|
120
|
-
curPosition:
|
120
|
+
curPosition: {},
|
121
|
+
gaode_key: '',
|
122
|
+
gaode_secret_key: '',
|
121
123
|
searchFlag: false,
|
122
124
|
}
|
123
125
|
},
|
124
126
|
computed: {
|
125
|
-
...mapState('setting', ['isMobile'
|
127
|
+
...mapState('setting', ['isMobile'])
|
126
128
|
},
|
127
129
|
props: {
|
128
130
|
attr: {
|
@@ -175,6 +177,15 @@ export default {
|
|
175
177
|
mounted () {
|
176
178
|
},
|
177
179
|
methods: {
|
180
|
+
getGaoDeKey () {
|
181
|
+
return new Promise((resolve) => {
|
182
|
+
getConfigByName('gaoDeKeyConfig', 'af-system', (config) => {
|
183
|
+
this.gaode_secret_key = config.gaode_secret_key
|
184
|
+
this.gaode_key = config.gaode_key
|
185
|
+
resolve()
|
186
|
+
})
|
187
|
+
})
|
188
|
+
},
|
178
189
|
change (value) {
|
179
190
|
if (this.readOnlyDivisions && !this.divisionsChange) {
|
180
191
|
// 如果省市区街道信息禁止修改
|
@@ -435,7 +446,10 @@ export default {
|
|
435
446
|
watch: {
|
436
447
|
'visible' (val) {
|
437
448
|
if (val) {
|
438
|
-
this.$nextTick(() => {
|
449
|
+
this.$nextTick(async () => {
|
450
|
+
if (!this.gaode_key) {
|
451
|
+
await this.getGaoDeKey()
|
452
|
+
}
|
439
453
|
GetGDMap(this.gaode_secret_key, this.gaode_key).then(aMap => {
|
440
454
|
this.initMap(aMap)
|
441
455
|
this.mapAutocomplete = new (aMap).AutoComplete({
|
@@ -1,25 +1,42 @@
|
|
1
|
-
<script setup
|
1
|
+
<script setup>
|
2
2
|
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable.vue'
|
3
|
-
import { ref, computed } from 'vue'
|
3
|
+
import { ref, computed, useAttrs } from 'vue'
|
4
4
|
|
5
5
|
const props = defineProps({
|
6
6
|
// HFormTable特有的属性
|
7
7
|
tableStyle: {
|
8
8
|
type: String,
|
9
9
|
default: 'formtable-col1'
|
10
|
-
},
|
11
|
-
// 顶部
|
12
|
-
topStyle: {
|
13
|
-
type: String,
|
14
|
-
default: ''
|
15
|
-
},
|
16
|
-
// 分页
|
17
|
-
paginationStyle: {
|
18
|
-
type: String,
|
19
|
-
default: ''
|
20
10
|
}
|
21
11
|
})
|
22
12
|
|
13
|
+
// 兼容多种样式配置
|
14
|
+
const attrs = useAttrs()
|
15
|
+
const wrapperClassObject = computed(() => {
|
16
|
+
const a = attrs
|
17
|
+
const classes = {}
|
18
|
+
|
19
|
+
// 通用布尔样式开关(以存在/空字符串/'true' 为真)
|
20
|
+
const booleanStyleKeys = [
|
21
|
+
'button-row-0margin',
|
22
|
+
'top-hidden'
|
23
|
+
]
|
24
|
+
for (const key of booleanStyleKeys) {
|
25
|
+
const val = a[key]
|
26
|
+
const truthy = val === true || val === '' || val === 'true'
|
27
|
+
if (truthy) classes[`h-form-table-${key}`] = true
|
28
|
+
}
|
29
|
+
|
30
|
+
// 兼容通过 attrs 透传的分页样式:将值映射为当前样式中存在的类名
|
31
|
+
const paginationAttr = a && a.paginationStyle
|
32
|
+
if (paginationAttr && ['pagination-center', 'custom-pagination'].includes(paginationAttr)) {
|
33
|
+
classes[`h-form-table-${paginationAttr}`] = true
|
34
|
+
}
|
35
|
+
return classes
|
36
|
+
})
|
37
|
+
|
38
|
+
// 通过暴露的实例访问 $slots,避免直接依赖 Composition API 的 useSlots
|
39
|
+
// 在模板中使用 `$slots` 遍历以保持与 Vue2 兼容
|
23
40
|
// 创建对XFormTable组件的引用
|
24
41
|
const xFormTableRef = ref()
|
25
42
|
|
@@ -29,8 +46,12 @@ defineExpose({
|
|
29
46
|
getXFormTableInstance: () => xFormTableRef.value
|
30
47
|
})
|
31
48
|
|
32
|
-
//
|
33
|
-
const isCustomPagination = computed(() =>
|
49
|
+
// 计算是否使用自定义分页(兼容 attrs 透传与 tableStyle 配置)
|
50
|
+
const isCustomPagination = computed(() => {
|
51
|
+
const a = attrs
|
52
|
+
const paginationAttr = (a && a.paginationStyle) || ''
|
53
|
+
return props.tableStyle === 'custom-pagination' || paginationAttr === 'custom-pagination'
|
54
|
+
})
|
34
55
|
</script>
|
35
56
|
|
36
57
|
<template>
|
@@ -38,10 +59,7 @@ const isCustomPagination = computed(() => props.tableStyle === 'custom-paginatio
|
|
38
59
|
class="h-form-table-wrapper"
|
39
60
|
:class="[
|
40
61
|
`h-form-table-${tableStyle}`,
|
41
|
-
|
42
|
-
[`h-form-table-${topStyle}`]: ['top-hidden'].includes(topStyle),
|
43
|
-
[`h-form-table-${paginationStyle}`]: ['pagination-center','custom-pagination'].includes(paginationStyle)
|
44
|
-
}
|
62
|
+
wrapperClassObject
|
45
63
|
]"
|
46
64
|
>
|
47
65
|
<x-form-table
|
@@ -215,5 +233,12 @@ const isCustomPagination = computed(() => props.tableStyle === 'custom-paginatio
|
|
215
233
|
}
|
216
234
|
}
|
217
235
|
}
|
236
|
+
|
237
|
+
// 按钮行0margin
|
238
|
+
&.h-form-table-button-row-0margin {
|
239
|
+
:deep(.ant-row) {
|
240
|
+
margin: 0px;
|
241
|
+
}
|
242
|
+
}
|
218
243
|
}
|
219
244
|
</style>
|
@@ -1,174 +1,174 @@
|
|
1
|
-
<template>
|
2
|
-
<div class="row">
|
3
|
-
<div class="content">
|
4
|
-
<a-skeleton :loading="loading" :paragraph="{ rows: 4 }" />
|
5
|
-
<div v-show="!loading">
|
6
|
-
<template v-if="!loadError">
|
7
|
-
<a-descriptions v-if="realData" :column="isMobile ? 1 : column" size="small" :title="title">
|
8
|
-
<a-descriptions-item
|
9
|
-
v-for="(value, key) in realData"
|
10
|
-
:key="key"
|
11
|
-
:label="key">
|
12
|
-
{{ formatText(value) }}
|
13
|
-
</a-descriptions-item>
|
14
|
-
</a-descriptions>
|
15
|
-
</template>
|
16
|
-
<template v-else>
|
17
|
-
<a-empty>
|
18
|
-
<span slot="description"> 页面配置不存在,请联系系统管理员 </span>
|
19
|
-
</a-empty>
|
20
|
-
</template>
|
21
|
-
</div>
|
22
|
-
</div>
|
23
|
-
<div class="extra" v-if="extraShow">
|
24
|
-
<slot name="addonAfter"/>
|
25
|
-
</div>
|
26
|
-
</div>
|
27
|
-
</template>
|
28
|
-
<script>
|
29
|
-
|
30
|
-
import { mapState } from 'vuex'
|
31
|
-
import { getRealKeyData } from '@vue2-client/utils/formatter'
|
32
|
-
import { getConfigByName } from '@vue2-client/services/api/common'
|
33
|
-
|
34
|
-
export default {
|
35
|
-
name: 'XDescriptions',
|
36
|
-
components: {
|
37
|
-
},
|
38
|
-
props: {
|
39
|
-
// 标题
|
40
|
-
title: {
|
41
|
-
type: String,
|
42
|
-
required: true
|
43
|
-
},
|
44
|
-
// 内容
|
45
|
-
content: {
|
46
|
-
type: Object,
|
47
|
-
required: true
|
48
|
-
},
|
49
|
-
// 模型名
|
50
|
-
model: {
|
51
|
-
type: String,
|
52
|
-
required: false,
|
53
|
-
default: ''
|
54
|
-
},
|
55
|
-
// 配置名称
|
56
|
-
configName: {
|
57
|
-
type: String,
|
58
|
-
required: true
|
59
|
-
},
|
60
|
-
// 配置所属命名空间
|
61
|
-
serviceName: {
|
62
|
-
type: String,
|
63
|
-
default: undefined
|
64
|
-
},
|
65
|
-
env: {
|
66
|
-
type: String,
|
67
|
-
default: 'prod'
|
68
|
-
},
|
69
|
-
// 每列显示数量
|
70
|
-
column: {
|
71
|
-
type: Number,
|
72
|
-
default: 2
|
73
|
-
},
|
74
|
-
// 每列显示数量
|
75
|
-
getRealData: {
|
76
|
-
type: Boolean,
|
77
|
-
default: false
|
78
|
-
},
|
79
|
-
// 是否展示插槽
|
80
|
-
extraShow: {
|
81
|
-
type: Boolean,
|
82
|
-
default: true
|
83
|
-
}
|
84
|
-
},
|
85
|
-
created () {
|
86
|
-
this.initConfig()
|
87
|
-
},
|
88
|
-
data () {
|
89
|
-
return {
|
90
|
-
// 加载状态
|
91
|
-
loading: false,
|
92
|
-
loadError: false,
|
93
|
-
realData: undefined
|
94
|
-
}
|
95
|
-
},
|
96
|
-
computed: {
|
97
|
-
...mapState('setting', { isMobile: 'isMobile' })
|
98
|
-
},
|
99
|
-
methods: {
|
100
|
-
initConfig () {
|
101
|
-
this.loading = true
|
102
|
-
this.loadError = false
|
103
|
-
if (this.configName) {
|
104
|
-
this.getConfig()
|
105
|
-
} else {
|
106
|
-
this.loading = false
|
107
|
-
this.loadError = true
|
108
|
-
}
|
109
|
-
},
|
110
|
-
getConfig () {
|
111
|
-
getConfigByName(this.configName, this.serviceName, (res) => {
|
112
|
-
const mapIndex = {}
|
113
|
-
const result = {}
|
114
|
-
if (res.formJson) {
|
115
|
-
res.formJson.filter(item => {
|
116
|
-
const model = item.model
|
117
|
-
return model.indexOf(this.model) > 0
|
118
|
-
})[0].groupItems.forEach(item => {
|
119
|
-
mapIndex[item.model.substring(item.model.indexOf('_') + 1)] = item.name
|
120
|
-
})
|
121
|
-
for (const key of Object.keys(this.content)) {
|
122
|
-
const name = mapIndex[key]
|
123
|
-
if (name) {
|
124
|
-
result[name] = this.content[key]
|
125
|
-
} else {
|
126
|
-
result[key] = this.content[key]
|
127
|
-
}
|
128
|
-
}
|
129
|
-
} else if (res.column) {
|
130
|
-
// [{label:'标签1',filed:'字段1'}]
|
131
|
-
let content = {}
|
132
|
-
if (this.getRealData) {
|
133
|
-
content = getRealKeyData(this.content)
|
134
|
-
} else {
|
135
|
-
content = this.content
|
136
|
-
}
|
137
|
-
if (typeof content === 'string') {
|
138
|
-
content = JSON.parse(content)
|
139
|
-
}
|
140
|
-
res.column.forEach(item => {
|
141
|
-
result[item.label] = content[item.filed]
|
142
|
-
})
|
143
|
-
}
|
144
|
-
this.realData = result
|
145
|
-
this.loading = false
|
146
|
-
}, this.env === 'dev')
|
147
|
-
},
|
148
|
-
// 文字格式化
|
149
|
-
formatText (value) {
|
150
|
-
return value ?? '--'
|
151
|
-
}
|
152
|
-
}
|
153
|
-
}
|
154
|
-
</script>
|
155
|
-
<style>
|
156
|
-
.row {
|
157
|
-
display: flex;
|
158
|
-
|
159
|
-
.content {
|
160
|
-
-webkit-box-flex: 1;
|
161
|
-
flex: auto;
|
162
|
-
-ms-flex: auto;
|
163
|
-
}
|
164
|
-
|
165
|
-
.extra {
|
166
|
-
flex: 0 1 auto;
|
167
|
-
-webkit-box-flex: 0;
|
168
|
-
-ms-flex: 0 1 auto;
|
169
|
-
min-width: 242px;
|
170
|
-
margin-left: 88px;
|
171
|
-
text-align: right;
|
172
|
-
}
|
173
|
-
}
|
174
|
-
</style>
|
1
|
+
<template>
|
2
|
+
<div class="row">
|
3
|
+
<div class="content">
|
4
|
+
<a-skeleton :loading="loading" :paragraph="{ rows: 4 }" />
|
5
|
+
<div v-show="!loading">
|
6
|
+
<template v-if="!loadError">
|
7
|
+
<a-descriptions v-if="realData" :column="isMobile ? 1 : column" size="small" :title="title">
|
8
|
+
<a-descriptions-item
|
9
|
+
v-for="(value, key) in realData"
|
10
|
+
:key="key"
|
11
|
+
:label="key">
|
12
|
+
{{ formatText(value) }}
|
13
|
+
</a-descriptions-item>
|
14
|
+
</a-descriptions>
|
15
|
+
</template>
|
16
|
+
<template v-else>
|
17
|
+
<a-empty>
|
18
|
+
<span slot="description"> 页面配置不存在,请联系系统管理员 </span>
|
19
|
+
</a-empty>
|
20
|
+
</template>
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
<div class="extra" v-if="extraShow">
|
24
|
+
<slot name="addonAfter"/>
|
25
|
+
</div>
|
26
|
+
</div>
|
27
|
+
</template>
|
28
|
+
<script>
|
29
|
+
|
30
|
+
import { mapState } from 'vuex'
|
31
|
+
import { getRealKeyData } from '@vue2-client/utils/formatter'
|
32
|
+
import { getConfigByName } from '@vue2-client/services/api/common'
|
33
|
+
|
34
|
+
export default {
|
35
|
+
name: 'XDescriptions',
|
36
|
+
components: {
|
37
|
+
},
|
38
|
+
props: {
|
39
|
+
// 标题
|
40
|
+
title: {
|
41
|
+
type: String,
|
42
|
+
required: true
|
43
|
+
},
|
44
|
+
// 内容
|
45
|
+
content: {
|
46
|
+
type: Object,
|
47
|
+
required: true
|
48
|
+
},
|
49
|
+
// 模型名
|
50
|
+
model: {
|
51
|
+
type: String,
|
52
|
+
required: false,
|
53
|
+
default: ''
|
54
|
+
},
|
55
|
+
// 配置名称
|
56
|
+
configName: {
|
57
|
+
type: String,
|
58
|
+
required: true
|
59
|
+
},
|
60
|
+
// 配置所属命名空间
|
61
|
+
serviceName: {
|
62
|
+
type: String,
|
63
|
+
default: undefined
|
64
|
+
},
|
65
|
+
env: {
|
66
|
+
type: String,
|
67
|
+
default: 'prod'
|
68
|
+
},
|
69
|
+
// 每列显示数量
|
70
|
+
column: {
|
71
|
+
type: Number,
|
72
|
+
default: 2
|
73
|
+
},
|
74
|
+
// 每列显示数量
|
75
|
+
getRealData: {
|
76
|
+
type: Boolean,
|
77
|
+
default: false
|
78
|
+
},
|
79
|
+
// 是否展示插槽
|
80
|
+
extraShow: {
|
81
|
+
type: Boolean,
|
82
|
+
default: true
|
83
|
+
}
|
84
|
+
},
|
85
|
+
created () {
|
86
|
+
this.initConfig()
|
87
|
+
},
|
88
|
+
data () {
|
89
|
+
return {
|
90
|
+
// 加载状态
|
91
|
+
loading: false,
|
92
|
+
loadError: false,
|
93
|
+
realData: undefined
|
94
|
+
}
|
95
|
+
},
|
96
|
+
computed: {
|
97
|
+
...mapState('setting', { isMobile: 'isMobile' })
|
98
|
+
},
|
99
|
+
methods: {
|
100
|
+
initConfig () {
|
101
|
+
this.loading = true
|
102
|
+
this.loadError = false
|
103
|
+
if (this.configName) {
|
104
|
+
this.getConfig()
|
105
|
+
} else {
|
106
|
+
this.loading = false
|
107
|
+
this.loadError = true
|
108
|
+
}
|
109
|
+
},
|
110
|
+
getConfig () {
|
111
|
+
getConfigByName(this.configName, this.serviceName, (res) => {
|
112
|
+
const mapIndex = {}
|
113
|
+
const result = {}
|
114
|
+
if (res.formJson) {
|
115
|
+
res.formJson.filter(item => {
|
116
|
+
const model = item.model
|
117
|
+
return model.indexOf(this.model) > 0
|
118
|
+
})[0].groupItems.forEach(item => {
|
119
|
+
mapIndex[item.model.substring(item.model.indexOf('_') + 1)] = item.name
|
120
|
+
})
|
121
|
+
for (const key of Object.keys(this.content)) {
|
122
|
+
const name = mapIndex[key]
|
123
|
+
if (name) {
|
124
|
+
result[name] = this.content[key]
|
125
|
+
} else {
|
126
|
+
result[key] = this.content[key]
|
127
|
+
}
|
128
|
+
}
|
129
|
+
} else if (res.column) {
|
130
|
+
// [{label:'标签1',filed:'字段1'}]
|
131
|
+
let content = {}
|
132
|
+
if (this.getRealData) {
|
133
|
+
content = getRealKeyData(this.content)
|
134
|
+
} else {
|
135
|
+
content = this.content
|
136
|
+
}
|
137
|
+
if (typeof content === 'string') {
|
138
|
+
content = JSON.parse(content)
|
139
|
+
}
|
140
|
+
res.column.forEach(item => {
|
141
|
+
result[item.label] = content[item.filed]
|
142
|
+
})
|
143
|
+
}
|
144
|
+
this.realData = result
|
145
|
+
this.loading = false
|
146
|
+
}, this.env === 'dev')
|
147
|
+
},
|
148
|
+
// 文字格式化
|
149
|
+
formatText (value) {
|
150
|
+
return value ?? '--'
|
151
|
+
}
|
152
|
+
}
|
153
|
+
}
|
154
|
+
</script>
|
155
|
+
<style>
|
156
|
+
.row {
|
157
|
+
display: flex;
|
158
|
+
|
159
|
+
.content {
|
160
|
+
-webkit-box-flex: 1;
|
161
|
+
flex: auto;
|
162
|
+
-ms-flex: auto;
|
163
|
+
}
|
164
|
+
|
165
|
+
.extra {
|
166
|
+
flex: 0 1 auto;
|
167
|
+
-webkit-box-flex: 0;
|
168
|
+
-ms-flex: 0 1 auto;
|
169
|
+
min-width: 242px;
|
170
|
+
margin-left: 88px;
|
171
|
+
text-align: right;
|
172
|
+
}
|
173
|
+
}
|
174
|
+
</style>
|
@@ -328,11 +328,8 @@ export default {
|
|
328
328
|
value = config.data[cell.dataIndex]
|
329
329
|
}
|
330
330
|
|
331
|
-
//
|
332
|
-
|
333
|
-
const isEmptyArray = Array.isArray(value) && value.length === 0
|
334
|
-
const isNullish = value === null || value === undefined
|
335
|
-
if (isNullish || isEmptyString || isEmptyArray) {
|
331
|
+
// 检查值是否为空
|
332
|
+
if (!value || (typeof value === 'string' && value.trim() === '')) {
|
336
333
|
const message = cell.requiredMessage || this.getDefaultRequiredMessage(cell.type)
|
337
334
|
errors.push({
|
338
335
|
dataIndex: cell.dataIndex,
|
@@ -822,18 +819,12 @@ export default {
|
|
822
819
|
this.getConfigAndJoin(this.config, lock)
|
823
820
|
|
824
821
|
// 用定时器循环查看锁状态
|
825
|
-
// 先清理可能存在的旧轮询,避免重复打印与重复初始化
|
826
|
-
if (this.timer) {
|
827
|
-
clearInterval(this.timer)
|
828
|
-
this.timer = undefined
|
829
|
-
}
|
830
822
|
this.timer = setInterval(() => {
|
831
823
|
if (!lock.status) {
|
832
824
|
clearInterval(this.timer)
|
833
|
-
this.timer = undefined
|
834
825
|
console.log('拼接完成', this.config)
|
835
826
|
// 将初始化好的配置拷贝一份留存
|
836
|
-
this.originalConfig =
|
827
|
+
this.originalConfig = Object.assign({}, this.config)
|
837
828
|
if (!this.dontFormat) {
|
838
829
|
// 扫描配置文件中有没有rowSpan,进行格式化调整
|
839
830
|
this.formatConfigRow(this.config)
|
@@ -873,8 +864,8 @@ export default {
|
|
873
864
|
if (this.configData === undefined) {
|
874
865
|
console.error('未找到数据!')
|
875
866
|
} else {
|
876
|
-
this.originalConfig =
|
877
|
-
this.originalConfig.data = Object.assign(
|
867
|
+
this.originalConfig = Object.assign({}, this.config)
|
868
|
+
this.originalConfig.data = Object.assign(this.originalConfig.data, JSON.parse(JSON.stringify(this.configData)))
|
878
869
|
this.type = 'display'
|
879
870
|
// this.onlyDisplay = true
|
880
871
|
this.showSkeleton = false
|
@@ -888,12 +879,12 @@ export default {
|
|
888
879
|
this.config = res
|
889
880
|
if (this.config.designMode === 'json') {
|
890
881
|
if (this.configData !== undefined) {
|
891
|
-
this.config.data = Object.assign({}, this.config.data,
|
882
|
+
this.config.data = Object.assign({}, this.config.data, this.configData)
|
892
883
|
}
|
893
884
|
this.jsonConfigInit()
|
894
885
|
} else {
|
895
886
|
if (this.configData !== undefined) {
|
896
|
-
this.config.data = Object.assign(
|
887
|
+
this.config.data = Object.assign(this.config.data, this.configData)
|
897
888
|
}
|
898
889
|
if (this.config.data.images === undefined) {
|
899
890
|
this.config.data.images = {}
|
@@ -926,14 +917,14 @@ export default {
|
|
926
917
|
if (this.localConfig.designMode === 'json') {
|
927
918
|
this.config = this.localConfig
|
928
919
|
if (this.configData !== undefined) {
|
929
|
-
this.config.data = Object.assign(
|
920
|
+
this.config.data = Object.assign(this.config.data, this.configData)
|
930
921
|
}
|
931
922
|
this.jsonConfigInit()
|
932
923
|
} else {
|
933
924
|
// 如果配置是普通渲染器
|
934
925
|
this.config = this.localConfig
|
935
926
|
if (this.configData !== undefined) {
|
936
|
-
this.config.data = Object.assign(
|
927
|
+
this.config.data = Object.assign(this.config.data, this.configData)
|
937
928
|
}
|
938
929
|
if (this.config.data.images === undefined) {
|
939
930
|
this.config.data.images = {}
|