vue2-client 1.9.110 → 1.9.112
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/XAddNativeForm/XAddNativeForm.vue +2 -1
- package/src/base-client/components/common/XForm/XFormItem.vue +27 -2
- package/src/base-client/components/common/XLabelSelect/XLabelSelectDemo.vue +1 -1
- package/src/base-client/components/common/XReportGrid/XReport.vue +13 -16
- package/src/base-client/components/common/XReportGrid/XReportDemo.vue +6 -1
- package/src/base-client/components/common/XTable/CustomFuncCel.vue +1 -1
- package/src/base-client/components/common/XTable/XTable.vue +1 -1
package/package.json
CHANGED
|
@@ -519,7 +519,22 @@
|
|
|
519
519
|
:arrowPointAtCenter="true"
|
|
520
520
|
:overlayStyle="{ width: '1000px', height: '30vh' }">
|
|
521
521
|
<template #content>
|
|
522
|
+
<x-report
|
|
523
|
+
v-if="isCover"
|
|
524
|
+
:use-oss-for-img="false"
|
|
525
|
+
:config-name="queryParamsName"
|
|
526
|
+
:service-name="serviceName"
|
|
527
|
+
:show-img-in-cell="true"
|
|
528
|
+
:display-only="true"
|
|
529
|
+
:edit-mode="false"
|
|
530
|
+
:show-save-button="true"
|
|
531
|
+
:no-padding="true"
|
|
532
|
+
:dont-format="true"
|
|
533
|
+
@rowChoose="rowChoose"
|
|
534
|
+
>
|
|
535
|
+
</x-report>
|
|
522
536
|
<x-form-table
|
|
537
|
+
v-else
|
|
523
538
|
title="请选择数据"
|
|
524
539
|
:queryParamsName="queryParamsName"
|
|
525
540
|
:rowSelectMode="true"
|
|
@@ -671,6 +686,7 @@ export default {
|
|
|
671
686
|
components: {
|
|
672
687
|
XFormTable: () => import('@vue2-client/base-client/components/common/XFormTable/XFormTable.vue'),
|
|
673
688
|
Recording: () => import('@vue2-client/base-client/components/common/Recording/Recording.vue'),
|
|
689
|
+
XReport: () => import('@vue2-client/base-client/components/common/XReportGrid/XReport.vue'),
|
|
674
690
|
XLicensePlate,
|
|
675
691
|
XTreeSelect,
|
|
676
692
|
XFormCol,
|
|
@@ -849,6 +865,15 @@ export default {
|
|
|
849
865
|
// 按现有方式处理
|
|
850
866
|
return this.attr.keyName.split('@')[this.attr.keyName.split('@').length - 1]
|
|
851
867
|
}
|
|
868
|
+
},
|
|
869
|
+
// 判断弹出时是否Cover,弹出只支持Cover以及CRUD
|
|
870
|
+
isCover () {
|
|
871
|
+
// 如果 queryParamsName 为空,返回空
|
|
872
|
+
if (!this.queryParamsName) {
|
|
873
|
+
return false
|
|
874
|
+
}
|
|
875
|
+
const result = this.queryParamsName.endsWith('Cover')
|
|
876
|
+
return result
|
|
852
877
|
}
|
|
853
878
|
},
|
|
854
879
|
watch: {
|
|
@@ -888,7 +913,7 @@ export default {
|
|
|
888
913
|
deep: true
|
|
889
914
|
}
|
|
890
915
|
},
|
|
891
|
-
inject: ['registerComponent', 'getComponentByName'],
|
|
916
|
+
inject: ['registerComponent', 'getComponentByName', 'getSelf'],
|
|
892
917
|
methods: {
|
|
893
918
|
// 把内部的crud表单录入放到表单中,以便外部可以调用
|
|
894
919
|
onComponentMounted (h, attr) {
|
|
@@ -1064,7 +1089,7 @@ export default {
|
|
|
1064
1089
|
let source = this.attr.keyName.substring(7)
|
|
1065
1090
|
const userid = this.currUser.id
|
|
1066
1091
|
let roleName = 'roleName'
|
|
1067
|
-
if (source.startsWith('
|
|
1092
|
+
if (source.startsWith('根据角��[') && source.endsWith(']获取人员')) {
|
|
1068
1093
|
const startIndex = source.indexOf('[') + 1
|
|
1069
1094
|
const endIndex = source.indexOf(']', startIndex)
|
|
1070
1095
|
roleName = source.substring(startIndex, endIndex)
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
</template>
|
|
12
12
|
|
|
13
13
|
<script>
|
|
14
|
-
import XLabelSelect from '
|
|
14
|
+
import XLabelSelect from '@vue2-client/base-client/components/common/XLabelSelect/XLabelSelect.vue'
|
|
15
15
|
|
|
16
16
|
export default {
|
|
17
17
|
components: {
|
|
@@ -27,6 +27,11 @@
|
|
|
27
27
|
:show-images="hasImages"
|
|
28
28
|
:image-list="imageList">
|
|
29
29
|
</XReportDesign>
|
|
30
|
+
|
|
31
|
+
<a-button @click="saveConfig" v-if="showSaveButton">
|
|
32
|
+
提交
|
|
33
|
+
</a-button>
|
|
34
|
+
|
|
30
35
|
</template>
|
|
31
36
|
<template v-else>
|
|
32
37
|
<!-- 用以包裹整个页面 -->
|
|
@@ -45,9 +50,6 @@
|
|
|
45
50
|
预览
|
|
46
51
|
</a-radio-button>
|
|
47
52
|
</a-radio-group>
|
|
48
|
-
<a-radio-button @click="saveConfig" style="border-radius: 0 4px 4px 0" v-if="showSaveButton">
|
|
49
|
-
保存
|
|
50
|
-
</a-radio-button>
|
|
51
53
|
<!-- 主体表格 -->
|
|
52
54
|
<XReportDesign
|
|
53
55
|
v-if="scanFinish"
|
|
@@ -92,6 +94,8 @@ import { mapState } from 'vuex'
|
|
|
92
94
|
import { getConfigByName, runLogic } from '@vue2-client/services/api/common'
|
|
93
95
|
import XReportDesign from './XReportDesign.vue'
|
|
94
96
|
import { printElement } from './print'
|
|
97
|
+
import { executeStrFunctionByContext } from '@vue2-client/utils/runEvalFunction'
|
|
98
|
+
|
|
95
99
|
// import XAddReport from '@vue2-client/base-client/components/common/XAddReport'
|
|
96
100
|
|
|
97
101
|
export default {
|
|
@@ -123,7 +127,7 @@ export default {
|
|
|
123
127
|
type: String,
|
|
124
128
|
default: undefined
|
|
125
129
|
},
|
|
126
|
-
//
|
|
130
|
+
// 本地配��,调试用
|
|
127
131
|
localConfig: {
|
|
128
132
|
type: Object,
|
|
129
133
|
default: undefined
|
|
@@ -421,7 +425,7 @@ export default {
|
|
|
421
425
|
targetData = targetData[path]
|
|
422
426
|
}
|
|
423
427
|
}
|
|
424
|
-
//
|
|
428
|
+
// 将修改的数���,添加update = true属性
|
|
425
429
|
targetData.update = true
|
|
426
430
|
})
|
|
427
431
|
return tempData
|
|
@@ -457,17 +461,10 @@ export default {
|
|
|
457
461
|
this.$refs[componentName] = component
|
|
458
462
|
},
|
|
459
463
|
|
|
460
|
-
//
|
|
464
|
+
// 提交处理,调用配置中的函数
|
|
461
465
|
saveConfig () {
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
} else {
|
|
465
|
-
const tempDataKeys = Object.keys(this.activeConfig.tempData)
|
|
466
|
-
tempDataKeys.forEach(key => {
|
|
467
|
-
this.changeDeepObject(this.activeConfig.data, key, this.activeConfig.tempData[key])
|
|
468
|
-
})
|
|
469
|
-
this.$emit('saveConfig', this.$refs.XReportDesign.activatedConfig)
|
|
470
|
-
}
|
|
466
|
+
const funcStr = this.config.confirmFunction
|
|
467
|
+
executeStrFunctionByContext(this, funcStr, [this])
|
|
471
468
|
},
|
|
472
469
|
// 通过@@@分割临时变量,找到对应的key,并修改它的值
|
|
473
470
|
changeDeepObject (obj, strPath, newVal) {
|
|
@@ -729,7 +726,7 @@ export default {
|
|
|
729
726
|
titleCellFlag = false
|
|
730
727
|
firstSubLine = false
|
|
731
728
|
}
|
|
732
|
-
// 保存上一个的colspan
|
|
729
|
+
// 保存上一个的colspan���保持生成的格子与原格式一致
|
|
733
730
|
preColSpan = cell.colSpan
|
|
734
731
|
})
|
|
735
732
|
|
|
@@ -26,13 +26,18 @@ export default {
|
|
|
26
26
|
components: {
|
|
27
27
|
XReport, XAddReport
|
|
28
28
|
},
|
|
29
|
+
provide () {
|
|
30
|
+
return {
|
|
31
|
+
getSelectedId: () => 10
|
|
32
|
+
}
|
|
33
|
+
},
|
|
29
34
|
mounted () {
|
|
30
35
|
// this.$refs.main.openDialog('surgerySchedCover', -1, {})
|
|
31
36
|
},
|
|
32
37
|
data () {
|
|
33
38
|
return {
|
|
34
39
|
// configName: 'medicalRecordCover'
|
|
35
|
-
configName: '
|
|
40
|
+
configName: 'medOrderManaActCover'
|
|
36
41
|
}
|
|
37
42
|
},
|
|
38
43
|
methods: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import { Ellipsis } from '
|
|
2
|
+
import { Ellipsis } from '@vue2-client/components'
|
|
3
3
|
import { executeStrFunctionByContext } from '@vue2-client/utils/runEvalFunction'
|
|
4
4
|
import { getConfigByNameAsync, runLogic } from '@vue2-client/services/api/common'
|
|
5
5
|
|
|
@@ -330,7 +330,7 @@ import debounce from 'lodash.debounce'
|
|
|
330
330
|
import XDataCard from '@vue2-client/base-client/components/common/XDataCard/XDataCard.vue'
|
|
331
331
|
import { getRealKeyData } from '@vue2-client/utils/formatter'
|
|
332
332
|
import ReportTableHome from '../../../../pages/report/ReportTableHome.vue'
|
|
333
|
-
import CustomFuncCel from '
|
|
333
|
+
import CustomFuncCel from '@vue2-client/base-client/components/common/XTable/CustomFuncCel.vue'
|
|
334
334
|
|
|
335
335
|
export default {
|
|
336
336
|
name: 'XTable',
|