Loading src/views/logControl/index.vue +13 −2 Original line number Original line Diff line number Diff line Loading @@ -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> Loading Loading @@ -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( Loading @@ -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([]); Loading Loading @@ -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() } } Loading @@ -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; Loading Loading @@ -528,6 +538,7 @@ function handleExport() { `job_${new Date().getTime()}.xlsx` `job_${new Date().getTime()}.xlsx` ); ); } } getDeviceList() getAlgList() getAlgList() getAllList(); getAllList(); </script> </script> Loading Loading
src/views/logControl/index.vue +13 −2 Original line number Original line Diff line number Diff line Loading @@ -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> Loading Loading @@ -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( Loading @@ -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([]); Loading Loading @@ -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() } } Loading @@ -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; Loading Loading @@ -528,6 +538,7 @@ function handleExport() { `job_${new Date().getTime()}.xlsx` `job_${new Date().getTime()}.xlsx` ); ); } } getDeviceList() getAlgList() getAlgList() getAllList(); getAllList(); </script> </script> Loading