Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica.cloud.web-education-admin
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
提交
议题看板
打开侧边栏
jingqi.liu
pica.cloud.web-education-admin
提交
8d73d562
提交
8d73d562
编写于
12月 31, 2021
作者:
changdi.hao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
优化上传
上级
a48c7f48
变更
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
35 行增加
和
42 行删除
+35
-42
item-shield.vue
src/views/education/item-shield.vue
+35
-42
未找到文件。
src/views/education/item-shield.vue
浏览文件 @
8d73d562
...
...
@@ -127,7 +127,7 @@
:show-file-list=
"true"
:before-upload=
"uploadfile"
>
<div
class=
"upload-container"
>
<div
class=
"upload-container
inline-b
"
>
<el-input
class=
"file-name"
v-model=
"fileData.fileName"
...
...
@@ -171,10 +171,10 @@
accept=
".xlsx"
multiple
:limit=
"1"
:show-file-list=
"
tru
e"
:show-file-list=
"
fals
e"
:before-upload=
"uploadMateFile"
>
<div
class=
"upload-container"
>
<div
class=
"upload-container
inline-b
"
>
<el-input
class=
"file-name"
v-model=
"mateFileData.fileName"
...
...
@@ -202,10 +202,10 @@
>
</div>
</el-dialog>
<!--
导入匹配机构名单
-->
<!--
批量屏蔽
-->
<el-dialog
class=
"exportlogistics-dialog"
title=
"
匹配机构
导入"
title=
"
批量屏蔽
导入"
:visible=
"isShowBatch"
@
close=
"isShowBatch = false"
width=
"600px"
...
...
@@ -218,10 +218,10 @@
accept=
".xlsx"
multiple
:limit=
"1"
:show-file-list=
"
tru
e"
:show-file-list=
"
fals
e"
:before-upload=
"uploadBatchFile"
>
<div
class=
"upload-container"
>
<div
class=
"upload-container
inline-b
"
>
<el-input
class=
"file-name"
v-model=
"batchFileData.fileName"
...
...
@@ -629,36 +629,30 @@ export default {
this
.
formInline
.
pageNo
=
val
;
this
.
search
();
},
download
()
{
const
downloadUrl
=
'https://files.yunqueyi.com/template/org_template.xlsx'
;
setTimeout
(()
=>
{
window
.
open
(
downloadUrl
);
},
500
);
},
importMate
()
{
this
.
isShowMate
=
true
;
},
importBatch
()
{
this
.
isShowBatch
=
true
},
//机构匹配上传exel
uploadMateFile
(
file
)
{
console
.
log
(
"file"
,
file
)
this
.
mateFileData
.
fileName
=
file
.
name
;
const
formData
=
new
FormData
();
formData
.
append
(
"projectId"
,
this
.
projectId
)
formData
.
append
(
"file"
,
file
)
this
.
mateFileData
.
file
=
formData
;
console
.
log
(
"file"
,
formData
)
},
// 确认导入
//
机构匹配
确认导入
confirmMateImport
()
{
this
.
isLoading
=
true
;
let
parmas
=
{
file
:
this
.
mateFileData
.
file
,
projectId
:
this
.
projectId
}
uploadMateExcel
(
parmas
).
then
(
res
=>
{
uploadMateExcel
(
this
.
mateFileData
.
file
).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
)
{
if
(
res
.
data
)
{
this
.
isLoading
=
false
;
this
.
isShowMate
=
false
;
this
.
cancelMateImport
()
;
let
a
=
document
.
createElement
(
'a'
);
let
href
=
res
.
data
;
a
.
setAttribute
(
'href'
,
href
);
...
...
@@ -680,7 +674,7 @@ export default {
this
.
$message
.
error
(
error
.
message
);
})
},
// 取消导入
//
机构匹配
取消导入
cancelMateImport
()
{
this
.
mateFileData
=
{
file
:
""
,
...
...
@@ -688,36 +682,24 @@ export default {
};
this
.
isShowMate
=
false
;
},
//批量屏蔽上传exel
uploadBatchFile
(
file
)
{
this
.
batchFileData
.
fileName
=
file
.
name
;
const
formData
=
new
FormData
();
formData
.
append
(
'projectId'
,
this
.
projectId
)
formData
.
append
(
"file"
,
file
)
this
.
batchFileData
.
file
=
formData
;
},
// 确认导入
//
批量屏蔽
确认导入
confirmBatchImport
()
{
this
.
isLoading
=
true
;
let
parmas
=
{
file
:
this
.
batchFileData
.
file
,
projectId
:
this
.
projectId
}
uploadBatchExcel
(
parmas
).
then
(
res
=>
{
uploadBatchExcel
(
this
.
batchFileData
.
file
).
then
(
res
=>
{
if
(
res
.
code
==
'000000'
)
{
if
(
res
.
data
)
{
this
.
isLoading
=
false
;
this
.
isShowMate
=
false
;
let
a
=
document
.
createElement
(
'a'
);
let
href
=
res
.
data
;
a
.
setAttribute
(
'href'
,
href
);
a
.
click
();
this
.
$message
({
message
:
'导入成功,您上传的机构信息已匹配完成,请确认后进行批量屏蔽'
,
type
:
'success'
});
}
else
{
this
.
isLoading
=
false
;
this
.
$message
.
error
(
res
.
message
);
}
this
.
cancelBatchImport
();
this
.
$message
({
message
:
'屏蔽成功'
,
type
:
'success'
});
}
else
{
this
.
isLoading
=
false
;
this
.
$message
.
error
(
res
.
message
);
...
...
@@ -727,6 +709,7 @@ export default {
this
.
$message
.
error
(
error
.
message
);
})
},
//批量屏蔽取消导入
cancelBatchImport
()
{
this
.
batchFileData
=
{
file
:
""
,
...
...
@@ -742,6 +725,7 @@ export default {
.component-content
{
padding
:
10px
;
background
:
#fff
;
.complete
{
float
:
right
;
}
...
...
@@ -749,5 +733,14 @@ export default {
color
:
#D51F35
;
}
}
.inline-b
{
display
:
flex
;
.el-button--mini
{
margin-left
:
20px
;
}
}
.upload-container
{
line-height
:
0
;
}
}
</
style
>
\ No newline at end of file
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录