feat:数据清洗
This commit is contained in:
1 parent
f3b774e71a
commit
db5d661787
1 file changed
+42
-1
@@ -1,6 +1,26 @@
|
||||
<template>
|
||||
<el-form ref="dataFormRef" :model="form" :rules="dataRules" formDialogRef label-width="180px"
|
||||
v-loading="state.loading">
|
||||
<!-- **************************** start 出入人闸配置 start **************************** -->
|
||||
<el-divider class="my-12">出入人闸配置</el-divider>
|
||||
<el-form-item prop="cameraLocation.personEnterChannels">
|
||||
<template #label>
|
||||
<div class="flex items-center gap-1">
|
||||
<span>入口人闸摄像头配置</span>
|
||||
</div>
|
||||
</template>
|
||||
<select-tree-channel v-model="form.cameraLocation.personEnterChannels" placeholder="请选择入口人闸摄像头配置" />
|
||||
</el-form-item>
|
||||
<el-form-item prop="cameraLocation.personExitChannels">
|
||||
<template #label>
|
||||
<div class="flex items-center gap-1">
|
||||
<span>出口人闸摄像头配置</span>
|
||||
</div>
|
||||
</template>
|
||||
<select-tree-channel v-model="form.cameraLocation.personExitChannels" placeholder="请选择出口人闸摄像头配置" />
|
||||
</el-form-item>
|
||||
<!-- **************************** end 出入人闸配置 end **************************** -->
|
||||
|
||||
<!-- **************************** start 夜晚出入营区 start **************************** -->
|
||||
<el-divider class="my-12">夜晚出入营区</el-divider>
|
||||
<el-form-item prop="personNightCamp.alarmTime">
|
||||
@@ -67,11 +87,19 @@
|
||||
<el-form-item prop="personDk.cameraChannels">
|
||||
<template #label>
|
||||
<div class="flex items-center gap-1">
|
||||
<span>摄像头</span>
|
||||
<span>门口人闸摄像头</span>
|
||||
</div>
|
||||
</template>
|
||||
<select-tree-channel v-model="form.personDk.cameraChannels" placeholder="请选择摄像头" />
|
||||
</el-form-item>
|
||||
<el-form-item prop="personDk.mainFloorCameraChannels">
|
||||
<template #label>
|
||||
<div class="flex items-center gap-1">
|
||||
<span>主楼摄像头</span>
|
||||
</div>
|
||||
</template>
|
||||
<select-tree-channel v-model="form.personDk.mainFloorCameraChannels" placeholder="请选择摄像头" />
|
||||
</el-form-item>
|
||||
<el-form-item prop="personDk.deptCodes">
|
||||
<template #label>
|
||||
<div class="flex items-center gap-1">
|
||||
@@ -135,6 +163,13 @@ const state = reactive<any>({
|
||||
|
||||
// 提交表单数据
|
||||
const form = reactive<any>({
|
||||
// 出入口摄像头配置
|
||||
cameraLocation: {
|
||||
// 人闸入口摄像头配置
|
||||
personEnterChannels: [],
|
||||
// 人闸出口摄像头配置
|
||||
personExitChannels: [],
|
||||
},
|
||||
// 人员晚上出入营区
|
||||
personNightCamp: {
|
||||
alarmTime: [],
|
||||
@@ -182,6 +217,12 @@ async function getSetting() {
|
||||
state.loading = true
|
||||
try {
|
||||
const { data } = await ComDhSettingApi.getObj()
|
||||
if (!data.cameraLocation) {
|
||||
data.cameraLocation = {
|
||||
personEnterChannels: [],
|
||||
personExitChannels: [],
|
||||
}
|
||||
}
|
||||
if (!data.personNightCamp) {
|
||||
data.personNightCamp = {
|
||||
alarmTime: [],
|
||||
|
||||
Reference in new issue
Block a user