|
@@ -7,12 +7,8 @@
|
|
|
</div>
|
|
|
<div v-if="type == '10'">
|
|
|
<div class="vent-flex-row input-box">
|
|
|
- <div class="label">前窗开启角度:</div>
|
|
|
- <a-input-number size="small" placeholder="0" :min="0" :max="90" v-model:value="frontA" />
|
|
|
- </div>
|
|
|
- <div class="vent-flex-row input-box">
|
|
|
- <div class="label">后窗开启角度:</div>
|
|
|
- <a-input-number size="small" placeholder="0" :min="0" :max="90" v-model:value="rearA" />
|
|
|
+ <div class="label">风窗开启角度:</div>
|
|
|
+ <a-input-number size="small" placeholder="0" :min="0" :max="90" v-model:value="frontSetValue" />
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="vent-flex-row input-box">
|
|
@@ -47,8 +43,7 @@
|
|
|
const title = ref<String>('');
|
|
|
const type = ref<String>('');
|
|
|
const passWord = ref('');
|
|
|
- const frontA = ref(0);
|
|
|
- const rearA = ref(0);
|
|
|
+ const frontSetValue = ref(0);
|
|
|
|
|
|
watch([() => props.modalIsShow, () => props.modalTitle, () => props.modalType], ([newVal, newModalTitle, newModalType]) => {
|
|
|
visible.value = newVal;
|
|
@@ -60,7 +55,7 @@
|
|
|
function handleOk() {
|
|
|
//
|
|
|
if (type.value == '10') {
|
|
|
- emit('handleOk', passWord.value, type.value, frontA, rearA);
|
|
|
+ emit('handleOk', passWord.value, type.value, frontSetValue);
|
|
|
} else {
|
|
|
emit('handleOk', passWord.value, type.value);
|
|
|
}
|