flx:优化

This commit is contained in:
Rain_ 2025-12-02 18:53:55 +08:00
parent 68ed7ec725
commit e3be0dbc36

View File

@ -707,6 +707,7 @@ const equipmentDetail = ref({});
// //
const onEquipmentClick = row => { const onEquipmentClick = row => {
equipmentDetail.value = row; equipmentDetail.value = row;
getWorkTicketQueryById(equipmentDetail.value.workTicketId);
equipmentDialog.value = true; equipmentDialog.value = true;
}; };
@ -750,7 +751,7 @@ const timeInterval = ref(null);
const onViewDetail = (row, flag) => { const onViewDetail = (row, flag) => {
if (row.id == workTicketDetail.value.id && flag != true) return; if (row.id == workTicketDetail.value.id && flag != true) return;
workTicketDetail.value = row; workTicketDetail.value = row;
getWorkTicketQueryById(); getWorkTicketQueryById(workTicketDetail.value.id);
getWorkTicketHistoryList(); getWorkTicketHistoryList();
initPoliceCameraItemList(); initPoliceCameraItemList();
if (timeInterval.value) { if (timeInterval.value) {
@ -761,9 +762,9 @@ const onViewDetail = (row, flag) => {
}, 1000 * 60 * 30); }, 1000 * 60 * 30);
}; };
// id // id
const getWorkTicketQueryById = () => { const getWorkTicketQueryById = (id) => {
getWorkTicketQueryByIdApi({ getWorkTicketQueryByIdApi({
id: workTicketDetail.value.id, id: id,
projectSn: store.sn projectSn: store.sn
}).then(res => { }).then(res => {
if (res.code == 200) { if (res.code == 200) {