Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
fe-data-trusted-space
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
80b9d247
authored
2024-12-25 09:50:23 +0800
by
xukangle
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 关闭后再次打开未初始化
1 parent
6d4f0972
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
src/views/data_inventory/classStandardEdit.vue
src/views/data_inventory/classifyGradEdit.vue
src/views/data_inventory/templateConfig.vue
src/views/data_inventory/classStandardEdit.vue
View file @
80b9d24
...
...
@@ -15,7 +15,7 @@ const { required, orderNum } = useValidator();
const
{
proxy
}
=
getCurrentInstance
()
as
any
;
const
router
=
useRouter
();
const
route
=
useRoute
();
const
fullPath
=
route
.
query
.
fullPath
;
const
fullPath
=
route
.
fullPath
;
const
userStore
=
useUserStore
();
const
fullscreenLoading
=
ref
(
false
);
...
...
@@ -517,6 +517,8 @@ const changeShowMethod = () => {
}
const
cancel
=
()
=>
{
console
.
log
(
userStore
.
tabbar
);
console
.
log
(
fullPath
);
proxy
.
$openMessageBox
(
"当前页面尚未保存,确定放弃修改吗?"
,
()
=>
{
userStore
.
setTabbar
(
userStore
.
tabbar
.
filter
((
tab
:
any
)
=>
tab
.
fullPath
!==
fullPath
));
router
.
push
({
...
...
src/views/data_inventory/classifyGradEdit.vue
View file @
80b9d24
...
...
@@ -10,7 +10,7 @@ import { saveGrade, getGradeList, deleteGrade, getLargeCategoryList, updateGrade
import
useUserStore
from
"@/store/modules/user"
;
const
userStore
=
useUserStore
();
const
route
=
useRoute
();
const
fullPath
=
route
.
query
.
fullPath
;
const
fullPath
=
route
.
fullPath
;
onBeforeMount
(()
=>
{
getGradeListData
();
getDataGrade
();
...
...
src/views/data_inventory/templateConfig.vue
View file @
80b9d24
...
...
@@ -287,6 +287,7 @@ const newCreateClassStandardDialogInfo = ref({
newCreateClassStandardDialogInfo
.
value
.
submitBtnLoading
=
false
;
newCreateClassStandardDialogInfo
.
value
.
visible
=
false
;
}
else
{
newCreateClassStandardDialogInfo
.
value
.
submitBtnLoading
=
false
;
proxy
.
$ElMessage
.
error
(
res
.
msg
);
}
}
else
{
...
...
@@ -381,6 +382,7 @@ const newCreateGradeStandardDialogInfo = ref({
newCreateGradeStandardDialogInfo
.
value
.
submitBtnLoading
=
false
;
newCreateGradeStandardDialogInfo
.
value
.
visible
=
false
;
}
else
{
newCreateGradeStandardDialogInfo
.
value
.
submitBtnLoading
=
false
;
proxy
.
$ElMessage
.
error
(
res
.
msg
);
}
}
else
{
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment