厨房设置

This commit is contained in:
zzyuan 2025-06-16 18:16:22 +08:00
parent 1e3ae9ed5e
commit c2026418a9
2 changed files with 468 additions and 65 deletions

View File

@ -0,0 +1,39 @@
import request from '@/utils/request'
// ---------- 基础参数设置 ------------------
// 查询基础参数列表
export function getSettingListApi(data) {
return request({
url: '/smart-canteen/basic_setting/list',
method: 'get',
headers: {
"merchant-id":"378915229716713472",
},
params: data
})
}
// 编辑基础参数
export function batchEditSettingApi(data) {
return request({
url: '/smart-canteen/basic_setting/batchEdit',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
// 编辑基础参数
export function batchResetSettingApi(data) {
return request({
url: '/smart-canteen/basic_setting/batchToDefault',
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}

View File

@ -8,7 +8,7 @@
<div>
<span class="item-label">健康证临期提醒设置:</span>
<el-input
v-model="indexTitle" style="width: 200px;margin-left: 50px;"
v-model="staff_health_cert_left_day_reminder" style="width: 200px;margin-left: 50px;"
auto-complete="off" placeholder="30" maxlength="9"
></el-input>
<span class="item-unit"></span>
@ -17,8 +17,8 @@
</div>
</div>
<div style="width: 100%;display: flex;padding-left: 40px;">
<el-button type="primary" @click="">保存</el-button>
<el-button type="info" @click="">恢复默认</el-button>
<el-button type="primary" @click="save1">保存</el-button>
<el-button type="info" @click="reset1">恢复默认</el-button>
</div>
</div>
<div style="width: 100%;margin: 10px auto;border: 1px solid #ccc;padding: 10px;border-radius: 10px;">
@ -28,7 +28,7 @@
<div>
<span class="item-label">晨检视频存储时长设置:</span>
<el-input
v-model="indexTitle" style="width: 200px;margin-left: 50px;"
v-model="staff_morning_check_video_save_day" style="width: 200px;margin-left: 50px;"
auto-complete="off" maxlength="9" placeholder="30"
></el-input>
<span class="item-unit"></span>
@ -41,7 +41,7 @@
<div>
<span class="item-label">人员违规环境报警记录保存时长:</span>
<el-input
v-model="indexTitle" style="width: 200px;margin-left: 50px;"
v-model="staff_illegal_warning_record_save_day" style="width: 200px;margin-left: 50px;"
auto-complete="off" maxlength="9"
placeholder="365"
></el-input>
@ -51,10 +51,12 @@
</div>
</div>
<div style="width: 100%;display: flex;padding-left: 40px;">
<el-button type="primary" @click="">保存</el-button>
<el-button type="info" @click="">恢复默认</el-button>
<el-button type="primary" @click="save2">保存</el-button>
<el-button type="info" @click="reset2">恢复默认</el-button>
</div>
</div>
</div>
<div style="width: 100%;margin: 10px auto;border: 1px solid #ccc;padding: 10px;border-radius: 10px;">
<div style="font-weight: bold;border-left: 4px solid #1890FF;padding-left: 4px;">环境监控设置</div>
<div class="item">
@ -62,7 +64,7 @@
<div>
<span class="item-label">环境监控统计频率:</span>
<el-input
v-model="indexTitle" style="width: 200px;margin-left: 50px;"
v-model="env_monitor_statis_frequency" style="width: 200px;margin-left: 50px;"
auto-complete="off" maxlength="9"
placeholder="60"
></el-input>
@ -77,7 +79,7 @@
<span class="item-label">温度报警阈值:</span>
<span>高于</span>
<el-input
v-model="indexTitle" style="width: 200px;margin-left: 20px;"
v-model="env_temperature_max_value" style="width: 200px;margin-left: 20px;"
auto-complete="off" maxlength="9"
placeholder="22"
></el-input>
@ -87,7 +89,7 @@
<span class="item-label"></span>
<span>低于</span>
<el-input
v-model="indexTitle" style="width: 200px;margin-left: 20px;"
v-model="env_temperature_min_value" style="width: 200px;margin-left: 20px;"
auto-complete="off" maxlength="9"
placeholder="16"
></el-input>
@ -102,7 +104,7 @@
<span class="item-label">湿度报警阈值:</span>
<span>高于</span>
<el-input
v-model="indexTitle" style="width: 200px;margin-left: 20px;"
v-model="env_humidity_max_value" style="width: 200px;margin-left: 20px;"
auto-complete="off" maxlength="9"
placeholder="75"
></el-input>
@ -112,7 +114,7 @@
<span class="item-label"></span>
<span>低于</span>
<el-input
v-model="indexTitle" style="width: 200px;margin-left: 20px;"
v-model="env_humidity_min_value" style="width: 200px;margin-left: 20px;"
auto-complete="off" maxlength="9"
placeholder="30"
></el-input>
@ -126,7 +128,7 @@
<div>
<span class="item-label">烟雾报警阈值:</span>
<el-input
v-model="indexTitle" style="width: 200px;margin-left: 50px;"
v-model="env_smoke_max_value" style="width: 200px;margin-left: 50px;"
auto-complete="off" maxlength="9"
placeholder="30"
></el-input>
@ -141,7 +143,7 @@
<span class="item-label">留样柜温度报警阈值:</span>
<span>高于</span>
<el-input
v-model="indexTitle" style="width: 200px;margin-left: 20px;"
v-model="env_sample_cabinet_temp_max_value" style="width: 200px;margin-left: 20px;"
auto-complete="off" maxlength="9"
placeholder="6"
></el-input>
@ -151,7 +153,7 @@
<span class="item-label"></span>
<span>低于</span>
<el-input
v-model="indexTitle" style="width: 200px;margin-left: 20px;"
v-model="env_sample_cabinet_temp_min_value" style="width: 200px;margin-left: 20px;"
auto-complete="off" maxlength="9"
placeholder="0"
></el-input>
@ -161,10 +163,11 @@
</div>
</div>
<div style="width: 100%;display: flex;padding-left: 40px;">
<el-button type="primary" @click="">保存</el-button>
<el-button type="info" @click="">恢复默认</el-button>
<el-button type="primary" @click="save3">保存</el-button>
<el-button type="info" @click="reset3">恢复默认</el-button>
</div>
</div>
<div style="width: 100%;margin: 10px auto;border: 1px solid #ccc;padding: 10px;border-radius: 10px;">
<div style="font-weight: bold;border-left: 4px solid #1890FF;padding-left: 4px;">摄像头设置</div>
<div class="item">
@ -172,7 +175,7 @@
<div>
<span class="item-label">实名抓拍:</span>
<el-switch
v-model="ifSubManualReceive"
v-model="camera_real_name_capture"
active-value="1" active-text="开启"
inactive-value="2" inactive-text="关闭">
</el-switch>
@ -185,7 +188,7 @@
<div>
<span class="item-label">人脸识别相似度:</span>
<el-input
v-model="indexTitle" style="width: 200px;margin-left: 50px;"
v-model="camera_face_recognition_similarity" style="width: 200px;margin-left: 50px;"
auto-complete="off" maxlength="9"
placeholder="70"
></el-input>
@ -216,13 +219,13 @@
</div>
<div style="width: 40%;text-align: center;">
<el-time-picker
is-range v-model="timeList" style="width: 100%;"
is-range v-model="timeList1" style="width: 100%;"
range-separator="至" format="HH:mm:ss" value-format="HH:mm:ss"
start-placeholder="00:00:00" end-placeholder="23:59:59"
placeholder="选择时间范围"></el-time-picker>
</div>
<div style="width: 35%;text-align: center;">
<el-input v-model="indexTitle" style="width: 60%;" maxlength="9"
<el-input v-model="camera_capture_without_hat_frequency" style="width: 60%;" maxlength="9"
auto-complete="off" placeholder="60"></el-input><span class="item-unit"></span>
</div>
</div>
@ -232,13 +235,13 @@
</div>
<div style="width: 40%;text-align: center;">
<el-time-picker
is-range v-model="timeList" style="width: 100%;"
is-range v-model="timeList2" style="width: 100%;"
range-separator="至" format="HH:mm:ss" value-format="HH:mm:ss"
start-placeholder="00:00:00" end-placeholder="23:59:59"
placeholder="选择时间范围"></el-time-picker>
</div>
<div style="width: 35%;text-align: center;">
<el-input v-model="indexTitle" style="width: 60%;" maxlength="9"
<el-input v-model="camera_capture_without_mask_frequency" style="width: 60%;" maxlength="9"
auto-complete="off" placeholder="60"></el-input><span class="item-unit"></span>
</div>
</div>
@ -248,13 +251,13 @@
</div>
<div style="width: 40%;text-align: center;">
<el-time-picker
is-range v-model="timeList" style="width: 100%;"
is-range v-model="timeList3" style="width: 100%;"
range-separator="至" format="HH:mm:ss" value-format="HH:mm:ss"
start-placeholder="00:00:00" end-placeholder="23:59:59"
placeholder="选择时间范围"></el-time-picker>
</div>
<div style="width: 35%;text-align: center;">
<el-input v-model="indexTitle" style="width: 60%;" maxlength="9"
<el-input v-model="camera_capture_without_uniform_frequency" style="width: 60%;" maxlength="9"
auto-complete="off" placeholder="60"></el-input><span class="item-unit"></span>
</div>
</div>
@ -264,13 +267,13 @@
</div>
<div style="width: 40%;text-align: center;">
<el-time-picker
is-range v-model="timeList" style="width: 100%;"
is-range v-model="timeList4" style="width: 100%;"
range-separator="至" format="HH:mm:ss" value-format="HH:mm:ss"
start-placeholder="00:00:00" end-placeholder="23:59:59"
placeholder="选择时间范围"></el-time-picker>
</div>
<div style="width: 35%;text-align: center;">
<el-input v-model="indexTitle" style="width: 60%;" maxlength="9"
<el-input v-model="camera_capture_without_glove_frequency" style="width: 60%;" maxlength="9"
auto-complete="off" placeholder="60"></el-input><span class="item-unit"></span>
</div>
</div>
@ -280,13 +283,13 @@
</div>
<div style="width: 40%;text-align: center;">
<el-time-picker
is-range v-model="timeList" style="width: 100%;"
is-range v-model="timeList5" style="width: 100%;"
range-separator="至" format="HH:mm:ss" value-format="HH:mm:ss"
start-placeholder="00:00:00" end-placeholder="23:59:59"
placeholder="选择时间范围"></el-time-picker>
</div>
<div style="width: 35%;text-align: center;">
<el-input v-model="indexTitle" style="width: 60%;" maxlength="9"
<el-input v-model="camera_capture_smoking_frequency" style="width: 60%;" maxlength="9"
auto-complete="off" placeholder="60"></el-input><span class="item-unit"></span>
</div>
</div>
@ -296,13 +299,13 @@
</div>
<div style="width: 40%;text-align: center;">
<el-time-picker
is-range v-model="timeList" style="width: 100%;"
is-range v-model="timeList6" style="width: 100%;"
range-separator="至" format="HH:mm:ss" value-format="HH:mm:ss"
start-placeholder="00:00:00" end-placeholder="23:59:59"
placeholder="选择时间范围"></el-time-picker>
</div>
<div style="width: 35%;text-align: center;">
<el-input v-model="indexTitle" style="width: 60%;" maxlength="9"
<el-input v-model="camera_capture_calling_frequency" style="width: 60%;" maxlength="9"
auto-complete="off" placeholder="60"></el-input><span class="item-unit"></span>
</div>
</div>
@ -312,13 +315,13 @@
</div>
<div style="width: 40%;text-align: center;">
<el-time-picker
is-range v-model="timeList" style="width: 100%;"
is-range v-model="timeList7" style="width: 100%;"
range-separator="至" format="HH:mm:ss" value-format="HH:mm:ss"
start-placeholder="00:00:00" end-placeholder="23:59:59"
placeholder="选择时间范围"></el-time-picker>
</div>
<div style="width: 35%;text-align: center;">
<el-input v-model="indexTitle" style="width: 60%;" maxlength="9"
<el-input v-model="camera_capture_trash_no_cover_frequency" style="width: 60%;" maxlength="9"
auto-complete="off" placeholder="60"></el-input><span class="item-unit"></span>
</div>
</div>
@ -328,13 +331,13 @@
</div>
<div style="width: 40%;text-align: center;">
<el-time-picker
is-range v-model="timeList" style="width: 100%;"
is-range v-model="timeList8" style="width: 100%;"
range-separator="至" format="HH:mm:ss" value-format="HH:mm:ss"
start-placeholder="00:00:00" end-placeholder="23:59:59"
placeholder="选择时间范围"></el-time-picker>
</div>
<div style="width: 35%;text-align: center;">
<el-input v-model="indexTitle" style="width: 60%;" maxlength="9"
<el-input v-model="camera_capture_found_mouse_frequency" style="width: 60%;" maxlength="9"
auto-complete="off" placeholder="60"></el-input><span class="item-unit"></span>
</div>
</div>
@ -344,13 +347,13 @@
</div>
<div style="width: 40%;text-align: center;">
<el-time-picker
is-range v-model="timeList" style="width: 100%;"
is-range v-model="timeList9" style="width: 100%;"
range-separator="至" format="HH:mm:ss" value-format="HH:mm:ss"
start-placeholder="00:00:00" end-placeholder="23:59:59"
placeholder="选择时间范围"></el-time-picker>
</div>
<div style="width: 35%;text-align: center;">
<el-input v-model="indexTitle" style="width: 60%;" maxlength="9"
<el-input v-model="camera_capture_fire_without_staff_frequency" style="width: 60%;" maxlength="9"
auto-complete="off" placeholder="60"></el-input><span class="item-unit"></span>
</div>
</div>
@ -360,60 +363,421 @@
</div>
<div style="width: 40%;text-align: center;">
<el-time-picker
is-range v-model="timeList" style="width: 100%;"
is-range v-model="timeList10" style="width: 100%;"
range-separator="至" format="HH:mm:ss" value-format="HH:mm:ss"
start-placeholder="00:00:00" end-placeholder="23:59:59"
placeholder="选择时间范围"></el-time-picker>
</div>
<div style="width: 35%;text-align: center;">
<el-input v-model="indexTitle" style="width: 60%;" maxlength="9"
<el-input v-model="camera_capture_unauthorized_entry_frequency" style="width: 60%;" maxlength="9"
auto-complete="off" placeholder="60"></el-input><span class="item-unit"></span>
</div>
</div>
</div>
</div>
<div style="width: 100%;display: flex;padding-left: 40px;">
<el-button type="primary" @click="">保存</el-button>
<el-button type="info" @click="">恢复默认</el-button>
<el-button type="primary" @click="save4">保存</el-button>
<el-button type="info" @click="reset4">恢复默认</el-button>
</div>
</div>
</div>
</template>
<script>
import { queryBaseSettingApi,saveBaseSettingApi } from "@/api/base/mobile.js";
import { getSettingListApi,batchEditSettingApi,batchResetSettingApi } from "@/api/kitchen/setting.js";
export default {
name: "",
dicts: [],
data() {
return {
loading:false,
indexTitle:"",
ifSubManualReceive:'1',
timeList:[]
return {
//
staff_health_cert_left_day_reminder:null,
//
staff_morning_check_video_save_day:null,
staff_illegal_warning_record_save_day:null,
//
env_monitor_statis_frequency:null,
env_temperature_max_value:null,
env_temperature_min_value:null,
env_humidity_max_value:null,
env_humidity_min_value:null,
env_smoke_max_value:null,
env_sample_cabinet_temp_max_value:null,
env_sample_cabinet_temp_min_value:null,
//
camera_real_name_capture:1,
camera_face_recognition_similarity:null,
timeList1:[],
camera_capture_without_hat_frequency:null,
timeList2:[],
camera_capture_without_mask_frequency:null,
timeList3:[],
camera_capture_without_uniform_frequency:null,
timeList4:[],
camera_capture_without_glove_frequency:null,
timeList5:[],
camera_capture_smoking_frequency:null,
timeList6:[],
camera_capture_calling_frequency:null,
timeList7:[],
camera_capture_trash_no_cover_frequency:null,
timeList8:[],
camera_capture_found_mouse_frequency:null,
timeList9:[],
camera_capture_fire_without_staff_frequency:null,
timeList10:[],
camera_capture_unauthorized_entry_frequency:null,
};
},
created() {
this.queryAccBaseSub()
// this.query1()
// this.query2()
// this.query3()
// this.query4()
},
mounted(){
this.query1()
this.query2()
this.query3()
this.query4()
},
methods: {
// queryAccBaseSub(){
// queryBaseSettingApi({"key": ""}).then(response => {
// this.indexTitle = response.data.value||""
// });
// },
// saveBaseSet(){
// let param = {
// "key": "",
// "value": this.indexTitle
// }
// saveBaseSettingApi(param).then(response => {
// this.$message.success("");
// this.queryAccBaseSub()
// });
// }
query1(){
getSettingListApi({"itemName": "staff_health_cert_left_day_reminder"}).then(response => {
this.staff_health_cert_left_day_reminder = response.rows[0].itemValue
});
},
save1(){
let param = [
{"itemName": "staff_health_cert_left_day_reminder","itemValue":this.staff_health_cert_left_day_reminder}
]
batchEditSettingApi(param).then(response => {
this.$message.success("保存成功");
this.query1()
});
},
reset1(){
let param = [
{"itemName": "staff_health_cert_left_day_reminder"}
]
batchResetSettingApi(param).then(response => {
this.$message.success("恢复成功");
this.query1()
});
},
query2(){
getSettingListApi({"itemName": "staff_morning_check_video_save_day"}).then(response => {
this.staff_morning_check_video_save_day = response.rows[0].itemValue
});
getSettingListApi({"itemName": "staff_illegal_warning_record_save_day"}).then(response => {
this.staff_illegal_warning_record_save_day = response.rows[0].itemValue
});
},
save2(){
let param = [
{"itemName": "staff_morning_check_video_save_day","itemValue":this.staff_morning_check_video_save_day},
{"itemName": "staff_illegal_warning_record_save_day","itemValue":this.staff_illegal_warning_record_save_day},
]
batchEditSettingApi(param).then(response => {
this.$message.success("保存成功");
this.query2()
});
},
reset2(){
let param = [
{"itemName": "staff_morning_check_video_save_day"},
{"itemName": "staff_illegal_warning_record_save_day"},
]
batchResetSettingApi(param).then(response => {
this.$message.success("恢复成功");
this.query2()
});
},
query3(){
getSettingListApi({"itemName": "env_monitor_statis_frequency"}).then(response => {
this.env_monitor_statis_frequency = response.rows[0].itemValue
});
getSettingListApi({"itemName": "env_temperature_max_value"}).then(response => {
this.env_temperature_max_value = response.rows[0].itemValue
});
getSettingListApi({"itemName": "env_temperature_min_value"}).then(response => {
this.env_temperature_min_value = response.rows[0].itemValue
});
getSettingListApi({"itemName": "env_humidity_max_value"}).then(response => {
this.env_humidity_max_value = response.rows[0].itemValue
});
getSettingListApi({"itemName": "env_humidity_min_value"}).then(response => {
this.env_humidity_min_value = response.rows[0].itemValue
});
getSettingListApi({"itemName": "env_smoke_max_value"}).then(response => {
this.env_smoke_max_value = response.rows[0].itemValue
});
getSettingListApi({"itemName": "env_sample_cabinet_temp_max_value"}).then(response => {
this.env_sample_cabinet_temp_max_value = response.rows[0].itemValue
});
getSettingListApi({"itemName": "env_sample_cabinet_temp_min_value"}).then(response => {
this.env_sample_cabinet_temp_min_value = response.rows[0].itemValue
});
},
save3(){
let param = [
{"itemName": "env_monitor_statis_frequency","itemValue":this.env_monitor_statis_frequency},
{"itemName": "env_temperature_max_value","itemValue":this.env_temperature_max_value},
{"itemName": "env_temperature_min_value","itemValue":this.env_temperature_min_value},
{"itemName": "env_humidity_max_value","itemValue":this.env_humidity_max_value},
{"itemName": "env_humidity_min_value","itemValue":this.env_humidity_min_value},
{"itemName": "env_smoke_max_value","itemValue":this.env_smoke_max_value},
{"itemName": "env_sample_cabinet_temp_max_value","itemValue":this.env_sample_cabinet_temp_max_value},
{"itemName": "env_sample_cabinet_temp_min_value","itemValue":this.env_sample_cabinet_temp_min_value},
]
batchEditSettingApi(param).then(response => {
this.$message.success("保存成功");
this.query3()
});
},
reset3(){
let param = [
{"itemName": "env_monitor_statis_frequency"},
{"itemName": "env_temperature_max_value"},
{"itemName": "env_temperature_min_value"},
{"itemName": "env_humidity_max_value"},
{"itemName": "env_humidity_min_value"},
{"itemName": "env_smoke_max_value"},
{"itemName": "env_sample_cabinet_temp_max_value"},
{"itemName": "env_sample_cabinet_temp_min_value"},
]
batchResetSettingApi(param).then(response => {
this.$message.success("恢复成功");
this.query3()
});
},
query4(){
getSettingListApi({"itemName": "camera_real_name_capture"}).then(response => {
this.camera_real_name_capture = response.rows[0].itemValue
});
getSettingListApi({"itemName": "camera_face_recognition_similarity"}).then(response => {
this.camera_face_recognition_similarity = response.rows[0].itemValue
});
//1
this.timeList1 = []
getSettingListApi({"itemName": "camera_capture_without_hat_start_time"}).then(response => {
this.timeList1[0]=response.rows[0].itemValue;
getSettingListApi({"itemName": "camera_capture_without_hat_end_time"}).then(response => {
this.timeList1.push(response.rows[0].itemValue)
});
});
getSettingListApi({"itemName": "camera_capture_without_hat_frequency"}).then(response => {
this.camera_capture_without_hat_frequency = response.rows[0].itemValue
});
//2
this.timeList2 = []
getSettingListApi({"itemName": "camera_capture_without_mask_start_time"}).then(response => {
this.timeList2[0]=response.rows[0].itemValue
getSettingListApi({"itemName": "camera_capture_without_mask_end_time"}).then(response => {
this.timeList2.push(response.rows[0].itemValue)
});
});
getSettingListApi({"itemName": "camera_capture_without_mask_frequency"}).then(response => {
this.camera_capture_without_mask_frequency = response.rows[0].itemValue
});
//3
this.timeList3 = []
getSettingListApi({"itemName": "camera_capture_without_uniform_start_time"}).then(response => {
this.timeList3[0]=response.rows[0].itemValue
getSettingListApi({"itemName": "camera_capture_without_uniform_end_time"}).then(response => {
this.timeList3.push(response.rows[0].itemValue)
});
});
getSettingListApi({"itemName": "camera_capture_without_uniform_frequency"}).then(response => {
this.camera_capture_without_uniform_frequency = response.rows[0].itemValue
});
//4
this.timeList4 = []
getSettingListApi({"itemName": "camera_capture_without_glove_start_time"}).then(response => {
this.timeList4[0]=response.rows[0].itemValue
getSettingListApi({"itemName": "camera_capture_without_glove_end_time"}).then(response => {
this.timeList4.push(response.rows[0].itemValue)
});
});
getSettingListApi({"itemName": "camera_capture_without_glove_frequency"}).then(response => {
this.camera_capture_without_glove_frequency = response.rows[0].itemValue
});
//5
this.timeList5 = []
getSettingListApi({"itemName": "camera_capture_smoking_start_time"}).then(response => {
this.timeList5[0]=response.rows[0].itemValue
getSettingListApi({"itemName": "camera_capture_smoking_end_time"}).then(response => {
this.timeList5.push(response.rows[0].itemValue)
});
});
getSettingListApi({"itemName": "camera_capture_smoking_frequency"}).then(response => {
this.camera_capture_smoking_frequency = response.rows[0].itemValue
});
//6
this.timeList6 = []
getSettingListApi({"itemName": "camera_capture_calling_start_time"}).then(response => {
this.timeList6[0]=response.rows[0].itemValue
getSettingListApi({"itemName": "camera_capture_calling_end_time"}).then(response => {
this.timeList6.push(response.rows[0].itemValue)
});
});
getSettingListApi({"itemName": "camera_capture_calling_frequency"}).then(response => {
this.camera_capture_calling_frequency = response.rows[0].itemValue
});
//7
this.timeList7 = []
getSettingListApi({"itemName": "camera_capture_trash_no_cover_start_time"}).then(response => {
this.timeList7[0]=response.rows[0].itemValue
getSettingListApi({"itemName": "camera_capture_trash_no_cover_end_time"}).then(response => {
this.timeList7.push(response.rows[0].itemValue)
});
});
getSettingListApi({"itemName": "camera_capture_trash_no_cover_frequency"}).then(response => {
this.camera_capture_trash_no_cover_frequency = response.rows[0].itemValue
});
//8
this.timeList8 = []
getSettingListApi({"itemName": "camera_capture_found_mouse_start_time"}).then(response => {
this.timeList8[0]=response.rows[0].itemValue
getSettingListApi({"itemName": "camera_capture_found_mouse_end_time"}).then(response => {
this.timeList8.push(response.rows[0].itemValue)
});
});
getSettingListApi({"itemName": "camera_capture_found_mouse_frequency"}).then(response => {
this.camera_capture_found_mouse_frequency = response.rows[0].itemValue
});
//9
this.timeList9 = []
getSettingListApi({"itemName": "camera_capture_fire_without_staff_start_time"}).then(response => {
this.timeList9[0]=response.rows[0].itemValue
getSettingListApi({"itemName": "camera_capture_fire_without_staff_end_time"}).then(response => {
this.timeList9.push(response.rows[0].itemValue)
});
});
getSettingListApi({"itemName": "camera_capture_fire_without_staff_frequency"}).then(response => {
this.camera_capture_fire_without_staff_frequency = response.rows[0].itemValue
});
//10
this.timeList10 = []
getSettingListApi({"itemName": "camera_capture_unauthorized_entry_start_time"}).then(response => {
this.timeList10[0]=response.rows[0].itemValue
getSettingListApi({"itemName": "camera_capture_unauthorized_entry_end_time"}).then(response => {
this.timeList10.push(response.rows[0].itemValue)
});
});
getSettingListApi({"itemName": "camera_capture_unauthorized_entry_frequency"}).then(response => {
this.camera_capture_unauthorized_entry_frequency = response.rows[0].itemValue
});
},
save4(){
let param = [
{"itemName": "camera_real_name_capture","itemValue":this.camera_real_name_capture},
{"itemName": "camera_face_recognition_similarity","itemValue":this.camera_face_recognition_similarity},
//1
{"itemName": "camera_capture_without_hat_start_time","itemValue":this.timeList1[0]},
{"itemName": "camera_capture_without_hat_end_time","itemValue":this.timeList1[1]},
{"itemName": "camera_capture_without_hat_frequency","itemValue":this.camera_capture_without_hat_frequency},
//2
{"itemName": "camera_capture_without_mask_start_time","itemValue":this.timeList2[0]},
{"itemName": "camera_capture_without_mask_end_time","itemValue":this.timeList2[1]},
{"itemName": "camera_capture_without_mask_frequency","itemValue":this.camera_capture_without_mask_frequency},
//3
{"itemName": "camera_capture_without_uniform_start_time","itemValue":this.timeList3[0]},
{"itemName": "camera_capture_without_uniform_end_time","itemValue":this.timeList3[1]},
{"itemName": "camera_capture_without_uniform_frequency","itemValue":this.camera_capture_without_uniform_frequency},
//4
{"itemName": "camera_capture_without_glove_start_time","itemValue":this.timeList4[0]},
{"itemName": "camera_capture_without_glove_end_time","itemValue":this.timeList4[1]},
{"itemName": "camera_capture_without_glove_frequency","itemValue":this.camera_capture_without_glove_frequency},
//5
{"itemName": "camera_capture_smoking_start_time","itemValue":this.timeList5[0]},
{"itemName": "camera_capture_smoking_end_time","itemValue":this.timeList5[1]},
{"itemName": "camera_capture_smoking_frequency","itemValue":this.camera_capture_smoking_frequency},
//6
{"itemName": "camera_capture_calling_start_time","itemValue":this.timeList6[0]},
{"itemName": "camera_capture_calling_end_time","itemValue":this.timeList6[1]},
{"itemName": "camera_capture_calling_frequency","itemValue":this.camera_capture_calling_frequency},
//7
{"itemName": "camera_capture_trash_no_cover_start_time","itemValue":this.timeList7[0]},
{"itemName": "camera_capture_trash_no_cover_end_time","itemValue":this.timeList7[1]},
{"itemName": "camera_capture_trash_no_cover_frequency","itemValue":this.camera_capture_trash_no_cover_frequency},
//8
{"itemName": "camera_capture_found_mouse_start_time","itemValue":this.timeList8[0]},
{"itemName": "camera_capture_found_mouse_end_time","itemValue":this.timeList8[1]},
{"itemName": "camera_capture_found_mouse_frequency","itemValue":this.camera_capture_found_mouse_frequency},
//9
{"itemName": "camera_capture_fire_without_staff_start_time","itemValue":this.timeList9[0]},
{"itemName": "camera_capture_fire_without_staff_end_time","itemValue":this.timeList9[1]},
{"itemName": "camera_capture_fire_without_staff_frequency","itemValue":this.camera_capture_fire_without_staff_frequency},
//10
{"itemName": "camera_capture_unauthorized_entry_start_time","itemValue":this.timeList10[0]},
{"itemName": "camera_capture_unauthorized_entry_end_time","itemValue":this.timeList10[1]},
{"itemName": "camera_capture_unauthorized_entry_frequency","itemValue":this.camera_capture_unauthorized_entry_frequency}
]
batchEditSettingApi(param).then(response => {
this.$message.success("保存成功");
this.query4()
});
},
reset4(){
let param = [
{"itemName": "camera_real_name_capture"},
{"itemName": "camera_face_recognition_similarity"},
//1
{"itemName": "camera_capture_without_hat_start_time"},
{"itemName": "camera_capture_without_hat_end_time"},
{"itemName": "camera_capture_without_hat_frequency"},
//2
{"itemName": "camera_capture_without_mask_start_time"},
{"itemName": "camera_capture_without_mask_end_time"},
{"itemName": "camera_capture_without_mask_frequency"},
//3
{"itemName": "camera_capture_without_uniform_start_time"},
{"itemName": "camera_capture_without_uniform_end_time"},
{"itemName": "camera_capture_without_uniform_frequency"},
//4
{"itemName": "camera_capture_without_glove_start_time"},
{"itemName": "camera_capture_without_glove_end_time"},
{"itemName": "camera_capture_without_glove_frequency"},
//5
{"itemName": "camera_capture_smoking_start_time"},
{"itemName": "camera_capture_smoking_end_time"},
{"itemName": "camera_capture_smoking_frequency"},
//6
{"itemName": "camera_capture_calling_start_time"},
{"itemName": "camera_capture_calling_end_time"},
{"itemName": "camera_capture_calling_frequency"},
//7
{"itemName": "camera_capture_trash_no_cover_start_time"},
{"itemName": "camera_capture_trash_no_cover_end_time"},
{"itemName": "camera_capture_trash_no_cover_frequency"},
//8
{"itemName": "camera_capture_found_mouse_start_time"},
{"itemName": "camera_capture_found_mouse_end_time"},
{"itemName": "camera_capture_found_mouse_frequency"},
//9
{"itemName": "camera_capture_fire_without_staff_start_time"},
{"itemName": "camera_capture_fire_without_staff_end_time"},
{"itemName": "camera_capture_fire_without_staff_frequency"},
//10
{"itemName": "camera_capture_unauthorized_entry_start_time"},
{"itemName": "camera_capture_unauthorized_entry_end_time"},
{"itemName": "camera_capture_unauthorized_entry_frequency"}
]
batchResetSettingApi(param).then(response => {
this.$message.success("恢复成功");
this.query4()
});
},
}
};
</script>