Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzuaa
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzuaa
提交
52c86c17
提交
52c86c17
编写于
8月 11, 2020
作者:
laizhilong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
导航栏待办消息列表展示插件
上级
8f36e4bb
变更
5
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
206 行增加
和
1 行删除
+206
-1
app-register.ts
app_web/src/app-register.ts
+2
-0
app-message-popover.less
...c/components/app-message-popover/app-message-popover.less
+49
-0
app-message-popover.vue
...rc/components/app-message-popover/app-message-popover.vue
+149
-0
index-base.vue
app_web/src/pages/uaa/index/index-base.vue
+1
-0
application.yml
ibzuaa-app/ibzuaa-app-web/src/main/resources/application.yml
+5
-1
未找到文件。
app_web/src/app-register.ts
浏览文件 @
52c86c17
...
@@ -81,6 +81,7 @@ import AppDepartmentSelect from './components/app-department-select/app-departme
...
@@ -81,6 +81,7 @@ import AppDepartmentSelect from './components/app-department-select/app-departme
import
AppGroupSelect
from
'./components/app-group-select/app-group-select.vue'
import
AppGroupSelect
from
'./components/app-group-select/app-group-select.vue'
import
UpdatePwd
from
'./components/app-update-password/app-update-password.vue'
import
UpdatePwd
from
'./components/app-update-password/app-update-password.vue'
import
AppMenuItem
from
'./components/app-menu-item/app-menu-item.vue'
import
AppMenuItem
from
'./components/app-menu-item/app-menu-item.vue'
import
AppMessagePopover
from
"@components/app-message-popover/app-message-popover.vue"
;
// 全局挂载UI实体服务注册中心
// 全局挂载UI实体服务注册中心
window
[
'uiServiceRegister'
]
=
uiServiceRegister
;
window
[
'uiServiceRegister'
]
=
uiServiceRegister
;
// 全局挂载实体权限服务注册中心
// 全局挂载实体权限服务注册中心
...
@@ -175,5 +176,6 @@ export const AppComponents = {
...
@@ -175,5 +176,6 @@ export const AppComponents = {
v
.
component
(
'context-menu-drag'
,
ContextMenuDrag
);
v
.
component
(
'context-menu-drag'
,
ContextMenuDrag
);
v
.
component
(
'app-update-password'
,
UpdatePwd
);
v
.
component
(
'app-update-password'
,
UpdatePwd
);
v
.
component
(
'app-menu-item'
,
AppMenuItem
);
v
.
component
(
'app-menu-item'
,
AppMenuItem
);
v
.
component
(
'app-message-popover'
,
AppMessagePopover
);
},
},
};
};
\ No newline at end of file
app_web/src/components/app-message-popover/app-message-popover.less
0 → 100644
浏览文件 @
52c86c17
.item {
height: 24px;
line-height: 24px;
}
#bellBtn {
height: 24px;
font-size: 16px;
padding-top: 2px;
}
.Row {
height: 60px;
border-bottom: 1px solid lightgray;
display: flex;
align-items: center;
.column1 {
text-align: center;
border: 0px solid red;
}
.column2 {
border: 0px red solid;
.el-row {
display: flex;
.el-col {
flex-grow: 1;
div:first-child {
font-weight: 500;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
div:nth-child(n+2) {
font-size: 12px;
}
}
}
}
}
app_web/src/components/app-message-popover/app-message-popover.vue
0 → 100644
浏览文件 @
52c86c17
<
template
>
<!-- 消息弹出框绘制开始 -->
<el-badge
:is-dot=
"showIsDot"
class=
"item"
>
<el-popover
placement=
"bottom"
trigger=
"click"
width=
"400"
>
<el-tabs
:value=
"default_tab_pane"
:stretch=
"true"
>
<!-- 待办 -->
<el-tab-pane
:label=
"myTasks.length==0?myTasksLabel:(myTasksLabel+'('+myTasks.length+')')"
name=
"first"
style=
"height: 300px; overflow: auto"
:draggable=
"false"
>
<el-row
v-for=
"(myTask,index) in myTasks"
class=
"Row"
:draggable=
"false"
>
<el-col
:span=
"6"
class=
"column1"
:draggable=
"false"
>
<el-avatar
icon=
"el-icon-s-check"
size=
"small"
:draggable=
"false"
style=
"color: white;background-color: #409eff;"
></el-avatar>
</el-col>
<el-col
:span=
"18"
class=
"column2"
:draggable=
"false"
>
<el-row
:draggable=
"false"
>
<el-col
:span=
"12"
:draggable=
"false"
>
<div
:draggable=
"false"
>
{{
myTask
.
processDefinitionName
}}
</div>
<div
:draggable=
"false"
>
{{
myTask
.
description
}}
</div>
<div
:draggable=
"false"
>
{{
myTask
.
createTime
}}
</div>
</el-col>
<el-col
:span=
"6"
:draggable=
"false"
>
<el-tag
:type=
"myTask.name.indexOf('驳回')!=-1?'danger':(myTask.name.indexOf('成功')!=-1?'success':(myTask.name.indexOf('取消')!=-1?'info':'-'))"
size=
"small"
@
click=
"handleTag(myTask.id)"
style=
"cursor: pointer;"
:draggable=
"false"
>
{{
myTask
.
name
}}
</el-tag>
</el-col>
</el-row>
</el-col>
</el-row>
</el-tab-pane>
<!-- 消息 -->
<el-tab-pane
:label=
"myMsgs.length==0?myMsgsLabel:(myMsgsLabel+'('+myMsgs.length+')')"
name=
"second"
style=
"height: 300px; overflow: auto"
:draggable=
"false"
>
<el-row
v-for=
"(myMsg,index) in myMsgs"
class=
"Row"
:draggable=
"false"
>
<el-col
:span=
"6"
class=
"column1"
:draggable=
"false"
>
<el-avatar
icon=
"el-icon-chat-dot-square"
size=
"small"
:draggable=
"false"
style=
"color: white;background-color: orange;"
></el-avatar>
</el-col>
<el-col
:span=
"18"
class=
"column2"
:draggable=
"false"
>
<el-row
:draggable=
"false"
>
<el-col
:span=
"12"
:draggable=
"false"
>
<div
:draggable=
"false"
>
{{
myMsg
.
processDefinitionName
}}
</div>
<div
:draggable=
"false"
>
{{
myMsg
.
description
}}
</div>
<div
:draggable=
"false"
>
{{
myMsg
.
createTime
}}
</div>
</el-col>
<el-col
:span=
"6"
:draggable=
"false"
>
<el-tag
:type=
"myMsg.name.indexOf('驳回')!=-1?'danger':(myMsg.name.indexOf('成功')!=-1?'success':(myMsg.name.indexOf('取消')!=-1?'info':'-'))"
size=
"small"
@
click=
"handleTag(myMsg.id)"
style=
"cursor: pointer;"
:draggable=
"false"
>
{{
myMsg
.
name
}}
</el-tag>
</el-col>
</el-row>
</el-col>
</el-row>
</el-tab-pane>
</el-tabs>
<el-button
id=
"bellBtn"
icon=
"el-icon-bell"
size=
"mini"
slot=
"reference"
></el-button>
</el-popover>
</el-badge>
<!-- 消息弹出框绘制结束 -->
</
template
>
<
script
lang=
"ts"
>
import
{
Vue
,
Component
,
Prop
,
Model
,
Emit
}
from
"vue-property-decorator"
;
import
{
Subject
}
from
"rxjs"
;
import
{
Environment
}
from
'@/environments/environment'
;
@
Component
({})
export
default
class
AppMessagePopover
extends
Vue
{
// 是否显示小圆点
public
showIsDot
:
any
=
false
;
// 默认显示的tab页
public
default_tab_pane
:
any
=
"first"
;
// 待办列表
public
myTasks
:
any
=
[];
// 待办面板标签
public
myTasksLabel
:
any
=
"待办"
;
// 消息列表
public
myMsgs
:
any
=
[];
// 消息列表标签
public
myMsgsLabel
:
any
=
"消息"
;
/**
* vue创建
*/
created
():
void
{
}
/**
* vue挂载
*/
mounted
():
void
{
// 第一次获取待办列表
this
.
getMyTasks
();
let
count
=
1
;
// 每隔1分钟重新获取待办列表
setInterval
(()
=>
{
this
.
getMyTasks
();
count
++
;
},
1000
*
60
);
}
/**
* 获取待办列表
*/
public
getMyTasks
()
{
let
url
:
any
=
'/wfcore/mytasks'
;
this
.
$http
.
get
(
url
).
then
((
response
:
any
)
=>
{
if
(
response
&&
response
.
status
==
200
)
{
const
data
:
any
=
response
.
data
;
if
(
data
&&
data
.
length
>
0
)
{
this
.
myTasks
=
data
;
this
.
myMsgs
=
data
;
this
.
showIsDot
=
true
;
}
else
{
this
.
myTasks
=
[];
this
.
myMsgs
=
[];
}
}
}).
catch
((
error
:
any
)
=>
{
this
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
error
});
})
}
/**
* 点击标签事件
*/
public
handleTag
(
data
:
any
)
{
alert
(
"点击了"
+
data
);
}
/**
* 销毁之前
*/
beforeDestroy
():
void
{
this
.
showIsDot
=
false
;
this
.
myTasks
=
[];
this
.
myMsgs
=
[];
}
}
</
script
>
<
style
lang=
'less'
>
@import "app-message-popover.less";
</
style
>
\ No newline at end of file
app_web/src/pages/uaa/index/index-base.vue
浏览文件 @
52c86c17
...
@@ -41,6 +41,7 @@
...
@@ -41,6 +41,7 @@
</div>
</div>
<div
class=
"header-right"
style=
"display: flex;align-items: center;justify-content: space-between;"
>
<div
class=
"header-right"
style=
"display: flex;align-items: center;justify-content: space-between;"
>
<app-header-menus
/>
<app-header-menus
/>
<app-message-popover></app-message-popover>
<app-lang
style=
'font-size: 15px;padding: 0 10px;'
></app-lang>
<app-lang
style=
'font-size: 15px;padding: 0 10px;'
></app-lang>
<app-orgsector></app-orgsector>
<app-orgsector></app-orgsector>
<app-user></app-user>
<app-user></app-user>
...
...
ibzuaa-app/ibzuaa-app-web/src/main/resources/application.yml
浏览文件 @
52c86c17
...
@@ -17,3 +17,7 @@ zuul:
...
@@ -17,3 +17,7 @@ zuul:
path
:
/config/**
path
:
/config/**
serviceId
:
${ibiz.ref.service.ibzuaa-api:ibzuaa-api}
serviceId
:
${ibiz.ref.service.ibzuaa-api:ibzuaa-api}
stripPrefix
:
false
stripPrefix
:
false
wfcore
:
path
:
/wfcore/**
serviceId
:
${ibiz.ref.service.wf:ibzwf-api}
stripPrefix
:
true
\ No newline at end of file
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录