vue2-client 1.15.78 → 1.15.80
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/docs//345/207/275/346/225/260/344/275/277/347/224/250/347/233/270/345/205/263.md +0 -6
- package/package.json +1 -1
- package/public/index.html +1 -1
- package/src/base-client/components/common/Recording/Recording.vue +1 -1
- package/src/base-client/components/common/XButtons/XButtons.vue +203 -12
- package/src/base-client/components/common/XFormTable/XFormTable.vue +1 -1
- package/src/base-client/components/his/XHisEditor/XHisEditor.vue +7 -7
- package/src/base-client/components/his/XTextCard/XTextCard.vue +207 -207
- package/src/base-client/components/his/threeTestOrders/editor.vue +111 -111
- package/src/base-client/plugins/Recording.js +1 -1
- package/src/pages/WorkflowDetail/WorkFlowDemo.vue +1 -1
- package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowTimeline.vue +6 -1
- package/src/router/async/router.map.js +1 -2
- package/vue.config.js +1 -1
- package/.history/public/his/editor/editor_20250606134713.html +0 -51
- package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527173925.vue +0 -509
- package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527174316.vue +0 -524
- package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527174419.vue +0 -524
- package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527174422.vue +0 -524
- package/.history/src/base-client/components/common/XAddReport/XAddReport_20250611172825.vue +0 -207
- package/.history/src/base-client/components/common/XAddReport/XAddReport_20250611172945.vue +0 -211
- package/.history/src/base-client/components/common/XAddReport/XAddReport_20250611172949.vue +0 -212
- package/.history/src/base-client/components/common/XAddReport/XAddReport_20250611173010.vue +0 -212
- package/.history/src/base-client/components/common/XForm/XFormItem_20250508134122.vue +0 -1320
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527171604.vue +0 -1332
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527171613.vue +0 -1331
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527171703.vue +0 -1331
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527171720.vue +0 -1331
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527174327.vue +0 -1339
- package/.history/src/base-client/components/common/XReportGrid/XReportTrGroup_20250612092804.vue +0 -731
- package/.history/src/base-client/components/common/XReportGrid/XReportTrGroup_20250612112546.vue +0 -748
- package/.history/src/base-client/components/common/XReportGrid/XReportTrGroup_20250612113808.vue +0 -748
- package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115237.vue +0 -1071
- package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115346.vue +0 -1078
- package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115350.vue +0 -1077
- package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115415.vue +0 -1077
- package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115429.vue +0 -1077
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611091619.vue +0 -442
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092547.vue +0 -442
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092552.vue +0 -442
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092744.vue +0 -475
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092955.vue +0 -475
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092957.vue +0 -475
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611095652.vue +0 -477
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611095701.vue +0 -477
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611095704.vue +0 -477
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100005.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100011.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100014.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100833.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100853.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100940.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101011.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101013.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101014.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101159.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101238.vue +0 -474
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101240.vue +0 -474
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101242.vue +0 -474
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101404.vue +0 -472
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101410.vue +0 -472
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101459.vue +0 -472
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101500.vue +0 -472
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101502.vue +0 -472
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101504.vue +0 -472
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101610.vue +0 -501
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101700.vue +0 -501
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101702.vue +0 -501
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101741.vue +0 -504
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101749.vue +0 -504
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101759.vue +0 -504
- package/.history/src/base-client/components/his/XHisEditor/dome_20250611091349.vue +0 -131
- package/.history/src/base-client/components/his/XHisEditor/dome_20250611105854.vue +0 -160
- package/.history/src/base-client/components/his/XHisEditor/dome_20250611105902.vue +0 -160
- package/.history/src/base-client/components/his/XHisEditor/dome_20250611105924.vue +0 -160
- package/.history/src/base-client/components/his/XHisEditor/dome_20250611105932.vue +0 -158
- package/.history/src/base-client/components/his/XList/XList_20250609135848.vue +0 -173
- package/.history/src/base-client/components/his/XList/XList_20250609141026.vue +0 -222
- package/.history/src/base-client/components/his/XList/XList_20250609141035.vue +0 -229
- package/.history/src/base-client/components/his/XList/XList_20250609141103.vue +0 -229
- package/.history/src/base-client/components/his/XList/XList_20250609141105.vue +0 -229
- package/.history/src/base-client/components/his/XList/XList_20250609141334.vue +0 -241
- package/.history/src/base-client/components/his/XList/XList_20250609141404.vue +0 -241
- package/.history/src/base-client/components/his/XList/XList_20250609141406.vue +0 -241
- package/.history/src/base-client/components/his/XList/XList_20250609141801.vue +0 -245
- package/.history/src/base-client/components/his/XList/XList_20250609142033.vue +0 -245
- package/.history/src/base-client/components/his/XList/XList_20250609142038.vue +0 -245
- package/.history/src/base-client/components/his/XList/XList_20250609142435.vue +0 -255
- package/.history/src/base-client/components/his/XList/XList_20250609142503.vue +0 -255
- package/.history/src/base-client/components/his/XList/XList_20250609142504.vue +0 -255
- package/.history/src/base-client/components/his/XList/XList_20250609143012.vue +0 -270
- package/.history/src/base-client/components/his/XList/XList_20250609143044.vue +0 -270
- package/.history/src/base-client/components/his/XList/XList_20250609143046.vue +0 -270
- package/.history/src/base-client/components/his/XList/XList_20250609143210.vue +0 -270
- package/.history/src/base-client/components/his/XList/XList_20250609144339.vue +0 -294
- package/.history/src/base-client/components/his/XList/XList_20250609144410.vue +0 -294
- package/.history/src/base-client/components/his/XList/XList_20250609144412.vue +0 -294
- package/.history/src/base-client/components/his/XList/XList_20250609144647.vue +0 -303
- package/.history/src/base-client/components/his/XList/XList_20250609144716.vue +0 -303
- package/.history/src/base-client/components/his/XList/XList_20250609144729.vue +0 -303
- package/.history/src/base-client/components/his/XList/XList_20250609151232.vue +0 -288
- package/.history/src/base-client/components/his/XList/XList_20250609151247.vue +0 -288
- package/.history/src/base-client/components/his/XList/XList_20250609151252.vue +0 -288
- package/.history/src/base-client/components/his/XList/XList_20250609161220.vue +0 -317
- package/.history/src/base-client/components/his/XList/XList_20250609161258.vue +0 -306
- package/.history/src/base-client/components/his/XList/XList_20250609161319.vue +0 -306
- package/.history/src/base-client/components/his/XList/XList_20250609161320.vue +0 -306
- package/.history/src/base-client/components/his/XList/XList_20250704142024.vue +0 -495
- package/.history/src/base-client/components/his/XList/XList_20250704142033.vue +0 -495
- package/.history/src/base-client/components/his/XList/XList_20250704142040.vue +0 -494
- package/.history/src/base-client/components/his/XList/XList_20250704142211.vue +0 -494
- package/.history/src/base-client/components/his/XList/XList_20250704142214.vue +0 -494
- package/.history/src/base-client/components/his/XList/XList_20250704143010.vue +0 -495
- package/.history/src/base-client/components/his/XList/XList_20250704143203.vue +0 -495
- package/.history/src/base-client/components/his/XList/XList_20250707095101.vue +0 -492
- package/.history/src/base-client/components/his/XList/XList_20250707100152.vue +0 -492
- package/.history/src/base-client/components/his/XList/XList_20250707100200.vue +0 -485
- package/.history/src/base-client/components/his/XList/XList_20250707100208.vue +0 -485
- package/.history/src/base-client/components/his/XList/XList_20250707100259.vue +0 -488
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250609151519.vue +0 -222
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250612155514.vue +0 -183
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250612155556.vue +0 -183
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250612155600.vue +0 -183
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250612181609.vue +0 -206
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250612181629.vue +0 -209
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613095553.vue +0 -242
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613095610.vue +0 -242
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613095612.vue +0 -242
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613100041.vue +0 -251
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613100047.vue +0 -251
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613100054.vue +0 -250
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613100105.vue +0 -250
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613100107.vue +0 -250
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613100114.vue +0 -250
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613140844.vue +0 -238
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613140910.vue +0 -238
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613140912.vue +0 -238
- package/Users/objecrt/af-vue2-client/src/base-client/components/his/XShiftSchedule/XShiftSchedule.vue +0 -36
- package/src/base-client/components/TreeList/TreeList.vue +0 -91
- package/src/base-client/components/TreeList/TreeNode.vue +0 -81
- package/src/base-client/components/common/XCardSet/XTiltle.vue +0 -191
@@ -19,12 +19,6 @@
|
|
19
19
|
- getOutEnv 获取获取 outEnv
|
20
20
|
- this.getRealKeyData(obj) 获取真实的数据 传递 {a_a:"1"} 返回 {a:"1"}
|
21
21
|
- this.currUser.operaInfo 获取当前用户信息
|
22
|
-
- 返回:{
|
23
|
-
f_operator: "心血管内科医生2", f_operatorid: "387280281096290306",
|
24
|
-
f_orgid: "387184994751217666", f_orgname: "门诊部",
|
25
|
-
f_depid: "387185267599081474", f_depname: "心血管内科"
|
26
|
-
}
|
27
|
-
|
28
22
|
|
29
23
|
```js
|
30
24
|
this.openDialog('xxx', 5, {}, {}, {})
|
package/package.json
CHANGED
package/public/index.html
CHANGED
@@ -13,7 +13,7 @@
|
|
13
13
|
</head>
|
14
14
|
<body>
|
15
15
|
<noscript>
|
16
|
-
<strong>We're sorry
|
16
|
+
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
17
17
|
</noscript>
|
18
18
|
<div id="popContainer" class="beauty-scroll" style="height: 100%; overflow-y: auto">
|
19
19
|
<div id="app"></div>
|
@@ -3,21 +3,51 @@
|
|
3
3
|
<a-button-group>
|
4
4
|
<a-button
|
5
5
|
v-for="(button) in renderConfig"
|
6
|
+
:style="buttonStyle"
|
6
7
|
:key="button.key"
|
7
8
|
:ref="'buttonGroup-' + button.key"
|
8
9
|
:type="button.type || 'default'"
|
9
10
|
:disabled="button.disabled"
|
10
|
-
:
|
11
|
+
:class="{
|
12
|
+
'selected-button': enableSelect && selectedButtonKey === button.key,
|
13
|
+
'icon-only-button': buttonsMode === 'icon'
|
14
|
+
}"
|
11
15
|
@click="handleButtonClick(button)"
|
12
16
|
>
|
13
|
-
|
17
|
+
<!-- 水印图标(watermarkMode为true时显示) -->
|
18
|
+
<div class="watermark-icon" v-if="watermarkMode && button.icon">
|
19
|
+
<a-icon :type="button.icon" />
|
20
|
+
</div>
|
21
|
+
|
22
|
+
<!-- 普通模式 -->
|
23
|
+
<template v-if="buttonsMode === 'default'">
|
24
|
+
<a-icon v-if="!watermarkMode && button.icon" :type="button.icon" />
|
25
|
+
{{ button.label }}
|
26
|
+
</template>
|
27
|
+
|
28
|
+
<!-- 图标模式(只显示图标) -->
|
29
|
+
<template v-if="buttonsMode === 'icon' && button.icon">
|
30
|
+
<a-icon :type="button.icon" />
|
31
|
+
<span class="sr-only">{{ button.label }}</span>
|
32
|
+
</template>
|
33
|
+
|
34
|
+
<!-- 卡片模式 -->
|
35
|
+
<template v-if="buttonsMode === 'card'">
|
36
|
+
<div class="card-content">
|
37
|
+
<div class="card-label">{{ button.label }}</div>
|
38
|
+
<div class="card-value">
|
39
|
+
<span class="number">{{ button.value || 0 }}</span>
|
40
|
+
<span class="unit">{{ button.unit || '' }}</span>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
</template>
|
14
44
|
</a-button>
|
15
45
|
</a-button-group>
|
16
46
|
</div>
|
17
47
|
</template>
|
18
48
|
|
19
49
|
<script>
|
20
|
-
import { getConfigByName } from '@vue2-client/services/api/common'
|
50
|
+
import { getConfigByName, runLogic } from '@vue2-client/services/api/common'
|
21
51
|
|
22
52
|
export default {
|
23
53
|
name: 'XButtons',
|
@@ -38,6 +68,18 @@ export default {
|
|
38
68
|
return {
|
39
69
|
// 配置内容
|
40
70
|
renderConfig: undefined,
|
71
|
+
// 按钮格式
|
72
|
+
buttonsMode: 'default',
|
73
|
+
// 按钮事件禁用开启状态
|
74
|
+
eventDisabled: false,
|
75
|
+
// 按钮样式
|
76
|
+
buttonStyle: '',
|
77
|
+
// 选中效果
|
78
|
+
enableSelect: false,
|
79
|
+
// 选中key
|
80
|
+
selectedButtonKey: undefined,
|
81
|
+
// 按钮图标样式
|
82
|
+
watermarkMode: false
|
41
83
|
}
|
42
84
|
},
|
43
85
|
methods: {
|
@@ -47,10 +89,25 @@ export default {
|
|
47
89
|
initData (parameter) {
|
48
90
|
// 按钮组需要主动调用初始化方法
|
49
91
|
getConfigByName(parameter, this.serviceName, (res) => {
|
50
|
-
this.
|
51
|
-
|
52
|
-
|
53
|
-
|
92
|
+
this.buttonsMode = ['default', 'card', 'icon'].includes(res.buttonsMode) ? res.buttonsMode : 'default'
|
93
|
+
this.enableSelect = res.enableSelect ?? false
|
94
|
+
this.buttonStyle = res.style ?? ''
|
95
|
+
this.eventDisabled = res.eventDisabled ?? false
|
96
|
+
this.watermarkMode = res.watermarkMode ?? false
|
97
|
+
if (res.logicName) {
|
98
|
+
runLogic(res.logicName, {}, this.serviceName).then((result) => {
|
99
|
+
res.value = result
|
100
|
+
this.init({
|
101
|
+
...res,
|
102
|
+
serviceName: this.serviceName,
|
103
|
+
})
|
104
|
+
})
|
105
|
+
} else {
|
106
|
+
this.init({
|
107
|
+
...res,
|
108
|
+
serviceName: this.serviceName,
|
109
|
+
})
|
110
|
+
}
|
54
111
|
}, this.env === 'dev')
|
55
112
|
},
|
56
113
|
init (params) {
|
@@ -60,12 +117,18 @@ export default {
|
|
60
117
|
} = params
|
61
118
|
this.renderConfig = value
|
62
119
|
},
|
120
|
+
getKey () {
|
121
|
+
return this.selectedButtonKey
|
122
|
+
},
|
63
123
|
handleButtonClick (item) {
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
124
|
+
this.selectedButtonKey = this.selectedButtonKey === item.key ? null : item.key
|
125
|
+
if (!this.eventDisabled) {
|
126
|
+
if (item.clickEventName && this.$listeners[item.clickEventName]) {
|
127
|
+
// 交由父级处理
|
128
|
+
this.$emit(item.clickEventName, item)
|
129
|
+
} else {
|
130
|
+
this.defaultAction(item.clickEventName, item)
|
131
|
+
}
|
69
132
|
}
|
70
133
|
},
|
71
134
|
defaultAction (clickEventName, item, callback) {
|
@@ -90,4 +153,132 @@ export default {
|
|
90
153
|
.ant-btn-group {
|
91
154
|
flex-wrap: wrap;
|
92
155
|
}
|
156
|
+
/* 选中按钮的样式 */
|
157
|
+
.selected-button {
|
158
|
+
background-color: #1890ff !important; /* 蓝色背景 */
|
159
|
+
color: white !important; /* 白色文字 */
|
160
|
+
border-color: #1890ff !important; /* 蓝色边框 */
|
161
|
+
}
|
162
|
+
/* 卡片模式样式 */
|
163
|
+
.card-button {
|
164
|
+
width: 120px;
|
165
|
+
height: 80px;
|
166
|
+
padding: 8px;
|
167
|
+
display: flex;
|
168
|
+
flex-direction: column;
|
169
|
+
justify-content: space-between;
|
170
|
+
position: relative;
|
171
|
+
}
|
172
|
+
|
173
|
+
.card-content {
|
174
|
+
width: 100%;
|
175
|
+
height: 100%;
|
176
|
+
display: flex;
|
177
|
+
flex-direction: column;
|
178
|
+
}
|
179
|
+
|
180
|
+
.card-label {
|
181
|
+
font-size: 24px;
|
182
|
+
text-align: left;
|
183
|
+
align-self: flex-start;
|
184
|
+
margin-top: 20px;
|
185
|
+
font-weight: normal;
|
186
|
+
font-family: Source Han Sans;
|
187
|
+
}
|
188
|
+
|
189
|
+
.card-value {
|
190
|
+
text-align: right;
|
191
|
+
align-self: flex-end;
|
192
|
+
margin-top: auto;
|
193
|
+
font-family: Source Han Sans;
|
194
|
+
|
195
|
+
}
|
196
|
+
|
197
|
+
.card-value .number {
|
198
|
+
font-size: 32px;
|
199
|
+
font-weight: bold;
|
200
|
+
line-height: 39px;
|
201
|
+
color: #1890ff;
|
202
|
+
}
|
203
|
+
|
204
|
+
.card-value .unit {
|
205
|
+
font-size: 20px;
|
206
|
+
font-weight: normal;
|
207
|
+
line-height: 39px;
|
208
|
+
}
|
209
|
+
/* 水印图标样式 */
|
210
|
+
.watermark-icon {
|
211
|
+
position: absolute;
|
212
|
+
font-size: 164px;
|
213
|
+
opacity: 0.15;
|
214
|
+
z-index: 0;
|
215
|
+
top: 50%;
|
216
|
+
left: 50%;
|
217
|
+
transform: translate(-50%, -50%);
|
218
|
+
pointer-events: none; /* 防止水印图标拦截点击事件 */
|
219
|
+
}
|
220
|
+
/* 当有水印图标时,自动应用背景色 */
|
221
|
+
.ant-btn:has(.watermark-icon) {
|
222
|
+
background-color: #f0f0f0 !important; /* 浅灰色背景 */
|
223
|
+
border-color: #d9d9d9 !important; /* 边框色 */
|
224
|
+
}
|
225
|
+
|
226
|
+
/* 普通模式下的图标位置调整 */
|
227
|
+
.ant-btn > .anticon + span {
|
228
|
+
margin-left: 8px;
|
229
|
+
}
|
230
|
+
|
231
|
+
/* 水印模式下的文字层级 */
|
232
|
+
.button-label {
|
233
|
+
position: relative;
|
234
|
+
z-index: 1;
|
235
|
+
}
|
236
|
+
|
237
|
+
/* 纯图标模式核心样式 */
|
238
|
+
.icon-only-button {
|
239
|
+
/* 移除所有边框和背景 */
|
240
|
+
border: none !important;
|
241
|
+
background: transparent !important;
|
242
|
+
box-shadow: none !important;
|
243
|
+
|
244
|
+
/* 控制按钮大小与图标一致 */
|
245
|
+
width: auto !important;
|
246
|
+
height: auto !important;
|
247
|
+
padding: 4px !important; /* 缩小内边距 */
|
248
|
+
min-width: unset !important; /* 移除默认最小宽度 */
|
249
|
+
|
250
|
+
/* 确保图标居中 */
|
251
|
+
display: inline-flex !important;
|
252
|
+
align-items: center !important;
|
253
|
+
justify-content: center !important;
|
254
|
+
}
|
255
|
+
|
256
|
+
/* 图标大小控制 */
|
257
|
+
.icon-only-button .anticon {
|
258
|
+
font-size: 24px !important; /* 图标大小 */
|
259
|
+
color: #888888 !important; /* 默认图标颜色 */
|
260
|
+
}
|
261
|
+
|
262
|
+
/* 悬停和激活状态优化 */
|
263
|
+
.icon-only-button:hover {
|
264
|
+
background-color: #e6f7ff !important; /* 轻微hover背景 */
|
265
|
+
color: #1890ff !important; /* hover时图标颜色 */
|
266
|
+
}
|
267
|
+
|
268
|
+
.icon-only-button.selected-button {
|
269
|
+
background-color: #e6f7ff !important;
|
270
|
+
color: #1890ff !important;
|
271
|
+
}
|
272
|
+
|
273
|
+
/* 屏幕阅读器专用样式(视觉隐藏,语义保留) */
|
274
|
+
.sr-only {
|
275
|
+
position: absolute !important;
|
276
|
+
width: 1px !important;
|
277
|
+
height: 1px !important;
|
278
|
+
padding: 0 !important;
|
279
|
+
margin: -1px !important;
|
280
|
+
overflow: hidden !important;
|
281
|
+
clip: rect(0, 0, 0, 0) !important;
|
282
|
+
border: 0 !important;
|
283
|
+
}
|
93
284
|
</style>
|
@@ -265,7 +265,7 @@ export default {
|
|
265
265
|
// 保留获取后端数据的逻辑
|
266
266
|
await runLogic(param.dataLogic,
|
267
267
|
{}, 'af-his').then(res => {
|
268
|
-
|
268
|
+
preliDiagnoData = res
|
269
269
|
})
|
270
270
|
|
271
271
|
// 创建脚本元素
|
@@ -282,7 +282,7 @@ export default {
|
|
282
282
|
document.dispatchEvent(event);
|
283
283
|
}
|
284
284
|
|
285
|
-
|
285
|
+
// 初始化诊断下拉菜单,使用自定义事件触发函数
|
286
286
|
(${initDiagnosisDropdown.toString()})(
|
287
287
|
editor,
|
288
288
|
${JSON.stringify(preliDiagnoData)},
|
@@ -323,7 +323,7 @@ export default {
|
|
323
323
|
onload (e) {
|
324
324
|
if (e && e.target && e.target.contentWindow) {
|
325
325
|
this.editorRef = e.target.contentWindow.editor
|
326
|
-
|
326
|
+
// 等待文档加载完成
|
327
327
|
this.$emit('init', {})
|
328
328
|
}
|
329
329
|
},
|
@@ -365,7 +365,7 @@ export default {
|
|
365
365
|
// 文件加载完成后再初始化自动完成
|
366
366
|
await this.initDiagnosisAutocomplete(dropDownBoxParams)
|
367
367
|
})
|
368
|
-
|
368
|
+
this.loadResList()
|
369
369
|
},
|
370
370
|
// 加载文档
|
371
371
|
loadFile (fileUrl, bindObject, currResData) {
|
@@ -382,7 +382,7 @@ export default {
|
|
382
382
|
}
|
383
383
|
// 拿取多于模板中的数据
|
384
384
|
const diff = this.bindObject? Object.fromEntries(
|
385
|
-
|
385
|
+
Object.entries(this.bindObject)
|
386
386
|
.filter(([key]) => !(key in this.editorRef.getBindObject()))
|
387
387
|
) : {}
|
388
388
|
this.codeData = {...this.codeData,...diff}
|
@@ -431,6 +431,7 @@ export default {
|
|
431
431
|
return false
|
432
432
|
}
|
433
433
|
this.save()
|
434
|
+
|
434
435
|
return true
|
435
436
|
} else {
|
436
437
|
return false
|
@@ -477,7 +478,7 @@ export default {
|
|
477
478
|
// 检查templates数组是否存在
|
478
479
|
if (!templateData.templates || !Array.isArray(templateData.templates)) {
|
479
480
|
console.warn('templateData.templates不存在或不是数组')
|
480
|
-
return
|
481
|
+
return newBindObject
|
481
482
|
}
|
482
483
|
// 遍历templates数组中的每个属性名
|
483
484
|
templateData.templates.forEach(propName => {
|
@@ -550,7 +551,6 @@ export default {
|
|
550
551
|
// 保存HTML文档和结构化数据到后端服务
|
551
552
|
runLogic(this.saveDataLogicName, data, this.serviceName).then(res => {
|
552
553
|
this.$message.success('保存成功')
|
553
|
-
console.log('保存成功', )
|
554
554
|
this.changeRes(res.currResData.id)
|
555
555
|
this.$emit('saveafter', data.dataObject)
|
556
556
|
}).finally(() => {
|