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 cc061a35
authored
Jun 07, 2023
by
ext.wangyuman1
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
客户朋友圈模块
1 parent
d63e00b5
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
261 additions
and
15 deletions
vue3-lw-pc/src/views/conversation/quality/records-statistic.vue
vue3-lw-pc/src/views/friendCircle/compoments/Staff.vue
vue3-lw-pc/src/views/friendCircle/compoments/Custom.vue → vue3-lw-pc/src/views/friendCircle/components/Custom.vue
vue3-lw-pc/src/views/friendCircle/compoments/Interaction.vue → vue3-lw-pc/src/views/friendCircle/components/Interaction.vue
vue3-lw-pc/src/views/friendCircle/compoments/SelectMember.vue → vue3-lw-pc/src/views/friendCircle/components/SelectMember.vue
vue3-lw-pc/src/views/friendCircle/components/Staff.vue
vue3-lw-pc/src/views/friendCircle/statistics.vue
vue3-lw-pc/src/views/conversation/quality/records-statistic.vue
View file @
cc061a3
...
@@ -239,7 +239,6 @@ export default {
...
@@ -239,7 +239,6 @@ export default {
},
},
getTableFn
(
data
)
{
getTableFn
(
data
)
{
this
.
loading
=
true
this
.
loading
=
true
// this.query.id = this.id
this
.
query
.
beginTime
=
data
.
beginTime
this
.
query
.
beginTime
=
data
.
beginTime
this
.
query
.
endTime
=
data
.
endTime
this
.
query
.
endTime
=
data
.
endTime
this
.
getTableChangeSize
()
this
.
getTableChangeSize
()
...
...
vue3-lw-pc/src/views/friendCircle/compoments/Staff.vue
deleted
100644 → 0
View file @
d63e00b
<
template
>
<div>
员工统计
</div>
</
template
>
<
script
>
export
default
{}
</
script
>
<
style
lang=
"scss"
scoped
></
style
>
vue3-lw-pc/src/views/friendCircle/compo
m
ents/Custom.vue
→
vue3-lw-pc/src/views/friendCircle/compo
n
ents/Custom.vue
View file @
cc061a3
File moved
vue3-lw-pc/src/views/friendCircle/compo
m
ents/Interaction.vue
→
vue3-lw-pc/src/views/friendCircle/compo
n
ents/Interaction.vue
View file @
cc061a3
File moved
vue3-lw-pc/src/views/friendCircle/compo
m
ents/SelectMember.vue
→
vue3-lw-pc/src/views/friendCircle/compo
n
ents/SelectMember.vue
View file @
cc061a3
File moved
vue3-lw-pc/src/views/friendCircle/components/Staff.vue
0 → 100644
View file @
cc061a3
<
template
>
<div>
<!-- 素材分析 -->
<CardGroupIndex
:data=
"cardData"
></CardGroupIndex>
<div
class=
"g-card"
>
<div
class=
"g-card-title"
>
员工记录
</div>
<div
style=
"display: flex; align-items: center; justify-content: space-between"
>
<div
style=
"display: flex; align-items: center"
>
<!--
<search-title
:showMore=
"true"
@
search=
"getTableFn"
></search-title>
-->
<el-input
style=
"width: 150px"
:model-value=
"userName"
readonly
@
click=
"dialogVisible = true"
placeholder=
"请选择成员"
/>
<el-input
style=
"width: 150px; margin: 0 20px"
:model-value=
"deptName"
readonly
@
click=
"dialogDeptVisible = true"
placeholder=
"请选择部门"
/>
<el-select
v-model=
"query.surveyState"
placeholder=
"请选择状态"
style=
"width: 150px; margin-right: 20px"
>
<el-option
label=
"未执行"
:value=
"0"
></el-option>
<el-option
label=
"已执行"
:value=
"1"
></el-option>
</el-select>
<el-button
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
@
click=
"resetQuery"
>
清空
</el-button>
</div>
<div>
<el-button
type=
"primary"
>
提醒执行
</el-button>
<el-button
type=
"primary"
@
click=
"exportFn"
v-loading=
"exportLoading"
>
导出
</el-button>
</div>
</div>
<el-table
v-loading=
"loading"
:data=
"tableList"
style=
"width: 100%"
>
<el-table-column
label=
"执行人名称"
align=
"center"
prop=
"userName"
min-width=
"100"
show-overflow-tooltip
></el-table-column>
<el-table-column
label=
"执行人所属部门"
align=
"center"
prop=
"deptName"
show-overflow-tooltip
></el-table-column>
<el-table-column
label=
"执行状态"
align=
"center"
prop=
"timeOutNum"
show-overflow-tooltip
>
<template
#
default=
"
{ row }">
<div>
{{
row
}}
</div>
</
template
>
</el-table-column>
<el-table-column
label=
"提醒执行次数"
align=
"center"
prop=
"timeOutNum"
show-overflow-tooltip
></el-table-column>
</el-table>
<pagination
:total=
"total"
v-model:page=
"query.pageNum"
v-model:limit=
"query.pageSize"
@
pagination=
"getTableChangeSize()"
/>
</div>
<SelectUser
v-model:visible=
"dialogVisible"
title=
"组织架构"
:defaultValues=
"userArray"
@
success=
"getSelectUser"
></SelectUser>
<SelectDept
:defaultValues=
"deptArray"
v-model:visible=
"dialogDeptVisible"
title=
"选择部门"
@
success=
"selectedDept"
></SelectDept>
</div>
</template>
<
script
>
import
ChartBar
from
'@/components/ChartBar.vue'
import
ChartLine
from
'@/components/ChartLine.vue'
import
SelectDept
from
'@/components/SelectDept'
import
{
getTableTotal
}
from
'@/api/contentCenter/common.js'
export
default
{
name
:
'scene-statistics-scene'
,
components
:
{
ChartLine
,
ChartBar
,
SelectDept
,
},
data
()
{
return
{
deptArray
:
[],
deptName
:
''
,
dialogDeptVisible
:
false
,
dialogVisible
:
false
,
userArray
:
[],
userName
:
''
,
cardData
:
[
{
title
:
'目标执行员工数 '
,
tips
:
'应执行本朋友圈任务的员工总数'
,
value
:
0
,
noArrow
:
true
,
},
{
title
:
'未执行员工数'
,
tips
:
'当前未执行本朋友圈任务的员工数'
,
value
:
0
,
},
{
title
:
'已执行员工数'
,
tips
:
'当前已执行本朋友圈任务的员工数'
,
value
:
0
,
},
{
title
:
'今日执行员工数'
,
tips
:
'今日已执行本朋友圈任务的员工数'
,
value
:
0
,
},
{
title
:
'已提醒次数'
,
tips
:
'本朋友圈任务对未执行成员已提醒执行的次数'
,
value
:
0
,
},
],
value
:
[],
id
:
''
,
exportLoading
:
false
,
tableList
:
[],
loading
:
false
,
total
:
0
,
query
:
{
pageSize
:
10
,
pageNum
:
1
,
beginTime
:
''
,
endTime
:
''
,
deptIds
:
''
,
userIds
:
''
,
},
tableSearch
:
{},
}
},
methods
:
{
exportFn
()
{
this
.
$confirm
(
'确认导出吗?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
})
.
then
(()
=>
{
this
.
exportLoading
=
true
return
getTableExport
(
this
.
id
,
Object
.
assign
({},
this
.
query
))
})
.
then
((
res
)
=>
{
if
(
!
res
)
return
const
blob
=
new
Blob
([
res
],
{
type
:
'application/vnd.ms-excel'
})
// 构造一个blob对象来处理数据,并设置文件类型
if
(
window
.
navigator
.
msSaveOrOpenBlob
)
{
//兼容IE10
navigator
.
msSaveBlob
(
blob
,
'质检详情'
)
}
else
{
const
href
=
URL
.
createObjectURL
(
blob
)
//创建新的URL表示指定的blob对象
const
a
=
document
.
createElement
(
'a'
)
//创建a标签
a
.
style
.
display
=
'none'
a
.
href
=
href
// 指定下载链接
a
.
download
=
dateFormat
(
new
Date
(),
'YYYY-MM-DD'
)
+
'-质检详情.xlsx'
//指定下载文件名
a
.
click
()
//触发下载
URL
.
revokeObjectURL
(
a
.
href
)
//释放URL对象
}
})
.
catch
((
error
)
=>
{
console
.
error
(
error
)
})
.
finally
(()
=>
{
this
.
exportLoading
=
false
})
},
getSelectUser
(
data
)
{
this
.
userArray
=
data
this
.
userName
=
this
.
userArray
.
map
(
function
(
obj
,
index
)
{
return
obj
.
name
})
.
join
(
','
)
this
.
query
.
userIds
=
this
.
userArray
.
map
(
function
(
obj
,
index
)
{
return
obj
.
userId
})
.
join
(
','
)
},
selectedDept
(
data
)
{
this
.
deptArray
=
data
this
.
deptName
=
this
.
deptArray
.
map
(
function
(
obj
,
index
)
{
return
obj
.
deptName
})
.
join
(
','
)
this
.
query
.
deptIds
=
this
.
userArray
.
map
(
function
(
obj
,
index
)
{
return
obj
.
deptId
})
.
join
(
','
)
},
// getTableFn(data) {
// this.loading = true
// this.query.beginTime = data.beginTime
// this.query.endTime = data.endTime
// this.getTableChangeSize()
// },
getTableChangeSize
()
{
this
.
loading
=
true
getTableTotal
(
this
.
query
).
then
((
res
)
=>
{
this
.
tableList
=
res
.
data
this
.
loading
=
false
})
},
resetQuery
()
{
this
.
query
=
{
pageSize
:
10
,
pageNum
:
1
,
beginTime
:
''
,
endTime
:
''
,
deptIds
:
''
,
userIds
:
''
,
}
this
.
userArray
=
[]
this
.
userName
=
''
this
.
deptArray
=
[]
this
.
deptName
=
''
this
.
getTableChangeSize
()
},
handleSearch
()
{
this
.
getTableChangeSize
()
},
},
created
()
{
this
.
getTableChangeSize
()
this
.
$store
.
setBusininessDesc
(
`
<div>全部素材发送与查看情况数据统计与分析</div>
`
)
},
}
</
script
>
<
style
lang=
"scss"
scoped
></
style
>
vue3-lw-pc/src/views/friendCircle/statistics.vue
View file @
cc061a3
...
@@ -8,14 +8,14 @@
...
@@ -8,14 +8,14 @@
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
Staff
from
'./compo
m
ents/Staff.vue'
import
Staff
from
'./compo
n
ents/Staff.vue'
import
Custom
from
'./compo
m
ents/Custom.vue'
import
Custom
from
'./compo
n
ents/Custom.vue'
import
Interaction
from
'./compo
m
ents/Interaction.vue'
import
Interaction
from
'./compo
n
ents/Interaction.vue'
export
default
{
export
default
{
compo
m
ents
:
{
Staff
,
Custom
,
Interaction
},
compo
n
ents
:
{
Staff
,
Custom
,
Interaction
},
data
()
{
data
()
{
return
{
return
{
activeName
:
'
second
'
,
activeName
:
'
first
'
,
}
}
},
},
methods
:
{
methods
:
{
...
...
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