|
|
@@ -25,11 +25,6 @@
|
|
|
<img src="@/assets/images/setting/icon4a.png" class="nav-icon" v-else/>
|
|
|
<span>左右脚程序设置</span>
|
|
|
</div>
|
|
|
- <div class="nav-item" v-if="userInfoStore.isHLM && configInfoStore.appModel === 1" :class="{'active': activeIndex === 5}" @click="toggleTab(5)" v-log="{ describe: { action: '点击切换设置Tab', tab: '高级设置' } }">
|
|
|
- <img src="@/assets/images/setting/icon1.png" class="nav-icon" v-if="activeIndex !== 5"/>
|
|
|
- <img src="@/assets/images/setting/icon1a.png" class="nav-icon" v-else/>
|
|
|
- <span>高级设置</span>
|
|
|
- </div>
|
|
|
</nav>
|
|
|
|
|
|
<div class="form-container">
|
|
|
@@ -218,12 +213,9 @@
|
|
|
<actionConfig/>
|
|
|
|
|
|
</div>
|
|
|
- <div v-if="activeIndex === 5">
|
|
|
- <AdvancedConfig />
|
|
|
- </div>
|
|
|
</div>
|
|
|
<div class="text-center mt-8">
|
|
|
- <button class="bg-gradient-to-r from-primary" @click="onSava(activeIndex)" v-if="activeIndex !== 4 && activeIndex !== 5" v-log="{ describe: { action: '点击保存设置', tabIndex: activeIndex } }">
|
|
|
+ <button class="bg-gradient-to-r from-primary" @click="onSava(activeIndex)" v-if="activeIndex !== 4" v-log="{ describe: { action: '点击保存设置', tabIndex: activeIndex } }">
|
|
|
保存
|
|
|
</button>
|
|
|
</div>
|
|
|
@@ -255,7 +247,6 @@ import { preview } from '@planckdev/element-plus/utils'
|
|
|
import actionConfig from './components/action_config.vue'
|
|
|
import otherConfig from './components/otherConfig'
|
|
|
import CameraConfig from './components/CameraConfig';
|
|
|
-import AdvancedConfig from './components/AdvancedConfig.vue';
|
|
|
import useUserInfo from '@/stores/modules/user';
|
|
|
useCheckInfo();
|
|
|
|
|
|
@@ -543,15 +534,6 @@ const getConfig = async (typeValue)=>{
|
|
|
}
|
|
|
|
|
|
}
|
|
|
-/**
|
|
|
- * 组件挂载时初始化activeIndex。
|
|
|
- */
|
|
|
-watch(() => userInfoStore.isHLM, (on) => {
|
|
|
- if (!on && activeIndex.value === 5) {
|
|
|
- activeIndex.value = 0
|
|
|
- }
|
|
|
-})
|
|
|
-
|
|
|
onMounted(async () => {
|
|
|
// 确保用户信息已加载,特别是 brand_company_code 字段
|
|
|
if (!userInfoStore.userInfo?.brand_company_code) {
|
|
|
@@ -629,7 +611,7 @@ const updateCameraConfigs = (configs) => {
|
|
|
|
|
|
const toggleTab = async (item) => {
|
|
|
const oldType = activeIndex.value;
|
|
|
- // 切换前保存当前 Tab 配置(包含相机配置 3),高级设置(5)有独立保存逻辑,跳过自动保存
|
|
|
+ // 切换前保存当前 Tab 配置(包含相机配置 3)
|
|
|
if ([0,1,2,3].includes(oldType)) {
|
|
|
const next = await saveSetting(oldType);
|
|
|
if (next === false) return false;
|
|
|
@@ -639,11 +621,6 @@ const toggleTab = async (item) => {
|
|
|
};
|
|
|
|
|
|
const onSava = async (index)=>{
|
|
|
- // 高级设置(5)有独立保存逻辑
|
|
|
- if (index === 5) {
|
|
|
- ElMessage.info('请在高级设置中使用保存按钮保存');
|
|
|
- return;
|
|
|
- }
|
|
|
const next = await saveSetting(index)
|
|
|
|
|
|
if(next !== false){
|