vue2-client 1.22.6 → 1.22.8

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.
Files changed (93) hide show
  1. package/.claude/settings.local.json +30 -30
  2. package/.eslintrc.js +74 -74
  3. package/.idea/CopilotChatHistory.xml +39 -0
  4. package/.idea/MarsCodeWorkspaceAppSettings.xml +2 -1
  5. package/.idea/inspectionProfiles/Project_Default.xml +0 -18
  6. package/.idea/migrateChatHistory.xml +10 -0
  7. package/.idea/modules.xml +1 -1
  8. package/Components.md +60 -60
  9. package/index.js +31 -31
  10. package/jest-transform-stub.js +8 -8
  11. package/jest.setup.js +7 -7
  12. package/package.json +1 -1
  13. package/src/assets/img/querySlotDemo.svg +15 -15
  14. package/src/base-client/components/common/AmapMarker/AmapPointRendering.vue +120 -120
  15. package/src/base-client/components/common/CitySelect/index.js +3 -3
  16. package/src/base-client/components/common/CitySelect/index.md +109 -109
  17. package/src/base-client/components/common/FormGroupEdit/index.js +3 -3
  18. package/src/base-client/components/common/FormGroupEdit/index.md +43 -43
  19. package/src/base-client/components/common/JSONToTree/jsontotree.vue +271 -271
  20. package/src/base-client/components/common/PersonSetting/index.js +3 -3
  21. package/src/base-client/components/common/Tree/index.js +2 -2
  22. package/src/base-client/components/common/Upload/index.js +3 -3
  23. package/src/base-client/components/common/XAddNativeForm/index.md +146 -146
  24. package/src/base-client/components/common/XCard/XCard.vue +64 -64
  25. package/src/base-client/components/common/XDataDrawer/XDataDrawer.vue +180 -180
  26. package/src/base-client/components/common/XDataDrawer/index.js +3 -3
  27. package/src/base-client/components/common/XDataDrawer/index.md +41 -41
  28. package/src/base-client/components/common/XDescriptions/index.js +3 -3
  29. package/src/base-client/components/common/XDescriptions/index.md +382 -382
  30. package/src/base-client/components/common/XForm/index.md +178 -178
  31. package/src/base-client/components/common/XFormTable/demo.vue +134 -53
  32. package/src/base-client/components/common/XInspectionDetailDrawer/components/InspectionSummary.vue +8 -0
  33. package/src/base-client/components/common/XInspectionDetailDrawer/services/inspectionService.js +6 -1
  34. package/src/base-client/components/common/XStepView/XStepView.vue +252 -252
  35. package/src/base-client/components/common/XStepView/index.js +3 -3
  36. package/src/base-client/components/common/XStepView/index.md +31 -31
  37. package/src/base-client/components/common/XTable/index.md +255 -255
  38. package/src/base-client/components/his/HAi/HAi.vue +349 -141
  39. package/src/base-client/components/his/XList/XList.vue +130 -17
  40. package/src/base-client/components/system/DictionaryDetailsView/DictionaryDetailsView.vue +232 -232
  41. package/src/base-client/plugins/Config.js +19 -19
  42. package/src/base-client/plugins/tabs-page-plugin.js +39 -39
  43. package/src/components/Charts/Bar.vue +62 -62
  44. package/src/components/Charts/ChartCard.vue +134 -134
  45. package/src/components/Charts/Liquid.vue +67 -67
  46. package/src/components/Charts/MiniArea.vue +39 -39
  47. package/src/components/Charts/MiniBar.vue +39 -39
  48. package/src/components/Charts/MiniProgress.vue +75 -75
  49. package/src/components/Charts/MiniSmoothArea.vue +40 -40
  50. package/src/components/Charts/Radar.vue +68 -68
  51. package/src/components/Charts/RankList.vue +77 -77
  52. package/src/components/Charts/TagCloud.vue +113 -113
  53. package/src/components/Charts/TransferBar.vue +64 -64
  54. package/src/components/Charts/Trend.vue +82 -82
  55. package/src/components/Charts/chart.less +12 -12
  56. package/src/components/Charts/smooth.area.less +13 -13
  57. package/src/components/NumberInfo/NumberInfo.vue +54 -54
  58. package/src/components/NumberInfo/index.js +3 -3
  59. package/src/components/NumberInfo/index.less +54 -54
  60. package/src/components/NumberInfo/index.md +43 -43
  61. package/src/components/STable/index.js +953 -953
  62. package/src/components/card/ChartCard.vue +79 -79
  63. package/src/components/chart/Bar.vue +60 -60
  64. package/src/components/chart/MiniArea.vue +67 -67
  65. package/src/components/chart/MiniBar.vue +59 -59
  66. package/src/components/chart/MiniProgress.vue +57 -57
  67. package/src/components/chart/Radar.vue +80 -80
  68. package/src/components/chart/RankingList.vue +60 -60
  69. package/src/components/chart/Trend.vue +79 -79
  70. package/src/components/chart/index.less +9 -9
  71. package/src/components/checkbox/ColorCheckbox.vue +157 -157
  72. package/src/components/input/IInput.vue +66 -66
  73. package/src/components/menu/SideMenu.vue +75 -75
  74. package/src/components/menu/menu.js +273 -273
  75. package/src/components/tool/AStepItem.vue +60 -60
  76. package/src/layouts/CommonLayout.vue +56 -56
  77. package/src/lib.js +1 -1
  78. package/src/mock/extend/index.js +84 -84
  79. package/src/mock/goods/index.js +108 -108
  80. package/src/pages/WorkflowDetail/WorkFlowDemo4.vue +127 -0
  81. package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowBaseInformation.vue +417 -417
  82. package/src/pages/dashboard/workplace/WorkPlace.vue +141 -141
  83. package/src/pages/system/dictionary/index.vue +44 -44
  84. package/src/pages/system/monitor/loginInfor/index.vue +37 -37
  85. package/src/pages/system/monitor/operLog/index.vue +37 -37
  86. package/src/services/api/cas.js +79 -79
  87. package/src/store/modules/setting.js +119 -119
  88. package/src/utils/errorCode.js +6 -6
  89. package//350/277/201/347/247/273/346/227/245/345/277/227.md +15 -15
  90. package/.idea/google-java-format.xml +0 -6
  91. package/.idea/jsLinters/eslint.xml +0 -6
  92. package/.vscode/settings.json +0 -28
  93. /package/.idea/{vue2-client.iml → af-vue2-client.iml} +0 -0
