Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
R
rs-admin
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
翟畅
rs-admin
Commits
4234bc5f
提交
4234bc5f
authored
1月 17, 2024
作者:
翟畅
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
zc批量导入提示语
上级
71955ca5
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
24 行增加
和
3 行删除
+24
-3
import.vue
src/components/dialog/import.vue
+18
-2
pdfImport.vue
src/components/dialog/pdfImport.vue
+1
-1
index.vue
src/views/resource_manage/annex_module/index.vue
+1
-0
index.vue
src/views/resource_manage/article_module/index.vue
+1
-0
index.vue
src/views/resource_manage/audio_module/index.vue
+1
-0
index.vue
src/views/resource_manage/picture_module/index.vue
+1
-0
index.vue
src/views/resource_manage/video_module/index.vue
+1
-0
没有找到文件。
src/components/dialog/import.vue
浏览文件 @
4234bc5f
...
...
@@ -37,7 +37,7 @@
</div>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"cancelAll"
>
全部取消
</el-button>
<el-button
size=
"small"
style=
"background:#1F71FF;color:#fff"
@
click=
"importSubmit"
:loading=
"sending"
>
全部
上传
</el-button>
<el-button
size=
"small"
style=
"background:#1F71FF;color:#fff"
@
click=
"importSubmit"
:loading=
"sending"
>
全部
保存
</el-button>
</div>
</el-dialog>
<relation-book-dialog
:showDialog
.
sync=
"showRelationDialog"
:bookId=
"$route.query.id"
@
close=
'showRelationDialog = false'
@
saveContent=
"saveContent"
></relation-book-dialog>
...
...
@@ -201,7 +201,7 @@ export default {
}
},
handleSuccess
(
response
,
file
,
fileList
)
{
this
.
$message
.
success
(
'上传成功'
)
//
this.$message.success('上传成功')
if
(
this
.
type
==
'book'
)
{
//图书
this
.
bookEpub
.
push
(
response
)
}
else
if
(
this
.
type
==
'pdf'
)
{
//pdf
...
...
@@ -261,9 +261,25 @@ export default {
importSubmit
()
{
this
.
$emit
(
'importBtn'
,
this
.
type
==
'book'
?
this
.
bookEpub
:
this
.
commonList
,
this
.
type
==
'book'
?
""
:
this
.
bookList
)
this
.
bookList
=
{}
if
(
this
.
type
==
'book'
)
{
this
.
fileList
=
[]
this
.
bookEpub
=
[]
}
else
{
this
.
fileList
=
[]
this
.
commonList
=
[]
}
this
.
currentFileList
=
[]
},
close
()
{
//关闭
this
.
bookList
=
{}
if
(
this
.
type
==
'book'
)
{
this
.
fileList
=
[]
this
.
bookEpub
=
[]
}
else
{
this
.
fileList
=
[]
this
.
commonList
=
[]
}
this
.
currentFileList
=
[]
this
.
$emit
(
'closeImport'
)
}
},
...
...
src/components/dialog/pdfImport.vue
浏览文件 @
4234bc5f
...
...
@@ -24,7 +24,7 @@
</div>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"cancelAll"
>
全部取消
</el-button>
<el-button
size=
"small"
style=
"background:#1F71FF;color:#fff"
@
click=
"importSubmit"
:loading=
"sending"
>
全部
上传
</el-button>
<el-button
size=
"small"
style=
"background:#1F71FF;color:#fff"
@
click=
"importSubmit"
:loading=
"sending"
>
全部
保存
</el-button>
</div>
</el-dialog>
</div>
...
...
src/views/resource_manage/annex_module/index.vue
浏览文件 @
4234bc5f
...
...
@@ -411,6 +411,7 @@ import searchDia from "@/components/dialog/searchTips";
}
importAPI
(
data
).
then
(
res
=>
{
if
(
res
.
data
.
code
===
0
)
{
// this.$message.success('导入成功,可继续点击导入按钮上传')
this
.
$message
.
success
(
"导入成功"
);
this
.
dialogImport
=
false
;
this
.
sending
=
false
;
...
...
src/views/resource_manage/article_module/index.vue
浏览文件 @
4234bc5f
...
...
@@ -334,6 +334,7 @@ import searchDia from "@/components/dialog/searchTips";
}
importAPI
(
data
).
then
(
res
=>
{
if
(
res
.
data
.
code
===
0
)
{
// this.$message.success('导入成功,可继续点击导入按钮上传')
this
.
$message
.
success
(
"导入成功"
);
this
.
dialogImport
=
false
;
this
.
sending
=
false
;
...
...
src/views/resource_manage/audio_module/index.vue
浏览文件 @
4234bc5f
...
...
@@ -294,6 +294,7 @@ export default {
}
importAPI
(
data
).
then
(
res
=>
{
if
(
res
.
data
.
code
===
0
)
{
// this.$message.success('导入成功,可继续点击导入按钮上传')
this
.
$message
.
success
(
'导入成功'
)
this
.
dialogImport
=
false
this
.
sending
=
false
...
...
src/views/resource_manage/picture_module/index.vue
浏览文件 @
4234bc5f
...
...
@@ -393,6 +393,7 @@ import searchDia from "@/components/dialog/searchTips";
}
importAPI
(
data
).
then
(
res
=>
{
if
(
res
.
data
.
code
===
0
)
{
// this.$message.success('导入成功,可继续点击导入按钮上传')
this
.
$message
.
success
(
"导入成功"
);
this
.
dialogImport
=
false
;
this
.
sending
=
false
;
...
...
src/views/resource_manage/video_module/index.vue
浏览文件 @
4234bc5f
...
...
@@ -432,6 +432,7 @@ export default {
}
importAPI
(
data
).
then
(
res
=>
{
if
(
res
.
data
.
code
===
0
)
{
// this.$message.success('导入成功,可继续点击导入按钮上传')
this
.
$message
.
success
(
"导入成功"
);
this
.
sending
=
false
;
this
.
dialogImport
=
false
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论