vue2-client 1.19.88 → 1.19.90
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/AmapMarker/index.js +3 -3
- package/src/base-client/components/common/XDetailsView/index.js +3 -3
- package/src/base-client/components/common/XForm/XForm.vue +4 -4
- package/src/base-client/components/common/XForm/XFormItem.vue +13 -4
- package/src/base-client/components/common/XFormGroupDetails/index.js +3 -3
- package/src/base-client/components/common/XTable/XTableWrapper.vue +2 -2
- package/src/router/async/router.map.js +2 -2
- package/vue.config.js +1 -2
- package/tests/unit/a.log +0 -0
package/package.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import AmapPointRendering from './AmapPointRendering'
|
|
2
|
-
|
|
3
|
-
export default AmapPointRendering
|
|
1
|
+
import AmapPointRendering from './AmapPointRendering'
|
|
2
|
+
|
|
3
|
+
export default AmapPointRendering
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import XDetailsView from './XDetailsView'
|
|
2
|
-
|
|
3
|
-
export default XDetailsView
|
|
1
|
+
import XDetailsView from './XDetailsView'
|
|
2
|
+
|
|
3
|
+
export default XDetailsView
|
|
@@ -401,13 +401,13 @@ export default {
|
|
|
401
401
|
['curOrgId', 'curDepId', 'curUserId'].includes(item.queryFormDefault)
|
|
402
402
|
) {
|
|
403
403
|
if (item.queryFormDefault === 'curOrgId') {
|
|
404
|
-
formData[item.model] = item.type === 'select' ? this.currUser.orgid : [this.currUser.orgid]
|
|
404
|
+
formData[item.model] = item.type === 'select' ? this.currUser.orgid : [this.currUser.orgid + '']
|
|
405
405
|
}
|
|
406
406
|
if (item.queryFormDefault === 'curDepId') {
|
|
407
|
-
formData[item.model] = item.type === 'select' ? this.currUser.depids : [this.currUser.depids]
|
|
407
|
+
formData[item.model] = item.type === 'select' ? this.currUser.depids : [this.currUser.depids + '']
|
|
408
408
|
}
|
|
409
409
|
if (item.queryFormDefault === 'curUserId') {
|
|
410
|
-
formData[item.model] = item.type === 'select' ? this.currUser.id : [this.currUser.id]
|
|
410
|
+
formData[item.model] = item.type === 'select' ? this.currUser.id : [this.currUser.id + '']
|
|
411
411
|
}
|
|
412
412
|
} else {
|
|
413
413
|
formData[item.model] = item.queryFormDefault
|
|
@@ -586,7 +586,7 @@ export default {
|
|
|
586
586
|
} else {
|
|
587
587
|
displayValue = String(currentValue)
|
|
588
588
|
}
|
|
589
|
-
|
|
589
|
+
|
|
590
590
|
labelData[fieldName] = displayValue
|
|
591
591
|
// 添加表单项的中文标签(attr.name)
|
|
592
592
|
if (attr.name) {
|
|
@@ -913,7 +913,6 @@ export default {
|
|
|
913
913
|
},
|
|
914
914
|
form: {
|
|
915
915
|
handler(newVal, oldVal) {
|
|
916
|
-
// 如果是从函数获取 options
|
|
917
916
|
if (
|
|
918
917
|
this.attr.keyName &&
|
|
919
918
|
(this.attr.keyName.toString().indexOf('async ') !== -1 ||
|
|
@@ -938,14 +937,24 @@ export default {
|
|
|
938
937
|
this?.attr?.keyName?.toString()?.startsWith('search@根据表单项[') &&
|
|
939
938
|
this?.attr?.keyName?.toString().endsWith(']联动人员')
|
|
940
939
|
) {
|
|
941
|
-
this.
|
|
940
|
+
const startIndex = this.attr.keyName.indexOf('[') + 1
|
|
941
|
+
const endIndex = this.attr.keyName.indexOf(']', startIndex)
|
|
942
|
+
const fromModel = this.attr.keyName.substring(startIndex, endIndex).replace('.', '_')
|
|
943
|
+
if (JSON.stringify(newVal[fromModel]) !== JSON.stringify(oldVal[fromModel])) {
|
|
944
|
+
this.debouncedUserLinkFunc()
|
|
945
|
+
}
|
|
942
946
|
}
|
|
943
|
-
//
|
|
947
|
+
// 数据源来自部门联动时更新数据
|
|
944
948
|
if (
|
|
945
949
|
this?.attr?.keyName?.toString()?.startsWith('search@根据表单项[') &&
|
|
946
950
|
this?.attr?.keyName?.toString().endsWith(']联动部门')
|
|
947
951
|
) {
|
|
948
|
-
this.
|
|
952
|
+
const startIndex = this.attr.keyName.indexOf('[') + 1
|
|
953
|
+
const endIndex = this.attr.keyName.indexOf(']', startIndex)
|
|
954
|
+
const fromModel = this.attr.keyName.substring(startIndex, endIndex).replace('.', '_')
|
|
955
|
+
if (JSON.stringify(newVal[fromModel]) !== JSON.stringify(oldVal[fromModel])) {
|
|
956
|
+
this.debouncedDepLinkFunc()
|
|
957
|
+
}
|
|
949
958
|
}
|
|
950
959
|
},
|
|
951
960
|
deep: true
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import XFormGroupDetails from './XFormGroupDetails'
|
|
2
|
-
|
|
3
|
-
export default XFormGroupDetails
|
|
1
|
+
import XFormGroupDetails from './XFormGroupDetails'
|
|
2
|
+
|
|
3
|
+
export default XFormGroupDetails
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
</span>
|
|
116
116
|
<span v-else-if="item.slotType === 'action'" :key="'action-' + c_index">
|
|
117
117
|
<template v-if="item.actionArr && item.actionArr.length > 0">
|
|
118
|
-
<a-dropdown placement="bottomCenter" :getPopupContainer="getPopupContainer">
|
|
118
|
+
<a-dropdown placement="bottomCenter" :trigger="['click']" :getPopupContainer="getPopupContainer">
|
|
119
119
|
<a class="ant-dropdown-link" @click="e => e.preventDefault()">
|
|
120
120
|
{{ item.scopedSlots?.customRender || item.slotValue }} <a-icon type="down"/>
|
|
121
121
|
</a>
|
|
@@ -289,7 +289,7 @@
|
|
|
289
289
|
</span>
|
|
290
290
|
<span v-else-if="item.slotType === 'action'" :key="'action-' + c_index">
|
|
291
291
|
<template v-if="item.actionArr && item.actionArr.length > 0">
|
|
292
|
-
<a-dropdown
|
|
292
|
+
<a-dropdown :trigger="['click']"
|
|
293
293
|
placement="bottomRight"
|
|
294
294
|
overlayClassName="x-table-action-dropdown"
|
|
295
295
|
:getPopupContainer="getPopupContainer"
|
|
@@ -55,8 +55,8 @@ routerResource.example = {
|
|
|
55
55
|
// component: () => import('@vue2-client/pages/LayoutTest/index.vue')
|
|
56
56
|
// component: () => import('@vue2-client/base-client/components/common/XDescriptions/demo.vue')
|
|
57
57
|
// component: () => import('@vue2-client/base-client/components/his/HChart/demo.vue'),
|
|
58
|
-
component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
|
59
|
-
|
|
58
|
+
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
|
59
|
+
component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue')
|
|
60
60
|
// component: () => import('@vue2-client/base-client/components/common/AfMap/demo.vue')
|
|
61
61
|
// component: () => import('@vue2-client/base-client/components/common/ImagePreviewModal/demo.vue'),
|
|
62
62
|
// component: () => import('@vue2-client/base-client/components/common/XImagePreview/demo.vue'),
|
package/vue.config.js
CHANGED
package/tests/unit/a.log
DELETED
|
File without changes
|