@@ -1,178 +1,178 @@
1
- # XForm
2
-
3
- 动态表单控件,根据JSON配置生成一个完整的动态表单
4
-
5
-
6
- ## 何时使用
7
-
8
- 当需要一个动态生成的表单时
9
-
10
-
11
- 引用方式:
12
-
13
- ```javascript
14
- import XForm from '@vue2-client/base-client/components/XForm/XForm'
15
-
16
- export default {
17
- components: {
18
- XForm
19
- }
20
- }
21
- ```
22
-
23
-
24
-
25
- ## 代码演示
26
-
27
- ```html
28
- <x-form
29
- :json-data="json"
30
- :isExports="true"
31
- @onSubmit="onSubmit">
32
- </x-form>
33
- ```
34
-
35
- ## API
36
-
37
- | 参数 | 说明 | 类型 | 默认值 |
38
- |-----------|--------------------------|---------|------|
39
- | jsonData | JSON配置,根据[工具>查询配置生成]功能生成 | Object | {} |
40
- | isExports | 是否显示导出按钮 | Boolean | true |
41
- | getDataParams | 调用logic获取数据源的追加参数 | Object | - |
42
- | @onSubmit | 表单的提交事件 | event | - |
43
-
44
- ## 例子1
45
- ----
46
- (基础使用)
47
-
48
- ```vue
49
- <template>
50
- <x-form
51
- v-if="loaded"
52
- :json-data="formItemJson"
53
- :isExports="false"
54
- @onSubmit="onSubmit">
55
- </x-form>
56
- </template>
57
-
58
- <script>
59
- import XForm from '@vue2-client/base-client/components/XForm/XForm'
60
-
61
- export default {
62
- components: {
63
- XForm
64
- },
65
- data () {
66
- return {
67
- // 加载查询参数JSON配置文件是否完成
68
- loaded: false,
69
- // 从查询参数JSON配置中得到的生成表单的JSON
70
- formItemJson: undefined,
71
- // 表单
72
- form: {}
73
- }
74
- },
75
- created () {
76
- this.getQueryJson()
77
- },
78
- methods: {
79
- // 加载查询参数JSON配置文件
80
- getQueryJson () {
81
- this.formItemJson = [
82
- {
83
- "name":"燃气公司",
84
- "keyName":"orgList",
85
- "model":"orgName",
86
- "placeholder":"请选择",
87
- "type":"select"
88
- },
89
- {
90
- "name":"用户地址",
91
- "model":"f_address",
92
- "type":"input"
93
- },
94
- {
95
- "name":"指令类型",
96
- "keyName":"指令类型",
97
- "model":"f_instruct_type",
98
- "placeholder":"请选择",
99
- "type":"select"
100
- },
101
- {
102
- "name":"指令说明",
103
- "model":"f_instruct_title",
104
- "placeholder":"请输入指令说明",
105
- "type":"input"
106
- },
107
- {
108
- "name":"指令状态",
109
- "keyName":"指令状态",
110
- "model":"f_instruct_state",
111
- "placeholder":"请选择",
112
- "type":"select"
113
- },
114
- {
115
- "name":"响应结果",
116
- "model":"f_receive_state",
117
- "placeholder":"请输入响应结果",
118
- "type":"input"
119
- },
120
- {
121
- "name":"生成时间",
122
- "model":"f_instruct_date",
123
- "type":"rangePicker"
124
- },
125
- {
126
- "name":"操作人",
127
- "model":"f_inputtor",
128
- "placeholder":"请输入操作人员",
129
- "type":"input"
130
- }
131
- ]
132
- this.loaded = true
133
- },
134
- // 表单提交方法
135
- onSubmit (res) {
136
- // 如果通过校验
137
- if (res.valid) {
138
- // 表单赋值
139
- this.form = res.form
140
- } else {
141
- return false
142
- }
143
- }
144
- }
145
- }
146
- </script>
147
- ```
148
-
149
- 注意事项
150
- ----
151
-
152
- > 本组件已经实现了自适应布局,在不同分辨率下的设备均可得到基本理想的展示效果
153
- >
154
- > 以上示例查询参数配置为后台生成后的结果,此处为了方便调试,所以直接写在了代码中,实际使用请通过发起请求获取查询参数配置,如下:
155
- ```vue
156
- <script>
157
- import { commonApi } from '@vue2-client/base-client/api/common'
158
- import Vue from 'vue'
159
-
160
- export default {
161
- data () {
162
- return {
163
- // 查询配置文件名
164
- queryParamsName: 'instructQueryParams'
165
- }
166
- },
167
- methods: {
168
- getConfig () {
169
- Vue.resetpost(commonApi.getConfig, {str: this.queryParamsName}).then((res) => {
170
- this.formItemJson = res.formJson
171
- this.columnItemJson = res.columnJson
172
- this.loaded = true
173
- })
174
- }
175
- }
176
- }
177
- </script>
178
- ```
1
+ # XForm
2
+
3
+ 动态表单控件,根据JSON配置生成一个完整的动态表单
4
+
5
+
6
+ ## 何时使用
7
+
8
+ 当需要一个动态生成的表单时
9
+
10
+
11
+ 引用方式:
12
+
13
+ ```javascript
14
+ import XForm from '@vue2-client/base-client/components/XForm/XForm'
15
+
16
+ export default {
17
+ components: {
18
+ XForm
19
+ }
20
+ }
21
+ ```
22
+
23
+
24
+
25
+ ## 代码演示
26
+
27
+ ```html
28
+ <x-form
29
+ :json-data="json"
30
+ :isExports="true"
31
+ @onSubmit="onSubmit">
32
+ </x-form>
33
+ ```
34
+
35
+ ## API
36
+
37
+ | 参数 | 说明 | 类型 | 默认值 |
38
+ |-----------|--------------------------|---------|------|
39
+ | jsonData | JSON配置,根据[工具>查询配置生成]功能生成 | Object | {} |
40
+ | isExports | 是否显示导出按钮 | Boolean | true |
41
+ | getDataParams | 调用logic获取数据源的追加参数 | Object | - |
42
+ | @onSubmit | 表单的提交事件 | event | - |
43
+
44
+ ## 例子1
45
+ ----
46
+ (基础使用)
47
+
48
+ ```vue
49
+ <template>
50
+ <x-form
51
+ v-if="loaded"
52
+ :json-data="formItemJson"
53
+ :isExports="false"
54
+ @onSubmit="onSubmit">
55
+ </x-form>
56
+ </template>
57
+
58
+ <script>
59
+ import XForm from '@vue2-client/base-client/components/XForm/XForm'
60
+
61
+ export default {
62
+ components: {
63
+ XForm
64
+ },
65
+ data () {
66
+ return {
67
+ // 加载查询参数JSON配置文件是否完成
68
+ loaded: false,
69
+ // 从查询参数JSON配置中得到的生成表单的JSON
70
+ formItemJson: undefined,
71
+ // 表单
72
+ form: {}
73
+ }
74
+ },
75
+ created () {
76
+ this.getQueryJson()
77
+ },
78
+ methods: {
79
+ // 加载查询参数JSON配置文件
80
+ getQueryJson () {
81
+ this.formItemJson = [
82
+ {
83
+ "name":"燃气公司",
84
+ "keyName":"orgList",
85
+ "model":"orgName",
86
+ "placeholder":"请选择",
87
+ "type":"select"
88
+ },
89
+ {
90
+ "name":"用户地址",
91
+ "model":"f_address",
92
+ "type":"input"
93
+ },
94
+ {
95
+ "name":"指令类型",
96
+ "keyName":"指令类型",
97
+ "model":"f_instruct_type",
98
+ "placeholder":"请选择",
99
+ "type":"select"
100
+ },
101
+ {
102
+ "name":"指令说明",
103
+ "model":"f_instruct_title",
104
+ "placeholder":"请输入指令说明",
105
+ "type":"input"
106
+ },
107
+ {
108
+ "name":"指令状态",
109
+ "keyName":"指令状态",
110
+ "model":"f_instruct_state",
111
+ "placeholder":"请选择",
112
+ "type":"select"
113
+ },
114
+ {
115
+ "name":"响应结果",
116
+ "model":"f_receive_state",
117
+ "placeholder":"请输入响应结果",
118
+ "type":"input"
119
+ },
120
+ {
121
+ "name":"生成时间",
122
+ "model":"f_instruct_date",
123
+ "type":"rangePicker"
124
+ },
125
+ {
126
+ "name":"操作人",
127
+ "model":"f_inputtor",
128
+ "placeholder":"请输入操作人员",
129
+ "type":"input"
130
+ }
131
+ ]
132
+ this.loaded = true
133
+ },
134
+ // 表单提交方法
135
+ onSubmit (res) {
136
+ // 如果通过校验
137
+ if (res.valid) {
138
+ // 表单赋值
139
+ this.form = res.form
140
+ } else {
141
+ return false
142
+ }
143
+ }
144
+ }
145
+ }
146
+ </script>
147
+ ```
148
+
149
+ 注意事项
150
+ ----
151
+
152
+ > 本组件已经实现了自适应布局,在不同分辨率下的设备均可得到基本理想的展示效果
153
+ >
154
+ > 以上示例查询参数配置为后台生成后的结果,此处为了方便调试,所以直接写在了代码中,实际使用请通过发起请求获取查询参数配置,如下:
155
+ ```vue
156
+ <script>
157
+ import { commonApi } from '@vue2-client/base-client/api/common'
158
+ import Vue from 'vue'
159
+
160
+ export default {
161
+ data () {
162
+ return {
163
+ // 查询配置文件名
164
+ queryParamsName: 'instructQueryParams'
165
+ }
166
+ },
167
+ methods: {
168
+ getConfig () {
169
+ Vue.resetpost(commonApi.getConfig, {str: this.queryParamsName}).then((res) => {
170
+ this.formItemJson = res.formJson
171
+ this.columnItemJson = res.columnJson
172
+ this.loaded = true
173
+ })
174
+ }
175
+ }
176
+ }
177
+ </script>
178
+ ```
@@ -2,35 +2,54 @@
2
2
  <a-card :bordered="false">
