diff --git a/src/api/other/ys7DeviceImg/index.ts b/src/api/other/ys7DeviceImg/index.ts index bc814c2..080f6f1 100644 --- a/src/api/other/ys7DeviceImg/index.ts +++ b/src/api/other/ys7DeviceImg/index.ts @@ -1,3 +1,4 @@ +import request1 from '@/utils/request-go'; import request from '@/utils/request'; import { AxiosPromise } from 'axios'; import { Ys7DeviceImgVO, Ys7DeviceImgForm, Ys7DeviceImgQuery } from '@/api/other/ys7DeviceImg/types'; @@ -9,8 +10,8 @@ import { Ys7DeviceImgVO, Ys7DeviceImgForm, Ys7DeviceImgQuery } from '@/api/other */ export const listYs7DeviceImg = (query?: Ys7DeviceImgQuery): AxiosPromise => { - return request({ - url: '/other/ys7DeviceImg/list', + return request1({ + url: '/zm/api/v1/system/ys7DevicesImg/list', method: 'get', params: query }); diff --git a/src/api/project/goUser/index.ts b/src/api/project/goUser/index.ts index 94e219d..74fedd0 100644 --- a/src/api/project/goUser/index.ts +++ b/src/api/project/goUser/index.ts @@ -1,4 +1,4 @@ -import request from '@/utils/request'; +import request from '@/utils/request-go'; // 人员 考勤 补卡 请假接口 对接go 后台 // 获取施工人员列表 export const getBusConstructionUser = (params) => { @@ -8,6 +8,15 @@ export const getBusConstructionUser = (params) => { params }); }; +// 根据项目获取班组列表 +export const getSysProjectTeamList = (params) => { + return request({ + url: '/zm/api/wxApplet/wxApplet/sysProjectTeam/list', + method: 'get', + params + }); +}; + // 获取人员详情 export const getDetails = (id) => { return request({ @@ -26,10 +35,18 @@ export const pcSelectBelowProjectOfPersonnel = (params) => { params }); }; +// 获取考勤列表数据 +export const busAttendancepCList = (params) => { + return request({ + url: '/zm/api/wxApplet/wxApplet/busAttendance/pCList', + method: 'get', + params + }); +}; // 获取考勤图表数据 export const pcCollectDataForTwoWeeks = (params) => { return request({ - url: '/api/v1/system/busConstructionUser/pcCollectDataForTwoWeeks', + url: '/zm/api/v1/system/busConstructionUser/pcCollectDataForTwoWeeks', method: 'get', params }); @@ -49,4 +66,22 @@ export const busAskforleaveList = (params) => { method: 'get', params }); +}; +// 获取字典 +export const getDictData = (dictType) => { + return request({ + url: '/zm/api/v1/system/dict/data/getDictData', + method: 'get', + params: { + dictType: dictType, + defaultValue: '' + } + }); +}; +export const busHseSecurityLogList = (params) => { + return request({ + url: '/zm/api/v1/system/busHseSecurityLog/list', + method: 'get', + params + }); }; \ No newline at end of file diff --git a/src/api/safety/recognizeRecord/index.ts b/src/api/safety/recognizeRecord/index.ts index b197db7..365bae4 100644 --- a/src/api/safety/recognizeRecord/index.ts +++ b/src/api/safety/recognizeRecord/index.ts @@ -1,4 +1,5 @@ import request from '@/utils/request'; +import request1 from '@/utils/request-go'; import { AxiosPromise } from 'axios'; import { RecognizeRecordVO, RecognizeRecordForm, RecognizeRecordQuery } from '@/api/safety/recognizeRecord/types'; @@ -9,8 +10,8 @@ import { RecognizeRecordVO, RecognizeRecordForm, RecognizeRecordQuery } from '@/ */ export const listRecognizeRecord = (query?: RecognizeRecordQuery): AxiosPromise => { - return request({ - url: '/safety/recognizeRecord/list', + return request1({ + url: '/zm/api/v1/system/busTour/list', method: 'get', params: query }); diff --git a/src/api/safety/safetyInspection/index.ts b/src/api/safety/safetyInspection/index.ts index cd9076c..00b4594 100644 --- a/src/api/safety/safetyInspection/index.ts +++ b/src/api/safety/safetyInspection/index.ts @@ -1,4 +1,5 @@ import request from '@/utils/request'; +import request1 from '@/utils/request-go'; import { AxiosPromise } from 'axios'; import { SafetyInspectionForm, SafetyInspectionQuery, SafetyInspectionVO } from '@/api/safety/safetyInspection/types'; @@ -9,8 +10,8 @@ import { SafetyInspectionForm, SafetyInspectionQuery, SafetyInspectionVO } from */ export const listSafetyInspection = (query?: SafetyInspectionQuery): AxiosPromise => { - return request({ - url: '/safety/safetyInspection/list', + return request1({ + url: '/zm/api/v1/system/busHseManagement/list', method: 'get', params: query }); @@ -20,10 +21,11 @@ export const listSafetyInspection = (query?: SafetyInspectionQuery): AxiosPromis * 查询安全巡检工单详细 * @param id */ -export const getSafetyInspection = (id: string | number): AxiosPromise => { - return request({ - url: '/safety/safetyInspection/' + id, - method: 'get' +export const getSafetyInspection = (query): AxiosPromise => { + return request1({ + url: '/zm/api/v1/system/busHseManagement/get', + method: 'get', + params: query }); }; diff --git a/src/api/safety/teamMeeting/index.ts b/src/api/safety/teamMeeting/index.ts index 073414c..ce48e13 100644 --- a/src/api/safety/teamMeeting/index.ts +++ b/src/api/safety/teamMeeting/index.ts @@ -1,4 +1,5 @@ import request from '@/utils/request'; +import request1 from '@/utils/request-go'; import { AxiosPromise } from 'axios'; import { TeamMeetingForm, TeamMeetingQuery, TeamMeetingVO } from '@/api/safety/teamMeeting/types'; @@ -9,8 +10,8 @@ import { TeamMeetingForm, TeamMeetingQuery, TeamMeetingVO } from '@/api/safety/t */ export const listTeamMeeting = (query?: TeamMeetingQuery): AxiosPromise => { - return request({ - url: '/safety/teamMeeting/list', + return request1({ + url: '/zm/api/wxApplet/wxApplet/sysProjectTeamSquad/list', method: 'get', params: query }); @@ -20,10 +21,11 @@ export const listTeamMeeting = (query?: TeamMeetingQuery): AxiosPromise => { - return request({ - url: '/safety/teamMeeting/' + id, - method: 'get' +export const getTeamMeeting = (query): AxiosPromise => { + return request1({ + url: '/zm/api/wxApplet/wxApplet/sysProjectTeamSquad/get', + method: 'get', + params: query }); }; diff --git a/src/api/safety/violationLevel/index.ts b/src/api/safety/violationLevel/index.ts index 1085314..e077172 100644 --- a/src/api/safety/violationLevel/index.ts +++ b/src/api/safety/violationLevel/index.ts @@ -1,3 +1,4 @@ +import request1 from '@/utils/request-go'; import request from '@/utils/request'; import { AxiosPromise } from 'axios'; import { ViolationLevelVO, ViolationLevelForm, ViolationLevelQuery } from '@/api/safety/violationLevel/types'; @@ -9,8 +10,8 @@ import { ViolationLevelVO, ViolationLevelForm, ViolationLevelQuery } from '@/api */ export const listViolationLevel = (query?: ViolationLevelQuery): AxiosPromise => { - return request({ - url: '/safety/violationLevel/list', + return request1({ + url: '/zm/api/v1/system/busViolationLevel/list', method: 'get', params: query }); diff --git a/src/api/safety/violationRecord/index.ts b/src/api/safety/violationRecord/index.ts index 050bec4..79cb7b7 100644 --- a/src/api/safety/violationRecord/index.ts +++ b/src/api/safety/violationRecord/index.ts @@ -1,4 +1,5 @@ import request from '@/utils/request'; +import request1 from '@/utils/request-go'; import { AxiosPromise } from 'axios'; import { ViolationRecordVO, ViolationRecordForm, ViolationRecordQuery } from '@/api/safety/violationRecord/types'; @@ -9,8 +10,8 @@ import { ViolationRecordVO, ViolationRecordForm, ViolationRecordQuery } from '@/ */ export const listViolationRecord = (query?: ViolationRecordQuery): AxiosPromise => { - return request({ - url: '/safety/violationRecord/list', + return request1({ + url: '/zm/api/v1/system/busViolationRecord/list', method: 'get', params: query }); @@ -20,10 +21,11 @@ export const listViolationRecord = (query?: ViolationRecordQuery): AxiosPromise< * 查询违规记录详细 * @param id */ -export const getViolationRecord = (id: string | number): AxiosPromise => { - return request({ - url: '/safety/violationRecord/' + id, - method: 'get' +export const getViolationRecord = (query): AxiosPromise => { + return request1({ + url: '/zm/api/v1/system/busViolationRecord/get', + method: 'get', + params: query }); }; diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts index 4198eae..d3212bb 100644 --- a/src/store/modules/user.ts +++ b/src/store/modules/user.ts @@ -88,7 +88,8 @@ export const useUserStore = defineStore('user', () => { if (projectRes?.data) { const projectList = projectRes.data.map((p) => ({ id: p.projectId, - name: p.projectName || '未知项目' + name: p.projectName || '未知项目', + goId: p.goId })); setProjects(projectList); diff --git a/src/views/other/ys7DeviceImg/index.vue b/src/views/other/ys7DeviceImg/index.vue index 3c4c292..915433c 100644 --- a/src/views/other/ys7DeviceImg/index.vue +++ b/src/views/other/ys7DeviceImg/index.vue @@ -4,12 +4,12 @@
- - - - - + + + 搜索 重置 @@ -18,36 +18,23 @@
- - - - + + - - - - + - @@ -106,8 +93,8 @@ const { queryParams, form, rules } = toRefs(data); const getList = async () => { loading.value = true; const res = await listYs7DeviceImg(queryParams.value); - ys7DeviceImgList.value = res.rows; - total.value = res.total; + ys7DeviceImgList.value = res.data.list; + total.value = res.data.total; loading.value = false; }; diff --git a/src/views/project/attendance/index.vue b/src/views/project/attendance/index.vue index 0ec9ca8..dfea087 100644 --- a/src/views/project/attendance/index.vue +++ b/src/views/project/attendance/index.vue @@ -4,12 +4,13 @@
- - + + - - + + + @@ -27,7 +28,6 @@ @change="selectDate" /> - 搜索 重置 @@ -39,10 +39,6 @@ -
@@ -51,109 +47,28 @@ - - - - - + + - - - - - + + + + + - - @@ -188,40 +103,28 @@ diff --git a/src/views/project/leave/index.vue b/src/views/project/leave/index.vue index 25e0eb8..76189da 100644 --- a/src/views/project/leave/index.vue +++ b/src/views/project/leave/index.vue @@ -4,27 +4,13 @@
- - + + - - - - - - - - - - - - - + + + @@ -37,38 +23,12 @@ - - - + - diff --git a/src/views/project/projectUser/component/ConstructionUserDetail.vue b/src/views/project/projectUser/component/ConstructionUserDetail.vue index 73907f6..5f413ef 100644 --- a/src/views/project/projectUser/component/ConstructionUserDetail.vue +++ b/src/views/project/projectUser/component/ConstructionUserDetail.vue @@ -137,9 +137,9 @@ diff --git a/src/views/project/reissueCard/index.vue b/src/views/project/reissueCard/index.vue index 1a5488c..6a32d02 100644 --- a/src/views/project/reissueCard/index.vue +++ b/src/views/project/reissueCard/index.vue @@ -4,30 +4,15 @@
- - - - - - - + + - - + + + - - - - - - - - - - - 搜索 重置 @@ -38,75 +23,39 @@ - + - + - - - - - - -
- - - 同意 - 拒绝 - - - - - -
- - -
补卡申请 @@ -173,15 +122,13 @@ diff --git a/src/views/safety/recognizeRecord/index.vue b/src/views/safety/recognizeRecord/index.vue index 869e995..150187a 100644 --- a/src/views/safety/recognizeRecord/index.vue +++ b/src/views/safety/recognizeRecord/index.vue @@ -4,22 +4,19 @@
- - + + - - - + + + - - - - - - + 搜索 重置 @@ -32,16 +29,15 @@ - - + - + @@ -49,60 +45,11 @@ - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -110,6 +57,7 @@ import { listRecognizeRecord, getRecognizeRecord, delRecognizeRecord, addRecognizeRecord, updateRecognizeRecord } from '@/api/safety/recognizeRecord'; import { RecognizeRecordVO, RecognizeRecordQuery, RecognizeRecordForm } from '@/api/safety/recognizeRecord/types'; import { useUserStoreHook } from '@/store/modules/user'; +import { getDictData } from '@/api/project/goUser/index'; const { proxy } = getCurrentInstance() as ComponentInternalInstance; const { violation_level_type } = toRefs(proxy?.useDict('violation_level_type')); @@ -132,7 +80,7 @@ const recognizeRecordFormRef = ref(); const userStore = useUserStoreHook(); // 从 store 中获取项目列表和当前选中的项目 const currentProject = computed(() => userStore.selectedProject); - +const safety_inspection_violation_type = ref([]); // 违章类型 const dialog = reactive({ visible: false, title: '' @@ -140,7 +88,7 @@ const dialog = reactive({ const initFormData: RecognizeRecordForm = { id: undefined, - projectId: undefined, + projectId: currentProject.value.goId, deviceSerial: undefined, deviceName: undefined, recordCategory: undefined, @@ -155,7 +103,7 @@ const data = reactive>({ queryParams: { pageNum: 1, pageSize: 10, - projectId: undefined, + projectId: currentProject.value.goId, deviceName: undefined, recordCategory: undefined, violationType: undefined, @@ -174,11 +122,15 @@ const { queryParams, form, rules } = toRefs(data); const getList = async () => { loading.value = true; const res = await listRecognizeRecord(queryParams.value); - recognizeRecordList.value = res.rows; - total.value = res.total; + recognizeRecordList.value = res.data.list; + total.value = res.data.total; loading.value = false; }; - +// 获取字典 +const getDictDataList = async () => { + const res1 = await getDictData('tour_type'); + safety_inspection_violation_type.value = res1.data.values; +}; /** 取消按钮 */ const cancel = () => { reset(); @@ -243,7 +195,17 @@ const submitForm = () => { } }); }; - +const filterRiskTourType = (val: any) => { + let label = ''; + if (val) { + safety_inspection_violation_type.value.forEach((item: any) => { + if (val == item.key) { + label = item.value; + } + }); + } + return label; +}; /** 删除按钮操作 */ const handleDelete = async (row?: RecognizeRecordVO) => { const _ids = row?.id || ids.value; @@ -265,14 +227,16 @@ const handleExport = () => { }; onMounted(() => { + getDictDataList(); getList(); }); //监听项目id刷新数据 const listeningProject = watch( - () => currentProject.value.id, + () => currentProject.value.goId, (nid, oid) => { queryParams.value.projectId = nid; + getDictDataList(); getList(); } ); diff --git a/src/views/safety/safetyInspection/component/SafetyInspectionDetailDialog.vue b/src/views/safety/safetyInspection/component/SafetyInspectionDetailDialog.vue index b3b7eb1..39d70bd 100644 --- a/src/views/safety/safetyInspection/component/SafetyInspectionDetailDialog.vue +++ b/src/views/safety/safetyInspection/component/SafetyInspectionDetailDialog.vue @@ -5,8 +5,8 @@

安全生产监督检查通知书

- 填报人:{{ safetyInspectionDetail?.creatorName }} - 填报时间:{{ safetyInspectionDetail?.createTime }} + 填报人:{{ safetyInspectionDetail?.fill }} + 填报时间:{{ safetyInspectionDetail?.createdAt }} {{ currentProject?.name }} @@ -19,7 +19,7 @@ {{ safetyInspectionDetail?.checkTime }} {{ safetyInspectionDetail?.creatorName }} {{ safetyInspectionDetail?.correctorName }} + >{{ safetyInspectionDetail?.abarbeitung }} {{ dayjs(safetyInspectionDetail?.rectificationDeadline).format('YYYY 年 MM 月 DD 日') }} @@ -67,9 +67,9 @@ -
- - +
+ + @@ -84,9 +84,7 @@ - {{ safetyInspectionDetail?.creatorName }} - + {{ safetyInspectionDetail?.fill }} {{ safetyInspectionDetail?.reviewTime }} @@ -103,10 +101,10 @@ 导出
-
+
@@ -132,7 +130,7 @@ const userStore = useUserStoreHook(); const currentProject = computed(() => userStore.selectedProject); const props = defineProps(); const loading = ref(false); -const safetyInspectionDetail = ref(); +const safetyInspectionDetail = ref({ checkAttachment: [] }); const checkFileList = ref(); const rectificationFileList = ref(); //检查状态图片 @@ -148,17 +146,9 @@ const inspectionType = computed(() => { const get = async () => { loading.value = true; - const res = await getSafetyInspection(props.safetyInspectionId); - if (res.data && res.code === 200) { + const res = await getSafetyInspection({ id: props.safetyInspectionId }); + if (res.data && res.code === 0) { safetyInspectionDetail.value = res.data; - if (res.data.checkFile) { - const checkFileRes = await listByIds(res.data.checkFile.split(',')); - checkFileList.value = checkFileRes.data; - } - if (res.data.rectificationFile) { - const rectificationFileRes = await listByIds(res.data.rectificationFile.split(',')); - rectificationFileList.value = rectificationFileRes.data; - } } loading.value = false; }; diff --git a/src/views/safety/safetyInspection/index.vue b/src/views/safety/safetyInspection/index.vue index aa60eae..80419d6 100644 --- a/src/views/safety/safetyInspection/index.vue +++ b/src/views/safety/safetyInspection/index.vue @@ -4,19 +4,14 @@
- - - + + + - - - - - - + @@ -29,45 +24,32 @@ - - - + - - - - + + @@ -82,28 +64,22 @@ - + - - @@ -177,11 +153,10 @@ import { useUserStoreHook } from '@/store/modules/user'; import SafetyInspectionDetailDialog from '@/views/safety/safetyInspection/component/SafetyInspectionDetailDialog.vue'; import { listProjectTeamForeman } from '@/api/project/projectTeam'; import { foremanQuery, ProjectTeamForemanResp } from '@/api/project/projectTeam/types'; +import { getDictData } from '@/api/project/goUser/index'; const { proxy } = getCurrentInstance() as ComponentInternalInstance; -const { safety_inspection_violation_type, review_type, safety_inspection_type, safety_inspection_check_type } = toRefs( - proxy?.useDict('safety_inspection_violation_type', 'review_type', 'safety_inspection_type', 'safety_inspection_check_type') -); +const { review_type } = toRefs(proxy?.useDict('review_type', 'safety_inspection_type')); // 获取用户 store const userStore = useUserStoreHook(); // 从 store 中获取项目列表和当前选中的项目 @@ -194,7 +169,8 @@ const ids = ref>([]); const single = ref(true); const multiple = ref(true); const total = ref(0); - +const safety_inspection_check_type = ref([]); // 检查类型 +const safety_inspection_violation_type = ref([]); // 违章类型 const queryFormRef = ref(); const safetyInspectionFormRef = ref(); @@ -206,7 +182,7 @@ const dialog = reactive({ const initFormData: SafetyInspectionForm = { id: undefined, pid: undefined, - projectId: currentProject.value.id, + projectId: currentProject.value.goId, checkType: undefined, violationType: undefined, inspectionResult: undefined, @@ -234,7 +210,7 @@ const data = reactive>({ pageSize: 10, id: undefined, pid: undefined, - projectId: currentProject.value.id, + projectId: currentProject.value.goId, checkType: undefined, violationType: undefined, inspectionResult: undefined, @@ -270,8 +246,8 @@ const teamList = ref(); const getList = async () => { loading.value = true; const res = await listSafetyInspection(queryParams.value); - safetyInspectionList.value = res.rows; - total.value = res.total; + safetyInspectionList.value = res.data.list; + total.value = res.data.total; // 获取项目班组信息 const teamRes = await listProjectTeamForeman(currentProject.value.id); teamList.value = teamRes.data; @@ -282,7 +258,13 @@ const getList = async () => { loading.value = false; }; - +// 获取字典 +const getDictDataList = async () => { + const res = await getDictData('study_type'); + safety_inspection_check_type.value = res.data.values; + const res1 = await getDictData('tour_type'); + safety_inspection_violation_type.value = res1.data.values; +}; const changeForeman = (value: string | number) => { const team = teamList.value.filter((team) => team.id === value)[0]; foremanOpt.value = team.foremanList?.map((foreman: foremanQuery) => ({ @@ -297,7 +279,6 @@ const currentSafetyInspectionId = ref(); const showDetailDialog = ref(false); const handleShowDialog = (row?: SafetyInspectionVO) => { currentSafetyInspectionId.value = row.id; - showDetailDialog.value = true; }; @@ -331,24 +312,6 @@ const handleSelectionChange = (selection: SafetyInspectionVO[]) => { single.value = selection.length != 1; multiple.value = !selection.length; }; - -/** 新增按钮操作 */ -const handleAdd = () => { - reset(); - dialog.visible = true; - dialog.title = '添加安全巡检工单'; -}; - -/** 修改按钮操作 */ -const handleUpdate = async (row?: SafetyInspectionVO) => { - reset(); - const _id = row?.id || ids.value[0]; - const res = await getSafetyInspection(_id); - Object.assign(form.value, res.data); - dialog.visible = true; - dialog.title = '修改安全巡检工单'; -}; - /** 提交按钮 */ const submitForm = () => { safetyInspectionFormRef.value?.validate(async (valid: boolean) => { @@ -367,29 +330,27 @@ const submitForm = () => { }); }; -/** 删除按钮操作 */ -const handleDelete = async (row?: SafetyInspectionVO) => { - const _ids = row?.id || ids.value; - await proxy?.$modal.confirm('是否确认删除安全巡检工单编号为"' + _ids + '"的数据项?').finally(() => (loading.value = false)); - await delSafetyInspection(_ids); - proxy?.$modal.msgSuccess('删除成功'); - await getList(); +const filterType = (studyType) => { + let label = ''; + safety_inspection_check_type.value.map((item) => { + if (item.key == studyType) { + label = item.value; + } + }); + return label; }; - -/** 导出按钮操作 */ -const handleExport = () => { - proxy?.download( - 'safety/safetyInspection/export', - { - ...queryParams.value - }, - `safetyInspection_${new Date().getTime()}.xlsx` - ); +const filterTypeS = (violationType) => { + let label = ''; + safety_inspection_violation_type.value.map((item) => { + if (item.key == violationType) { + label = item.value; + } + }); + return label; }; - //监听项目id刷新数据 const listeningProject = watch( - () => currentProject.value.id, + () => currentProject.value.goId, (nid, oid) => { queryParams.value.projectId = nid; form.value.projectId = nid; @@ -402,6 +363,7 @@ onUnmounted(() => { }); onMounted(() => { + getDictDataList(); getList(); }); diff --git a/src/views/safety/safetyLog/index.vue b/src/views/safety/safetyLog/index.vue index dfe7b42..b03b30b 100644 --- a/src/views/safety/safetyLog/index.vue +++ b/src/views/safety/safetyLog/index.vue @@ -4,11 +4,8 @@
- - - - - + + 搜索 @@ -22,21 +19,9 @@ - @@ -138,6 +123,7 @@ import { addSafetyLog, delSafetyLog, getSafetyLog, listSafetyLog, updateSafetyLo import { SafetyLogForm, SafetyLogQuery, SafetyLogVO } from '@/api/safety/safetyLog/types'; import { useUserStoreHook } from '@/store/modules/user'; import { dayjs } from 'element-plus'; +import { busHseSecurityLogList } from '@/api/project/goUser/index'; import SafetyLogDetailDialog from '@/views/safety/safetyLog/component/SafetyLogDetailDialog.vue'; @@ -165,7 +151,7 @@ const dialog = reactive({ const initFormData: SafetyLogForm = { id: undefined, - projectId: currentProject.value.id, + projectId: currentProject.value.goId, dateOfOccurrence: undefined, airTemperatureMax: undefined, airTemperatureMin: undefined, @@ -188,7 +174,7 @@ const data = reactive>({ queryParams: { pageNum: 1, pageSize: 10, - projectId: currentProject.value.id, + projectId: currentProject.value.goId, dateOfOccurrence: undefined, airTemperatureMax: undefined, airTemperatureMin: undefined, @@ -217,9 +203,9 @@ const { queryParams, form, rules } = toRefs(data); /** 查询安全日志列表 */ const getList = async () => { loading.value = true; - const res = await listSafetyLog(queryParams.value); - safetyLogList.value = res.rows; - total.value = res.total; + const res = await busHseSecurityLogList(queryParams.value); + safetyLogList.value = res.data.list; + total.value = res.data.total; loading.value = false; }; @@ -261,24 +247,6 @@ const handleShowDialog = (row?: SafetyLogVO) => { currentSafetyLogId.value = row.id; showDetailDialog.value = true; }; - -/** 新增按钮操作 */ -const handleAdd = () => { - reset(); - dialog.visible = true; - dialog.title = '添加安全日志'; -}; - -/** 修改按钮操作 */ -const handleUpdate = async (row?: SafetyLogVO) => { - reset(); - const _id = row?.id || ids.value[0]; - const res = await getSafetyLog(_id); - Object.assign(form.value, res.data); - dialog.visible = true; - dialog.title = '修改安全日志'; -}; - /** 提交按钮 */ const submitForm = () => { safetyLogFormRef.value?.validate(async (valid: boolean) => { @@ -306,20 +274,9 @@ const handleDelete = async (row?: SafetyLogVO) => { await getList(); }; -/** 导出按钮操作 */ -const handleExport = () => { - proxy?.download( - 'safety/safetyLog/export', - { - ...queryParams.value - }, - `safetyLog_${new Date().getTime()}.xlsx` - ); -}; - //监听项目id刷新数据 const listeningProject = watch( - () => currentProject.value.id, + () => currentProject.value.goId, (nid, oid) => { queryParams.value.projectId = nid; form.value.projectId = nid; diff --git a/src/views/safety/teamMeeting/component/TeamMeetingDetailDrawer.vue b/src/views/safety/teamMeeting/component/TeamMeetingDetailDrawer.vue index 1146bba..79fb82f 100644 --- a/src/views/safety/teamMeeting/component/TeamMeetingDetailDrawer.vue +++ b/src/views/safety/teamMeeting/component/TeamMeetingDetailDrawer.vue @@ -3,12 +3,12 @@ {{ teamMeetingDetail?.compereName }} - {{ item.name }}, + {{ item }}, {{ teamMeetingDetail?.teamName }} - {{ teamMeetingDetail?.contractorName }} + {{ teamMeetingDetail?.labourserviceName }} {{ dayjs(teamMeetingDetail?.meetingDate).format('YYYY 年 MM 月 DD 日') }} - {{ teamMeetingDetail?.createTime }} + {{ teamMeetingDetail?.createdAt }} {{ teamMeetingDetail?.content }} @@ -35,8 +35,8 @@ const loading = ref(false); const teamMeetingDetail = ref(); const get = async () => { loading.value = true; - const res = await getTeamMeeting(props.teamMeetingId); - if (res.data && res.code === 200) { + const res = await getTeamMeeting({ id: props.teamMeetingId }); + if (res.data && res.code === 0) { teamMeetingDetail.value = res.data; } loading.value = false; diff --git a/src/views/safety/teamMeeting/index.vue b/src/views/safety/teamMeeting/index.vue index b1a3768..c2f7007 100644 --- a/src/views/safety/teamMeeting/index.vue +++ b/src/views/safety/teamMeeting/index.vue @@ -19,17 +19,6 @@ @@ -38,11 +27,11 @@ - + @@ -50,27 +39,17 @@ {{ parseTime(scope.row.meetingDate, '{y}-{m}-{d}') }} - - - - + - @@ -103,8 +82,6 @@