fix: update message json

This commit is contained in:
zhangsz
2025-07-10 14:22:53 +08:00
parent 14df112884
commit f5684d867f

View File

@@ -329,14 +329,13 @@ let modalState: ModalStateType = reactive({
serialNumProfile: { serialNumProfile: {
displayMode: 'normal', displayMode: 'normal',
geoScope: 'PLMNwide', geoScope: 'PLMNwide',
messageCode: '',
}, },
//warningTypeProfile //warningTypeProfile
warningTypeProfile: { warningTypeProfile: {
warningType: '', warningType: '',
emergencyUserAlert: 'false', emergencyUserAlert: false,
activatePopup: 'true', activatePopup: true,
}, },
warningMessageProfile: { warningMessageProfile: {
language: 'English', language: 'English',
@@ -755,14 +754,14 @@ function pwsTypeChange(value: any) {
modalState.from.warningTypeProfile.warningType = 'TEST'; modalState.from.warningTypeProfile.warningType = 'TEST';
modalState.from.eventName = 'etws_'; modalState.from.eventName = 'etws_';
modalState.from.serialNumProfile.displayMode = 'immediate'; modalState.from.serialNumProfile.displayMode = 'immediate';
modalState.from.warningTypeProfile.emergencyUserAlert = 'true'; modalState.from.warningTypeProfile.emergencyUserAlert = true;
modalState.from.warningTypeProfile.activatePopup = 'true'; modalState.from.warningTypeProfile.activatePopup = true;
} else if (value === 'CMAS') { } else if (value === 'CMAS') {
modalState.from.warningTypeProfile.warningType = ''; modalState.from.warningTypeProfile.warningType = '';
modalState.from.eventName = 'cmas_'; modalState.from.eventName = 'cmas_';
modalState.from.serialNumProfile.displayMode = 'normal'; modalState.from.serialNumProfile.displayMode = 'normal';
modalState.from.warningTypeProfile.emergencyUserAlert = 'false'; modalState.from.warningTypeProfile.emergencyUserAlert = false;
modalState.from.warningTypeProfile.activatePopup = 'true'; modalState.from.warningTypeProfile.activatePopup = true;
} }
} }
@@ -1215,8 +1214,8 @@ onMounted(() => {
modalState.from.warningTypeProfile.emergencyUserAlert modalState.from.warningTypeProfile.emergencyUserAlert
" "
> >
<a-select-option value="true">true</a-select-option> <a-select-option :value="true">true</a-select-option>
<a-select-option value="false">false</a-select-option> <a-select-option :value="false">false</a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-item>
</a-col> </a-col>
@@ -1231,8 +1230,8 @@ onMounted(() => {
:disabled="modalState.from.id" :disabled="modalState.from.id"
v-model:value="modalState.from.warningTypeProfile.activatePopup" v-model:value="modalState.from.warningTypeProfile.activatePopup"
> >
<a-select-option value="true">true</a-select-option> <a-select-option :value="true">true</a-select-option>
<a-select-option value="false">false</a-select-option> <a-select-option :value="false">false</a-select-option>
</a-select> </a-select>
</a-form-item> </a-form-item>
</a-col> </a-col>