3
3
  <x-form-table
4
4
  title="示例表单"
5
- :queryParamsName="queryParamsName"
5
+ queryParamsName="scanCodeAndNFCRUD"
6
6
  :fixedAddForm="fixedAddForm"
7
7
  :externalSelectedRowKeys="selectedKeys"
8
+ :defaultPageSize="100"
9
+ :pageSizeArray="['100','200']"
8
10
  @action="action"
9
11
  @selectRow="selectRow"
10
12
  @columnClick="columnClick"
11
13
  @ceshi="ceshi"
12
- @rowDblClick="rowDblClick"
13
- serviceName="af-revenue"
14
+ @startService="startService"
15
+ serviceName="af-safecheck"
14
16
  ref="xFormTable"
15
17
  :reserveSpaceForButtons="true"
16
- @tableBaseEnter="tableBaseEnter"
17
- @addFormSubmit="addFormSubmit"
18
- ></x-form-table>
18
+ >
19
+ </x-form-table>
20
+ <a-modal
21
+ v-model="formModalVisible"
22
+ title="工单回访"
23
+ :zIndex="1002"
24
+ width="50vw"
25
+ :destroy-on-close="true"
26
+ @cancel="formModalVisible = false"
27
+ @ok="ok"
28
+ >
29
+ <x-add-native-form
30
+ ref="xForm"
31
+ />
32
+ </a-modal>
33
+ <button @click="backDealData">提交</button>
19
34
  </a-card>
