From 6d56bf4daf08c4c7c6d193d98ed0b547dc473451 Mon Sep 17 00:00:00 2001
From: renmingwang <renmingwang@hnkhzn.com>
Date: 星期三, 25 三月 2026 16:59:14 +0800
Subject: [PATCH] 添加历史任务删除,大屏布局修改
---
项目代码/大屏/src/store/modules/setting.js | 40 +++++++++++++++++++++++++++++++++++++++-
1 files changed, 39 insertions(+), 1 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/\345\244\247\345\261\217/src/store/modules/setting.js" "b/\351\241\271\347\233\256\344\273\243\347\240\201/\345\244\247\345\261\217/src/store/modules/setting.js"
index ac0c871..18aa6ac 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/\345\244\247\345\261\217/src/store/modules/setting.js"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/\345\244\247\345\261\217/src/store/modules/setting.js"
@@ -12,6 +12,8 @@
ssyjSwiper:true,//瀹炴椂棰勮杞挱
isScale:true,//鏄惁杩涜鍏ㄥ眬閫傞厤
fullscreen: false, // 娣诲姞锛氬叏灞忕姸鎬�
+ currentTask: 'sc02', // 褰撳墠浠诲姟锛歴c01/sc02
+ currentLocation: 'sc01', // 褰撳墠璐т綅鐘舵�侊細sc01/sc02
defaultOption: {
step: 4.4, // 鏁板�艰秺澶ч�熷害婊氬姩瓒婂揩
hoverStop: true, // 鏄惁寮�鍚紶鏍囨偓鍋渟top
@@ -43,12 +45,48 @@
updateSwiper(state, {val,type}) {
state[type] = val
- // 鍒涘缓瀹屾暣鐨勮缃璞★紝鍖呭惈鍏ㄥ睆鐘舵��
+ // 鍒涘缓瀹屾暣鐨勮缃璞★紝鍖呭惈鍏ㄥ睆鐘舵�佸拰鍒囨崲鐘舵��
const settingData = {
sbtxSwiper: state.sbtxSwiper,
ssyjSwiper: state.ssyjSwiper,
isScale: state.isScale,
fullscreen: state.fullscreen || false, // 纭繚鍖呭惈鍏ㄥ睆鐘舵��
+ currentTask: state.currentTask,
+ currentLocation: state.currentLocation
+ }
+
+ localStorage.setItem('settingData', JSON.stringify(settingData))
+ },
+
+ // 鏇存柊褰撳墠浠诲姟
+ updateCurrentTask(state, val) {
+ state.currentTask = val;
+
+ // 鍒涘缓瀹屾暣鐨勮缃璞★紝鍖呭惈鍏ㄥ睆鐘舵�佸拰鍒囨崲鐘舵��
+ const settingData = {
+ sbtxSwiper: state.sbtxSwiper,
+ ssyjSwiper: state.ssyjSwiper,
+ isScale: state.isScale,
+ fullscreen: state.fullscreen || false,
+ currentTask: state.currentTask,
+ currentLocation: state.currentLocation
+ }
+
+ localStorage.setItem('settingData', JSON.stringify(settingData))
+ },
+
+ // 鏇存柊褰撳墠璐т綅鐘舵��
+ updateCurrentLocation(state, val) {
+ state.currentLocation = val;
+
+ // 鍒涘缓瀹屾暣鐨勮缃璞★紝鍖呭惈鍏ㄥ睆鐘舵�佸拰鍒囨崲鐘舵��
+ const settingData = {
+ sbtxSwiper: state.sbtxSwiper,
+ ssyjSwiper: state.ssyjSwiper,
+ isScale: state.isScale,
+ fullscreen: state.fullscreen || false,
+ currentTask: state.currentTask,
+ currentLocation: state.currentLocation
}
localStorage.setItem('settingData', JSON.stringify(settingData))
--
Gitblit v1.9.3