renmingwang
2026-03-25 6d56bf4daf08c4c7c6d193d98ed0b547dc473451
ÏîÄ¿´úÂë/´óÆÁ/src/views/setting.vue
@@ -61,6 +61,32 @@
                            </el-radio-group>
                        </div>
                    </div>
                    <!-- å··é“任务信息默认显示 -->
                    <div class="setting_item">
                        <span class="setting_label">
                            å··é“任务信息默认显示:
                        </span>
                        <div class="setting_content">
                            <el-radio-group v-model="currentTaskRadio" @change="(val) => updateCurrentTask(val)">
                                <el-radio :label="'sc01'">SC01</el-radio>
                                <el-radio :label="'sc02'">SC02</el-radio>
                            </el-radio-group>
                        </div>
                    </div>
                    <!-- è´§ä½çŠ¶æ€é»˜è®¤æ˜¾ç¤º -->
                    <div class="setting_item">
                        <span class="setting_label">
                            è´§ä½çŠ¶æ€é»˜è®¤æ˜¾ç¤º:
                        </span>
                        <div class="setting_content">
                            <el-radio-group v-model="currentLocationRadio" @change="(val) => updateCurrentLocation(val)">
                                <el-radio :label="'sc01'">SC01</el-radio>
                                <el-radio :label="'sc02'">SC02</el-radio>
                            </el-radio-group>
                        </div>
                    </div>
                    <div class="flex justify-center">
                        <!-- <el-button type="primary" round size="mini">确定</el-button> -->
                    </div>
@@ -82,6 +108,8 @@
            isScaleradio:true,
            fullscreenRadio: false, // å…¨å±çŠ¶æ€
            fullscreenElement: null, // å…¨å±å…ƒç´ 
            currentTaskRadio: 'sc02', // é»˜è®¤ä»»åŠ¡æ˜¾ç¤ºï¼šsc01/sc02
            currentLocationRadio: 'sc01' // é»˜è®¤è´§ä½çŠ¶æ€æ˜¾ç¤ºï¼šsc01/sc02
        };
    },
    computed: {},
@@ -196,6 +224,16 @@
                    this.bindFullscreenEvents();
                }
            }
        },
        // æ›´æ–°å½“前任务
        updateCurrentTask(val) {
            this.$store.commit('setting/updateCurrentTask', val);
        },
        // æ›´æ–°å½“前货位状态
        updateCurrentLocation(val) {
            this.$store.commit('setting/updateCurrentLocation', val);
        }
    },
    created() {
@@ -204,6 +242,8 @@
        this.ssyjradio = this.$store.state.setting.ssyjSwiper,
        this.isScaleradio = this.$store.state.setting.isScale;
        this.fullscreenRadio = this.$store.state.setting.fullscreen || false;
        this.currentTaskRadio = this.$store.state.setting.currentTask;
        this.currentLocationRadio = this.$store.state.setting.currentLocation;
        
        // åˆå§‹åŒ–时检查全屏状态
        if (this.fullscreenRadio) {