Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f9eaa3ca
authored
Jan 04, 2021
by
xinlaa
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
员工详情接口调试
1 parent
15cf405f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
90 additions
and
81 deletions
linkwe-ui/src/views/groupMessage/TabContent.vue
linkwe-ui/src/views/groupMessage/detail.vue
linkwe-ui/src/views/groupMessage/TabContent.vue
0 → 100644
View file @
f9eaa3c
<
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
View file @
f9eaa3c
<
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>
...
...
Write
Preview
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