Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xoadoPlatform
Project
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
yaohui
xoadoPlatform
Commits
9b223baa
Commit
9b223baa
authored
May 12, 2022
by
吕海涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
0658bb2d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
18 deletions
+28
-18
noticeAdd.vue
src/views/notice/components/noticeAdd.vue
+16
-11
noticeEdit.vue
src/views/notice/components/noticeEdit.vue
+12
-7
No files found.
src/views/notice/components/noticeAdd.vue
View file @
9b223baa
...
@@ -343,17 +343,22 @@ export default {
...
@@ -343,17 +343,22 @@ export default {
},
},
saveNotice
()
{
saveNotice
()
{
let
that
=
this
;
let
that
=
this
;
this
.
$confirm
(
'存为草稿或发布公告'
,
'提示'
,
{
this
.
$confirm
(
confirmButtonText
:
'存为草稿'
,
"检测到未保存的内容,是否在离开页面前保存修改?"
,
cancelButtonText
:
'发布公告'
,
"确认信息"
,
type
:
'warning'
{
})
distinguishCancelAndClose
:
true
,
.
then
(()
=>
{
confirmButtonText
:
"存为草稿"
,
that
.
addNoticeInfo
(
true
);
cancelButtonText
:
"发布公告"
,
})
type
:
"warning"
,
.
catch
(()
=>
{
}
that
.
addNoticeInfo
(
false
);
)
})
.
then
(()
=>
{
that
.
addNoticeInfo
(
true
);
})
.
catch
((
action
)
=>
{
action
===
"cancel"
?
that
.
addNoticeInfo
(
false
)
:
""
;
});
},
},
addNoticeInfo
(
flag
)
{
addNoticeInfo
(
flag
)
{
let
params
=
this
.
preParams
(
flag
);
let
params
=
this
.
preParams
(
flag
);
...
...
src/views/notice/components/noticeEdit.vue
View file @
9b223baa
...
@@ -436,16 +436,21 @@ export default {
...
@@ -436,16 +436,21 @@ export default {
},
},
saveNotice
()
{
saveNotice
()
{
let
that
=
this
;
let
that
=
this
;
this
.
$confirm
(
"存为草稿或发布公告"
,
"提示"
,
{
this
.
$confirm
(
confirmButtonText
:
"存为草稿"
,
"检测到未保存的内容,是否在离开页面前保存修改?"
,
cancelButtonText
:
"发布公告"
,
"确认信息"
,
type
:
"warning"
,
{
})
distinguishCancelAndClose
:
true
,
confirmButtonText
:
"存为草稿"
,
cancelButtonText
:
"发布公告"
,
type
:
"warning"
,
}
)
.
then
(()
=>
{
.
then
(()
=>
{
that
.
addNoticeInfo
(
true
);
that
.
addNoticeInfo
(
true
);
})
})
.
catch
(()
=>
{
.
catch
((
action
)
=>
{
that
.
addNoticeInfo
(
false
)
;
action
===
"cancel"
?
that
.
addNoticeInfo
(
false
)
:
""
;
});
});
},
},
addNoticeInfo
(
flag
)
{
addNoticeInfo
(
flag
)
{
...
...
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