vue2-client 1.18.68 → 1.19.0
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/CHANGELOG.md +3 -0
- package/package.json +1 -1
- package/src/base-client/components/common/HIS/HAddNativeForm/HAddNativeForm.vue +1 -15
- package/src/base-client/components/common/XBadge/XBadge.vue +0 -8
- package/src/base-client/components/common/XForm/XFormItem.vue +0 -30
- package/src/base-client/components/his/HChart/demo.vue +88 -88
- package/src/base-client/components/his/HChart/index.md +798 -798
- package/src/base-client/components/his/XHDescriptions/XHDescriptions.vue +251 -187
- package/src/base-client/components/his/XIcon/XIcon.vue +73 -73
- package/src/base-client/components/his/XIcon/index.js +3 -3
- package/src/base-client/components/his/XIcon/index.md +177 -177
- package/src/base-client/plugins/AppData.js +99 -84
- package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowHandle.vue +1 -1
- package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowHandleReso.vue +1 -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/README.md +0 -0
- package/src-base-client/components/his/XCharge/XCharge.vue +0 -0
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -136,21 +136,7 @@ export default {
|
|
|
136
136
|
console.warn(`Config '${configName}' did not return a valid 'value' array for options. Result:`, res)
|
|
137
137
|
}
|
|
138
138
|
} else {
|
|
139
|
-
//
|
|
140
|
-
if (this.$appdata && typeof this.$appdata.getDictionaryList === 'function') {
|
|
141
|
-
const dictionaryList = this.$appdata.getDictionaryList(item.keyName)
|
|
142
|
-
if (Array.isArray(dictionaryList)) {
|
|
143
|
-
fetchedOptions = dictionaryList.map(opt => ({
|
|
144
|
-
label: opt.text,
|
|
145
|
-
value: opt.value + '',
|
|
146
|
-
...opt // 将所有原始属性也添加到选项中
|
|
147
|
-
}))
|
|
148
|
-
} else {
|
|
149
|
-
console.warn(`Global dictionary '${item.keyName}' did not return an array. Result:`, dictionaryList)
|
|
150
|
-
}
|
|
151
|
-
} else {
|
|
152
|
-
console.error('$appdata.getDictionaryList is not available. Please ensure it\'s globally provided.')
|
|
153
|
-
}
|
|
139
|
+
// 移除对旧字典的解析
|
|
154
140
|
}
|
|
155
141
|
} catch (error) {
|
|
156
142
|
console.error(`Error fetching options for item '${item.key}':`, error)
|
|
@@ -73,15 +73,7 @@ export default {
|
|
|
73
73
|
methods: {
|
|
74
74
|
// todo 修改方式 想办法不使用回调方式
|
|
75
75
|
async updateDictionary () {
|
|
76
|
-
const result = this.$appdata.getParam(this.badgeKey, this.value)
|
|
77
|
-
if (result) {
|
|
78
|
-
this.dictionary = result
|
|
79
|
-
return
|
|
80
|
-
}
|
|
81
76
|
this.dictionary = await this.$appdata.getDictValue(this.badgeKey, this.value, undefined, this.env === 'dev', this.serviceName)
|
|
82
|
-
},
|
|
83
|
-
badgeFilter (key, value) {
|
|
84
|
-
return this.$appdata.getParam(key, value)
|
|
85
77
|
}
|
|
86
78
|
}
|
|
87
79
|
}
|
|
@@ -144,22 +144,6 @@
|
|
|
144
144
|
</template>
|
|
145
145
|
</a-select-option>
|
|
146
146
|
</template>
|
|
147
|
-
<template v-else>
|
|
148
|
-
<a-select-option
|
|
149
|
-
v-for="item in $appdata.getDictionaryList(attr.keyName)"
|
|
150
|
-
:key="item.value"
|
|
151
|
-
:value="item.value + ''"
|
|
152
|
-
>
|
|
153
|
-
<!-- 徽标(badge) -->
|
|
154
|
-
<x-badge
|
|
155
|
-
:badge-key="attr.keyName"
|
|
156
|
-
:replaceText="item.text"
|
|
157
|
-
:value="item.value"
|
|
158
|
-
:service-name="serviceName"
|
|
159
|
-
:env="env"
|
|
160
|
-
/>
|
|
161
|
-
</a-select-option>
|
|
162
|
-
</template>
|
|
163
147
|
</template>
|
|
164
148
|
</a-select>
|
|
165
149
|
<a-select
|
|
@@ -259,15 +243,6 @@
|
|
|
259
243
|
</template>
|
|
260
244
|
</a-select-option>
|
|
261
245
|
</template>
|
|
262
|
-
<template v-else>
|
|
263
|
-
<a-select-option
|
|
264
|
-
v-for="item in $appdata.getDictionaryList(attr.keyName)"
|
|
265
|
-
:key="item.value"
|
|
266
|
-
:value="item.value + ''"
|
|
267
|
-
>
|
|
268
|
-
{{ item.text }}
|
|
269
|
-
</a-select-option>
|
|
270
|
-
</template>
|
|
271
246
|
</template>
|
|
272
247
|
</a-select>
|
|
273
248
|
<a-select
|
|
@@ -333,11 +308,6 @@
|
|
|
333
308
|
{{ item.label }}
|
|
334
309
|
</a-radio>
|
|
335
310
|
</template>
|
|
336
|
-
<template v-else>
|
|
337
|
-
<a-radio v-for="(item, index) in $appdata.getDictionaryList(attr.keyName)" :key="index" :value="item.value">
|
|
338
|
-
{{ item.text }}
|
|
339
|
-
</a-radio>
|
|
340
|
-
</template>
|
|
341
311
|
</template>
|
|
342
312
|
</a-radio-group>
|
|
343
313
|
</a-form-model-item>
|
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="h-chart-test-container">
|
|
3
|
-
<h2>HChart 组件测试案例</h2>
|
|
4
|
-
|
|
5
|
-
<section class="test-section">
|
|
6
|
-
<h3>测试1: 通过 queryParamsName 查询配置(从后端获取配置和数据)</h3>
|
|
7
|
-
<div class="chart-wrapper">
|
|
8
|
-
<HChart
|
|
9
|
-
ref="chart1"
|
|
10
|
-
query-params-name="accountsReceivableChart"
|
|
11
|
-
:fixed-query-form="{ condition: '1=1', dateRange: '2024-01' }"
|
|
12
|
-
service-name="af-his"
|
|
13
|
-
@init="handleChartInit"
|
|
14
|
-
@dataLoaded="handleDataLoaded"
|
|
15
|
-
@error="handleError"
|
|
16
|
-
/>
|
|
17
|
-
</div>
|
|
18
|
-
<div class="test-actions">
|
|
19
|
-
<a-button @click="refreshChart1">刷新图表</a-button>
|
|
20
|
-
<a-button @click="reloadChart1">重新加载(更新查询条件)</a-button>
|
|
21
|
-
</div>
|
|
22
|
-
</section>
|
|
23
|
-
|
|
24
|
-
<section class="test-section">
|
|
25
|
-
<h3>测试日志</h3>
|
|
26
|
-
<div class="log-container">
|
|
27
|
-
<div v-for="(log, index) in logs" :key="index" class="log-item">
|
|
28
|
-
<span class="log-time">{{ log.time }}</span>
|
|
29
|
-
<span class="log-type" :class="log.type">{{ log.type }}</span>
|
|
30
|
-
<span class="log-message">{{ log.message }}</span>
|
|
31
|
-
</div>
|
|
32
|
-
</div>
|
|
33
|
-
<a-button @click="clearLogs">清空日志</a-button>
|
|
34
|
-
</section>
|
|
35
|
-
</div>
|
|
36
|
-
</template>
|
|
37
|
-
|
|
38
|
-
<script setup>
|
|
39
|
-
import { ref } from 'vue'
|
|
40
|
-
import { message } from 'ant-design-vue'
|
|
41
|
-
import HChart from './HChart.vue'
|
|
42
|
-
|
|
43
|
-
const chart1 = ref(null)
|
|
44
|
-
|
|
45
|
-
const logs = ref([])
|
|
46
|
-
|
|
47
|
-
const addLog = (type, messageText) => {
|
|
48
|
-
logs.value.unshift({
|
|
49
|
-
time: new Date().toLocaleTimeString(),
|
|
50
|
-
type,
|
|
51
|
-
message: typeof messageText === 'object' ? JSON.stringify(messageText, null, 2) : messageText
|
|
52
|
-
})
|
|
53
|
-
if (logs.value.length > 50) logs.value.pop()
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
const clearLogs = () => {
|
|
57
|
-
logs.value = []
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
const handleChartInit = (config) => {
|
|
61
|
-
addLog('init', `图表初始化: ${config?.title || '未知'}`)
|
|
62
|
-
message.success(`图表初始化成功: ${config?.title || '未知'}`)
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
const handleDataLoaded = (data) => {
|
|
66
|
-
addLog('dataLoaded', `数据加载完成,共 ${data?.length || 0} 条`)
|
|
67
|
-
console.log('数据加载完成:', data)
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
const handleError = (error) => {
|
|
71
|
-
addLog('error', `错误: ${error?.message || String(error)}`)
|
|
72
|
-
message.error(`图表加载错误: ${error?.message || String(error)}`)
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
const refreshChart1 = () => {
|
|
76
|
-
if (!chart1.value) return
|
|
77
|
-
chart1.value.refresh()
|
|
78
|
-
addLog('action', '刷新图表')
|
|
79
|
-
message.info('正在刷新图表...')
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
const reloadChart1 = () => {
|
|
83
|
-
if (!chart1.value) return
|
|
84
|
-
chart1.value.reload({ condition: '1=1', dateRange: '2024-02' })
|
|
85
|
-
addLog('action', '重新加载图表,更新查询条件')
|
|
86
|
-
message.info('正在重新加载图表...')
|
|
87
|
-
}
|
|
88
|
-
</script>
|
|
1
|
+
<template>
|
|
2
|
+
<div class="h-chart-test-container">
|
|
3
|
+
<h2>HChart 组件测试案例</h2>
|
|
4
|
+
|
|
5
|
+
<section class="test-section">
|
|
6
|
+
<h3>测试1: 通过 queryParamsName 查询配置(从后端获取配置和数据)</h3>
|
|
7
|
+
<div class="chart-wrapper">
|
|
8
|
+
<HChart
|
|
9
|
+
ref="chart1"
|
|
10
|
+
query-params-name="accountsReceivableChart"
|
|
11
|
+
:fixed-query-form="{ condition: '1=1', dateRange: '2024-01' }"
|
|
12
|
+
service-name="af-his"
|
|
13
|
+
@init="handleChartInit"
|
|
14
|
+
@dataLoaded="handleDataLoaded"
|
|
15
|
+
@error="handleError"
|
|
16
|
+
/>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="test-actions">
|
|
19
|
+
<a-button @click="refreshChart1">刷新图表</a-button>
|
|
20
|
+
<a-button @click="reloadChart1">重新加载(更新查询条件)</a-button>
|
|
21
|
+
</div>
|
|
22
|
+
</section>
|
|
23
|
+
|
|
24
|
+
<section class="test-section">
|
|
25
|
+
<h3>测试日志</h3>
|
|
26
|
+
<div class="log-container">
|
|
27
|
+
<div v-for="(log, index) in logs" :key="index" class="log-item">
|
|
28
|
+
<span class="log-time">{{ log.time }}</span>
|
|
29
|
+
<span class="log-type" :class="log.type">{{ log.type }}</span>
|
|
30
|
+
<span class="log-message">{{ log.message }}</span>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
<a-button @click="clearLogs">清空日志</a-button>
|
|
34
|
+
</section>
|
|
35
|
+
</div>
|
|
36
|
+
</template>
|
|
37
|
+
|
|
38
|
+
<script setup>
|
|
39
|
+
import { ref } from 'vue'
|
|
40
|
+
import { message } from 'ant-design-vue'
|
|
41
|
+
import HChart from './HChart.vue'
|
|
42
|
+
|
|
43
|
+
const chart1 = ref(null)
|
|
44
|
+
|
|
45
|
+
const logs = ref([])
|
|
46
|
+
|
|
47
|
+
const addLog = (type, messageText) => {
|
|
48
|
+
logs.value.unshift({
|
|
49
|
+
time: new Date().toLocaleTimeString(),
|
|
50
|
+
type,
|
|
51
|
+
message: typeof messageText === 'object' ? JSON.stringify(messageText, null, 2) : messageText
|
|
52
|
+
})
|
|
53
|
+
if (logs.value.length > 50) logs.value.pop()
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const clearLogs = () => {
|
|
57
|
+
logs.value = []
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
const handleChartInit = (config) => {
|
|
61
|
+
addLog('init', `图表初始化: ${config?.title || '未知'}`)
|
|
62
|
+
message.success(`图表初始化成功: ${config?.title || '未知'}`)
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
const handleDataLoaded = (data) => {
|
|
66
|
+
addLog('dataLoaded', `数据加载完成,共 ${data?.length || 0} 条`)
|
|
67
|
+
console.log('数据加载完成:', data)
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
const handleError = (error) => {
|
|
71
|
+
addLog('error', `错误: ${error?.message || String(error)}`)
|
|
72
|
+
message.error(`图表加载错误: ${error?.message || String(error)}`)
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
const refreshChart1 = () => {
|
|
76
|
+
if (!chart1.value) return
|
|
77
|
+
chart1.value.refresh()
|
|
78
|
+
addLog('action', '刷新图表')
|
|
79
|
+
message.info('正在刷新图表...')
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
const reloadChart1 = () => {
|
|
83
|
+
if (!chart1.value) return
|
|
84
|
+
chart1.value.reload({ condition: '1=1', dateRange: '2024-02' })
|
|
85
|
+
addLog('action', '重新加载图表,更新查询条件')
|
|
86
|
+
message.info('正在重新加载图表...')
|
|
87
|
+
}
|
|
88
|
+
</script>
|