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