vue2-client 1.18.19 → 1.18.21
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/.eslintrc.js +90 -90
- package/Components.md +60 -60
- package/docs/index.md +30 -30
- package/index.js +31 -31
- package/jest-transform-stub.js +8 -8
- package/jest.setup.js +7 -7
- package/package.json +112 -112
- package/src/assets/img/querySlotDemo.svg +15 -15
- package/src/base-client/components/common/AmapMarker/AmapPointRendering.vue +120 -120
- package/src/base-client/components/common/CitySelect/index.js +3 -3
- package/src/base-client/components/common/CitySelect/index.md +109 -109
- package/src/base-client/components/common/CreateQuery/CreateQuery.vue +669 -669
- package/src/base-client/components/common/CreateQuery/index.js +3 -3
- package/src/base-client/components/common/CreateQuery/index.md +42 -42
- package/src/base-client/components/common/CreateSimpleFormQuery/index.js +3 -3
- package/src/base-client/components/common/CreateSimpleFormQuery/index.md +42 -42
- package/src/base-client/components/common/FormGroupEdit/index.js +3 -3
- package/src/base-client/components/common/FormGroupEdit/index.md +43 -43
- package/src/base-client/components/common/FormGroupQuery/FormGroupQuery.vue +166 -166
- package/src/base-client/components/common/FormGroupQuery/index.js +3 -3
- package/src/base-client/components/common/FormGroupQuery/index.md +43 -43
- package/src/base-client/components/common/HIS/HFormTable/HFormTable.vue +0 -1
- package/src/base-client/components/common/JSONToTree/jsontotree.vue +271 -271
- package/src/base-client/components/common/PersonSetting/PersonSetting.vue +208 -208
- package/src/base-client/components/common/PersonSetting/index.js +3 -3
- package/src/base-client/components/common/Tree/Tree.vue +149 -149
- package/src/base-client/components/common/Tree/index.js +2 -2
- package/src/base-client/components/common/Upload/index.js +3 -3
- package/src/base-client/components/common/XAddNativeForm/index.md +146 -146
- package/src/base-client/components/common/XCard/XCard.vue +64 -64
- package/src/base-client/components/common/XDataDrawer/XDataDrawer.vue +180 -180
- package/src/base-client/components/common/XDataDrawer/index.js +3 -3
- package/src/base-client/components/common/XDataDrawer/index.md +41 -41
- package/src/base-client/components/common/XDescriptions/index.js +3 -3
- package/src/base-client/components/common/XDescriptions/index.md +83 -83
- package/src/base-client/components/common/XForm/index.md +178 -178
- package/src/base-client/components/common/XFormTable/XFormTable.vue +51 -77
- package/src/base-client/components/common/XStepView/XStepView.vue +252 -252
- package/src/base-client/components/common/XStepView/index.js +3 -3
- package/src/base-client/components/common/XStepView/index.md +31 -31
- package/src/base-client/components/common/XTable/index.md +255 -255
- package/src/base-client/components/system/DictionaryDetailsView/DictionaryDetailsView.vue +232 -232
- package/src/base-client/plugins/Config.js +19 -19
- package/src/base-client/plugins/tabs-page-plugin.js +39 -39
- package/src/components/Charts/Bar.vue +62 -62
- package/src/components/Charts/ChartCard.vue +134 -134
- package/src/components/Charts/Liquid.vue +67 -67
- package/src/components/Charts/MiniArea.vue +39 -39
- package/src/components/Charts/MiniBar.vue +39 -39
- package/src/components/Charts/MiniProgress.vue +75 -75
- package/src/components/Charts/MiniSmoothArea.vue +40 -40
- package/src/components/Charts/Radar.vue +68 -68
- package/src/components/Charts/RankList.vue +77 -77
- package/src/components/Charts/TagCloud.vue +113 -113
- package/src/components/Charts/TransferBar.vue +64 -64
- package/src/components/Charts/Trend.vue +82 -82
- package/src/components/Charts/chart.less +12 -12
- package/src/components/Charts/smooth.area.less +13 -13
- package/src/components/FileImageItem/FileItem.vue +320 -320
- package/src/components/FileImageItem/FileItemGroup.vue +297 -297
- package/src/components/NumberInfo/NumberInfo.vue +54 -54
- package/src/components/NumberInfo/index.js +3 -3
- package/src/components/NumberInfo/index.less +54 -54
- package/src/components/NumberInfo/index.md +43 -43
- package/src/components/card/ChartCard.vue +79 -79
- package/src/components/chart/Bar.vue +60 -60
- package/src/components/chart/MiniArea.vue +67 -67
- package/src/components/chart/MiniBar.vue +59 -59
- package/src/components/chart/MiniProgress.vue +57 -57
- package/src/components/chart/Radar.vue +80 -80
- package/src/components/chart/RankingList.vue +60 -60
- package/src/components/chart/Trend.vue +79 -79
- package/src/components/chart/index.less +9 -9
- package/src/components/checkbox/ColorCheckbox.vue +157 -157
- package/src/components/input/IInput.vue +66 -66
- package/src/components/menu/SideMenu.vue +75 -75
- package/src/components/menu/menu.js +273 -273
- package/src/components/tool/AStepItem.vue +60 -60
- package/src/layouts/CommonLayout.vue +56 -56
- package/src/layouts/header/HeaderNotice.vue +177 -177
- package/src/lib.js +1 -1
- package/src/mock/extend/index.js +84 -84
- package/src/mock/goods/index.js +108 -108
- package/src/pages/WorkflowDetail/WorkflowDetail.vue +404 -404
- package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowHandle.vue +1815 -1815
- package/src/pages/WorkflowDetail/WorkflowPageDetail/worklog.vue +98 -98
- package/src/pages/dashboard/workplace/WorkPlace.vue +141 -141
- package/src/pages/system/dictionary/index.vue +44 -44
- package/src/pages/system/monitor/loginInfor/index.vue +37 -37
- package/src/pages/system/monitor/operLog/index.vue +37 -37
- package/src/pages/userInfoDetailManage/ApplyRecordQuery/index.vue +64 -64
- package/src/pages/userInfoDetailManage/SafeCheckPaperV3RecordQuery/index.vue +64 -64
- package/src/pages/userInfoDetailManage/TelephoneV3RecordQuery/index.vue +64 -64
- package/src/pages/userInfoDetailManage/userInfoDetailQueryTabs.vue +155 -155
- package/src/router/async/router.map.js +2 -2
- package/src/services/api/cas.js +79 -79
- package/src/store/modules/setting.js +119 -119
- package/src/utils/authority-utils.js +85 -85
- package/src/utils/errorCode.js +6 -6
- package//350/277/201/347/247/273/346/227/245/345/277/227.md +15 -15
|
@@ -48,13 +48,15 @@
|
|
|
48
48
|
<div v-if="crudTitle" class="crud_title">
|
|
49
49
|
{{ crudTitle }}
|
|
50
50
|
</div>
|
|
51
|
-
<
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
51
|
+
<a-spin :spinning="tableShowMode === 'popup' && formQueryLoading" tip="正在查询..." >
|
|
52
|
+
<x-form
|
|
53
|
+
ref="xForm"
|
|
54
|
+
@x-form-item-emit-func="emitFunc"
|
|
55
|
+
@toggleAdvanced="toggleAdvanced"
|
|
56
|
+
@onSubmit="onSearchSubmit">
|
|
57
|
+
<slot name="formBtnExpand"></slot>
|
|
58
|
+
</x-form>
|
|
59
|
+
</a-spin>
|
|
58
60
|
<!-- 默认模式:直接展示表格 -->
|
|
59
61
|
<x-table
|
|
60
62
|
v-if="tableShowMode === 'default'"
|
|
@@ -115,13 +117,15 @@
|
|
|
115
117
|
<!-- 弹框模式:在 Modal 中展示表格 -->
|
|
116
118
|
<a-modal
|
|
117
119
|
v-if="tableShowMode === 'popup'"
|
|
118
|
-
|
|
120
|
+
:visible="tableModalVisible"
|
|
121
|
+
@cancel="closeTableModal"
|
|
119
122
|
:title="realQueryConfig.popupTitle || null"
|
|
120
123
|
:closable="false"
|
|
121
124
|
width="80%"
|
|
122
125
|
:bodyStyle="{ padding: '12px' }"
|
|
123
126
|
:footer="null"
|
|
124
127
|
:destroyOnClose="false"
|
|
128
|
+
:forceRender="true"
|
|
125
129
|
:z-index="1005"
|
|
126
130
|
>
|
|
127
131
|
<x-table
|
|
@@ -324,8 +328,8 @@ export default {
|
|
|
324
328
|
tableShowMode: 'default',
|
|
325
329
|
// Modal 弹框显示状态
|
|
326
330
|
tableModalVisible: false,
|
|
327
|
-
//
|
|
328
|
-
|
|
331
|
+
// 弹框模式下表单查询中的加载状态
|
|
332
|
+
formQueryLoading: false
|
|
329
333
|
}
|
|
330
334
|
},
|
|
331
335
|
computed: {
|
|
@@ -427,6 +431,11 @@ export default {
|
|
|
427
431
|
return 0
|
|
428
432
|
}
|
|
429
433
|
},
|
|
434
|
+
// 弹框模式下,最少多少行数据才自动弹框展示
|
|
435
|
+
minShowRows: {
|
|
436
|
+
type: Number,
|
|
437
|
+
default: 1
|
|
438
|
+
},
|
|
430
439
|
// 环境
|
|
431
440
|
env: {
|
|
432
441
|
type: String,
|
|
@@ -674,34 +683,7 @@ export default {
|
|
|
674
683
|
}
|
|
675
684
|
const localEditMode = !this.localEditMode ? res.localEditMode : this.localEditMode
|
|
676
685
|
const initTable = () => {
|
|
677
|
-
//
|
|
678
|
-
if (this.tableShowMode === 'popup' && !this.$refs.xTable) {
|
|
679
|
-
// 保存初始化配置
|
|
680
|
-
this.pendingTableInit = {
|
|
681
|
-
formItems: res.formJson,
|
|
682
|
-
queryParams: setQueryParams ? res : null,
|
|
683
|
-
realQueryParams: res,
|
|
684
|
-
tableColumns: res.columnJson,
|
|
685
|
-
buttonState: Object.assign(res.buttonState, this.buttonState),
|
|
686
|
-
title: this.title || res.title,
|
|
687
|
-
viewMode: this.viewMode,
|
|
688
|
-
localEditMode: localEditMode,
|
|
689
|
-
rowSelectMode: this.rowSelectMode,
|
|
690
|
-
allowSelectRowNum: this.allowSelectRowNum,
|
|
691
|
-
tableSummaryMap: res.tableSummaryMap,
|
|
692
|
-
serviceName: this.serviceName,
|
|
693
|
-
env: this.env,
|
|
694
|
-
form: this.$refs.xForm.form,
|
|
695
|
-
summaryUpdate: true,
|
|
696
|
-
disableAction: this.disableAction,
|
|
697
|
-
extraData: this.extraData,
|
|
698
|
-
rowStyleFunction: res.rowStyleFunction,
|
|
699
|
-
...res
|
|
700
|
-
}
|
|
701
|
-
return
|
|
702
|
-
}
|
|
703
|
-
|
|
704
|
-
// 初始化 xTable 子组件
|
|
686
|
+
// 初始化 xTable 子组件(弹框模式下由于 forceRender,xTable 已经渲染)
|
|
705
687
|
if (this.$refs.xTable) {
|
|
706
688
|
this.$refs.xTable.init({
|
|
707
689
|
formItems: res.formJson,
|
|
@@ -765,29 +747,14 @@ export default {
|
|
|
765
747
|
*/
|
|
766
748
|
onSearchSubmit (res) {
|
|
767
749
|
if (res.valid) {
|
|
768
|
-
//
|
|
750
|
+
// 如果是弹框模式,显示表单加载动画,不立即打开弹框
|
|
769
751
|
if (this.tableShowMode === 'popup') {
|
|
770
|
-
|
|
771
|
-
this
|
|
772
|
-
// 等待 Modal 中的 x-table 渲染完成
|
|
773
|
-
if (this.$refs.xTable) {
|
|
774
|
-
// 如果有待初始化的配置,先初始化表格
|
|
775
|
-
if (this.pendingTableInit) {
|
|
776
|
-
this.$refs.xTable.init(this.pendingTableInit)
|
|
777
|
-
this.$emit('afterTableInit')
|
|
778
|
-
this.pendingTableInit = null
|
|
779
|
-
}
|
|
780
|
-
// 设置查询表单
|
|
781
|
-
this.$refs.xTable.setQueryForm(res.form)
|
|
782
|
-
this.$refs.xTable.summaryUpdate = true
|
|
783
|
-
}
|
|
784
|
-
})
|
|
785
|
-
} else {
|
|
786
|
-
// 默认模式:直接设置查询表单
|
|
787
|
-
this.$refs.xTable.setQueryForm(res.form)
|
|
788
|
-
this.$refs.xTable.summaryUpdate = true
|
|
752
|
+
// 开启表单查询加载状态
|
|
753
|
+
this.formQueryLoading = true
|
|
789
754
|
}
|
|
790
|
-
|
|
755
|
+
// 默认模式:直接设置查询表单
|
|
756
|
+
this.$refs.xTable.setQueryForm(res.form)
|
|
757
|
+
this.$refs.xTable.summaryUpdate = true
|
|
791
758
|
// commit
|
|
792
759
|
this.$emit('afterSearchSubmit', res)
|
|
793
760
|
} else {
|
|
@@ -829,10 +796,28 @@ export default {
|
|
|
829
796
|
},
|
|
830
797
|
/**
|
|
831
798
|
* 表格查询后事件
|
|
832
|
-
* @param res
|
|
799
|
+
* @param res 参数(可能是 Promise)
|
|
833
800
|
* @param conditionParams 查询条件
|
|
834
801
|
*/
|
|
835
|
-
afterQuery (res, conditionParams) {
|
|
802
|
+
async afterQuery (res, conditionParams) {
|
|
803
|
+
// 如果是弹框模式且正在查询中
|
|
804
|
+
if (this.tableShowMode === 'popup' && this.formQueryLoading) {
|
|
805
|
+
// 兼容 Promise
|
|
806
|
+
const realRes = await res
|
|
807
|
+
// 结束表单加载状态
|
|
808
|
+
this.formQueryLoading = false
|
|
809
|
+
// 兼容 data / records 两种结构
|
|
810
|
+
const rows = realRes && (realRes.data || realRes.records || [])
|
|
811
|
+
// 判断是否有数据(行数 >= minShowRows)
|
|
812
|
+
const hasData = Array.isArray(rows) && rows.length >= this.minShowRows
|
|
813
|
+
|
|
814
|
+
if (hasData) {
|
|
815
|
+
// 有数据:打开弹框展示
|
|
816
|
+
this.tableModalVisible = true
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
// 继续触发父组件的 afterQuery 事件(保持原有行为)
|
|
836
821
|
this.$emit('afterQuery', res, conditionParams)
|
|
837
822
|
},
|
|
838
823
|
/**
|
|
@@ -1002,6 +987,9 @@ export default {
|
|
|
1002
987
|
* @param toFirstPage 是否到第一页
|
|
1003
988
|
*/
|
|
1004
989
|
refreshTable (toFirstPage = true) {
|
|
990
|
+
if (this.tableShowMode === 'popup') {
|
|
991
|
+
this.formQueryLoading = true
|
|
992
|
+
}
|
|
1005
993
|
this.$refs.xTable.refresh(toFirstPage)
|
|
1006
994
|
},
|
|
1007
995
|
/**
|
|
@@ -1010,23 +998,9 @@ export default {
|
|
|
1010
998
|
*/
|
|
1011
999
|
refresh (toFirstPage = true) {
|
|
1012
1000
|
if (this.tableShowMode === 'popup') {
|
|
1013
|
-
this.
|
|
1014
|
-
this.$nextTick(() => {
|
|
1015
|
-
// 等待 Modal 中的 x-table 渲染完成
|
|
1016
|
-
if (this.$refs.xTable) {
|
|
1017
|
-
// 如果有待初始化的配置,先初始化表格
|
|
1018
|
-
if (this.pendingTableInit) {
|
|
1019
|
-
this.$refs.xTable.init(this.pendingTableInit)
|
|
1020
|
-
this.$emit('afterTableInit')
|
|
1021
|
-
this.pendingTableInit = null
|
|
1022
|
-
}
|
|
1023
|
-
this.$refs.xTable.refresh(toFirstPage)
|
|
1024
|
-
this.$refs.xTable.summaryUpdate = true
|
|
1025
|
-
}
|
|
1026
|
-
})
|
|
1027
|
-
} else {
|
|
1028
|
-
this.$refs.xTable.refresh(toFirstPage)
|
|
1001
|
+
this.formQueryLoading = true
|
|
1029
1002
|
}
|
|
1003
|
+
this.$refs.xTable.refresh(toFirstPage)
|
|
1030
1004
|
},
|
|
1031
1005
|
/**
|
|
1032
1006
|
* 获取表格数据
|