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
>
<
script
>
import
{
getPushResult
}
from
"@/api/groupMessage
"
;
import
TabContent
from
"./TabContent
"
;
export
default
{
export
default
{
components
:
{},
components
:
{
TabContent
},
props
:
{},
props
:
{},
data
()
{
data
()
{
return
{
return
{
query
:
{
activeName
:
"0"
,
pageNum
:
1
,
pageSize
:
10
,
messageId
:
""
,
status
:
0
},
// 表格数据
list
:
[],
form
:
{},
activeName
:
"1"
,
total1
:
0
,
total1
:
0
,
total
2
:
0
total
0
:
0
};
};
},
},
watch
:
{},
watch
:
{},
computed
:
{},
computed
:
{},
created
()
{
created
()
{},
this
.
id
=
this
.
$route
.
query
.
id
;
this
.
id
&&
this
.
getList
();
},
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
getList
(
page
)
{
notice
()
{}
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
;
});
}
}
}
};
};
</
script
>
</
script
>
<
template
>
<
template
>
<div>
<div>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<!--
<el-button
class=
"notice"
type=
"primary"
@
click=
"notice"
<el-tab-pane
:label=
"`待发送($
{total1})`" name="1">
>
通知员工发送
</el-button
<div
class=
"ar"
>
>
-->
<el-button
type=
"primary"
>
发布动态
</el-button>
<el-tabs
v-model=
"activeName"
>
</div>
<el-tab-pane
:label=
"`待发送($
{total0})`" name="0">
<el-table
<TabContent
type=
"0"
:total
.
sync=
"total0"
></TabContent>
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>
</el-tab-pane>
<el-tab-pane
:label=
"`已发送(${total2})`"
name=
"2"
>
<el-tab-pane
:label=
"`已发送($
{total1})`" name="1">
<el-table
<TabContent
type=
"1"
:total
.
sync=
"total1"
></TabContent>
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>
</el-tab-pane>
</el-tabs>
</el-tabs>
</div>
</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