Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
3293a65a
提交
3293a65a
编写于
4月 08, 2019
作者:
yi.li
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
发送预约校验
上级
b6597e58
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
30 行增加
和
46 行删除
+30
-46
record-list.vue
src/views/followup/record-manage/record-list.vue
+7
-2
reservation-list.vue
src/views/followup/reservation-manage/reservation-list.vue
+23
-44
未找到文件。
src/views/followup/record-manage/record-list.vue
浏览文件 @
3293a65a
...
...
@@ -71,7 +71,7 @@
<el-row
type=
"flex"
justify=
"end"
class=
"margin-top20"
>
<el-pagination
background
v-if=
"
recordList.enteringDtos
"
v-if=
"
hasData
"
@
size-change=
"handleSizeChangePre"
@
current-change=
"handleCurrentChangePre"
layout=
"total, sizes, prev, pager, next, jumper"
...
...
@@ -124,6 +124,7 @@
enteringRow
:
{},
dialogDetailShow
:
false
,
isShowChangeDialog
:
false
,
hasData
:
false
,
}
},
computed
:
{
...
...
@@ -163,6 +164,11 @@
pageNo
:
currentPage
||
this
.
paginationSet
.
pageNo
,
pageSize
:
this
.
paginationSet
.
pageSize
,
});
if
(
this
.
recordList
.
enteringDtos
.
length
>
0
)
{
this
.
hasData
=
true
;
}
else
{
this
.
hasData
=
false
;
}
const
{
pageNo
,
pageSize
,
count
,
finishedCount
,
unfinishedCount
}
=
this
.
recordList
;
if
(
this
.
activeName
==
''
){
this
.
paginationSet
.
total
=
count
;
...
...
@@ -212,7 +218,6 @@
},
sendRow
(
row
){
// let saasUrl = getSaasDomain(`/pica-frontend/patientEduManage/pica_patient_edu_manage.html#/pageTab/message?patientId=${row.patientId}&token=D74A6C7C61564EB1B3DC83251F33D173`);
// console.log(saasUrl)
let
saasUrl
=
getSaasDomain
(
`/pica-frontend/patientEduManage/pica_patient_edu_manage.html#/pageTab/message?patientId=
${
row
.
patientId
}
&token=
${
this
.
_token
}
`
);
window
.
open
(
saasUrl
)
},
...
...
src/views/followup/reservation-manage/reservation-list.vue
浏览文件 @
3293a65a
...
...
@@ -338,6 +338,10 @@
},
closeSendReserve
(
val
){
this
.
isDialogShow
=
val
;
this
.
getReservationList
({
...
this
.
setSearchData
(),
status
:
this
.
status
,
})
},
closeTipsDialog
(
val
){
this
.
isNoEnoughShow
=
val
;
...
...
@@ -346,31 +350,6 @@
this
.
isChangeReservation
=
val
;
},
handleSelectionChange
(
val
){
// let obj = {};
// for(let i=0; i
<
val
.
length
;
i
++
){
// const pObj = val[i];
// const id = pObj['patientId'];
// const oo = obj[id];
// if (oo) {
// obj[id] = oo + 1;
// } else {
// obj[id] = 1;
// }
// }
// let arrNew = [];
// let objToStrMap = (obj) => {
// let strMap = new Map();
// for (let k of Object.keys(obj)) {
// strMap.set(k, obj[k]);
// }
// arrNew = [...strMap];
// return arrNew;
// }
// objToStrMap(obj)
// console.log('新数组',objToStrMap(obj))
// this.validContents = objToStrMap(obj)
for
(
let
i
in
val
){
for
(
let
j
in
val
[
i
])
{
if
(
j
==
'fuPlanId'
)
{
...
...
@@ -389,6 +368,7 @@
}
}
this
.
selectionData
=
val
;
//统计选择的居民的patientId
let
idsArray
=
[];
if
(
val
.
length
>
0
)
{
for
(
let
i
=
0
;
i
<
val
.
length
;
i
++
){
...
...
@@ -397,26 +377,25 @@
// this.ids = idsArray.join(",")
this
.
ids
=
idsArray
;
}
let
dedupeArr
=
Array
.
from
(
new
Set
(
this
.
ids
))
let
count
=
0
;
let
obj
=
{};
//最终返回的数据
dedupeArr
.
forEach
(
i
=>
{
count
=
0
;
this
.
ids
.
forEach
(
j
=>
{
if
(
i
===
j
){
count
++
;
}
})
obj
[
i
]
=
count
;
})
let
i
=
0
;
let
aaa
=
[];
for
(
i
in
obj
){
aaa
.
push
({
patientId
:
i
,
size
:
obj
[
i
]});
}
this
.
validContents
=
aaa
;
// let dedupeArr = Array.from(new Set(this.ids))
// let count = 0;
// let obj = {};//最终返回的数据
// dedupeArr.forEach(i => {
// count = 0;
// this.ids.forEach(j => {
// if(i === j){
// count++;
// }
// })
// obj[i] = count;
// })
// let i=0;
// let aaa = [];
// for(i in obj ){
// console.log(i+ ':' + obj[i]);
// aaa.push({[i]: obj[i]});
// }
// this.validContents.push(aaa);
},
closeDetail
(
val
){
this
.
dialogDetailShow
=
val
;
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录