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
a74dc3aa
Commit
a74dc3aa
authored
Nov 25, 2020
by
赵炳峰
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://git.xu.mk:3000/VSchool/vs_outsource
parents
a1f42b25
eddc58b7
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
430 additions
and
424 deletions
+430
-424
index.js
VSSCMP_WEB/src/api/index.js
+3
-1
schoolBasedResourcesApi.js
VSSCMP_WEB/src/api/schoolBasedResourcesApi.js
+32
-0
FavorShare.vue
...education/schoolBasedResources/myResources/FavorShare.vue
+77
-62
Index.vue
...ages/education/schoolBasedResources/myResources/Index.vue
+21
-11
MyManage.vue
...s/education/schoolBasedResources/myResources/MyManage.vue
+102
-123
MyUpload.vue
...s/education/schoolBasedResources/myResources/MyUpload.vue
+70
-138
BigFolder.vue
...schoolBasedResources/myResources/components/BigFolder.vue
+25
-4
Material.vue
.../schoolBasedResources/myResources/components/Material.vue
+33
-61
MyuploadCtxMenu.vue
...BasedResources/myResources/components/MyuploadCtxMenu.vue
+26
-10
SmallFolder.vue
...hoolBasedResources/myResources/components/SmallFolder.vue
+35
-8
ResourcesInSchoold.vue
...hoolBasedResources/schoolResources/ResourcesInSchoold.vue
+1
-1
schoolBasedResourcesRouter.js
...P_WEB/src/routers/education/schoolBasedResourcesRouter.js
+5
-5
No files found.
VSSCMP_WEB/src/api/index.js
View file @
a74dc3aa
...
...
@@ -2,10 +2,12 @@ import loginApi from './loginApi.js' // 登录
import
aliOssApi
from
'./aliOssApi'
// ali-oss
import
commonApi
from
'./commonApi'
// 公共接口
import
education
from
'./education'
// 教务管理
import
schoolBasedResourcesApi
from
'./schoolBasedResourcesApi'
// 校本资源管理API
export
default
{
loginApi
,
aliOssApi
,
commonApi
,
...
education
...
education
,
schoolBasedResourcesApi
}
VSSCMP_WEB/src/api/schoolBasedResourcesApi.js
0 → 100644
View file @
a74dc3aa
import
http
from
'@/request/http.js'
export
default
{
// 获取学校文件夹和个人文件夹List
GetFolderList
()
{
return
http
.
get
(
'/api/Education/SchoolResource/MyResource/GetFolderList'
)
},
// 获取我的收藏分享列表
GetCollectShareList
(
params
)
{
return
http
.
post
(
'/api/Education/SchoolResource/MyResource/GetCollectShareList'
,
JSON
.
stringify
(
params
))
},
// 获取我管理的文件夹
GetMyManageFolderList
()
{
return
http
.
get
(
'/api/Education/SchoolResource/MyResource/GetMyManageFolderList'
)
},
// 获取我管理的常规文件夹资料列表
GetMyManageRoutineFolderList
(
params
)
{
return
http
.
post
(
'/api/Education/SchoolResource/MyResource/GetMyManageRoutineFolderList'
,
JSON
.
stringify
(
params
))
},
// 获取我管理的任务文件夹资料列表
GetMyManageTaskFolderList
(
params
)
{
return
http
.
post
(
'/api/Education/SchoolResource/MyResource/GetMyManageTaskFolderList'
,
JSON
.
stringify
(
params
))
},
// 获取资料列表某人下的文件信息
GetMyManageFileInfo
(
params
)
{
return
http
.
post
(
'/api/Education/SchoolResource/MyResource/GetMyManageFileInfo'
,
JSON
.
stringify
(
params
))
},
// 获取文档列表
GetFileList
(
params
)
{
return
http
.
post
(
'/api/Education/SchoolResource/GetFileList'
,
JSON
.
stringify
(
params
))
}
}
VSSCMP_WEB/src/pages/education/schoolBasedResources/myResources/FavorShare.vue
View file @
a74dc3aa
...
...
@@ -4,10 +4,10 @@
<div
class=
"leftNav"
>
<span
class=
"type-title"
>
类型:
</span>
<el-radio-group
v-model=
"folderType"
size=
"small"
@
change=
"folderTypeChange"
>
<el-radio-button
label=
"all
"
>
全部
</el-radio-button>
<el-radio-button
label=
"myFavor
"
>
我收藏的
</el-radio-button>
<el-radio-button
label=
"myShare
"
>
我分享的
</el-radio-button>
<el-radio-button
label=
"shareMe
"
>
分享给我的
</el-radio-button>
<el-radio-button
:label=
"0
"
>
全部
</el-radio-button>
<el-radio-button
:label=
"1
"
>
我收藏的
</el-radio-button>
<el-radio-button
:label=
"2
"
>
我分享的
</el-radio-button>
<el-radio-button
:label=
"3
"
>
分享给我的
</el-radio-button>
</el-radio-group>
</div>
<div
class=
"rightNav"
>
...
...
@@ -27,6 +27,7 @@
<div
class=
"smallCtn"
>
<small-folder
:file-list=
"currentFileList"
:mode=
"'favor'"
@
showMenu=
"showMenu"
@
tableIntoFile=
"intoFolder"
>
</small-folder>
...
...
@@ -62,7 +63,7 @@ export default {
},
data
()
{
return
{
folderType
:
'all'
,
// 文件类型(文件类型(all: 全部,myFavor: 我收藏的,myShare: 我分享的, shareMe
: 分享给我的 ))
folderType
:
0
,
// 文件类型(文件类型(0: 全部,1: 我收藏的,2: 我分享的, 3
: 分享给我的 ))
timeSelect
:
'allItem'
,
// 学期选择框数据
menuMode
:
''
,
// 菜单根据模式显示对于内容
menuVisible
:
false
,
// 右键菜单栏
...
...
@@ -77,70 +78,84 @@ export default {
label
:
'全部学期'
}],
currentFileList
:
[],
fileListData
:
[
{
id
:
1201
,
name
:
'我收藏的.docx'
,
typeName
:
'我收藏的'
,
type
:
'myFavor'
,
icon
:
'el-icon-document'
,
descript
:
'我上传了10个文档'
,
isFocus
:
false
,
isFolder
:
false
,
nextIsFolder
:
false
,
uploadCount
:
'10'
,
author
:
'张三'
,
updateTime
:
'2020-08-22 12:00'
},
{
id
:
1202
,
name
:
'我分享的.docx'
,
typeName
:
'我分享的'
,
type
:
'myShare'
,
icon
:
'el-icon-document'
,
descript
:
'我上传了10个文档'
,
isFocus
:
false
,
isFolder
:
false
,
nextIsFolder
:
false
,
uploadCount
:
'10'
,
author
:
'张三'
,
updateTime
:
'2020-08-22 12:00'
},
{
id
:
1203
,
name
:
'分享给我的.docx'
,
typeName
:
'分享给我的'
,
type
:
'shareMe'
,
icon
:
'el-icon-document'
,
descript
:
'我上传了10个文档'
,
isFocus
:
false
,
isFolder
:
false
,
nextIsFolder
:
false
,
uploadCount
:
'10'
,
author
:
'张三'
,
updateTime
:
'2020-08-22 12:00'
}
]
fileListData
:
[]
// {
// id: 1201,
// name: '我收藏的.docx',
// typeName: '我收藏的',
// type: 'myFavor',
// icon: 'el-icon-document',
// descript: '我上传了10个文档',
// isFocus: false,
// isFolder: false,
// nextIsFolder: false,
// uploadCount: '10',
// author: '张三',
// updateTime: '2020-08-22 12:00'
// },
// {
// id: 1202,
// name: '我分享的.docx',
// typeName: '我分享的',
// type: 'myShare',
// icon: 'el-icon-document',
// descript: '我上传了10个文档',
// isFocus: false,
// isFolder: false,
// nextIsFolder: false,
// uploadCount: '10',
// author: '张三',
// updateTime: '2020-08-22 12:00'
// },
// {
// id: 1203,
// name: '分享给我的.docx',
// typeName: '分享给我的',
// type: 'shareMe',
// icon: 'el-icon-document',
// descript: '我上传了10个文档',
// isFocus: false,
// isFolder: false,
// nextIsFolder: false,
// uploadCount: '10',
// author: '张三',
// updateTime: '2020-08-22 12:00'
// }
}
},
mounted
()
{
this
.
folderType
=
'all'
this
.
currentFileList
=
this
.
fileListData
this
.
folderType
=
0
// this.currentFileList = this.fileListData
this
.
getFileList
(
this
.
folderType
)
},
methods
:
{
folderTypeChange
(
value
)
{
if
(
value
===
'all'
)
{
this
.
currentFileList
=
this
.
fileListData
}
else
{
let
fileList
=
[]
for
(
let
i
=
0
;
i
<
this
.
fileListData
.
length
;
i
++
)
{
if
(
this
.
fileListData
[
i
].
type
===
value
)
{
fileList
.
push
(
this
.
fileListData
[
i
])
}
}
this
.
currentFileList
=
fileList
getFileList
(
folderType
)
{
/* 获取文档列表 */
let
data
=
{
data
:
{
sel_type
:
folderType
},
PageSize
:
50
,
PageNumber
:
1
}
this
.
$api
.
schoolBasedResourcesApi
.
GetCollectShareList
(
data
).
then
(
res
=>
{
this
.
$handleResponse
(
res
).
then
(
data
=>
{
this
.
currentFileList
=
data
.
Data
})
})
},
folderTypeChange
(
value
)
{
this
.
getFileList
(
value
)
// if (value === 'all') {
// this.currentFileList = this.fileListData
// } else {
// let fileList = []
// for (let i = 0; i
<
this
.
fileListData
.
length
;
i
++
)
{
// if (this.fileListData[i].type === value) {
// fileList.push(this.fileListData[i])
// }
// }
// this.currentFileList = fileList
// }
},
intoFolder
(
file
)
{
/* 打开文件 */
...
...
VSSCMP_WEB/src/pages/education/schoolBasedResources/myResources/Index.vue
View file @
a74dc3aa
...
...
@@ -2,7 +2,9 @@
<div
class=
"container"
>
<v-header
:title=
"'我的资源'"
:is-show-prev-page=
"isShowPrevPage"
></v-header>
<nav-menu
:menus=
"menus"
></nav-menu>
<router-view></router-view>
<keep-alive>
<router-view></router-view>
</keep-alive>
</div>
</
template
>
...
...
@@ -39,17 +41,8 @@ export default {
]
}
},
methods
:
{
initDataFromRoute
(
route
)
{
/* 根据路由参数来显示对应数据 */
if
(
route
.
query
.
folderName
)
{
// 有参数说明不是首页,显示返回上一页
this
.
isShowPrevPage
=
true
}
else
{
this
.
isShowPrevPage
=
false
}
}
},
mounted
()
{
this
.
getFolderList
()
},
created
()
{
this
.
initDataFromRoute
(
this
.
$route
)
...
...
@@ -58,6 +51,23 @@ export default {
$route
(
to
,
from
)
{
this
.
initDataFromRoute
(
to
)
}
},
methods
:
{
getFolderList
()
{
this
.
$api
.
schoolBasedResourcesApi
.
GetFolderList
().
then
(
res
=>
{
this
.
$handleResponse
(
res
).
then
(
data
=>
{
console
.
log
(
data
)
})
})
},
initDataFromRoute
(
route
)
{
/* 根据路由参数来显示对应数据 */
if
(
route
.
query
.
parent_id
)
{
// 有参数说明不是首页,显示返回上一页
this
.
isShowPrevPage
=
true
}
else
{
this
.
isShowPrevPage
=
false
}
}
}
}
</
script
>
...
...
VSSCMP_WEB/src/pages/education/schoolBasedResources/myResources/MyManage.vue
View file @
a74dc3aa
...
...
@@ -6,35 +6,34 @@
<el-breadcrumb-item
v-for=
"(breadcrumbItem, index) of breadcrumb"
:key=
"index"
@
click
.
native=
"backCrumb(index)"
>
{{
breadcrumbItem
}}
@
click
.
native=
"backCrumb(
breadcrumbItem,
index)"
>
{{
breadcrumbItem
.
label
}}
</el-breadcrumb-item>
</el-breadcrumb>
</div>
<
!--
<div
class=
"rightNav"
v-show=
"isFileMode
"
>
<
div
class=
"rightNav"
v-show=
"material.isMaterial
"
>
<el-select
class=
"timer-select"
v-model=
"timeSelect"
placeholder=
"请选择"
>
<el-option
v-for=
"item in
o
ptions"
:key=
"item.
value
"
:label=
"item.
label
"
:value=
"item.
value
"
>
v-for=
"item in
termO
ptions"
:key=
"item.
ID
"
:label=
"item.
TeamName
"
:value=
"item.
ID
"
>
</el-option>
</el-select>
</div>
-->
</div>
</div>
<!-- 资料列表显示页面 -->
<material
v-if=
"material.isMaterial"
:taskMode=
"material.taskMode"
:list-data=
"material.materialData"
@
getMaterialFile=
"getMaterialFile"
></material>
<!-- 文件夹选择显示页面 -->
<div
class=
"folder-mode"
>
<div
v-else
class=
"folder-mode"
>
<big-folder
:file-list=
"currentFileList"
:foder-type=
"2"
@
intoFolder=
"intoFolder"
>
</big-folder>
</div>
<!-- 资料列表显示页面 -->
<!--
<div
class=
"file-mode"
v-if=
"isFileMode"
>
<material
:taskMode=
"taskMode"
></material>
</div>
-->
</div>
</
template
>
...
...
@@ -43,139 +42,119 @@
export
default
{
name
:
'MyManage'
,
components
:
{
BigFolder
:
()
=>
import
(
'./components/BigFolder'
)
//
Material: () => import('./components/Material')
BigFolder
:
()
=>
import
(
'./components/BigFolder'
)
,
Material
:
()
=>
import
(
'./components/Material'
)
},
data
()
{
return
{
breadcrumb
:
[
'首页'
],
// 面包屑
breadcrumb
:
[],
// 面包屑
// isFileMode: false, // 是否资料列表页面
timeSelect
:
'allItem'
,
// 学期选择框数据
options
:
[{
termOptions
:
[{
// 学期选择options
value
:
'allItem'
,
label
:
'全部学期'
}],
// taskMode: false, // 是否为任务夹模式
currentFileList
:
[],
fileListData
:
{
firstLevelData
:
[
{
id
:
991
,
name
:
'教案文件夹'
,
typeName
:
'教案文件夹'
,
type
:
'school'
,
icon
:
'el-icon-folder'
,
descript
:
'我管理的:共有112个文档'
,
isFocus
:
false
,
isFolder
:
true
,
folderData
:
'secondLevelData'
,
nextIsFolder
:
true
,
ismaterial
:
false
,
uploadCount
:
'10'
,
author
:
'张三'
,
updateTime
:
'2020-08-22 12:00'
}
],
secondLevelData
:
[
{
id
:
1001
,
name
:
'一年级教案'
,
typeName
:
'常规文件夹'
,
type
:
'school'
,
icon
:
'el-icon-folder'
,
descript
:
'我上传了10个文档'
,
isFocus
:
false
,
isFolder
:
true
,
folderData
:
'thirdLevelData'
,
nextIsFolder
:
false
,
ismaterial
:
true
,
taskMode
:
false
,
uploadCount
:
'10'
,
author
:
'张三'
,
updateTime
:
'2020-08-22 12:00'
},
{
id
:
1002
,
name
:
'二年级教案'
,
typeName
:
'任务文件夹'
,
type
:
'school'
,
icon
:
'el-icon-folder'
,
descript
:
'我上传了10个文档'
,
isFocus
:
false
,
isFolder
:
true
,
folderData
:
'thirdLevelData'
,
nextIsFolder
:
false
,
ismaterial
:
true
,
taskMode
:
true
,
uploadCount
:
'10'
,
author
:
'张三'
,
updateTime
:
'2020-08-22 12:00'
}
]
fileListData
:
[],
material
:
{
isMaterial
:
false
,
// 是否为资料页面,true为文件夹,false为资料页面
materialData
:
[],
// 资料列表数据
taskMode
:
false
,
// 是否为任务夹模式, fasle为常规,true为任务
folderId
:
''
}
}
},
mounted
()
{
this
.
getFolderList
()
this
.
getTermList
()
},
watch
:
{
},
methods
:
{
initDataFromRoute
(
route
)
{
/* 根据路由参数初始化数据 */
if
(
route
.
query
.
folderName
)
{
this
.
currentFileList
=
this
.
fileListData
[
route
.
query
.
folderName
]
this
.
breadcrumb
=
JSON
.
parse
(
route
.
query
.
breadcrumb
)
getFolderList
()
{
this
.
$api
.
schoolBasedResourcesApi
.
GetMyManageFolderList
().
then
(
res
=>
{
this
.
$handleResponse
(
res
).
then
(
data
=>
{
this
.
fileListData
=
data
this
.
currentFileList
=
data
this
.
breadcrumb
=
[{
label
:
'首页'
,
listData
:
data
,
isMaterial
:
false
}]
})
})
},
getTermList
()
{
/* 获取学期列表 */
this
.
$api
.
commonApi
.
getTermInfoList
().
then
(
res
=>
{
this
.
$handleResponse
(
res
).
then
(
data
=>
{
this
.
termOptions
=
data
this
.
timeSelect
=
data
[
0
].
ID
})
})
},
getMeterialData
(
file
)
{
/* 根据文件类型获取对应的资料列表 */
let
getMeterialApi
const
folderId
=
file
.
b_id
if
(
file
.
folder_type
===
1
)
{
getMeterialApi
=
this
.
$api
.
schoolBasedResourcesApi
.
GetMyManageRoutineFolderList
}
else
{
this
.
currentFileList
=
this
.
fileListData
.
firstLevelData
this
.
breadcrumb
=
[
'首页'
]
getMeterialApi
=
this
.
$api
.
schoolBasedResourcesApi
.
GetMyManageTaskFolderList
}
let
data
=
{
data
:
{
folder_id
:
folderId
,
term_id
:
''
},
PageSize
:
999
,
PageNumber
:
1
}
getMeterialApi
(
data
).
then
(
res
=>
{
this
.
$handleResponse
(
res
).
then
(
data
=>
{
data
.
Data
.
forEach
(
item
=>
{
item
.
fileChildren
=
[]
})
this
.
material
.
materialData
=
data
.
Data
})
})
},
getMaterialFile
(
index
)
{
/* 获取资料列表下面某人的文件 */
let
file
=
this
.
material
.
materialData
[
index
]
let
userId
=
file
.
user_id
let
folderId
=
this
.
material
.
folderId
let
data
=
{
user_id
:
userId
,
folder_id
:
folderId
}
this
.
$api
.
schoolBasedResourcesApi
.
GetMyManageFileInfo
(
data
).
then
(
res
=>
{
this
.
$handleResponse
(
res
).
then
(
data
=>
{
file
.
fileChildren
=
data
})
})
},
backCrumb
(
index
)
{
backCrumb
(
i
tem
,
i
ndex
)
{
/* 点击面包屑返回前几级 */
if
(
index
<
this
.
breadcrumb
.
length
-
1
)
{
let
backPageCount
=
index
-
this
.
breadcrumb
.
length
+
1
this
.
$router
.
go
(
backPageCount
)
let
breadcrumb
=
this
.
breadcrumb
if
(
index
<
breadcrumb
.
length
-
1
)
{
this
.
currentFileList
=
item
.
listData
this
.
breadcrumb
=
breadcrumb
.
slice
(
0
,
index
+
1
)
this
.
material
.
isMaterial
=
item
.
isMaterial
}
},
addCrumb
(
file
)
{
/* 添加面包屑 */
this
.
breadcrumb
.
push
({
label
:
file
.
folder_name
,
listData
:
file
.
children
,
isMaterial
:
false
})
},
intoFolder
(
file
)
{
/* 进入下一级文件夹 */
if
(
file
.
isFolder
)
{
// 进入文件夹
this
.
breadcrumb
.
push
(
file
.
name
)
if
(
file
.
ismaterial
)
{
// 该文件夹为资料列表
// this.isFileMode = true
// if (file.taskMode) {
// this.taskMode = true
// } else {
// this.taskMode = false
// }
this
.
$router
.
push
({
path
:
'/education/myResources/myManage/material'
,
query
:
{
folderName
:
file
.
folderData
,
breadcrumb
:
JSON
.
stringify
(
this
.
breadcrumb
),
taskMode
:
file
.
taskMode
}
})
if
(
file
.
children
!==
null
)
{
// 该文件夹下一级还是文件夹
this
.
addCrumb
(
file
)
this
.
currentFileList
=
file
.
children
}
else
{
this
.
addCrumb
(
file
)
this
.
material
.
isMaterial
=
true
this
.
material
.
folderId
=
file
.
b_id
if
(
file
.
folder_type
===
2
)
{
this
.
material
.
taskMode
=
true
}
else
{
// 改文件夹不是资料列表
this
.
$router
.
push
({
path
:
'/education/myResources/myManage'
,
query
:
{
folderName
:
file
.
folderData
,
breadcrumb
:
JSON
.
stringify
(
this
.
breadcrumb
)
}
})
this
.
material
.
taskMode
=
false
}
this
.
getMeterialData
(
file
)
}
}
},
mounted
()
{
},
created
()
{
this
.
initDataFromRoute
(
this
.
$route
)
},
watch
:
{
$route
(
to
,
from
)
{
this
.
initDataFromRoute
(
to
)
}
}
}
...
...
@@ -197,7 +176,7 @@ export default {
font-size: 18px;
.el-breadcrumb {
font-size: 1
8
px;
font-size: 1
5
px;
line-height: 45px;
.el-breadcrumb__item {
&:not(:last-child) .el-breadcrumb__inner{
...
...
VSSCMP_WEB/src/pages/education/schoolBasedResources/myResources/MyUpload.vue
View file @
a74dc3aa
...
...
@@ -6,14 +6,14 @@
<el-breadcrumb-item
v-for=
"(breadcrumbItem, index) of breadcrumb"
:key=
"index"
@
click
.
native=
"backCrumb(index)"
>
{{
breadcrumbItem
}}
@
click
.
native=
"backCrumb(
breadcrumbItem,
index)"
>
{{
breadcrumbItem
.
label
}}
</el-breadcrumb-item>
</el-breadcrumb>
</div>
<div
class=
"rightNav"
>
<search></search>
<div
class=
"feature"
>
<div
class=
"feature"
v-show=
"!currentIsFiLe"
>
<div
:class=
"
{'icon-sel': bigMode}" class="icon-ctn" @click="bigMode = true">
<i
class=
"el-icon-picture"
></i>
</div>
...
...
@@ -24,8 +24,9 @@
</div>
</div>
<div
class=
"folderCtn"
@
contextmenu
.
prevent=
"showMenu"
>
<component
:is=
"
bigMode
?'big-folder':'small-folder'"
<component
:is=
"
(bigMode && currentIsFiLe === false)
?'big-folder':'small-folder'"
:file-list=
"currentFileList"
:currentIsFiLe=
"currentIsFiLe"
@
showMenu=
"showMenu"
@
intoFolder=
"intoFolder"
@
uploadFile=
"uploadFile"
...
...
@@ -36,6 +37,7 @@
<!-- 右键菜单栏 -->
<myupload-ctx-menu
:menuVisible=
"menuVisible"
:currentIsFiLe=
"currentIsFiLe"
:uploadVisible=
"uploadVisible"
:rightMenuData=
"rightMenuData"
:rightMenuFolder=
"rightMenuFolder"
...
...
@@ -73,6 +75,7 @@ export default {
return
{
currentComponent
:
'BigFolder'
,
// BigFolder 大图标模式,SmallFolder 小图标模式
bigMode
:
true
,
// 文件夹大小图标模式
currentIsFiLe
:
false
,
// 当前层次是否为文档列表
menuVisible
:
false
,
// 右键菜单栏
menuMode
:
''
,
// 菜单根据模式显示对于内容
uploadVisible
:
false
,
// 上传菜单栏
...
...
@@ -89,149 +92,88 @@ export default {
selectFolderVisible
:
false
,
// 查看文件侧滑框
selectFolderList
:
[],
// 上传文件选择文件夹列表
breadcrumb
:
[
'首页'
],
// 面包屑
fileListData
:
{
firstLevelData
:
[
{
id
:
991
,
name
:
'第一级文件夹'
,
typeName
:
'学校文件夹'
,
type
:
'school'
,
icon
:
'el-icon-folder'
,
descript
:
'我上传了10个文档'
,
isFocus
:
false
,
isFolder
:
true
,
folderData
:
'secondLevelData'
,
nextIsFolder
:
true
,
uploadCount
:
'10'
,
author
:
'张三'
,
updateTime
:
'2020-08-22 12:00'
},
{
id
:
992
,
name
:
'第一级文件夹'
,
typeName
:
'个人文件夹'
,
type
:
'personal'
,
icon
:
'el-icon-folder'
,
descript
:
'我上传了10个文档'
,
isFocus
:
false
,
isFolder
:
true
,
folderData
:
'secondLevelData'
,
nextIsFolder
:
true
,
uploadCount
:
'10'
,
author
:
'张三'
,
updateTime
:
'2020-08-22 12:00'
},
{
id
:
993
,
name
:
'第一级文件夹'
,
typeName
:
'个人文件夹'
,
type
:
'personal'
,
icon
:
'el-icon-folder'
,
descript
:
'我上传了10个文档'
,
isFocus
:
false
,
isFolder
:
true
,
folderData
:
'secondLevelData'
,
nextIsFolder
:
true
,
uploadCount
:
'10'
,
author
:
'张三'
,
updateTime
:
'2020-08-22 12:00'
}
],
secondLevelData
:
[
{
id
:
1001
,
name
:
'第二级文件夹'
,
typeName
:
'学校文件夹'
,
type
:
'school'
,
icon
:
'el-icon-folder'
,
descript
:
'我上传了10个文档'
,
isFocus
:
false
,
isFolder
:
true
,
folderData
:
'thirdLevelData'
,
nextIsFolder
:
false
,
uploadCount
:
'10'
,
author
:
'张三'
,
updateTime
:
'2020-08-22 12:00'
},
{
id
:
1002
,
name
:
'第二级文件夹'
,
typeName
:
'学校文件夹'
,
type
:
'school'
,
icon
:
'el-icon-folder'
,
descript
:
'我上传了10个文档'
,
isFocus
:
false
,
isFolder
:
true
,
folderData
:
'thirdLevelData'
,
nextIsFolder
:
false
,
uploadCount
:
'10'
,
author
:
'张三'
,
updateTime
:
'2020-08-22 12:00'
}
],
thirdLevelData
:
[
{
id
:
1101
,
name
:
'第三级文件.txt'
,
typeName
:
'文件'
,
type
:
'file'
,
icon
:
'el-icon-document'
,
descript
:
'我上传了10个文档'
,
isFocus
:
false
,
isFolder
:
false
,
nextIsFolder
:
false
,
uploadCount
:
'10'
,
author
:
'张三'
,
updateTime
:
'2020-08-22 12:00'
}
]
}
folderListData
:
[]
}
},
mounted
()
{
this
.
getFolderList
()
},
created
()
{
// this.initDataFromRoute(this.$route)
},
watch
:
{
// $route (to, from) {
// this.initDataFromRoute(to)
// }
},
methods
:
{
initDataFromRoute
(
route
)
{
/* 根据路由参数初始化数据 */
if
(
route
.
query
.
folderName
)
{
this
.
currentFileList
=
this
.
fileListData
[
route
.
query
.
folderName
]
this
.
breadcrumb
=
JSON
.
parse
(
route
.
query
.
breadcrumb
)
}
else
{
this
.
currentFileList
=
this
.
fileListData
.
firstLevelData
this
.
breadcrumb
=
[
'首页'
]
getFolderList
()
{
this
.
$api
.
schoolBasedResourcesApi
.
GetFolderList
().
then
(
res
=>
{
this
.
$handleResponse
(
res
).
then
(
data
=>
{
this
.
folderListData
=
data
this
.
currentFileList
=
data
this
.
breadcrumb
=
[{
label
:
'首页'
,
listData
:
data
}]
})
})
},
getFileList
(
file
)
{
const
folderId
=
file
.
b_id
const
selType
=
file
.
folder_type
let
data
=
{
data
:
{
folder_id
:
folderId
,
sel_type
:
selType
},
PageSize
:
50
,
PageNumber
:
1
}
this
.
$api
.
schoolBasedResourcesApi
.
GetFileList
(
data
).
then
(
res
=>
{
this
.
$handleResponse
(
res
).
then
(
data
=>
{
this
.
currentFileList
=
data
.
Data
})
})
},
backCrumb
(
index
)
{
backCrumb
(
i
tem
,
i
ndex
)
{
/* 点击面包屑返回前几级 */
if
(
index
<
this
.
breadcrumb
.
length
-
1
)
{
let
backPageCount
=
index
-
this
.
breadcrumb
.
length
+
1
this
.
$router
.
go
(
backPageCount
)
let
breadcrumb
=
this
.
breadcrumb
this
.
currentIsFiLe
=
false
if
(
index
<
breadcrumb
.
length
-
1
)
{
this
.
currentFileList
=
item
.
listData
this
.
breadcrumb
=
breadcrumb
.
slice
(
0
,
index
+
1
)
}
},
addCrumb
(
file
)
{
/* 添加面包屑 */
this
.
breadcrumb
.
push
({
label
:
file
.
folder_name
,
listData
:
file
.
children
})
},
intoFolder
(
file
)
{
/* 进入下一级文件夹 */
if
(
file
.
isFolder
)
{
if
(
file
.
children
!==
null
&&
this
.
currentIsFiLe
===
false
)
{
// 进入文件夹
this
.
breadcrumb
.
push
(
file
.
name
)
this
.
$router
.
push
({
path
:
'/education/myResources/index'
,
query
:
{
folderName
:
file
.
folderData
,
breadcrumb
:
JSON
.
stringify
(
this
.
breadcrumb
)
}
})
this
.
currentIsFiLe
=
false
this
.
addCrumb
(
file
)
this
.
currentFileList
=
file
.
children
}
else
{
// 查看文件
this
.
documentDrawer
=
true
// 获取当前文件夹的文档列表
if
(
this
.
currentIsFiLe
===
false
)
{
this
.
currentIsFiLe
=
true
this
.
addCrumb
(
file
)
this
.
getFileList
(
file
)
}
else
{
this
.
documentDrawer
=
true
}
}
},
uploadFile
(
fileData
,
row
)
{
/* 文件选择上传位置 */
this
.
selectFolderVisible
=
true
},
showMenu
(
MouseEvent
,
typ
e
,
row
)
{
showMenu
(
MouseEvent
,
currentIsFiL
e
,
row
)
{
/* 右键文件夹或文件时触发 */
if
(
type
)
{
if
(
row
)
{
// 右键文件夹或者文件
this
.
menuMode
=
type
if
(
currentIsFiLe
)
{
this
.
menuMode
=
'file'
}
else
{
this
.
menuMode
=
'personal'
}
this
.
rightMenuData
=
row
this
.
rightMenuFolder
=
[]
}
else
{
...
...
@@ -259,16 +201,6 @@ export default {
showUploadMenu
()
{
this
.
uploadVisible
=
!
this
.
uploadVisible
}
},
mounted
()
{
},
created
()
{
this
.
initDataFromRoute
(
this
.
$route
)
},
watch
:
{
$route
(
to
,
from
)
{
this
.
initDataFromRoute
(
to
)
}
}
}
</
script
>
...
...
@@ -289,7 +221,7 @@ export default {
font-size: 18px;
.el-breadcrumb {
font-size: 1
8
px;
font-size: 1
5
px;
line-height: 45px;
.el-breadcrumb__item {
&:not(:last-child) .el-breadcrumb__inner{
...
...
VSSCMP_WEB/src/pages/education/schoolBasedResources/myResources/components/BigFolder.vue
View file @
a74dc3aa
...
...
@@ -9,10 +9,11 @@
@
dragleave
.
stop
.
prevent=
"borderHover = false"
@
dragover
.
stop
.
prevent=
"borderHover = true"
@
drop
.
stop
.
prevent=
"fileDrop($event,file)"
>
<div
class=
"types"
>
{{
file
.
typeName
}}
</div>
<i
:class=
"file.icon"
class=
"file-icon"
></i>
<h4
class=
"folder-name"
>
{{
file
.
name
}}
</h4>
<h6
class=
"descript"
>
{{
file
.
descript
}}
</h6>
<div
class=
"types"
>
{{
foderTypeOptions
[
file
.
folder_type
]
}}
</div>
<i
:class=
"fileIcon"
class=
"file-icon"
></i>
<h4
class=
"folder-name"
>
{{
file
.
folder_name
}}
</h4>
<h6
class=
"descript"
v-if=
"descriptType === 1"
>
{{
'我管理的:共有'
+
file
.
file_count
+
'个文档'
}}
</h6>
<h6
class=
"descript"
v-else
>
{{
'我上传了'
+
file
.
file_count
+
'个文档'
}}
</h6>
</div>
</div>
</div>
...
...
@@ -27,6 +28,26 @@ export default {
default
:
()
=>
{
return
[]
}
},
foderType
:
{
type
:
Number
,
default
:
1
},
fileIcon
:
{
type
:
String
,
default
:
'el-icon-folder'
},
descriptType
:
{
// 文件描述用那种类型
type
:
Number
,
default
:
1
}
},
computed
:
{
foderTypeOptions
()
{
/* 根据foderType来判断显示哪种options */
const
schoolType
=
{
1
:
'学校文件夹'
,
2
:
'个人文件夹'
}
const
taskType
=
{
1
:
'常规文件夹'
,
2
:
'任务文件夹'
}
return
this
.
foderType
===
1
?
schoolType
:
taskType
}
},
data
()
{
...
...
VSSCMP_WEB/src/pages/education/schoolBasedResources/myResources/Material.vue
→
VSSCMP_WEB/src/pages/education/schoolBasedResources/myResources/
components/
Material.vue
View file @
a74dc3aa
<
template
>
<div
class=
"main"
>
<div
class=
"headerNav"
>
<div
class=
"leftNav"
>
<el-breadcrumb
separator-class=
"el-icon-arrow-right"
>
<el-breadcrumb-item
v-for=
"(breadcrumbItem, index) of breadcrumb"
:key=
"index"
@
click
.
native=
"backCrumb(index)"
>
{{
breadcrumbItem
}}
</el-breadcrumb-item>
</el-breadcrumb>
</div>
<div
class=
"rightNav"
>
<el-select
class=
"timer-select"
v-model=
"timeSelect"
placeholder=
"请选择"
>
<el-option
v-for=
"item in options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
</div>
</div>
<div
class=
"container"
>
<div
class=
"left-menu"
>
<div
class=
"menu-header"
>
上传人员列表(
30
人)
</div>
<div
class=
"menu-header"
>
上传人员列表(
{{
listData
.
length
}}
人)
</div>
<div
class=
"search-header"
>
<el-input
v-model=
"searchData"
placeholder=
"请输入..."
></el-input>
<el-button
class=
"search-btn"
type=
"primary"
plain
>
搜索
</el-button>
...
...
@@ -32,27 +10,31 @@
<div
class=
"upload-list"
>
<el-menu
default-active=
"1"
class=
"el-menu-vertical-demo"
>
class=
"el-menu-vertical-demo"
@
open=
"listOpen"
>
<el-submenu
v-for=
"(item, index) of
11
"
v-for=
"(item, index) of
listData
"
:key=
"index"
:index=
"String(index
+
1)"
>
:index=
"String(index
+
1)"
>
<template
slot=
"title"
>
<div
class=
"menus-title"
>
<span>
某某某
</span>
<span
class=
"upload-count"
v-show=
"!taskMode"
>
2
</span>
<span>
{{
item
.
user_name
}}
</span>
<span
class=
"upload-count"
v-show=
"!taskMode"
>
{{
item
.
total_count
}}
</span>
<div
class=
"progress-ctn"
v-show=
"taskMode"
>
<el-progress
:percentage=
"50"
:format=
"format"
></el-progress>
<div
style=
"flex: 1;margin-top: 7px;"
>
<el-progress
:show-text=
"false"
:percentage=
"item.upload_count / item.total_count"
></el-progress>
</div>
<div
style=
"margin: -13px 7px 0 10px"
>
{{
item
.
upload_count
}}
/
{{
item
.
total_count
}}
</div>
</div>
</div>
</
template
>
<el-menu-item-group>
<el-menu-item
v-for=
"(innerItem, innerIndex) of
2
"
v-for=
"(innerItem, innerIndex) of
item.fileChildren
"
:key=
"innerIndex"
:index=
"(index+1)+'-'+(innerIndex+1)"
@
contextmenu
.
native
.
prevent
.
stop=
"showMenu($event,item)"
>
<span
v-show=
"taskMode"
class=
"point"
></span>
这是上传资料的标题,很长很长很长很长
<span
v-show=
"taskMode"
class=
"point"
></span>
{{ innerItem.file_name }}
</el-menu-item>
</el-menu-item-group>
</el-submenu>
...
...
@@ -85,16 +67,21 @@
<
script
>
export
default
{
name
:
'Material'
,
// props: {
// taskMode: { // 是否为任务文件夹
// type: Boolean,
// default: false
// }
// },
props
:
{
taskMode
:
{
// 是否为任务文件夹
type
:
Boolean
,
default
:
false
},
listData
:
{
type
:
Array
,
default
:
()
=>
{
return
[]
}
}
},
data
()
{
return
{
searchData
:
''
,
taskMode
:
false
,
// 是否为任务文件夹
menuVisible
:
false
,
// 右键菜单栏
breadcrumb
:
[
'首页'
],
// 面包屑
options
:
[{
...
...
@@ -109,47 +96,31 @@ export default {
}
},
methods
:
{
initDataFromRoute
(
route
)
{
/* 根据路由参数初始化数据 */
if
(
route
.
query
.
breadcrumb
)
{
this
.
breadcrumb
=
JSON
.
parse
(
route
.
query
.
breadcrumb
)
this
.
taskMode
=
route
.
query
.
taskMode
}
},
backCrumb
(
index
)
{
/* 点击面包屑返回前几级 */
if
(
index
<
this
.
breadcrumb
.
length
-
1
)
{
let
backPageCount
=
index
-
this
.
breadcrumb
.
length
+
1
this
.
$router
.
go
(
backPageCount
)
}
},
showMenu
(
MouseEvent
,
item
)
{
/* 右键文件夹或文件时触发 */
console
.
log
(
item
)
this
.
menuVisible
=
false
this
.
menuVisible
=
true
this
.
coordinate
.
menuX
=
MouseEvent
.
pageX
+
5
+
'px'
this
.
coordinate
.
menuY
=
MouseEvent
.
pageY
+
'px'
document
.
addEventListener
(
'click'
,
this
.
foo
)
// 给整个document添加监听鼠标事件,点击任何位置执行foo方法
},
listOpen
(
index
)
{
let
listIndex
=
parseInt
(
index
)
-
1
this
.
$emit
(
'getMaterialFile'
,
listIndex
)
},
foo
()
{
/* 取消鼠标监听事件 菜单栏 */
this
.
menuVisible
=
false
this
.
uploadVisible
=
false
document
.
removeEventListener
(
'click'
,
this
.
foo
)
// 关掉监听
},
format
(
percentage
)
{
format
(
item
)
{
console
.
log
(
1111111111111
,
item
)
return
'3/8'
}
},
mounted
()
{
},
created
()
{
this
.
initDataFromRoute
(
this
.
$route
)
},
watch
:
{
$route
(
to
,
from
)
{
this
.
initDataFromRoute
(
to
)
}
}
}
</
script
>
...
...
@@ -239,6 +210,7 @@ export default {
.progress-ctn {
width:250px;
padding:13px 10px 0 15px;
display: flex;
}
}
...
...
VSSCMP_WEB/src/pages/education/schoolBasedResources/myResources/components/MyuploadCtxMenu.vue
View file @
a74dc3aa
...
...
@@ -5,11 +5,11 @@
<ul
class=
"menu"
>
<li
class=
"menu_item padding_35"
v-show=
"menuMode!=='blank'"
@
click=
"clickFile"
>
打开
</li>
<li
class=
"menu_item padding_35"
v-show=
"menuMode==='file'"
>
下载
</li>
<li
class=
"menu_item"
@
click
.
prevent
.
stop=
"showUploadMenu"
v-show=
"menuMode !== 'file' && menuMode !== 'blank' || (menuMode === 'blank' &&
rightMenuFolder[0].isFolder === fals
e)"
><span
class=
"upload_line"
><i
class=
"el-icon-upload upload-icon"
></i></span>
上传材料
</li>
<li
class=
"menu_item"
@
click
.
prevent
.
stop=
"showUploadMenu"
v-show=
"menuMode !== 'file' && menuMode !== 'blank' || (menuMode === 'blank' &&
currentIsFiL
e)"
><span
class=
"upload_line"
><i
class=
"el-icon-upload upload-icon"
></i></span>
上传材料
</li>
<li
class=
"menu_item padding_35"
v-show=
"menuMode === 'personal' || menuMode === 'file'"
@
click=
"renameVisible = true"
>
重命名
</li>
<li
class=
"menu_item padding_35"
v-show=
"menuMode === 'file'"
@
click=
"
shareV
isible = true"
>
分享
</li>
<li
class=
"menu_item padding_35"
v-show=
"menuMode === 'file'"
@
click=
"
v
isible = true"
>
分享
</li>
<li
class=
"menu_item padding_35"
v-show=
"menuMode === 'personal' || menuMode === 'file'"
@
click=
"deleteVisible = true"
>
删除
</li>
<li
class=
"menu_item"
style=
"text-align:center"
v-show=
"menuMode === 'blank' &&
rightMenuFolder[0].isFolder === tru
e"
@
click=
"newFolderVisible = true"
>
新建个人文件夹
</li>
<li
class=
"menu_item"
style=
"text-align:center"
v-show=
"menuMode === 'blank' &&
currentIsFiLe === fals
e"
@
click=
"newFolderVisible = true"
>
新建个人文件夹
</li>
</ul>
</div>
...
...
@@ -17,7 +17,7 @@
<div
v-show=
"uploadVisible"
id=
"upload_menu"
:style=
"'left:'+coordinate.uploadX+';top:'+coordinate.uploadY"
>
<p
class=
"upload_title"
>
普通文档
</p>
<ul
class=
"upload_menu"
>
<li
class=
"menu_item"
><span
class=
"
upload_line"
><i
class=
"el-icon-document document-icon"
></i></span>
本地上传
</li>
<li
class=
"menu_item"
><span
class=
"upload_line"
><i
class=
"el-icon-document document-icon"
></i></span>
本地上传
</li>
</ul>
<p
class=
"upload_title"
>
腾讯文档
</p>
<ul
class=
"upload_menu"
>
...
...
@@ -78,10 +78,16 @@
<el-button
@
click=
"shareVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"shareVisible = false"
>
确 定
</el-button>
</div>
<teacher-selector
<userselector
:mode=
"userSelector.mode"
:list=
"userSelector.list"
:visible
.
sync=
"visible"
@
submit=
"selectUser"
/>
<!--
<teacher-selector
:teacherSelectorOptions=
"teacherSelectorOptions"
@
closeTeacherSelector=
"teacherSelectorOptions.isBlock = false"
>
</teacher-selector>
</teacher-selector>
-->
</el-dialog>
</div>
...
...
@@ -95,6 +101,10 @@ export default {
type
:
Boolean
,
default
:
false
},
currentIsFiLe
:
{
// 当前层次是否为文档列表
type
:
Boolean
,
default
:
false
},
uploadVisible
:
{
// 上传菜单栏显示
type
:
Boolean
,
default
:
false
...
...
@@ -123,14 +133,17 @@ export default {
}
},
components
:
{
TeacherSelector
:
()
=>
import
(
'@/common/TeacherSelector'
)
// TeacherSelector: () => import('@/common/TeacherSelector')
userselector
:
()
=>
import
(
'@/common/userSelector/UserSelector'
)
},
data
()
{
return
{
teacherSelectorOptions
:
{
isBlock
:
false
,
isShow
:
true
userSelector
:
{
mode
:
'teacherCheckbox'
,
list
:
[],
visible
:
false
},
visible
:
false
,
renameVisible
:
false
,
// 重命名窗口
rename
:
''
,
newFolderVisible
:
false
,
// 新建文件夹窗口
...
...
@@ -155,6 +168,9 @@ export default {
clickFile
()
{
let
file
=
this
.
rightMenuData
this
.
$emit
(
'menuOpenFile'
,
file
)
},
selectUser
(
list
)
{
console
.
log
(
111111
,
list
)
}
}
}
...
...
VSSCMP_WEB/src/pages/education/schoolBasedResources/myResources/components/SmallFolder.vue
View file @
a74dc3aa
...
...
@@ -12,19 +12,21 @@
width=
"260"
>
<template
slot-scope=
"scope"
>
<div
class=
"is-folder"
>
<i
:class=
"
scope.row.icon
+' file-icon'"
></i>
<span
style=
"margin-left: 10px"
>
{{
scope
.
row
.
name
}}
</span>
<i
:class=
"
currentIsFiLe?'el-icon-document': 'el-icon-folder'
+' file-icon'"
></i>
<span
style=
"margin-left: 10px"
>
{{
scope
.
row
.
file_
name
}}
</span>
</div>
</
template
>
</el-table-column>
<el-table-column
v-if=
"fileList[0] && fileList[0].isFolder"
prop=
"typeName"
v-if=
"fileList[0] && !currentIsFiLe"
label=
"类型"
width=
"170"
>
<
template
slot-scope=
"scope"
>
{{
folderTypeOptions
[
scope
.
row
.
file_type
]
}}
</
template
>
</el-table-column>
<el-table-column
v-if=
"
!manageMode && (fileList[0] && fileList[0].isFolder)
"
v-if=
"
mode != 'favor' && !currentIsFiLe
"
prop=
"uploadCount"
label=
"我上传的数量"
width=
"170"
>
...
...
@@ -42,12 +44,12 @@
width=
"150"
>
</el-table-column>
<el-table-column
prop=
"
author
"
prop=
"
create_by
"
label=
"创建人"
width=
"160"
>
</el-table-column>
<el-table-column
prop=
"
updateT
ime"
prop=
"
create_t
ime"
label=
"创建时间"
min-width=
"220"
>
</el-table-column>
...
...
@@ -71,11 +73,36 @@ export default {
return
[]
}
},
currentIsFiLe
:
{
type
:
Boolean
,
default
:
false
},
mode
:
{
// 模式:upload: 我上传的, favor: 分享收藏
type
:
String
,
default
:
'upload'
},
manageMode
:
{
// 是否为我管理的页面使用
type
:
Boolean
,
default
:
false
}
},
computed
:
{
folderTypeOptions
()
{
/* 根据foderType来判断显示哪种options */
const
uploadType
=
{
1
:
'学校文件夹'
,
2
:
'个人文件夹'
}
const
favorType
=
{
1
:
'我收藏的'
,
2
:
'我分享的'
,
3
:
'分享给我的'
}
let
folderTypeOptions
=
{}
switch
(
this
.
mode
)
{
case
'upload'
:
folderTypeOptions
=
uploadType
break
case
'favor'
:
folderTypeOptions
=
favorType
break
}
return
folderTypeOptions
}
},
data
()
{
return
{
}
...
...
@@ -84,7 +111,7 @@ export default {
contextMenu
(
row
,
column
,
event
)
{
event
.
stopPropagation
()
event
.
preventDefault
()
this
.
$emit
(
'showMenu'
,
event
,
row
.
typ
e
,
row
)
this
.
$emit
(
'showMenu'
,
event
,
this
.
currentIsFiL
e
,
row
)
},
dblclick
(
row
,
column
,
event
)
{
this
.
$emit
(
'tableIntoFile'
,
row
)
...
...
VSSCMP_WEB/src/pages/education/schoolBasedResources/schoolResources/ResourcesInSchoold.vue
View file @
a74dc3aa
...
...
@@ -227,7 +227,7 @@ export default {
font-size: 18px;
.el-breadcrumb {
font-size: 1
8
px;
font-size: 1
5
px;
line-height: 45px;
.el-breadcrumb__item {
&:not(:last-child) .el-breadcrumb__inner{
...
...
VSSCMP_WEB/src/routers/education/schoolBasedResourcesRouter.js
View file @
a74dc3aa
...
...
@@ -25,12 +25,12 @@ const MY_RESOURCES = [
path
:
'/education/myResources/myManage'
,
name
:
'myManage'
,
component
:
resolve
=>
require
([
'pages/education/schoolBasedResources/myResources/MyManage'
],
resolve
)
},
{
// 我管理的-资料列表
path
:
'/education/myResources/myManage/material'
,
name
:
'material'
,
component
:
resolve
=>
require
([
'pages/education/schoolBasedResources/myResources/Material'
],
resolve
)
}
// { // 我管理的-资料列表
// path: '/education/myResources/myManage/material',
// name: 'material',
// component: resolve => require(['pages/education/schoolBasedResources/myResources/Material'], resolve)
// }
]
}
]
...
...
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