vue2-client 1.22.37 → 1.22.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/.idea/MarsCodeWorkspaceAppSettings.xml +7 -0
- package/.idea/af-vue2-client.iml +4 -7
- package/.idea/deployment.xml +14 -0
- package/.idea/encodings.xml +6 -0
- package/.idea/gradle.xml +7 -0
- package/.idea/inspectionProfiles/Project_Default.xml +6 -0
- package/.idea/misc.xml +6 -0
- package/.idea/vcs.xml +5 -5
- package/package.json +1 -1
- package/src/assets/svg/unknown-icon.svg +3 -3
- package/src/base-client/components/common/AfMap/InfoWindowComponent.vue +141 -141
- package/src/base-client/components/common/AfMap/demo.vue +492 -492
- package/src/base-client/components/common/XInspectionDetailDrawer/components/DeviceStatus.vue +1 -1
- package/src/base-client/components/common/XInspectionDetailDrawer/demo.vue +6 -1
- package/src/base-client/components/common/XInspectionDetailDrawer/index.vue +7 -3
- package/src/base-client/components/common/XInspectionDetailDrawer/services/inspectionDetailApi.js +2 -2
- package/src/base-client/components/common/XInspectionDetailDrawer/services/inspectionService.js +2 -2
- package/src/components/ImagePreview/ImagePreview.vue +323 -323
- package/src/pages/login/Login.vue +1 -1
- package/src/utils/login.js +3 -1
- package/.idea/codeStyles/Project.xml +0 -62
- package/.idea/codeStyles/codeStyleConfig.xml +0 -5
package/src/base-client/components/common/XInspectionDetailDrawer/components/DeviceStatus.vue
CHANGED
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
:ref="el => registerFig(el)"
|
|
102
102
|
/>
|
|
103
103
|
</div>
|
|
104
|
-
<!-- 隐患照片 -->
|
|
104
|
+
<!-- 隐患照片 -->
|
|
105
105
|
<div class="hazard-photos-section" v-if="device.hazardPhotos && device.hazardPhotos.length > 0">
|
|
106
106
|
<div class="section-title">隐患照片</div>
|
|
107
107
|
<!-- 隐患照片使用FileImageGroup -->
|
|
@@ -48,7 +48,12 @@ export default {
|
|
|
48
48
|
this.$message.warning('请输入有效的安检 ID')
|
|
49
49
|
return
|
|
50
50
|
}
|
|
51
|
-
this.$refs.detailDrawer.init({
|
|
51
|
+
this.$refs.detailDrawer.init({
|
|
52
|
+
historyListParams: {
|
|
53
|
+
f_content: '合规'
|
|
54
|
+
},
|
|
55
|
+
f_userinfo_id: 96448
|
|
56
|
+
})
|
|
52
57
|
},
|
|
53
58
|
handleRefresh () {
|
|
54
59
|
this.$message.success('详情已刷新')
|
|
@@ -426,7 +426,11 @@ export default {
|
|
|
426
426
|
this.showHistoryPanel = !params?.id && !!params?.f_userinfo_id
|
|
427
427
|
|
|
428
428
|
if (params.f_userinfo_id) {
|
|
429
|
-
const
|
|
429
|
+
const historyListParams = {
|
|
430
|
+
...(params.historyListParams ?? {}),
|
|
431
|
+
f_userinfo_id: params.f_userinfo_id
|
|
432
|
+
}
|
|
433
|
+
const historyList = await inspectionService.getHistoryList(historyListParams)
|
|
430
434
|
if (historyList && historyList.length > 0) {
|
|
431
435
|
this.inspectionData.historyList = historyList
|
|
432
436
|
if (!params.id) {
|
|
@@ -463,9 +467,9 @@ export default {
|
|
|
463
467
|
}
|
|
464
468
|
console.warn('datra', data)
|
|
465
469
|
this.formFigInstances = []
|
|
466
|
-
|
|
470
|
+
// 遍历隐患明细,获取隐患处理后照片
|
|
467
471
|
for (let i = 0; i < data.hazardList.length; i++) {
|
|
468
|
-
|
|
472
|
+
const param = { defectId:data.hazardList[i].id }
|
|
469
473
|
const res = await runLogic('getDefectDetailList', param,'af-safecheck')
|
|
470
474
|
data.hazardList[i].handleimages=res[0].handleimages
|
|
471
475
|
}
|
package/src/base-client/components/common/XInspectionDetailDrawer/services/inspectionDetailApi.js
CHANGED
|
@@ -14,8 +14,8 @@ export const getInspectionFullDetail = async (paperId) => {
|
|
|
14
14
|
}
|
|
15
15
|
throw new Error('API返回数据格式不正确')
|
|
16
16
|
}
|
|
17
|
-
export const fetchHistoryList = async (
|
|
18
|
-
return post('api/af-safecheck/logic/getSafecheckHistoryList',
|
|
17
|
+
export const fetchHistoryList = async (params) => {
|
|
18
|
+
return post('api/af-safecheck/logic/getSafecheckHistoryList', params)
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
export const approveInspection = async (params) => {
|
package/src/base-client/components/common/XInspectionDetailDrawer/services/inspectionService.js
CHANGED
|
@@ -34,8 +34,8 @@ class InspectionService {
|
|
|
34
34
|
return getInspectionFullDetail(id)
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
async getHistoryList (
|
|
38
|
-
const list = await fetchHistoryList(
|
|
37
|
+
async getHistoryList (params) {
|
|
38
|
+
const list = await fetchHistoryList(params)
|
|
39
39
|
return this.formatHistoryList(list)
|
|
40
40
|
}
|
|
41
41
|
|