Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
仟微科技
Link Wechat
提交
855fe884
Link Wechat
项目概览
仟微科技
/
Link Wechat
通知
48
Star
3
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Link Wechat
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
855fe884
编写于
1月 04, 2021
作者:
X
xinlaa
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
员工详情接口调试
上级
b1859d77
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
90 addition
and
81 deletion
+90
-81
linkwe-ui/src/views/groupMessage/TabContent.vue
linkwe-ui/src/views/groupMessage/TabContent.vue
+74
-0
linkwe-ui/src/views/groupMessage/detail.vue
linkwe-ui/src/views/groupMessage/detail.vue
+16
-81
未找到文件。
linkwe-ui/src/views/groupMessage/TabContent.vue
0 → 100644
浏览文件 @
855fe884
<
script
>
import
{
getPushResult
}
from
"
@/api/groupMessage
"
;
export
default
{
components
:
{},
props
:
{
type
:
{
type
:
Number
|
String
,
default
:
"
1
"
},
total
:
{
type
:
Number
|
String
,
default
:
0
}
},
data
()
{
return
{
// 查询参数
query
:
{
pageNum
:
1
,
pageSize
:
10
,
messageId
:
undefined
,
status
:
0
},
loading
:
false
,
list
:
[]
};
},
watch
:
{},
computed
:
{},
created
()
{
this
.
query
.
messageId
=
this
.
$route
.
query
.
id
;
this
.
query
.
status
=
this
.
type
;
this
.
getList
();
},
mounted
()
{},
methods
:
{
/** 查询 */
getList
(
page
)
{
page
&&
(
this
.
query
.
pageNum
=
page
);
this
.
loading
=
true
;
getPushResult
(
this
.
query
)
.
then
(({
rows
,
total
})
=>
{
this
.
list
=
rows
;
this
.
loading
=
false
;
this
.
$emit
(
"
update:total
"
,
+
total
);
})
.
catch
(()
=>
{
this
.
loading
=
false
;
});
}
}
};
</
script
>
<
template
>
<div>
<el-table
v-loading=
"loading"
:data=
"list"
>
<el-table-column
label=
"发送员工"
align=
"center"
prop=
"userName"
/>
<el-table-column
label=
"发送客户"
align=
"center"
prop=
"customers"
>
</el-table-column>
</el-table>
<pagination
v-show=
"total > 0"
:total=
"total"
:page.sync=
"query.pageNum"
:limit.sync=
"query.pageSize"
@
pagination=
"getList"
/>
</div>
</
template
>
<
style
lang=
"less"
scoped
></
style
>
linkwe-ui/src/views/groupMessage/detail.vue
浏览文件 @
855fe884
<
script
>
import
{
getPushResult
}
from
"
@/api/groupMessage
"
;
import
TabContent
from
"
./TabContent
"
;
export
default
{
components
:
{},
components
:
{
TabContent
},
props
:
{},
data
()
{
return
{
query
:
{
pageNum
:
1
,
pageSize
:
10
,
messageId
:
""
,
status
:
0
},
// 表格数据
list
:
[],
form
:
{},
activeName
:
"
1
"
,
activeName
:
"
0
"
,
total1
:
0
,
total
2
:
0
total
0
:
0
};
},
watch
:
{},
computed
:
{},
created
()
{
this
.
id
=
this
.
$route
.
query
.
id
;
this
.
id
&&
this
.
getList
();
},
created
()
{},
mounted
()
{},
methods
:
{
getList
(
page
)
{
this
.
query
=
{
messageId
:
this
.
id
,
status
:
0
};
page
&&
(
this
.
query
.
pageNum
=
page
);
this
.
loading
=
true
;
getPushResult
(
this
.
query
)
.
then
(({
rows
,
total
})
=>
{
this
.
list
=
rows
;
this
.
total
=
+
total
;
this
.
loading
=
false
;
this
.
ids
=
[];
})
.
catch
(()
=>
{
this
.
loading
=
false
;
});
}
notice
()
{}
}
};
</
script
>
<
template
>
<div>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tab-pane
:label=
"`待发送($
{total1})`" name="1">
<div
class=
"ar"
>
<el-button
type=
"primary"
>
发布动态
</el-button>
</div>
<el-table
v-loading=
"loading"
:data=
"list"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
label=
"发送员工"
align=
"center"
prop=
"title"
/>
<el-table-column
label=
"发送客户"
align=
"center"
prop=
"operTime"
>
<template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
operTime
)
}}
</span>
</
template
>
</el-table-column>
</el-table>
<pagination
v-show=
"total > 0"
:total=
"total"
:page.sync=
"query.pageNum"
:limit.sync=
"query.pageSize"
@
pagination=
"getList"
/>
<!--
<el-button
class=
"notice"
type=
"primary"
@
click=
"notice"
>
通知员工发送
</el-button
>
-->
<el-tabs
v-model=
"activeName"
>
<el-tab-pane
:label=
"`待发送($
{total0})`" name="0">
<TabContent
type=
"0"
:total.sync=
"total0"
></TabContent>
</el-tab-pane>
<el-tab-pane
:label=
"`已发送(${total2})`"
name=
"2"
>
<el-table
v-loading=
"loading"
:data=
"list"
@
selection-change=
"handleSelectionChange"
>
<el-table-column
label=
"发送员工"
align=
"center"
prop=
"title"
/>
<el-table-column
label=
"发送客户"
align=
"center"
prop=
"operTime"
>
<
template
slot-scope=
"scope"
>
<span>
{{
parseTime
(
scope
.
row
.
operTime
)
}}
</span>
</
template
>
</el-table-column>
</el-table>
<pagination
v-show=
"total > 0"
:total=
"total"
:page.sync=
"query.pageNum"
:limit.sync=
"query.pageSize"
@
pagination=
"getList"
/>
<el-tab-pane
:label=
"`已发送($
{total1})`" name="1">
<TabContent
type=
"1"
:total.sync=
"total1"
></TabContent>
</el-tab-pane>
</el-tabs>
</div>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录