|
@@ -41,7 +41,24 @@
|
|
|
</template>
|
|
|
</ventBox1>
|
|
|
</div>
|
|
|
- <div class="lr">
|
|
|
+ <div style="pointer-events: auto" class="flex mt-10px h-100% w-770px">
|
|
|
+ <ventBox1 class="mr-10px">
|
|
|
+ <template #title>
|
|
|
+ <div>均压工作面风门与风门联动</div>
|
|
|
+ </template>
|
|
|
+ <template #container>
|
|
|
+ <div class="vent-flex-row-between auto-control mt-10px mb-10px">
|
|
|
+ <div class="title">自动调节:</div>
|
|
|
+ <a-radio-group :value="gateLinkage.isAuto" name="radioGroup" @change="changeIsAuto($event, gateLinkage.id)">
|
|
|
+ <a-radio :value="false">关闭</a-radio>
|
|
|
+ <a-radio :value="true">开启</a-radio>
|
|
|
+ </a-radio-group>
|
|
|
+ </div>
|
|
|
+ <div class="btn-box" style="text-align: center">
|
|
|
+ <div class="btn btn1" @click="() => openModal(false, { id: gateLinkage.id })">控制密码修改</div>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </ventBox1>
|
|
|
<ventBox1>
|
|
|
<template #title>
|
|
|
<div>均压工作面风机与风门联动</div>
|
|
@@ -49,13 +66,13 @@
|
|
|
<template #container>
|
|
|
<div class="vent-flex-row-between auto-control mt-10px mb-10px">
|
|
|
<div class="title">自动调节:</div>
|
|
|
- <a-radio-group :value="avePressLinkage.isAuto" name="radioGroup" @change="changeIsAuto">
|
|
|
+ <a-radio-group :value="avePressLinkage.isAuto" name="radioGroup" @change="changeIsAuto($event, avePressLinkage.id)">
|
|
|
<a-radio :value="false">关闭</a-radio>
|
|
|
<a-radio :value="true">开启</a-radio>
|
|
|
</a-radio-group>
|
|
|
</div>
|
|
|
<div class="btn-box" style="text-align: center">
|
|
|
- <div class="btn btn1" @click="() => openModal()">控制密码修改</div>
|
|
|
+ <div class="btn btn1" @click="() => openModal(false, { id: avePressLinkage.id })">控制密码修改</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
</ventBox1>
|
|
@@ -175,7 +192,7 @@
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
- const { avePressSetting, avePressLinkage, formData, getAvePress, changePassword, linkageControl, settingControl } = usePressControl();
|
|
|
+ const { avePressSetting, avePressLinkage, gateLinkage, formData, getAvePress, changePassword, linkageControl, settingControl } = usePressControl();
|
|
|
|
|
|
const modalVisible = ref(false);
|
|
|
|
|
@@ -191,12 +208,12 @@
|
|
|
});
|
|
|
}
|
|
|
|
|
|
- function changeIsAuto({ target }) {
|
|
|
+ function changeIsAuto({ target }, id) {
|
|
|
formData.value.isAuto = target.value;
|
|
|
modalVisible.value = true;
|
|
|
resolver = (password) => {
|
|
|
linkageControl(
|
|
|
- { password },
|
|
|
+ { password, id },
|
|
|
{
|
|
|
isAuto: formData.value.isAuto,
|
|
|
}
|
|
@@ -210,7 +227,7 @@
|
|
|
modalVisible.value = true;
|
|
|
resolver = (password) => {
|
|
|
settingControl(
|
|
|
- { password },
|
|
|
+ { password, id: avePressSetting.value.id },
|
|
|
{
|
|
|
isAutoControl: formData.value.isAutoControl,
|
|
|
}
|
|
@@ -224,7 +241,7 @@
|
|
|
function submitSettingForm() {
|
|
|
modalVisible.value = true;
|
|
|
resolver = (password) => {
|
|
|
- settingControl({ password }, avePressSetting.value).finally(() => {
|
|
|
+ settingControl({ password, id: avePressSetting.value.id }, avePressSetting.value).finally(() => {
|
|
|
modalVisible.value = false;
|
|
|
settingFormDisabled.value = true;
|
|
|
});
|