Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
提交
打开侧边栏
com.pica.cloud.education.frontend
pica.cloud.web-education-admin
提交
4d8bbc8f
提交
4d8bbc8f
编写于
5月 29, 2019
作者:
chengxiang.li
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
上级
9fbddef7
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
48 行增加
和
63 行删除
+48
-63
new-patient.less
src/style/patient-manager/new-patient/new-patient.less
+32
-1
batch-import.vue
src/views/patients/new-manage/components/batch-import.vue
+13
-50
qr-code-import.vue
src/views/patients/new-manage/components/qr-code-import.vue
+2
-11
new-patient.vue
src/views/patients/new-manage/new-patient.vue
+1
-1
未找到文件。
src/style/patient-manager/new-patient/new-patient.less
浏览文件 @
4d8bbc8f
...
...
@@ -66,10 +66,41 @@
margin-top: 10px;
padding: 10px;
border-radius: 4px;
overflow: hidden;
overflow-y: scroll;
&::-webkit-scrollbar
{
width: 5px;
height: 5px;
background-color: #fff;
}
&::-webkit-scrollbar-thumb
{
border-radius: 10px;
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
background-color: #bbb;
}
.el-checkbox{
margin-right: 10px;
margin-left: 0;
margin-bottom: 10px;
.el-checkbox__input{
&.is-focus{
.el-checkbox__inner{
border-color: #DCDFE6;
}
}
}
&.is-checked{
border-color: #449284;
.el-checkbox__inner{
background-color: #449284;
border-color: #449284;
}
.el-checkbox__label{
color: #449284;
}
}
}
}
}
...
...
@@ -126,7 +157,7 @@
.el-tab-pane{
width: 100%;
height: 100%;
background: #
F0F2F5
;
background: #
fff
;
overflow: hidden;
display: flex;
flex-direction: column;
...
...
src/views/patients/new-manage/components/batch-import.vue
浏览文件 @
4d8bbc8f
...
...
@@ -146,7 +146,6 @@
export
default
{
data
()
{
return
{
// uploadUrl: `${getSaasDomain('web/patientManages/import')}`,
searchData
:
{
pageNo
:
1
,
// 第几页
pageSize
:
10
,
// 每页条数
...
...
@@ -195,19 +194,24 @@
}];
let
req
=
{
//
token: localStorage.getItem("token"),
token
:
'496F36FCB4CB494E81EAC9FDAA5E2D4B
'
,
token
:
localStorage
.
getItem
(
"token"
),
// token: 'EA8DFCA594494230ABD14AC7E00E3E05
',
fileArray
:
fileArray
,
import_type
:
2
,
};
self
.
postData
=
JSON
.
stringify
(
req
);
uploadExcel
(
self
.
postData
).
then
(
res
=>
{
console
.
log
(
'%c res >> '
,
'color: red;'
,
res
)
//
console.log('%c res >> ','color: red;', res)
if
(
typeof
res
.
importFlag
!=
'undefined'
&&
res
.
importFlag
==
true
){
self
.
$message
({
message
:
'上传成功!'
,
type
:
'success'
});
try
{
this
.
goToGetUploadHistory
();
}
catch
(
err
){
console
.
log
(
'reload history list error'
);
}
}
else
{
self
.
$message
({
message
:
'上传失败,请重新上传!'
,
...
...
@@ -215,21 +219,22 @@
});
}
})
};
reader
.
readAsDataURL
(
file
);
},
handleDownloadDemo
(){
window
.
location
.
href
=
'https://file.yunqueyi.com/File/template/居民导入模板.xlsx'
;
let
src
=
'https://file.yunqueyi.com/File/template/居民导入模板.xlsx'
;
let
newTab
=
window
.
open
(
'about:blank'
);
newTab
.
location
=
src
;
},
goToGetUploadHistory
(){
console
.
log
(
'go get upload history>>>>>>'
)
//
console.log('go get upload history>>>>>>')
let
params
=
{
pageNo
:
this
.
searchData
.
pageNo
,
pageSize
:
this
.
searchData
.
pageSize
,
};
getUploadHistory
(
params
).
then
(
res
=>
{
console
.
log
(
'获取上传历史记录:'
,
res
);
//
console.log('获取上传历史记录:', res);
if
(
res
.
code
==
"000000"
){
if
(
res
.
data
.
importRecordsModelList
.
length
>
0
){
this
.
searchData
.
tableData
=
res
.
data
.
importRecordsModelList
;
...
...
@@ -244,48 +249,6 @@
}
})
},
changeFile
(
file
,
fileList
)
{
const
name
=
file
.
name
;
const
type
=
name
.
substring
(
name
.
lastIndexOf
(
'.'
)
+
1
);
if
(
type
!==
'xls'
&&
type
!==
'xlsx'
)
{
this
.
$message
({
message
:
'上传文件只能是 xls、xlsx格式!'
,
type
:
'warning'
});
fileList
.
splice
(
0
,
1
);
return
false
;
}
if
(
fileList
.
length
>
1
)
{
fileList
.
splice
(
0
,
1
);
}
this
.
files
=
[
file
];
},
uploadError
(
err
,
file
,
fileList
){
console
.
log
(
'%c upload Error >>>>>>>>'
,
'color: red;'
)
},
uploadSuccess
(
response
,
file
,
fileList
)
{
console
.
log
(
'%c upload Success >>>>>>>>'
,
'color: red;'
)
// this.loading = false;
// this.visible = false;
// this.tipShow = true;
console
.
log
(
'response: '
,
response
);
console
.
log
(
'file: '
,
file
);
console
.
log
(
'fileList: '
,
fileList
)
// console.log(response, file, fileList);
const
{
code
}
=
response
;
this
.
code
=
response
.
code
;
const
codes
=
[
'000000'
,
'400002'
,
'400004'
];
if
(
codes
.
indexOf
(
code
)
>
-
1
)
{
this
.
error
=
response
.
data
;
}
else
{
this
.
error
=
response
.
message
;
}
},
handleCurrentChange
(
val
)
{
this
.
searchData
.
pageNo
=
val
;
this
.
goToGetUploadHistory
();
...
...
src/views/patients/new-manage/components/qr-code-import.vue
浏览文件 @
4d8bbc8f
...
...
@@ -313,17 +313,8 @@
this
.
goToGetGroupList
();
},
downloadFile
(
src
)
{
debugger
;
var
eleLink
=
document
.
createElement
(
'a'
);
eleLink
.
download
=
src
;
eleLink
.
style
.
display
=
'none'
;
// // 字符内容转变成blob地址
eleLink
.
href
=
src
;
// // 触发点击
document
.
body
.
appendChild
(
eleLink
);
eleLink
.
click
();
// // 然后移除
document
.
body
.
removeChild
(
eleLink
);
let
newTab
=
window
.
open
(
'about:blank'
);
newTab
.
location
=
src
;
}
},
...
...
src/views/patients/new-manage/new-patient.vue
浏览文件 @
4d8bbc8f
...
...
@@ -42,7 +42,7 @@
return
{
curmbFirst
:
"居民管理"
,
curmbSecond
:
"新增居民"
,
activeName2
:
'
first
'
,
activeName2
:
'
second
'
,
patientInfo
:
{},
checkForm
:
false
,
patientId
:
''
,
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录