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 4c67ec4a
authored
May 15, 2023
by
怪兽?别跑
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
质检接口调试
1 parent
143de5b5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
261 additions
and
27 deletions
linkwe-pc/src/views/conversation/quality/add.vue
linkwe-pc/src/views/conversation/quality/api.js
linkwe-pc/src/views/conversation/quality/index.vue
linkwe-pc/src/views/conversation/quality/records.vue
linkwe-pc/src/views/conversation/quality/statistics.vue
linkwe-pc/src/views/conversation/quality/add.vue
View file @
4c67ec4
...
@@ -33,26 +33,26 @@
...
@@ -33,26 +33,26 @@
style=
"margin-left: 10px;"
style=
"margin-left: 10px;"
size=
"mini"
size=
"mini"
type=
"primary"
type=
"primary"
@
click=
"onSelectUser(index)"
@
click=
"onSelect
Single
User(index)"
>
>
{{
item
.
weQiRuleUserList
.
length
?
'修改'
:
'选择'
}}
员工
{{
item
.
weQiRuleUserList
.
length
?
'修改'
:
'选择'
}}
员工
</el-button>
</el-button>
</el-form-item>
</el-form-item>
<el-form-item
label-width=
"100px"
label=
"工作周期:"
>
<el-form-item
label-width=
"100px"
label=
"工作周期:"
>
<el-checkbox-group
v-model=
"item.workCycle"
@
change=
"checkStartEnd($event, index)"
>
<el-checkbox-group
v-model=
"item.workCycle"
@
change=
"checkStartEnd($event, index)"
>
<el-checkbox
:
label=
"1"
>
周一
</el-checkbox>
<el-checkbox
label=
"1"
>
周一
</el-checkbox>
<el-checkbox
:
label=
"2"
>
周二
</el-checkbox>
<el-checkbox
label=
"2"
>
周二
</el-checkbox>
<el-checkbox
:
label=
"3"
>
周三
</el-checkbox>
<el-checkbox
label=
"3"
>
周三
</el-checkbox>
<el-checkbox
:
label=
"4"
>
周四
</el-checkbox>
<el-checkbox
label=
"4"
>
周四
</el-checkbox>
<el-checkbox
:
label=
"5"
>
周五
</el-checkbox>
<el-checkbox
label=
"5"
>
周五
</el-checkbox>
<el-checkbox
:
label=
"6"
>
周六
</el-checkbox>
<el-checkbox
label=
"6"
>
周六
</el-checkbox>
<el-checkbox
:
label=
"7"
>
周日
</el-checkbox>
<el-checkbox
label=
"7"
>
周日
</el-checkbox>
</el-checkbox-group>
</el-checkbox-group>
</el-form-item>
</el-form-item>
<el-form-item
label-width=
"100px"
label=
"在线时间:"
>
<el-form-item
label-width=
"100px"
label=
"在线时间:"
>
<el-time-select
<el-time-select
style=
"width: 130px;"
style=
"width: 130px;"
v-model=
"item.
start
Time"
v-model=
"item.
begin
Time"
:picker-options=
"
{
:picker-options=
"
{
start: '00:00',
start: '00:00',
end: '23:59',
end: '23:59',
...
@@ -70,7 +70,7 @@
...
@@ -70,7 +70,7 @@
end: '23:59',
end: '23:59',
step: '00:30'
step: '00:30'
}"
}"
:start="item.
start
Time"
:start="item.
begin
Time"
@change="checkStartEnd($event, index)"
@change="checkStartEnd($event, index)"
v-model="item.endTime"
v-model="item.endTime"
placeholder="任意时间点"
placeholder="任意时间点"
...
@@ -102,28 +102,41 @@
...
@@ -102,28 +102,41 @@
</el-form>
</el-form>
</div>
</div>
<div
class=
"g-footer-sticky"
>
<div
class=
"g-footer-sticky"
>
<el-button>
取消
</el-button>
<el-button
@
click=
"$router.back()"
>
取消
</el-button>
<el-button
type=
"primary"
>
确定
</el-button>
<el-button
type=
"primary"
@
click=
"submit"
>
确定
</el-button>
</div>
</div>
<SelectWeUser
<SelectWeUser
key=
"1"
:visible
.
sync=
"dialogVisible"
:visible
.
sync=
"dialogVisible"
title=
"组织架构"
title=
"组织架构"
:defaultValues=
"form.manageUserInfo"
:defaultValues=
"form.manageUserInfo"
@
success=
"getSelectUser"
@
success=
"getSelectUser"
></SelectWeUser>
></SelectWeUser>
<SelectWeUser
key=
"2"
:visible
.
sync=
"singleSelectVisible"
title=
"组织架构"
:defaultValues=
"singleSelect"
@
success=
"getSingleUser"
></SelectWeUser>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
{
addQuality
,
editQuality
,
detailQuality
}
from
'./api.js'
export
default
{
export
default
{
name
:
'quality-add'
,
name
:
'quality-add'
,
data
()
{
data
()
{
return
{
return
{
loading
:
false
,
dialogVisible
:
false
,
dialogVisible
:
false
,
singleSelect
:
[],
singleSelectVisible
:
false
,
orderIndex
:
null
,
form
:
{
form
:
{
name
:
''
,
name
:
''
,
chatType
:
1
,
chatType
:
1
,
timeOut
:
''
,
timeOut
:
10
,
manageUserInfo
:
[],
manageUserInfo
:
[],
qiRuleScope
:
[
qiRuleScope
:
[
{
{
...
@@ -134,10 +147,60 @@
...
@@ -134,10 +147,60 @@
}
}
]
]
},
},
rules
:
[]
rules
:
{
name
:
[
{
required
:
true
,
message
:
'请输入质检规则名称'
,
trigger
:
'blur'
}
],
timeOut
:
[
{
required
:
true
,
message
:
'请输入超时时间标准'
,
trigger
:
'blur'
}
]
}
}
}
},
},
methods
:
{
methods
:
{
getSingleUser
(
data
)
{
this
.
form
.
qiRuleScope
[
this
.
orderIndex
].
weQiRuleUserList
=
data
},
onSelectSingleUser
(
index
)
{
this
.
orderIndex
=
index
this
.
singleSelect
=
this
.
form
.
qiRuleScope
[
index
].
weQiRuleUserList
this
.
singleSelectVisible
=
true
},
submit
()
{
this
.
loading
=
true
let
obj
=
{
name
:
this
.
form
.
name
,
chatType
:
this
.
form
.
chatType
,
timeOut
:
this
.
form
.
timeOut
,
manageUser
:
this
.
form
.
manageUserInfo
.
map
((
dd
)
=>
dd
.
userId
).
join
(
','
)
}
let
arr
=
[]
this
.
form
.
qiRuleScope
.
forEach
((
res
)
=>
{
let
dd
=
{
beginTime
:
res
.
beginTime
,
endTime
:
res
.
endTime
,
workCycle
:
res
.
workCycle
,
userIds
:
res
.
weQiRuleUserList
.
map
((
ff
)
=>
ff
.
userId
)
}
arr
.
push
(
dd
)
})
obj
.
qiUserInfos
=
arr
;(
this
.
form
.
id
?
editQuality
(
this
.
$route
.
query
.
id
,
obj
)
:
addQuality
(
obj
)).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
this
.
msgSuccess
(
'操作成功'
)
this
.
loading
=
false
this
.
$router
.
back
()
}
})
},
checkStartEnd
()
{},
checkStartEnd
()
{},
getSelectUser
(
data
)
{
getSelectUser
(
data
)
{
this
.
form
.
manageUserInfo
=
data
this
.
form
.
manageUserInfo
=
data
...
@@ -148,6 +211,16 @@
...
@@ -148,6 +211,16 @@
onRemoveRoster
(
index
)
{
onRemoveRoster
(
index
)
{
this
.
form
.
qiRuleScope
.
splice
(
index
,
1
)
this
.
form
.
qiRuleScope
.
splice
(
index
,
1
)
}
}
},
created
()
{
if
(
this
.
$route
.
query
.
id
)
{
detailQuality
(
this
.
$route
.
query
.
id
).
then
((
res
)
=>
{
this
.
form
=
res
.
data
this
.
form
.
qiRuleScope
.
forEach
((
dd
)
=>
{
dd
.
workCycle
=
dd
.
workCycle
.
split
(
','
)
})
})
}
}
}
}
}
</
script
>
</
script
>
...
...
linkwe-pc/src/views/conversation/quality/api.js
View file @
4c67ec4
...
@@ -27,3 +27,50 @@ export function editQuality(id, data) {
...
@@ -27,3 +27,50 @@ export function editQuality(id, data) {
data
data
})
})
}
}
// 删除
export
function
deleteQuality
(
id
)
{
return
request
({
url
:
service
+
'/qi/del/'
+
id
,
method
:
'delete'
})
}
// 详情
export
function
detailQuality
(
id
)
{
return
request
({
url
:
service
+
'/qi/get/'
+
id
})
}
// 周报列表 待调
export
function
qualityWeeklyTatble
(
data
)
{
return
request
({
url
:
service
+
'/qi/list'
,
method
:
'get'
,
params
:
data
})
}
// 质检统计 看板
export
function
statisticData
(
id
)
{
return
request
({
url
:
service
+
'/qi/statistics/view/'
+
id
})
}
// 质检统计 质检记录
export
function
statisticTable
(
id
,
data
)
{
return
request
({
url
:
service
+
'/qi/statistics/table/'
+
id
,
params
:
data
})
}
// 质检统计 消息记录
export
function
statisticRecordList
(
data
)
{
return
request
({
url
:
service
+
'/qi/statistics/table/msg'
,
params
:
data
})
}
linkwe-pc/src/views/conversation/quality/index.vue
View file @
4c67ec4
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<el-form-item
label=
"适用成员"
prop=
"userIds"
>
<el-form-item
label=
"适用成员"
prop=
"userIds"
>
<el-input
:value=
"userName"
readonly
@
focus=
"dialogVisible = true"
placeholder=
"请选择适用成员"
/>
<el-input
:value=
"userName"
readonly
@
focus=
"dialogVisible = true"
placeholder=
"请选择适用成员"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"会话类型"
label-width=
"40px"
>
<el-form-item
label=
"会话类型"
>
<el-select
v-model=
"query.chatType"
:popper-append-to-body=
"false"
>
<el-select
v-model=
"query.chatType"
:popper-append-to-body=
"false"
>
<el-option
:label=
"data.value"
:value=
"data.key"
v-for=
"(data, key) in chatTypeArray"
:key=
"key"
></el-option>
<el-option
:label=
"data.value"
:value=
"data.key"
v-for=
"(data, key) in chatTypeArray"
:key=
"key"
></el-option>
</el-select>
</el-select>
...
@@ -46,13 +46,14 @@
...
@@ -46,13 +46,14 @@
<el-table-column
label=
"超时时间标准"
align=
"center"
min-width=
"100"
prop=
"timeOut"
show-overflow-tooltip
/>
<el-table-column
label=
"超时时间标准"
align=
"center"
min-width=
"100"
prop=
"timeOut"
show-overflow-tooltip
/>
<el-table-column
label=
"质检督导"
align=
"center"
prop=
"manageUser"
min-width=
"160px"
>
<el-table-column
label=
"质检督导"
align=
"center"
prop=
"manageUser"
min-width=
"160px"
>
<
template
slot-scope=
"{ row }"
>
<
template
slot-scope=
"{ row }"
>
<TagEllipsis
:list=
"row.manageUser"
/>
<!--
<TagEllipsis
:list=
"row.manageUser"
/>
-->
{{
row
.
manageUser
}}
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作时间"
align=
"center"
prop=
"updateTime"
width=
"180"
></el-table-column>
<el-table-column
label=
"操作时间"
align=
"center"
prop=
"updateTime"
width=
"180"
></el-table-column>
<el-table-column
label=
"操作"
align=
"center"
fixed=
"right"
width=
"180"
class-name=
"small-padding fixed-width"
>
<el-table-column
label=
"操作"
align=
"center"
fixed=
"right"
width=
"180"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"{ row }"
>
<
template
slot-scope=
"{ row }"
>
<el-button
type=
"text"
@
click=
"goRoute('
detail
', row.id)"
>
统计
</el-button>
<el-button
type=
"text"
@
click=
"goRoute('
statistic
', row.id)"
>
统计
</el-button>
<el-button
type=
"text"
@
click=
"goRoute('add', row.id)"
>
编辑
</el-button>
<el-button
type=
"text"
@
click=
"goRoute('add', row.id)"
>
编辑
</el-button>
<el-button
type=
"text"
@
click=
"removeFn(row.id)"
>
删除
</el-button>
<el-button
type=
"text"
@
click=
"removeFn(row.id)"
>
删除
</el-button>
</
template
>
</
template
>
...
@@ -71,7 +72,7 @@
...
@@ -71,7 +72,7 @@
</template>
</template>
<
script
>
<
script
>
import
{
getList
}
from
'./api.js'
import
{
getList
,
deleteQuality
}
from
'./api.js'
export
default
{
export
default
{
name
:
'quality'
,
name
:
'quality'
,
data
()
{
data
()
{
...
@@ -108,6 +109,9 @@
...
@@ -108,6 +109,9 @@
]
]
}
}
},
},
created
()
{
this
.
getList
()
},
methods
:
{
methods
:
{
getSelectUser
(
data
)
{
getSelectUser
(
data
)
{
this
.
userArray
=
data
this
.
userArray
=
data
...
@@ -140,7 +144,7 @@
...
@@ -140,7 +144,7 @@
},
},
getList
()
{
getList
()
{
getList
(
this
.
query
).
then
((
res
)
=>
{
getList
(
this
.
query
).
then
((
res
)
=>
{
this
.
total
=
res
.
total
this
.
total
=
Number
(
res
.
total
)
this
.
list
=
res
.
rows
this
.
list
=
res
.
rows
})
})
},
},
...
@@ -168,10 +172,10 @@
...
@@ -168,10 +172,10 @@
type
:
'warning'
type
:
'warning'
})
})
.
then
(()
=>
{
.
then
(()
=>
{
return
remove
(
id
)
return
deleteQuality
(
id
)
})
})
.
then
(()
=>
{
.
then
(()
=>
{
this
.
s
earch
()
this
.
handleS
earch
()
this
.
msgSuccess
(
'删除成功'
)
this
.
msgSuccess
(
'删除成功'
)
})
})
.
catch
(
function
()
{})
.
catch
(
function
()
{})
...
...
linkwe-pc/src/views/conversation/quality/records.vue
View file @
4c67ec4
<
template
>
</
template
>
<
template
>
<div>
<el-form
ref=
"queryForm"
:model=
"query"
inline
class=
"top-search"
label-position=
"left"
label-width=
""
>
<el-form-item
label=
"适用成员"
prop=
"userIds"
>
<el-input
:value=
"userName"
readonly
@
focus=
"dialogVisible = true"
placeholder=
"请选择适用成员"
/>
</el-form-item>
<el-form-item
label=
"操作时间"
>
<el-date-picker
v-model=
"searchDate"
format=
"yyyy-MM-dd"
value-format=
"yyyyMMdd"
type=
"daterange"
range-separator=
"-"
@
change=
"setDateChange"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
></el-date-picker>
</el-form-item>
<el-form-item
label=
""
>
<el-button
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
@
click=
"resetQuery"
>
重置
</el-button>
</el-form-item>
</el-form>
<div
class=
"g-card"
>
<el-table
v-loading=
"loading"
:data=
"list"
>
<el-table-column
label=
"规则名称"
align=
"center"
min-width=
"100"
prop=
"name"
show-overflow-tooltip
/>
<el-table-column
label=
"适用成员范围"
align=
"center"
prop=
"qiRuleScope"
min-width=
"160px"
>
<template
slot-scope=
"
{ row }">
<TagEllipsis
:list=
"row.qiRuleScope"
defaultProps=
"userName"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"发送时间"
align=
"center"
prop=
"updateTime"
width=
"180"
></el-table-column>
<el-table-column
label=
"操作"
align=
"center"
fixed=
"right"
width=
"180"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"{ row }"
>
<el-button
type=
"text"
@
click=
"goRoute('detail', row.id)"
>
统计
</el-button>
<el-button
type=
"text"
@
click=
"goRoute('add', row.id)"
>
编辑
</el-button>
<el-button
type=
"text"
@
click=
"removeFn(row.id)"
>
删除
</el-button>
</
template
>
</el-table-column>
</el-table>
<pagination
:total=
"total"
:page
.
sync=
"query.pageNum"
:limit
.
sync=
"query.pageSize"
@
pagination=
"getList()"
/>
</div>
<SelectWeUser
:visible
.
sync=
"dialogVisible"
title=
"组织架构"
:defaultValues=
"userArray"
@
success=
"getSelectUser"
></SelectWeUser>
</div>
</template>
<
script
>
<
script
>
import
{}
from
'./api.js'
export
default
{
export
default
{
name
:
'name'
,
name
:
'quality-records'
,
data
:
function
()
{
data
()
{
return
{}
return
{
dialogVisible
:
false
,
query
:
{
beginTime
:
''
,
endTime
:
''
,
userIds
:
''
,
pageNum
:
1
,
pageSize
:
10
},
searchDate
:
[],
userName
:
''
,
userArray
:
[],
list
:
[],
loading
:
false
,
total
:
0
}
},
},
methods
:
{}
methods
:
{
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
(
','
)
},
setDateChange
(
data
)
{
if
(
data
&&
data
[
0
])
{
this
.
query
.
beginTime
=
data
[
0
]
}
else
{
this
.
query
.
beginTime
=
''
}
if
(
data
&&
data
[
1
])
{
this
.
query
.
endTime
=
data
[
1
]
}
else
{
this
.
query
.
endTime
=
''
}
},
handleSearch
()
{
this
.
query
.
pageNum
=
1
this
.
getList
()
},
getList
()
{},
resetQuery
()
{
this
.
query
=
{
pageSize
:
10
,
pageNum
:
1
,
name
:
''
,
userIds
:
''
,
startTime
:
''
,
endTime
:
''
,
chatType
:
1
}
this
.
userName
=
''
this
.
userArray
=
[]
this
.
getList
()
}
}
}
}
</
script
>
</
script
>
<
style
scoped
></
style
>
<
style
lang=
"scss"
scoped
></
style
>
linkwe-pc/src/views/conversation/quality/statistics.vue
View file @
4c67ec4
This diff is collapsed.
Click to expand it.
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