Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fk-spider-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周田
fk-spider-web
Commits
56d11da4
Commit
56d11da4
authored
Nov 18, 2025
by
liucan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:解决数据展示页面模式记忆问题
parent
9564fd96
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
16 deletions
+21
-16
index.vue
src/views/os-dataDisplay/index.vue
+14
-16
SystemIndex.vue
src/views/system/SystemIndex.vue
+7
-0
No files found.
src/views/os-dataDisplay/index.vue
View file @
56d11da4
...
@@ -28,19 +28,17 @@
...
@@ -28,19 +28,17 @@
</
template
>
</
template
>
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
{
ref
,
onMounted
}
from
"vue"
;
import
{
ref
,
onMounted
,
watch
}
from
"vue"
;
import
{
useRoute
}
from
"vue-router"
;
import
{
useRoute
}
from
"vue-router"
;
import
{
useRouter
}
from
"vue-router"
;
import
{
useRouter
}
from
"vue-router"
;
import
allDataTab
from
"./components/allDataTab.vue"
;
import
ituDataTab
from
"./components/ituDataTab.vue"
;
import
ituDataTab
from
"./components/ituDataTab.vue"
;
import
stDataTab
from
"./components/stDataTab.vue"
;
import
stDataTab
from
"./components/stDataTab.vue"
;
import
dsnDataTab
from
"./components/dsnData/dsnTab.vue"
;
import
dsnDataTab
from
"./components/dsnData/dsnTab.vue"
;
import
esDataTab
from
"./components/esDataTab.vue"
;
import
esDataTab
from
"./components/esDataTab.vue"
;
import
exportDialog
from
"@/components/Export/index.vue"
;
import
exportDialog
from
"@/components/Export/index.vue"
;
import
{
genFileId
}
from
"element-plus"
;
import
type
{
UploadInstance
}
from
"element-plus"
;
import
type
{
UploadInstance
,
UploadProps
,
UploadRawFile
}
from
"element-plus"
;
const
mode
=
ref
(
"DSN数据"
);
const
mode
=
ref
(
sessionStorage
.
getItem
(
"dataDisplayMode"
)
||
"DSN数据"
);
const
showDeleteDialog
=
ref
(
false
);
const
showDeleteDialog
=
ref
(
false
);
const
sizeOptions
=
[
"DSN数据"
,
"ITU数据"
,
"ST数据"
,
"ESA数据"
];
const
sizeOptions
=
[
"DSN数据"
,
"ITU数据"
,
"ST数据"
,
"ESA数据"
];
const
route
=
useRoute
();
const
route
=
useRoute
();
...
@@ -48,16 +46,6 @@ const router = useRouter();
...
@@ -48,16 +46,6 @@ const router = useRouter();
const
modeValue
=
ref
<
any
>
(
"数据展示"
);
const
modeValue
=
ref
<
any
>
(
"数据展示"
);
const
upload
=
ref
<
UploadInstance
>
();
const
upload
=
ref
<
UploadInstance
>
();
const
handleExceed
:
UploadProps
[
"onExceed"
]
=
(
files
)
=>
{
upload
.
value
!
.
clearFiles
();
const
file
=
files
[
0
]
as
UploadRawFile
;
file
.
uid
=
genFileId
();
upload
.
value
!
.
handleStart
(
file
);
};
const
submitUpload
=
()
=>
{
upload
.
value
!
.
submit
();
};
const
goToStatus
=
()
=>
{
const
goToStatus
=
()
=>
{
router
.
push
({
router
.
push
({
path
:
"/osStatus/list"
,
path
:
"/osStatus/list"
,
...
@@ -72,8 +60,18 @@ onMounted(() => {
...
@@ -72,8 +60,18 @@ onMounted(() => {
modeValue
.
value
=
route
.
query
.
mode
;
modeValue
.
value
=
route
.
query
.
mode
;
mode
.
value
=
modeValue
.
value
;
mode
.
value
=
modeValue
.
value
;
}
}
console
.
log
(
mode
.
value
);
});
});
watch
(
mode
,
(
newVal
)
=>
{
sessionStorage
.
setItem
(
"dataDisplayMode"
,
newVal
);
modeValue
.
value
=
sessionStorage
.
getItem
(
"dataDisplayMode"
)
||
"DSN数据"
;
},
{
immediate
:
true
,
}
);
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
...
...
src/views/system/SystemIndex.vue
0 → 100644
View file @
56d11da4
<
template
>
<div>
system index
</div>
</
template
>
<
script
setup
lang=
"ts"
></
script
>
<
style
scoped
></
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment