视频巡检详情页面
This commit is contained in:
@@ -161,6 +161,9 @@ import { listInspection } from "@/api/video/inspection";
|
||||
const { proxy } = getCurrentInstance();
|
||||
const { ins_record_status } = proxy.useDict('ins_record_status');
|
||||
|
||||
const route = useRoute();
|
||||
const taskId = route.query.taskId;
|
||||
|
||||
const inspectionList = ref([]);
|
||||
const inspectionRecordList = ref([]);
|
||||
const open = ref(false);
|
||||
@@ -177,7 +180,7 @@ const data = reactive({
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 20,
|
||||
taskId: null,
|
||||
taskId: taskId ? parseInt(taskId) : null,
|
||||
executeTime: null,
|
||||
duration: null,
|
||||
accessory: null,
|
||||
@@ -188,6 +191,13 @@ const data = reactive({
|
||||
}
|
||||
});
|
||||
|
||||
watch(() => taskId, (newVal) => {
|
||||
if (newVal) {
|
||||
queryParams.value.taskId = parseInt(newVal);
|
||||
getList();
|
||||
}
|
||||
});
|
||||
|
||||
const { queryParams, form, rules } = toRefs(data);
|
||||
|
||||
/** 查询巡检任务记录列表 */
|
||||
|
||||
Reference in New Issue
Block a user