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
610b73e2
提交
610b73e2
authored
12月 25, 2023
作者:
翟畅
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
zc数字资源删除条件
上级
a577b6c2
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
45 行增加
和
15 行删除
+45
-15
component.vue
src/views/resource_manage/annex_module/component.vue
+6
-3
index.vue
src/views/resource_manage/annex_module/index.vue
+11
-2
index.vue
src/views/resource_manage/audio_module/index.vue
+9
-4
index.vue
src/views/resource_manage/picture_module/index.vue
+11
-2
index.vue
src/views/resource_manage/video_module/index.vue
+8
-4
没有找到文件。
src/views/resource_manage/annex_module/component.vue
浏览文件 @
610b73e2
...
...
@@ -189,10 +189,9 @@ import { audioListAPI } from '@/api/resource/audio'
import
{
pictureSaveAPI
,
pictureBatchUpdateAPI
,
detailsAPI
}
from
'@/api/resource/annex'
import
{
sortListAPI
,
authorLibraryAPI
,
labelListAPI
,
deleteFileAPI
,
getBookRelationAPI
,
}
from
'@/api/common'
import
{
authorRecDelAPI
}
from
'@/api/resource/author'
import
{
fileUrl
}
from
'@/utils/global'
import
{
formatSort
}
from
'@/utils/format'
import
{
valValidate
}
from
'@/utils/validate'
import
{
pdfFileUrl
,
bas
eUrl
}
from
'@/utils/global'
import
{
pdfFileUrl
,
baseUrl
,
fil
eUrl
}
from
'@/utils/global'
import
{
confirm
}
from
"@/utils/function"
;
import
store
from
'@/store'
import
relationBookDialog
from
"@/components/dialog/relation_book_dialog"
;
...
...
@@ -553,7 +552,11 @@ export default {
},
reviewAnnex
(
pdf
)
{
window
.
open
(
'https://www.class.com.cn/pdf/web/viewer.html?id='
+
pdf
)
if
(
this
.
dataForm
.
typeView
==
'PDF'
){
window
.
open
(
'https://www.class.com.cn/pdf/web/viewer.html?id='
+
pdf
)
}
else
{
window
.
open
(
this
.
fileUrl
+
'?fileName='
+
pdf
+
'&isOnLine=true'
)
}
// if(pdf){
// let userId = !store.getters.token?sessionStorage.getItem('token'):store.getters.token;
// window.open(`${this.baseUrl}/pdfreader/pdf/viewer/${pdf}?userId=${userId}`)
...
...
src/views/resource_manage/annex_module/index.vue
浏览文件 @
610b73e2
...
...
@@ -599,8 +599,17 @@ import searchDia from "@/components/dialog/searchTips";
}
else
{
//批量删除
tipText
=
"批量"
;
if
(
this
.
isExist
(
this
.
chooiceList
))
{
//至少选中一条
if
(
this
.
isExist
(
this
.
chooiceList
))
{
//至少选中一条
const
dataType1
=
this
.
chooiceList
.
some
(
data
=>
data
.
status
==
1
);
const
dataType2
=
this
.
chooiceList
.
some
(
data
=>
data
.
lockingState
==
'1'
);
if
(
dataType1
)
{
this
.
$message
.
warning
(
"请先下架,再删除数据"
);
return
;
}
if
(
dataType2
)
{
this
.
$message
.
warning
(
"请先解除锁定并下架,再删除数据"
);
return
;
}
arr
=
getSelectionIds
(
this
.
chooiceList
);
}
else
{
return
;
...
...
src/views/resource_manage/audio_module/index.vue
浏览文件 @
610b73e2
...
...
@@ -497,10 +497,15 @@ export default {
}
else
{
//批量删除
tipText
=
'批量'
if
(
this
.
isExist
(
this
.
chooiceList
))
{
//是否选中数据
const
dataType
=
this
.
chooiceList
.
some
(
data
=>
data
.
status
==
1
)
if
(
dataType
)
{
this
.
$message
.
warning
(
'请先下架,再删除数据'
)
return
const
dataType1
=
this
.
chooiceList
.
some
(
data
=>
data
.
status
==
1
);
const
dataType2
=
this
.
chooiceList
.
some
(
data
=>
data
.
lockingState
==
'1'
);
if
(
dataType1
)
{
this
.
$message
.
warning
(
"请先下架,再删除数据"
);
return
;
}
if
(
dataType2
)
{
this
.
$message
.
warning
(
"请先解除锁定并下架,再删除数据"
);
return
;
}
arr
=
getSelectionIds
(
this
.
chooiceList
)
}
else
{
...
...
src/views/resource_manage/picture_module/index.vue
浏览文件 @
610b73e2
...
...
@@ -581,8 +581,17 @@ import searchDia from "@/components/dialog/searchTips";
}
else
{
//批量删除
tipText
=
"批量"
;
if
(
this
.
isExist
(
this
.
chooiceList
))
{
//至少选中一条
if
(
this
.
isExist
(
this
.
chooiceList
))
{
//至少选中一条
const
dataType1
=
this
.
chooiceList
.
some
(
data
=>
data
.
status
==
1
);
const
dataType2
=
this
.
chooiceList
.
some
(
data
=>
data
.
lockingState
==
'1'
);
if
(
dataType1
)
{
this
.
$message
.
warning
(
"请先下架,再删除数据"
);
return
;
}
if
(
dataType2
)
{
this
.
$message
.
warning
(
"请先解除锁定并下架,再删除数据"
);
return
;
}
arr
=
getSelectionIds
(
this
.
chooiceList
);
}
else
{
return
;
...
...
src/views/resource_manage/video_module/index.vue
浏览文件 @
610b73e2
...
...
@@ -619,13 +619,17 @@ export default {
}
else
{
//批量删除
tipText
=
"批量"
;
if
(
this
.
isExist
(
this
.
chooiceList
))
{
//是否选中数据
const
dataType
=
this
.
chooiceList
.
some
(
data
=>
data
.
status
==
1
);
if
(
dataType
)
{
if
(
this
.
isExist
(
this
.
chooiceList
))
{
//是否选中数据
const
dataType1
=
this
.
chooiceList
.
some
(
data
=>
data
.
status
==
1
);
const
dataType
2
=
this
.
chooiceList
.
some
(
data
=>
data
.
lockingState
==
'1'
);
if
(
dataType
1
)
{
this
.
$message
.
warning
(
"请先下架,再删除数据"
);
return
;
}
if
(
dataType2
)
{
this
.
$message
.
warning
(
"请先解除锁定并下架,再删除数据"
);
return
;
}
arr
=
getSelectionIds
(
this
.
chooiceList
);
}
else
{
return
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论