Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
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
e145f4d2
authored
2022-12-08 17:13:03 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:通知
1 parent
721f9bbe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
6 deletions
src/layout/components/Navbar.vue
src/views/system/xttz/xttz.vue
src/views/workflow/mixin/public.js
src/layout/components/Navbar.vue
View file @
e145f4d
...
...
@@ -49,6 +49,14 @@ export default {
created
()
{
this
.
queryNoticeList
()
},
mounted
()
{
let
that
=
this
window
.
addEventListener
(
'message'
,
function
(
messageEvent
)
{
if
(
messageEvent
.
data
.
update
)
{
that
.
queryNoticeList
()
}
},
false
)
},
methods
:
{
queryNoticeList
()
{
getHomeNoticeList
().
then
(
res
=>
{
...
...
src/views/system/xttz/xttz.vue
View file @
e145f4d
...
...
@@ -129,6 +129,7 @@ export default {
publishNotice
({
"bsmNotice"
:
item
.
bsmNotice
}).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
$message
.
success
(
'发布成功'
)
this
.
postMessage
()
this
.
queryClick
();
}
else
{
this
.
$message
.
error
(
res
.
message
)
...
...
@@ -141,6 +142,9 @@ export default {
});
});
},
postMessage
()
{
window
.
parent
.
postMessage
({
update
:
true
},
'*'
)
},
//取消发布
toUnPublish
(
item
)
{
this
.
$confirm
(
'是否确定取消发布'
,
'提示'
,
{
...
...
src/views/workflow/mixin/public.js
View file @
e145f4d
...
...
@@ -7,13 +7,23 @@ export default {
}
},
created
()
{
getHomeNoticeList
().
then
(
res
=>
{
if
(
res
.
result
)
{
this
.
noticeList
=
res
.
result
.
noticeList
this
.
getHomeNotice
()
},
mounted
()
{
window
.
addEventListener
(
'message'
,
function
(
messageEvent
)
{
if
(
messageEvent
.
data
.
update
)
{
this
.
getHomeNotice
()
}
})
}
,
false
)
},
methods
:
{
getHomeNotice
()
{
getHomeNoticeList
().
then
(
res
=>
{
if
(
res
.
result
)
{
this
.
noticeList
=
res
.
result
.
noticeList
}
})
},
//右侧表单选项卡事件
beforeLeave
(
activeName
,
oldActiveName
)
{
if
(
activeName
&&
activeName
!=
0
)
this
.
getFromRouter
(
activeName
)
...
...
@@ -21,8 +31,8 @@ export default {
//切换选项卡内容组件
getFromRouter
(
tabname
)
{
//根据tabname获取选中的表单 此操作为了获取后端返回的表单对象,使用里面的是否可操作的属性
for
(
let
item
of
this
.
tabList
)
{
if
(
item
.
value
===
tabname
)
{
for
(
let
item
of
this
.
tabList
)
{
if
(
item
.
value
===
tabname
)
{
this
.
currentSelectTab
=
item
break
;
}
...
...
Please
register
or
sign in
to post a comment