20
35
  </template>
21
36
 
22
37
  <script>
23
38
  import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable.vue'
39
+ import XAddNativeForm from '@vue2-client/base-client/components/common/XAddNativeForm/XAddNativeForm.vue'
24
40
  import { microDispatch } from '@vue2-client/utils/microAppUtils'
41
+ import {getConfigByNameAsync, runLogic} from '@vue2-client/services/api/common'
42
+
25
43
  export default {
26
44
  name: 'Demo',
27
45
  components: {
28
- XFormTable
46
+ XFormTable,
47
+ XAddNativeForm,
29
48
  },
30
- data() {
49
+ data () {
31
50
  return {
32
51
  // 查询配置文件名
33
- queryParamsName: 'UserFilesListCRUD',
52
+ queryParamsName: 'ceshiCRUD',
34
53
  // 查询配置左侧tree
35
54
  xTreeConfigName: 'addressType',
36
55
  // 新增表单固定值
@@ -43,41 +62,32 @@ export default {
43
62
  selectedKeys: [],
44
63
  selected: {
45
64
  keys: [],
46
- rows: []
47
- }
65
+ rows: [],
66
+ },
67
+ formModalVisible: false,
48
68
  }
49
69
  },
50
-
51
70
  methods: {
52
- tableBaseEnter(...args) {
53
- const [attr, value, currentRecord, currentIndex, nextRecord, nextIndex] = args
54
- console.log('====>', attr, value, currentRecord, currentIndex, nextRecord, nextIndex)
55
-
56
- console.log('当前行:', currentIndex, '下一行:', nextIndex)
57
- if (!nextIndex) {
58
- this.$message.warning('没有下一行')
59
- return
60
- }
61
- // 跳转到下一行的同一列
62
- this.$refs.xFormTable.$refs.xTable.focusInput(nextIndex, attr.model)
63
- setTimeout(() => {
64
- this.$refs.xFormTable.$refs.xTable.focusInput(nextIndex, attr.model)
65
- }, 10)
66
- },
67
- handleCustomQuery() {
68
- this.$refs.xFormTable.queryTable({
69
- uf_f_alias: 'XianFeng',
70
- uf_f_card_id: '10500030'
71
+ backDealData () {
72
+ this.$refs.xFormTable.$refs.xForm.backDealData().then(data => {
73
+ console.log('backDealData', data)
74
+ console.log('selected', this.$refs.xFormTable.$refs.xForm?.form)
71
75
  })
72
76
  },
73
- rowDblClick(record) {
74
- console.log('rowDblClick', record)
75
- },
76
77
  // input框 行編輯參數傳遞
77
- ceshi(...args) {
78
+ ceshi (...args) {
78
79
  // attr, value, currentRecord, currentIndex, nextRecord, nextIndex
79
- const [attr, value, currentRecord, currentIndex, nextRecord, nextIndex] = args
80
- console.log('ceshi', attr, value, currentRecord, currentIndex, nextRecord, nextIndex)
80
+ const [attr, value, currentRecord, currentIndex, nextRecord, nextIndex] =
81
+ args
82
+ console.log(
83
+ 'ceshi',
84
+ attr,
85
+ value,
86
+ currentRecord,
87
+ currentIndex,
88
+ nextRecord,
89
+ nextIndex
90
+ )
81
91
  // 示例:当按下 Enter 键且有下一行时,跳转到下一行的同一列
82
92
  // 可以在这里执行业务逻辑(例如:保存数据)
83
93
  console.log('当前行:', currentIndex, '下一行:', nextIndex)
@@ -88,44 +98,115 @@ export default {
88
98
  // 跳转到下一行的同一列
89
99
  this.$refs.xFormTable.$refs.xTable.focusInput(nextIndex, attr.model)
90
100
  },
91
- test() {
101
+ test () {
92
102
  this.$refs.xFormTable.setTableData([])
93
103
  },
94
- defaultF() {
104
+ defaultF () {
95
105
  this.$refs.xFormTable.setTableSize('default')
96
106
  },
97
- middleF() {
107
+ middleF () {
98
108
  this.$refs.xFormTable.setTableSize('middle')
99
109
  },
100
- smallF() {
110
+ smallF () {
101
111
  this.$refs.xFormTable.setTableSize('small')
102
112
  },
103
- columnClick(key, value, record) {
113
+ columnClick (key, value, record) {
104
114
  microDispatch({
105
115
  type: 'v3route',
106
116
  path: '/bingliguanli/dianzibingliluru',
107
- props: { selected: arguments[0].his_f_admission_id }
117
+ props: { selected: arguments[0].his_f_admission_id },
108
118
  })
109
119
  },
110
- action(record, id, actionType) {
111
- this.detailVisible = true
112
- console.log('触发了详情操作', record, id, actionType)
120
+ startService (record, id, actionType) {
121
+ getConfigByNameAsync('测试Form', 'af-safecheck').then(config => {
122
+ this.formModalVisible = true
123
+ this.$nextTick(
124
+ () => {
125
+ this.formModalVisible = true
126
+ this.$refs.xForm.init({
127
+ formItems: config.formJson,
128
+ title: '工单回访',
129
+ businessType: '新增',
130
+ ...config,
131
+ fixedAddForm: {
132
+ Images:[
133
+ {
134
+ 'uid': 1850,
135
+ 'url': '/resource/af-system/images/3de85050493f4404ad3d0a00d53bca12.png',
136
+ 'name': '3de85050493f4404ad3d0a00d53bca12.png'
137
+ }
138
+ ],
139
+ f_image1:[
140
+ {
141
+ 'uid': 1850,
142
+ 'url': '/resource/af-system/images/3de85050493f4404ad3d0a00d53bca12.png',
143
+ 'name': '3de85050493f4404ad3d0a00d53bca12.png'
144
+ }
145
+ ],
146
+ signs: [
147
+ {
148
+ 'uid': 1850,
149
+ 'url': '/resource/af-system/images/3de85050493f4404ad3d0a00d53bca12.png',
150
+ 'name': '3de85050493f4404ad3d0a00d53bca12.png'
151
+ }
152
+ ],
153
+ },
154
+ modifyModelData: {
155
+ data: {
156
+ Images:[
157
+ {
158
+ 'uid': 1850,
159
+ 'url': '/resource/af-system/images/3de85050493f4404ad3d0a00d53bca12.png',
160
+ 'name': '3de85050493f4404ad3d0a00d53bca12.png'
161
+ }
162
+ ],
163
+ f_image1:[
164
+ {
165
+ 'uid': 1850,
166
+ 'url': '/resource/af-system/images/3de85050493f4404ad3d0a00d53bca12.png',
167
+ 'name': '3de85050493f4404ad3d0a00d53bca12.png'
168
+ }
169
+ ],
170
+ f_image2: [
171
+ {
172
+ 'uid': 1850,
173
+ 'url': '/resource/af-system/images/3de85050493f4404ad3d0a00d53bca12.png',
174
+ 'name': '3de85050493f4404ad3d0a00d53bca12.png'
175
+ }
176
+ ],
177
+ },
178
+ signs: [
179
+ {
180
+ 'uid': 1850,
181
+ 'url': '/resource/af-system/images/3de85050493f4404ad3d0a00d53bca12.png',
182
+ 'name': '3de85050493f4404ad3d0a00d53bca12.png'
183
+ }
184
+ ],
185
+ },
186
+ })
187
+ })
188
+ })
189
+ // this.detailVisible = true
190
+ // console.log('触发了详情操作', record, id, actionType)
191
+ },
192
+ async ok () {
193
+ const res = await this.$refs.xForm.asyncSubmit()
194
+ await runLogic('ceshwewei', res.realForm)
113
195
  },
114
- onClose() {
196
+ onClose () {
115
197
  this.detailVisible = false
116
198
  // 关闭详情之后重新查询表单
117
199
  this.$refs.xFormTable.refreshTable(true)
118
200
  },
119
- selectRow(selectedRowKeys, selectedRows) {
201
+ selectRow (selectedRowKeys, selectedRows) {
120
202
  this.selected = {
121
203
  keys: selectedRowKeys,
122
- rows: selectedRows
204
+ rows: selectedRows,
123
205
  }
206
+ console.log('selectedDemo', this.selected)
124
207
  },
125
- addFormSubmit(params, callback){
126
- callback()
127
- }
128
- }
208
+ },
209
+ computed: {},
129
210
  }
130
211
  </script>
131
212
 
@@ -51,6 +51,14 @@
51
51
  <div class="kv-value">{{ basicInfo.f_address || '——' }}</div>
52
52
  </div>
53
53
 
54
+ <div v-if="!safeCheckWebConfig?.safeCheckResult?.hideRealPosition" class="kv-item kv-item-wide">
55
+ <div class="kv-label">
56
+ <a-icon type="environment" />
57
+ 实时定位
58
+ </div>
59
+ <div class="kv-value">{{ basicInfo?.f_data?.f_real_location || '——' }}</div>
60
+ </div>
61
+
54
62
  <div class="kv-item">
55
63
  <div class="kv-label">
56
64
  <a-icon type="clock-circle" />
@@ -225,6 +225,10 @@ class InspectionService {
225
225
  const checkResultJson = apiData.checkResultJson || []
226
226
  const signatureForm = apiData.signatureForm || {}
227
227
  const historyList = apiData.historyList || []
228
+ let redundantData = {}
229
+ if (checkPaper?.f_data && checkPaper?.f_data !== '' && checkPaper.f_data !== null && checkPaper.f_data !== '{}') {
230
+ redundantData = JSON.parse(checkPaper.f_data) || {}
231
+ }
228
232
  return {
229
233
  basicInfo: {
230
234
  id: checkPaper.id,
@@ -245,7 +249,8 @@ class InspectionService {
245
249
  f_approved: checkPaper.f_approved,
246
250
  f_approved_time: checkPaper.f_approved_time,
247
251
  f_approved_name: checkPaper.f_approved_name,
248
- f_approved_note: checkPaper.f_approved_note
252
+ f_approved_note: checkPaper.f_approved_note,
253
+ f_data: redundantData,
249
254
  },
250
255
  historyList,
251
256
  deviceList: await this.extractDeviceList(checkResultJson),