Commit 884b6aa1 authored by 胡占生's avatar 胡占生 🇨🇳

fix: 日志管理 修复查询问题

parent cff090da
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
</el-form-item> </el-form-item>
<el-form-item label="摄像头" prop="deptName"> <el-form-item label="摄像头" prop="deptName">
<el-select v-model="queryParams.deptName" placeholder="请选择摄像头" clearable style="width: 200px"> <el-select v-model="queryParams.deptName" placeholder="请选择摄像头" clearable style="width: 200px">
<el-option v-for="dict in sys_job_status" :key="dict.value" :label="dict.label" :value="dict.value" /> <el-option v-for="dict in deviceList" :key="dict.deviceNo" :label="dict.deviceName" :value="dict.deviceNo" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
...@@ -252,6 +252,7 @@ import { list as OpList } from "@/api/monitor/operlog"; ...@@ -252,6 +252,7 @@ import { list as OpList } from "@/api/monitor/operlog";
import { list as LoList} from "@/api/monitor/logininfor"; import { list as LoList} from "@/api/monitor/logininfor";
import { get } from "@vueuse/core"; import { get } from "@vueuse/core";
import { listAlg } from "@/api/algorithmList/index.js"; import { listAlg } from "@/api/algorithmList/index.js";
import { listDevice } from "@/api/yunshou/device";
const router = useRouter(); const router = useRouter();
const { proxy } = getCurrentInstance(); const { proxy } = getCurrentInstance();
const { sys_job_group, sys_job_status,sys_oper_type, sys_common_status } = proxy.useDict( const { sys_job_group, sys_job_status,sys_oper_type, sys_common_status } = proxy.useDict(
...@@ -264,6 +265,7 @@ const nowText = ref("日志管理"); ...@@ -264,6 +265,7 @@ const nowText = ref("日志管理");
const activeName = ref("摄像头日志"); const activeName = ref("摄像头日志");
const AlgLogList = ref([]); const AlgLogList = ref([]);
const algList = ref([]); const algList = ref([]);
const deviceList = ref([]);
const CameraLogList = ref([]); const CameraLogList = ref([]);
const OperateLogList = ref([]); const OperateLogList = ref([]);
const logininforList = ref([]); const logininforList = ref([]);
...@@ -305,7 +307,7 @@ const { queryParams, form, rules } = toRefs(data); ...@@ -305,7 +307,7 @@ const { queryParams, form, rules } = toRefs(data);
function handleClick(val) { function handleClick(val) {
activeName.value=val.props.name activeName.value=val.props.name
dateRange.value = []; dateRange.value = [];
queryParams.value={} queryParams.value={pageNum: 1,pageSize: 10}
getAllList() getAllList()
} }
...@@ -324,6 +326,14 @@ function getAlgList() { ...@@ -324,6 +326,14 @@ function getAlgList() {
} }
); );
} }
/** 查询摄像头列表 */
function getDeviceList() {
listDevice({pageNum: 1,pageSize: 100}).then(
(response) => {
deviceList.value = response.rows;
}
);
}
/** 查询算法日志列表 */ /** 查询算法日志列表 */
function getAlgLogList() { function getAlgLogList() {
loading.value = true; loading.value = true;
...@@ -528,6 +538,7 @@ function handleExport() { ...@@ -528,6 +538,7 @@ function handleExport() {
`job_${new Date().getTime()}.xlsx` `job_${new Date().getTime()}.xlsx`
); );
} }
getDeviceList()
getAlgList() getAlgList()
getAllList(); getAllList();
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment