Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
V
VS_OUTSOURCE
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵炳峰
VS_OUTSOURCE
Commits
7d4012e4
Commit
7d4012e4
authored
Nov 30, 2020
by
fangshupeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新进度
parent
33a312be
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
68 additions
and
14 deletions
+68
-14
schoolBasedResourcesApi.js
VSSCMP_WEB/src/api/schoolBasedResourcesApi.js
+12
-4
Index.vue
...ges/education/schoolBasedResources/folderManage/Index.vue
+32
-4
ManageCtxMenu.vue
...lBasedResources/folderManage/components/ManageCtxMenu.vue
+22
-4
MyUpload.vue
...s/education/schoolBasedResources/myResources/MyUpload.vue
+1
-1
MyuploadCtxMenu.vue
...BasedResources/myResources/components/MyuploadCtxMenu.vue
+1
-1
No files found.
VSSCMP_WEB/src/api/schoolBasedResourcesApi.js
View file @
7d4012e4
...
...
@@ -51,18 +51,26 @@ export default {
},
// 修改文件名称
updateFileName
(
params
)
{
return
http
.
pos
t
(
'/api/Education/SchoolResource/FileInfo/UpdateFileName'
,
{
params
:
params
})
return
http
.
ge
t
(
'/api/Education/SchoolResource/FileInfo/UpdateFileName'
,
{
params
:
params
})
},
// 获取学校文件夹List
GetSchoolFolderList
()
{
return
http
.
pos
t
(
'/api/Education/SchoolResource/SchoolFolderInfo/GetSchoolFolderList'
)
return
http
.
ge
t
(
'/api/Education/SchoolResource/SchoolFolderInfo/GetSchoolFolderList'
)
},
// 新增编辑学校文件夹
createOrUpdateSchool
(
params
)
{
return
http
.
post
(
'/api/Education/SchoolResource/SchoolFolderInfo/CreateOrUpdate'
,
{
params
:
params
}
)
return
http
.
post
(
'/api/Education/SchoolResource/SchoolFolderInfo/CreateOrUpdate'
,
JSON
.
stringify
(
params
)
)
},
// 获取校内资源文件夹List
getSchoolResourceFolderList
()
{
return
http
.
post
(
'/api/Education/SchoolResource/GetFolderList'
)
return
http
.
get
(
'/api/Education/SchoolResource/GetFolderList'
)
},
// 删除学校文件夹
deleteSchoolFolder
(
params
)
{
return
http
.
get
(
'/api/Education/SchoolResource/SchoolFolderInfo/Delete'
,
{
params
:
params
})
},
// 获取学校文件夹对象
getSchoolFolderInfo
(
params
)
{
return
http
.
get
(
'/api/Education/SchoolResource/SchoolFolderInfo/Get'
,
{
params
:
params
})
}
}
VSSCMP_WEB/src/pages/education/schoolBasedResources/folderManage/Index.vue
View file @
7d4012e4
...
...
@@ -32,11 +32,21 @@
ref=
"contextMenu"
:menuVisible=
"menuVisible"
:rightMenuData=
"rightMenuData"
:currentIsFiLe=
"currentIsFiLe"
:coordinate=
"coordinate"
:menuMode=
"menuMode"
@
menuOpenFile=
"intoFolder"
@
createOrUpdateFolder=
"createOrUpdateFolder"
>
@
createOrUpdateFolder=
"createOrUpdateFolder"
@
handleDeleteFolder=
"handleDeleteSchoolFolder"
>
</manage-ctx-menu>
<!-- 侧滑块查看普通文档 -->
<el-drawer
title=
"查看"
:visible
.
sync=
"documentDrawer"
:size=
"'80%'"
>
<iframe
:src=
"documentUrl"
width=
"100%"
height=
"100%"
name=
"topFrame"
noresize=
"noresize"
frameborder=
"0"
id=
"topFrame"
></iframe>
</el-drawer>
<button
v-show=
"false"
ref=
"btn"
@
click=
"currentIsFiLe = true"
>
设置当前页面为文件模式
</button>
</div>
</
template
>
...
...
@@ -61,6 +71,8 @@ export default {
},
breadcrumb
:
[],
currentFileList
:
[],
documentUrl
:
''
,
// 文档在线地址
documentDrawer
:
false
,
// 查看文档抽屉
paginationQuery
:
{
// 分页信息
amount
:
0
,
pageSize
:
50
,
...
...
@@ -147,13 +159,12 @@ export default {
breadcrumb
.
push
({
label
:
file
.
folder_name
,
listData
:
file
.
children
,
parent
:
file
,
currentIsFiLe
})
},
intoFolder
(
file
)
{
/* 进入下一级文件夹 */
/* 进入下一级文件夹 */
if
((
file
.
children
&&
file
.
children
.
length
>
0
&&
this
.
currentIsFiLe
===
false
)
||
(
file
.
file_count
===
0
&&
this
.
breadcrumb
.
length
<
3
))
{
// 进入文件夹
this
.
currentIsFiLe
=
false
this
.
addCrumb
(
this
.
breadcrumb
,
file
,
this
.
currentIsFiLe
)
this
.
currentFileList
=
file
.
children
this
.
currentFileList
=
file
.
children
||
[]
}
else
{
// 获取当前文件夹的文档列表
if
(
this
.
currentIsFiLe
===
false
)
{
...
...
@@ -175,7 +186,24 @@ export default {
message
:
'操作成功'
,
type
:
'success'
})
this
.
$refs
.
contextMenu
.
userSelector
.
visible
=
false
this
.
$refs
.
contextMenu
.
newFolderVisible
=
false
this
.
getFolderList
()
}
else
{
this
.
$message
({
message
:
res
.
data
.
ResponseError
.
LongMessage
,
type
:
'error'
})
}
})
},
handleDeleteSchoolFolder
(
params
)
{
this
.
$api
.
schoolBasedResourcesApi
.
deleteSchoolFolder
(
params
).
then
(
res
=>
{
if
(
res
.
data
.
Status
===
true
)
{
this
.
$message
({
message
:
'删除成功'
,
type
:
'success'
})
this
.
$refs
.
contextMenu
.
deleteVisible
=
false
this
.
getFolderList
()
}
else
{
this
.
$message
({
...
...
VSSCMP_WEB/src/pages/education/schoolBasedResources/folderManage/components/ManageCtxMenu.vue
View file @
7d4012e4
...
...
@@ -4,8 +4,8 @@
<div
v-show=
"menuVisible"
id=
"menu"
:style=
"'left:'+coordinate.menuX+';top:'+coordinate.menuY"
>
<ul
class=
"menu"
style=
"width:120px"
>
<li
class=
"menu_item padding_35"
v-show=
"menuMode !== 'blank'"
@
click=
"clickFile"
>
打开
</li>
<li
class=
"menu_item padding_35"
v-show=
"menuMode !== 'blank'"
>
编辑
</li>
<li
class=
"menu_item padding_35"
v-show=
"menuMode !== 'blank'"
@
click=
"deleteVisible = true"
>
删除
</li>
<li
class=
"menu_item padding_35"
v-show=
"menuMode !== 'blank'
&& !currentIsFiLe"
@
click=
"handleEdit
"
>
编辑
</li>
<li
class=
"menu_item padding_35"
v-show=
"menuMode !== 'blank'
&& !currentIsFiLe
"
@
click=
"deleteVisible = true"
>
删除
</li>
<li
class=
"menu_item"
style=
"text-align:center"
v-show=
"menuMode === 'blank' && !currentIsFiLe"
@
click=
"newFolderVisible = true"
>
新建文件夹
</li>
</ul>
<!--
<ul
class=
"menu"
style=
'width:230px'
v-show=
"menuMode === 'blank' && currentIsFiLe"
>
...
...
@@ -95,10 +95,10 @@
<!-- 删除文件窗口 -->
<el-dialog
title=
"删除确认"
:visible
.
sync=
"deleteVisible"
width=
"500px"
>
<h3>
删除
后不可恢复,确定删除吗?
</h3>
<h3>
删除
文件夹同时会将文件夹下的所有资源全部删除,请谨慎操作!
</h3>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"deleteVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"
deleteVisible = fals
e"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"
handleDelet
e"
>
确 定
</el-button>
</div>
</el-dialog>
<userselector
...
...
@@ -218,6 +218,14 @@ export default {
selectUser
(
list
)
{
this
.
ruleForm
[
this
.
seletorListName
]
=
list
},
handleEdit
()
{
let
params
=
{
b_id
:
this
.
rightMenuData
.
b_id
}
this
.
$api
.
schoolBasedResourcesApi
.
getSchoolFolderInfo
(
params
).
then
(
res
=>
{
this
.
$handleResponse
(
res
).
then
(
data
=>
{
console
.
log
(
data
)
})
})
},
hanlderCreateOrUpdate
(
formName
)
{
/* 新建或修改学校文件夹 */
this
.
$refs
[
formName
].
validate
((
valid
)
=>
{
...
...
@@ -268,6 +276,16 @@ export default {
}
}
return
data
},
handleDelete
()
{
/* 删除学校文件夹 */
let
data
=
{}
if
(
!
this
.
currentIsFiLe
)
{
data
=
{
b_id
:
this
.
rightMenuData
.
b_id
}
this
.
$emit
(
'handleDeleteFolder'
,
data
)
}
}
}
}
...
...
VSSCMP_WEB/src/pages/education/schoolBasedResources/myResources/MyUpload.vue
View file @
7d4012e4
...
...
@@ -229,7 +229,7 @@ export default {
// 进入文件夹
this
.
currentIsFiLe
=
false
this
.
addCrumb
(
this
.
breadcrumb
,
file
,
this
.
currentIsFiLe
)
this
.
currentFileList
=
file
.
children
this
.
currentFileList
=
file
.
children
||
[]
}
else
{
// 获取当前文件夹的文档列表
if
(
this
.
currentIsFiLe
===
false
)
{
...
...
VSSCMP_WEB/src/pages/education/schoolBasedResources/myResources/components/MyuploadCtxMenu.vue
View file @
7d4012e4
...
...
@@ -47,7 +47,7 @@
<!-- 删除文件窗口 -->
<el-dialog
title=
"删除确认"
:visible
.
sync=
"deleteVisible"
width=
"500px"
>
<h3>
删除
后不可恢复,确定删除吗?
</h3>
<h3>
删除
文件夹同时会将文件夹下的所有资源全部删除,请谨慎操作!
</h3>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"deleteVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"handleDelete"
>
确 定
</el-button>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment