Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-admin-consultation
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-admin-consultation
提交
254805e1
提交
254805e1
编写于
4月 09, 2021
作者:
huangwensu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
删除多余文件
上级
5273e5c3
变更
10
展开全部
显示空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
1 行增加
和
3083 行删除
+1
-3083
router.js
src/router/router.js
+0
-34
detail.vue
src/views/IM/chain-history/detail.vue
+0
-185
list.vue
src/views/IM/chain-history/list.vue
+0
-178
index.vue
src/views/IM/chain-message/index.vue
+0
-439
index.scss
src/views/IM/current-session/index.scss
+0
-433
index.vue
src/views/IM/current-session/index.vue
+0
-1070
diagnosis-list.vue
src/views/IM/diagnosis-admin/diagnosis-list.vue
+1
-1
detail.vue
src/views/IM/search-message/detail.vue
+0
-389
list.vue
src/views/IM/search-message/list.vue
+0
-193
list.vue
src/views/IM/waiting-session/list.vue
+0
-161
未找到文件。
src/router/router.js
浏览文件 @
254805e1
import
App
from
'../App'
// // 消息查询
// const searchMessageList = r => require.ensure([], () => r(require('../views/IM/search-message/list.vue')), 'searchMessageList')
// const searchMessageDetail = r => require.ensure([], () => r(require('../views/IM/search-message/detail.vue')), 'searchMessageDetail')
// // 当前会话
// const currentSessionList = r => require.ensure([], () => r(require('../views/IM/current-session/index.vue')), 'currentMessageIndex')
// // 我要群发
// const chainMessage = r => require.ensure([], () => r(require('../views/IM/chain-message/index.vue')), 'chainMessage')
// // 历史群发
// const chainHistoryList = r => require.ensure([], () => r(require('../views/IM/chain-history/list.vue')), 'chainHistoryList')
// const chainHistoryDetail = r => require.ensure([], () => r(require('../views/IM/chain-history/detail.vue')), 'chainHistoryDetail')
// 问诊订单管理
const
diagnosisList
=
r
=>
require
.
ensure
([],
()
=>
r
(
require
(
'../views/IM/diagnosis-admin/diagnosis-list.vue'
)),
'diagnosisList'
)
const
diagnosisIm
=
r
=>
require
.
ensure
([],
()
=>
r
(
require
(
'../views/IM/diagnosis-admin/diagnosis-im.vue'
)),
'diagnosisIm'
)
...
...
@@ -36,25 +22,5 @@ export default [{
path
:
'/diagnosis-live'
,
component
:
diagnosisLive
}
// {
// path: '/search-message-list',
// component: searchMessageList
// }, {
// path: '/search-message-detail',
// component: searchMessageDetail
// }, {
// path: '/current-session-list',
// component: currentSessionList
// }, {
// path: '/chain-message',
// component: chainMessage
// }, {
// path: '/chain-history-list',
// component: chainHistoryList
// }, {
// path: '/chain-history-detail',
// component: chainHistoryDetail
// }
]
}]
\ No newline at end of file
src/views/IM/chain-history/detail.vue
已删除
100644 → 0
浏览文件 @
5273e5c3
<
template
>
<div
class=
"chain-history-detail"
>
<bread-crumb
:curmbFirst=
"curmbFirst"
:curmbSecond=
"curmbSecond"
:jumPathThird=
"jumPathThird"
></bread-crumb>
<div
class=
"component-content screenSet"
id=
"screenSet"
>
<div
class=
"title"
>
群发标题:
<span>
{{
detailData
.
title
}}
</span></div>
<div
class=
"user-list"
>
目标用户:
<span
@
click=
"downFile"
>
{{
detailData
.
fileName
}}
</span></div>
<div
class=
"msg-container"
v-for=
"(item, index) in detailData.contentModelList"
:key=
"index"
>
<div
v-if=
"item.type == 0"
class=
"text-content"
>
<div>
{{
item
.
info
}}
</div>
</div>
<div
v-if=
"item.type == 1"
class=
"img-content"
v-viewer
>
<div
class=
"img-box"
>
<img
class=
"img"
:src=
"item.url"
:style=
"
{width: item.newW + 'px', height: item.newH + 'px' }"
alt
/>
</div>
</div>
<div
v-if=
"item.type == 2"
class=
"file-content"
>
<div
class=
"file-con"
@
click=
"openPDF(item.url)"
>
<div
class=
"file-left"
>
<span
class=
"name"
>
{{
item
.
info
|
shortName
(
23
)
}}
</span>
<span
class=
"size"
>
{{
item
.
fileSize
}}
</span>
</div>
<div
class=
"file-right"
>
<img
src=
"../../../assets/image/IM/icon-pdf.png"
alt
/>
</div>
</div>
</div>
<div
v-if=
"item.type == 3"
class=
"link-content"
>
<div
class=
"link-text"
>
{{
item
.
info
}}
</div>
</div>
</div>
</div>
</div>
</
template
>
<
script
>
import
BreadCrumb
from
"@/components/breadcrumb.vue"
;
import
{
doUpload
,
getFilePath
}
from
"@/utils/qiniu-util"
;
import
{
openLoading
,
closeLoading
,
betaHandle
}
from
"@/utils/utils"
;
import
*
as
commonUtil
from
"@/utils/utils"
;
export
default
{
components
:
{
BreadCrumb
,
},
data
()
{
return
{
jumPathThird
:
'/chain-history-list'
,
curmbFirst
:
"历史群发"
,
curmbSecond
:
"任务详情"
,
detailData
:
{
title
:
''
,
fileName
:
''
,
contentModelList
:
[]
},
historyId
:
''
,
};
},
created
()
{
this
.
historyId
=
this
.
$route
.
query
.
id
;
},
// 挂载到Dom完成时
mounted
()
{
console
.
log
(
'@@@@@@@@ in 挂载到Dom完成时 GJY'
);
commonUtil
.
resizeHeight
();
this
.
getData
();
},
methods
:
{
// 获取历史群发数据
getData
()
{
this
.
loading
=
true
;
let
url
=
`/im/group/info/
${
this
.
historyId
}
`
this
.
GET
(
url
).
then
(
res
=>
{
this
.
loading
=
false
;
if
(
res
.
code
==
"000000"
)
{
this
.
detailData
=
res
.
data
;
this
.
detailData
.
contentModelList
.
map
((
item
)
=>
{
if
(
item
.
type
==
1
)
{
this
.
imgSizeHandleNew
(
item
,
item
.
width
,
item
.
height
);
}
if
(
item
.
type
==
2
)
{
// 0 文本 1 图片 2PDF 3链接
item
.
fileSize
=
betaHandle
(
item
.
fileSize
);
}
})
}
});
},
// 下载目标文件
downFile
()
{
let
a
=
document
.
createElement
(
'a'
);
a
.
setAttribute
(
'href'
,
this
.
detailData
.
fileUrl
);
a
.
click
();
},
// 打开PDF
openPDF
(
url
)
{
window
.
open
(
url
,
"__blank"
);
}
}
};
</
script
>
<
style
lang=
"scss"
scoped
>
.chain-history-detail
{
.component-content
{
margin
:
80px
20px
0
20px
;
padding
:
10px
0px
0
20px
;
background
:
#fff
;
overflow
:
auto
;
.title
{
font-size
:
14px
;
color
:
#000
;
padding
:
0
5px
10px
0
;
}
.user-list
{
font-size
:
14px
;
color
:
#000
;
padding
:
0
5px
20px
0
;
border-bottom
:
1px
solid
#F0F1F2
;
span
{
color
:
#0D9078
;
}
}
.text-content
{
padding
:
16px
0
;
color
:
#333333
;
border-bottom
:
1px
solid
#F0F1F2
;
}
.img-content
{
padding
:
16px
0
;
border-bottom
:
1px
solid
#F0F1F2
;
cursor
:
pointer
;
.img-box
{
max-width
:
192px
;
max-height
:
320px
;
overflow
:
hidden
;
}
}
.file-content
{
padding
:
16px
0
;
border-bottom
:
1px
solid
#F0F1F2
;
.file-con
{
display
:
flex
;
flex-direction
:
row
;
max-width
:
260px
;
text-align
:
left
;
padding
:
10px
15px
;
background
:
#f0f1f2
;
border-radius
:
8px
;
cursor
:
pointer
;
.file-left
{
display
:
flex
;
flex-direction
:
column
;
justify-content
:
space-around
;
width
:
231px
;
.name
{
font-size
:
13px
;
color
:
#333333
;
}
.size
{
font-size
:
12px
;
color
:
#999999
;
}
}
.file-right
{
width
:
36px
;
height
:
44px
;
&
>
img
{
width
:
36px
;
height
:
100%
;
border-radius
:
3px
;
}
}
}
}
.link-content
{
padding
:
16px
0
;
color
:
#2f86f6
;
border-bottom
:
1px
solid
#F0F1F2
;
}
}
}
</
style
>
\ No newline at end of file
src/views/IM/chain-history/list.vue
已删除
100644 → 0
浏览文件 @
5273e5c3
<
template
>
<div
class=
"chain-history-wrap"
>
<div
class=
"component-content screenSet"
id=
"screenSet"
>
<el-row
:gutter=
"30"
class=
"row"
type=
"flex"
style=
"margin-top: 10px;margin-right:0px;"
>
<el-form
ref=
"serchForm"
inline
:model=
"searchParam"
label-width=
"15px"
style=
"width:100%;text-align:right;"
>
<el-form-item
label=
""
>
<el-input
clearable
v-model=
"searchParam.messageLogId"
size=
"small"
placeholder=
"请输入任务编号"
@
change=
"search(1)"
>
<el-button
slot=
"append"
icon=
"el-icon-search"
></el-button>
</el-input>
</el-form-item>
<el-form-item
label=
""
style=
"position:relative;top:-8px;left:0;margin-bottom: 0px;"
>
<el-date-picker
v-model=
"date"
size=
"small"
type=
"date"
placeholder=
"请选择日期"
@
change=
"search(1)"
></el-date-picker>
</el-form-item>
</el-form>
</el-row>
<el-table
:data=
"tableData"
style=
"width: 99%;padding: 0 30px;"
v-loading=
"loading"
>
<el-table-column
prop=
"id"
label=
"任务ID"
min-width=
"50"
align=
"left"
></el-table-column>
<el-table-column
prop=
"title"
label=
"任务名"
min-width=
"100"
align=
"left"
></el-table-column>
<el-table-column
prop=
"totalNumber"
label=
"群发人数"
min-width=
"50"
align=
"left"
></el-table-column>
<el-table-column
label=
"发送日期"
min-width=
"100"
align=
"left"
>
<template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
createdTime
|
dateFilter
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"createdName"
label=
"发送者"
min-width=
"50"
align=
"left"
></el-table-column>
<el-table-column
label=
"发送状态"
min-width=
"50"
align=
"left"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
status
|
statusFilter
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"任务详情"
fixed=
"right"
align=
"left"
min-width=
"100"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"text"
size=
"medium"
@
click=
"edit(scope.row)"
>
查看
</el-button>
</
template
>
</el-table-column>
<div
slot=
"empty"
>
<div
class=
"table-empty"
>
<img
src=
"../../../assets/image/no-content1.png"
/>
<p>
没有查询到相关结果
</p>
</div>
</div>
</el-table>
<!-- 分页 -->
<div
class=
"pagination"
>
<el-pagination
background
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"searchParam.pageNo"
:page-sizes=
"[15, 30, 50, 100, 200, 500, 700, 1000, 1500, 2000]"
:page-size=
"searchParam.pageSize"
layout=
"total, sizes, prev, pager, next, jumper"
:total=
"totalRows"
>
</el-pagination>
</div>
</div>
</div>
</template>
<
script
>
import
BreadCrumb
from
"@/components/breadcrumb.vue"
;
import
{
doUpload
,
getFilePath
}
from
"@/utils/qiniu-util"
;
import
{
validateWord
}
from
"@/utils/validate.js"
;
import
{
openLoading
,
closeLoading
}
from
"@/utils/utils"
;
import
*
as
commonUtil
from
"@/utils/utils"
;
let
vm
=
null
;
export
default
{
data
()
{
return
{
searchParam
:
{
chooseDate
:
''
,
messageLogId
:
''
,
pageNo
:
1
,
pageSize
:
15
},
tableData
:
[],
totalRows
:
0
,
loading
:
false
,
date
:
''
};
},
computed
:
{},
filters
:
{
dateFilter
(
val
)
{
return
new
Date
(
val
).
format
(
"yyyy-MM-dd"
)
},
statusFilter
(
index
)
{
let
str
=
""
;
if
(
index
==
1
||
index
==
0
)
{
str
=
"发送中"
;
}
else
if
(
index
==
2
)
{
str
=
"已发送"
;
}
else
if
(
index
==
3
)
{
str
=
"发送失败"
;
}
return
str
;
}
},
created
()
{
},
// 挂载到Dom完成时
mounted
()
{
commonUtil
.
resizeHeight
(
92
);
this
.
search
();
},
methods
:
{
// 列表查询
search
(
a
)
{
if
(
a
)
this
.
searchParam
.
pageNo
=
1
;
this
.
loading
=
true
;
this
.
searchParam
.
chooseDate
=
this
.
date
?
new
Date
(
this
.
date
).
getTime
()
:
''
;
const
{
pageNo
,
pageSize
,
chooseDate
,
messageLogId
}
=
this
.
searchParam
;
let
url
=
`/im/group/list?pageNo=
${
pageNo
}
&pageSize=
${
pageSize
}
&chooseDate=
${
chooseDate
}
&messageLogId=
${
messageLogId
}
`
;
this
.
GET
(
url
).
then
(
res
=>
{
this
.
loading
=
false
;
if
(
res
.
code
==
"000000"
)
{
this
.
tableData
=
res
.
data
.
list
;
this
.
totalRows
=
res
.
data
.
total
;
}
});
},
// 查看消息详情
edit
(
row
)
{
this
.
$router
.
push
({
path
:
`/chain-history-detail`
,
query
:
{
id
:
row
.
id
}});
},
handleSizeChange
(
value
)
{
this
.
searchParam
.
pageSize
=
value
;
this
.
search
();
},
handleCurrentChange
(
value
)
{
this
.
searchParam
.
pageNo
=
value
;
this
.
search
();
}
}
};
</
script
>
<
style
lang=
"scss"
scoped
>
.chain-history-wrap
{
.component-content
{
padding
:
10px
;
background
:
#fff
;
// margin: 84px 20px 20px;
overflow
:
auto
;
.search-title
{
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
space-between
;
padding
:
10px
12px
;
font-size
:
12px
;
margin-bottom
:
20px
;
border-bottom
:
1px
solid
#efefef
;
.num
{
color
:
#0D9078
;
}
}
.create-button
{
padding
:
0
0
15px
;
margin-top
:
0
!
important
;
text-align
:
right
;
}
.table-empty
{
img
{
width
:
100px
;
}
p
{
margin-top
:
-50px
;
}
}
}
}
</
style
>
\ No newline at end of file
src/views/IM/chain-message/index.vue
已删除
100644 → 0
浏览文件 @
5273e5c3
此差异已折叠。
点击以展开。
src/views/IM/current-session/index.scss
已删除
100644 → 0
浏览文件 @
5273e5c3
此差异已折叠。
点击以展开。
src/views/IM/current-session/index.vue
已删除
100644 → 0
浏览文件 @
5273e5c3
此差异已折叠。
点击以展开。
src/views/IM/diagnosis-admin/diagnosis-list.vue
浏览文件 @
254805e1
...
...
@@ -333,7 +333,7 @@ export default {
},
// 加入问诊
jionCommunicate
(
row
)
{
this
.
$router
.
push
({
path
:
'/diagnosis-live'
,
query
:
{
tid
:
row
.
imTeamId
}})
this
.
$router
.
push
({
path
:
'/diagnosis-live'
,
query
:
{
tid
:
row
.
imTeamId
,
diagnoseLogId
:
row
.
diagnoseLogId
}})
},
// 发送消息
sendMessage
(
row
)
{
...
...
src/views/IM/search-message/detail.vue
已删除
100644 → 0
浏览文件 @
5273e5c3
此差异已折叠。
点击以展开。
src/views/IM/search-message/list.vue
已删除
100644 → 0
浏览文件 @
5273e5c3
<
template
>
<div
class=
"message-list-wrap"
>
<div
class=
"component-content screenSet"
id=
"screenSet"
>
<el-row
:gutter=
"30"
class=
"row"
type=
"flex"
style=
"margin-top: 10px;margin-right:10px;"
>
<el-form
ref=
"serchForm"
inline
:model=
"searchParam"
label-width=
"15px"
style=
"width:100%;text-align:right;"
>
<el-form-item
label=
""
>
<el-input
clearable
v-model=
"searchParam.userMobile"
size=
"small"
placeholder=
"请输入用户电话"
@
change=
"searchMessage(1)"
>
<el-button
slot=
"append"
icon=
"el-icon-search"
></el-button>
</el-input>
</el-form-item>
<el-form-item
label=
""
>
<el-input
clearable
v-model=
"searchParam.userName"
size=
"small"
placeholder=
"请输入用户名称"
@
change=
"searchMessage(1)"
>
<el-button
slot=
"append"
icon=
"el-icon-search"
></el-button>
</el-input>
</el-form-item>
<el-form-item
label=
""
>
<el-input
clearable
v-model=
"searchParam.adminName"
size=
"small"
placeholder=
"请输入客服名"
@
change=
"searchMessage(1)"
>
<el-button
slot=
"append"
icon=
"el-icon-search"
></el-button>
</el-input>
</el-form-item>
<el-form-item
label=
""
style=
"position:relative;top:-5px;left:0;margin-bottom: 0px;"
>
<el-date-picker
v-model=
"date"
size=
"small"
type=
"date"
placeholder=
"请选择日期"
value-format=
"yyyy-MM-dd"
@
change=
"searchMessage(1)"
></el-date-picker>
</el-form-item>
</el-form>
</el-row>
<el-table
:data=
"tableData"
style=
"width: 99%;padding: 0 30px;"
v-loading=
"loading"
>
<el-table-column
prop=
"userName"
label=
"用户名"
min-width=
"50"
align=
"left"
></el-table-column>
<el-table-column
prop=
"communicationNumber"
label=
"对话次数"
min-width=
"100"
align=
"left"
></el-table-column>
<el-table-column
label=
"用户类型"
min-width=
"50"
align=
"left"
>
<template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
idType
|
typeFilter
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"certStatus"
label=
"认证状况"
min-width=
"100"
align=
"left"
></el-table-column>
<el-table-column
prop=
"hospitalName"
label=
"所属机构"
min-width=
"120"
align=
"left"
></el-table-column>
<el-table-column
label=
"操作"
fixed=
"right"
align=
"left"
min-width=
"100"
>
<
template
slot-scope=
"scope"
>
<el-button
type=
"text"
size=
"medium"
@
click=
"edit(scope.row)"
>
查看详细
</el-button>
</
template
>
</el-table-column>
<div
slot=
"empty"
>
<div
class=
"table-empty"
>
<img
src=
"../../../assets/image/IM/no-search-list.png"
/>
<p>
没有查询到相关结果
</p>
</div>
</div>
</el-table>
<!-- 分页 -->
<div
class=
"pagination"
>
<el-pagination
background
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"searchParam.pageNo"
:page-sizes=
"[15, 30, 50, 100, 200, 500, 700, 1000, 1500, 2000]"
:page-size=
"searchParam.pageSize"
layout=
"total, sizes, prev, pager, next, jumper"
:total=
"totalRows"
>
</el-pagination>
</div>
</div>
</div>
</template>
<
script
>
import
{
doUpload
,
getFilePath
}
from
"@/utils/qiniu-util"
;
import
{
validateWord
}
from
"@/utils/validate.js"
;
import
{
openLoading
,
closeLoading
}
from
"@/utils/utils"
;
import
*
as
commonUtil
from
"@/utils/utils"
;
let
vm
=
null
;
export
default
{
data
()
{
return
{
date
:
''
,
searchParam
:
{
adminName
:
""
,
chooseDate
:
""
,
userMobile
:
""
,
userName
:
""
,
pageNo
:
1
,
pageSize
:
15
},
totalRows
:
0
,
tableData
:
[],
loading
:
false
,
// hasSearchDate: false // 查询条件不包含日期
};
},
computed
:
{},
filters
:
{
typeFilter
(
index
)
{
let
str
=
""
;
if
(
index
==
1
)
{
str
=
"医生"
;
}
else
if
(
index
==
2
)
{
str
=
"居民"
;
}
return
str
;
}
},
created
()
{
},
// 挂载到Dom完成时
mounted
()
{
commonUtil
.
resizeHeight
(
92
);
this
.
searchMessage
();
},
methods
:
{
// 列表查询
searchMessage
(
a
)
{
if
(
a
)
this
.
searchParam
.
pageNo
=
1
;
if
(
a
==
2
)
return
;
this
.
loading
=
true
;
let
url
=
`/im/system/message/list`
;
this
.
searchParam
.
chooseDate
=
this
.
date
?
new
Date
(
this
.
date
).
getTime
()
:
''
;
let
params
=
this
.
searchParam
;
this
.
GET
(
url
,
params
).
then
(
res
=>
{
this
.
loading
=
false
;
if
(
res
.
code
==
"000000"
)
{
this
.
tableData
=
res
.
data
.
list
;
this
.
totalRows
=
res
.
data
.
total
;
}
});
},
// 查看消息详情
edit
(
row
)
{
// if(this.searchParam.chooseDate) this.hasSearchDate = true;
this
.
$router
.
push
({
path
:
`/search-message-detail`
,
query
:
{
msgTimestamp
:
row
.
msgTimestamp
,
doctorAccId
:
row
.
accId
,
userName
:
row
.
userName
,
avatarImageUrl
:
row
.
avatarImageUrl
,
// hasSearchDate: this.hasSearchDate
}
});
},
handleSizeChange
(
value
)
{
this
.
searchParam
.
pageSize
=
value
;
this
.
searchMessage
();
},
handleCurrentChange
(
value
)
{
this
.
searchParam
.
pageNo
=
value
;
this
.
searchMessage
();
}
}
};
</
script
>
<
style
lang=
"scss"
scoped
>
.message-list-wrap
{
.component-content
{
padding
:
10px
;
background
:
#fff
;
// margin: 84px 20px 20px;
.search-title
{
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
space-between
;
padding
:
10px
12px
;
font-size
:
12px
;
margin-bottom
:
20px
;
border-bottom
:
1px
solid
#efefef
;
.num
{
color
:
#0D9078
;
}
}
.create-button
{
padding
:
0
0
15px
;
margin-top
:
0
!
important
;
text-align
:
right
;
}
.table-empty
{
margin-top
:
20px
;
img
{
width
:
100px
;
}
p
{
margin-top
:
-45px
;
}
}
}
}
</
style
>
\ No newline at end of file
src/views/IM/waiting-session/list.vue
已删除
100644 → 0
浏览文件 @
5273e5c3
<
template
>
<div
class=
"wts-list-wrap"
>
<!--
<bread-crumb
:curmbFirst=
"curmbFirst"
:curmbSecond=
"curmbSecond"
></bread-crumb>
-->
<div
class=
"component-content screenSet"
id=
"screenSet"
>
<div
class=
"search-title"
>
<p>
当前共有
<span
class=
"num"
>
{{
total
}}
位
</span>
用户正在等待
</p>
<el-button
type=
"primary"
size=
"small"
@
click=
"getNextSession()"
>
给我一个任务
</el-button>
</div>
<el-table
:data=
"tableData"
style=
"width: 100%"
v-loading=
"loading"
>
<el-table-column
prop=
"userName"
label=
"用户名"
min-width=
"50"
align=
"center"
></el-table-column>
<el-table-column
prop=
"waitTime"
label=
"等待时间"
min-width=
"100"
align=
"center"
>
<template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
waitTime
*
1000
|
continueTimesFilter
(
true
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"idType"
label=
"用户类型"
min-width=
"50"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
idType
|
typeFilter
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"certStatus"
label=
"认证状况"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"hospitalName"
label=
"所属机构"
min-width=
"50"
align=
"center"
></el-table-column>
<div
slot=
"empty"
>
<div
class=
"table-empty"
>
<img
src=
"../../../assets/image/IM/no-search-list.png"
/>
<p>
没有查询到相关结果
</p>
</div>
</div>
</el-table>
</div>
</div>
</template>
<
script
>
import
{
mapGetters
,
mapMutations
}
from
'vuex'
;
import
BreadCrumb
from
"@/components/breadcrumb.vue"
;
import
{
doUpload
,
getFilePath
}
from
"@/utils/qiniu-util"
;
import
{
validateWord
}
from
"@/utils/validate.js"
;
import
{
openLoading
,
closeLoading
}
from
"@/utils/utils"
;
import
*
as
commonUtil
from
"@/utils/utils"
;
let
vm
=
null
;
// let intervalId = null;
export
default
{
components
:
{
BreadCrumb
},
data
()
{
return
{
curmbFirst
:
"云鹊客服"
,
curmbSecond
:
"等待会话"
,
tableData
:
[],
total
:
0
,
loading
:
false
,
};
},
computed
:
{
},
filters
:
{
typeFilter
(
index
)
{
let
str
=
""
;
if
(
index
==
1
)
{
str
=
"医生"
;
}
else
if
(
index
==
2
)
{
str
=
"居民"
;
}
return
str
;
}
},
created
()
{
this
.
getListData
();
// intervalId = setInterval(() => {
// this.getListData();
// }, 10000);
},
// 挂载到Dom完成时
mounted
:
function
()
{
commonUtil
.
resizeHeight
(
76
,
134
);
},
methods
:
{
...
mapMutations
([
'SET_IS_FROM_ASSIGN_TASK'
]),
// 获取数据
getListData
()
{
this
.
loading
=
true
;
this
.
GET
(
'/im/task/list?pageNo=1&pageSize=40'
).
then
((
res
)
=>
{
this
.
loading
=
false
;
if
(
res
.
code
===
'000000'
)
{
this
.
tableData
=
res
.
data
.
list
||
[];
this
.
total
=
res
.
data
.
total
;
}
else
{
this
.
$message
({
message
:
res
.
message
,
type
:
'error'
});
}
})
},
// 给我一个任务吧,如果当前没有任务,则要提示
getNextSession
()
{
this
.
GET
(
'/im/session/kf/fetchOneTask'
).
then
((
res
)
=>
{
if
(
res
.
code
===
'000000'
)
{
this
.
SET_IS_FROM_ASSIGN_TASK
(
true
);
this
.
$router
.
push
({
path
:
`/diagnosis-list`
});
}
else
{
this
.
$message
({
message
:
res
.
message
,
type
:
'error'
});
}
})
},
},
// 离开页面时,清除定时器
beforeDestroy
()
{
// intervalId && clearInterval(intervalId);
},
};
</
script
>
<
style
lang=
"scss"
scoped
>
.wts-list-wrap
{
.component-content
{
padding
:
10px
;
background
:
#fff
;
// margin: 84px 20px 20px;
.search-title
{
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
space-between
;
padding
:
10px
12px
;
font-size
:
12px
;
margin-bottom
:
20px
;
border-bottom
:
1px
solid
#efefef
;
p
{
font-size
:
16px
;
color
:
#000
;
}
.num
{
font-weight
:
700
;
color
:
#0D9078
;
}
}
.create-button
{
padding
:
0
0
15px
;
margin-top
:
0
!
important
;
text-align
:
right
;
}
.table-empty
{
margin-top
:
20px
;
img
{
width
:
100px
;
}
p
{
margin-top
:
-45px
;
}
}
}
}
</
style
>
\ No newline at end of file
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录