vue2-client 1.17.37 → 1.17.39
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/assets/svg/female.svg +1 -1
- package/src/assets/svg/male.svg +1 -1
- package/src/base-client/components/common/AmapMarker/index.js +3 -3
- package/src/base-client/components/common/HIS/HButtons/HButtons.vue +491 -491
- package/src/base-client/components/common/HIS/HFormGroup/index.js +3 -3
- package/src/base-client/components/common/HIS/HTab/HTab.vue +443 -443
- package/src/base-client/components/common/XCollapse/XCollapse.vue +830 -833
- package/src/base-client/components/common/XDetailsView/index.js +3 -3
- package/src/base-client/components/common/XFormGroupDetails/index.js +3 -3
- package/src/base-client/components/common/XFormTable/XFormTable.vue +112 -0
- package/src/base-client/components/common/XFormTable/demo.vue +1 -1
- package/src/base-client/components/common/XTab/XTab.vue +7 -8
- package/src/base-client/components/common/XTable/XTableWrapper.vue +0 -5
- package/src/base-client/components/common/XTimeline/XTimeline.vue +477 -477
- package/src/base-client/components/his/XHDescriptions/XHDescriptions.vue +41 -2
- package/src/base-client/components/his/XHisEditor/XHisEditor.vue +705 -705
- package/src/base-client/components/his/XList/XList.vue +938 -938
- package/src/base-client/components/his/XTimeSelect/XTimeSelect.vue +354 -354
- package/src/base-client/components/his/XTitle/XTitle.vue +314 -314
- package/src/base-client/components/his/XTreeRows/XTreeRows.vue +341 -341
- package/src/base-client/components/his/threeTestOrders/editor.vue +113 -113
- package/src/components/STable/index.js +94 -55
- package/src/pages/WorkflowDetail/WorkFlowDemo.vue +1 -1
- package/src/pages/userInfoDetailManage/ExceptionRecordQuery/index.vue +45 -45
- package/src/router/async/router.map.js +2 -2
- package/src/theme/global.less +144 -112
- package/src-base-client/components/common/HIS/HForm/HForm.vue +347 -0
- /package/{tests/unit/a.log → src-base-client/components/common/XCollapse/XCollapse.vue} +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import XDetailsView from './XDetailsView'
|
|
2
|
-
|
|
3
|
-
export default XDetailsView
|
|
1
|
+
import XDetailsView from './XDetailsView'
|
|
2
|
+
|
|
3
|
+
export default XDetailsView
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import XFormGroupDetails from './XFormGroupDetails'
|
|
2
|
-
|
|
3
|
-
export default XFormGroupDetails
|
|
1
|
+
import XFormGroupDetails from './XFormGroupDetails'
|
|
2
|
+
|
|
3
|
+
export default XFormGroupDetails
|
|
@@ -953,6 +953,117 @@ export default {
|
|
|
953
953
|
line-height: 32px;
|
|
954
954
|
margin-bottom: 12px;
|
|
955
955
|
}
|
|
956
|
+
// 表格行样式类型
|
|
957
|
+
.ant-table-tbody {
|
|
958
|
+
// 成功样式 - 绿色 (#52c41a)
|
|
959
|
+
.ant-table-row-success {
|
|
960
|
+
background-color: rgba(82, 196, 26, 0.2);
|
|
961
|
+
|
|
962
|
+
&:hover {
|
|
963
|
+
background-color: rgba(82, 196, 26, 0.3) !important;
|
|
964
|
+
|
|
965
|
+
td {
|
|
966
|
+
background-color: transparent;
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
// 选中状态
|
|
971
|
+
&.ant-table-row-selected {
|
|
972
|
+
background-color: rgba(82, 196, 26, 0.4);
|
|
973
|
+
|
|
974
|
+
td {
|
|
975
|
+
background-color: transparent;
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
td {
|
|
980
|
+
background-color: transparent;
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
// 警告样式 - 黄色 (#faad14)
|
|
985
|
+
.ant-table-row-warning {
|
|
986
|
+
background-color: rgba(250, 173, 20, 0.1) ;
|
|
987
|
+
|
|
988
|
+
&:hover {
|
|
989
|
+
background-color: rgba(250, 173, 20, 0.15) ;
|
|
990
|
+
|
|
991
|
+
td {
|
|
992
|
+
background-color: transparent ;
|
|
993
|
+
}
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
// 选中状态
|
|
997
|
+
&.ant-table-row-selected {
|
|
998
|
+
background-color: rgba(250, 173, 20, 0.2);
|
|
999
|
+
|
|
1000
|
+
td {
|
|
1001
|
+
background-color: transparent;
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
td {
|
|
1006
|
+
background-color: transparent ;
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
// 错误样式 - 红色 (#f5222f)
|
|
1011
|
+
.ant-table-row-error {
|
|
1012
|
+
background-color: rgba(245, 34, 47, 0.1) ;
|
|
1013
|
+
|
|
1014
|
+
&:hover {
|
|
1015
|
+
background-color: rgba(245, 34, 47, 0.15) ;
|
|
1016
|
+
|
|
1017
|
+
td {
|
|
1018
|
+
background-color: transparent ;
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
// 选中状态
|
|
1023
|
+
&.ant-table-row-selected {
|
|
1024
|
+
background-color: rgba(245, 34, 47, 0.2) ;
|
|
1025
|
+
|
|
1026
|
+
td {
|
|
1027
|
+
background-color: transparent ;
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
td {
|
|
1032
|
+
background-color: transparent ;
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
// 魔法样式 - 紫色
|
|
1037
|
+
.ant-table-row-magic {
|
|
1038
|
+
background-color: rgba(114, 46, 209, 0.1) ;
|
|
1039
|
+
|
|
1040
|
+
&:hover {
|
|
1041
|
+
background-color: rgba(114, 46, 209, 0.15) ;
|
|
1042
|
+
|
|
1043
|
+
td {
|
|
1044
|
+
background-color: transparent ;
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
// 选中状态
|
|
1049
|
+
&.ant-table-row-selected {
|
|
1050
|
+
background-color: rgba(114, 46, 209, 0.2) ;
|
|
1051
|
+
|
|
1052
|
+
td {
|
|
1053
|
+
background-color: transparent ;
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
td {
|
|
1058
|
+
background-color: transparent ;
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
// 默认选中状态(没有特殊行样式时)
|
|
1063
|
+
.ant-table-row-selected:not(.ant-table-row-success):not(.ant-table-row-warning):not(.ant-table-row-error):not(.ant-table-row-magic) {
|
|
1064
|
+
background-color: rgba(24, 144, 255, 0.1) ;
|
|
1065
|
+
}
|
|
1066
|
+
}
|
|
956
1067
|
</style>
|
|
957
1068
|
<style>
|
|
958
1069
|
|
|
@@ -977,4 +1088,5 @@ export default {
|
|
|
977
1088
|
overflow: visible;
|
|
978
1089
|
background-color: transparent;
|
|
979
1090
|
}
|
|
1091
|
+
|
|
980
1092
|
</style>
|
|
@@ -72,7 +72,7 @@ export default {
|
|
|
72
72
|
},
|
|
73
73
|
data () {
|
|
74
74
|
return {
|
|
75
|
-
activeKey:
|
|
75
|
+
activeKey: -1,
|
|
76
76
|
// 配置
|
|
77
77
|
config: undefined,
|
|
78
78
|
tabBarExtraContent: undefined,
|
|
@@ -85,10 +85,10 @@ export default {
|
|
|
85
85
|
...mapState('account', { currUser: 'user' })
|
|
86
86
|
},
|
|
87
87
|
mounted () {
|
|
88
|
-
this.activeKey = this.defaultActiveKey
|
|
88
|
+
// this.activeKey = this.defaultActiveKey
|
|
89
89
|
// 标记默认激活的页签为已加载
|
|
90
|
-
this.markTabAsLoaded(this.defaultActiveKey)
|
|
91
|
-
this.tabPaneChange(
|
|
90
|
+
// this.markTabAsLoaded(this.defaultActiveKey)
|
|
91
|
+
this.tabPaneChange(this.defaultActiveKey, true)
|
|
92
92
|
},
|
|
93
93
|
methods: {
|
|
94
94
|
// 自定义函数中调用的方法 这个不能删
|
|
@@ -113,7 +113,7 @@ export default {
|
|
|
113
113
|
this.markTabAsLoaded(newKey)
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
if (this.config && this.config.changeFunc) {
|
|
116
|
+
if (this.config && this.config.changeFunc && this.config.data[newKey] !== undefined) {
|
|
117
117
|
let oldRef
|
|
118
118
|
let oldTabName
|
|
119
119
|
let newRef
|
|
@@ -148,7 +148,6 @@ export default {
|
|
|
148
148
|
|
|
149
149
|
// 关键修改:确保新组件实例存在
|
|
150
150
|
if (!newRef || !newRef[0]) {
|
|
151
|
-
console.log('等待新页签组件初始化...')
|
|
152
151
|
// 等待组件挂载完成
|
|
153
152
|
await this.waitForComponentReady(newKey)
|
|
154
153
|
newRef = this.$refs[newTabName]
|
|
@@ -158,7 +157,7 @@ export default {
|
|
|
158
157
|
args.push(newRef[0])
|
|
159
158
|
} else {
|
|
160
159
|
args.push(null)
|
|
161
|
-
console.
|
|
160
|
+
console.error('新页签组件实例获取失败')
|
|
162
161
|
}
|
|
163
162
|
|
|
164
163
|
args.push(this.extraData)
|
|
@@ -203,7 +202,7 @@ export default {
|
|
|
203
202
|
}
|
|
204
203
|
},
|
|
205
204
|
|
|
206
|
-
// 新增:等待组件就绪的方法
|
|
205
|
+
// 新增:等待组件就绪的方法
|
|
207
206
|
waitForComponentReady (index) {
|
|
208
207
|
return new Promise((resolve) => {
|
|
209
208
|
const checkComponent = () => {
|
|
@@ -329,12 +329,7 @@ export default {
|
|
|
329
329
|
return this.tableContext.expandedGrid ? this.$refs.expandableTable : this.$refs.simpleTable
|
|
330
330
|
},
|
|
331
331
|
realTableColumns () {
|
|
332
|
-
console.warn('====', this.tableContext.tableColumns)
|
|
333
332
|
return this.tableContext.tableColumns.filter(item => item.slotType !== 'action' || !this.disableAction).map((item) => {
|
|
334
|
-
// todo delete 后台现在也是200 不过要清楚配置缓存 这里是为了让不清缓存也能达到争取的效果
|
|
335
|
-
// if (item.slotType === 'date' || item.slotType === 'dateTime') {
|
|
336
|
-
// item.width = 200
|
|
337
|
-
// }
|
|
338
333
|
if (['ellipsis', 'badge', 'towDecimal', 'date', 'dateTime', 'fourDecimal', 'int'].includes(item.slotType)) {
|
|
339
334
|
item.ellipsis = true
|
|
340
335
|
}
|