Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tea-resources-web
Project
Project
Details
Activity
Releases
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
张伯涛
tea-resources-web
Commits
91a2573f
Commit
91a2573f
authored
Aug 15, 2024
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
4a295623
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
150 additions
and
7 deletions
+150
-7
index.vue
src/views/contentManagement/centralCase/index.vue
+21
-0
index.vue
src/views/contentManagement/newsInformation/index.vue
+22
-0
courseCatalogues.vue
...s/courseInformation/courseManagement/courseCatalogues.vue
+4
-2
index.vue
src/views/courseInformation/courseManagement/index.vue
+27
-5
index.vue
src/views/courseInformation/feedback/index.vue
+19
-0
index.vue
src/views/courseInformation/firstLevelAudit/index.vue
+19
-0
index.vue
src/views/courseInformation/jobQuestionBank/index.vue
+19
-0
index.vue
src/views/courseInformation/secondLevelAudit/index.vue
+19
-0
No files found.
src/views/contentManagement/centralCase/index.vue
View file @
91a2573f
...
...
@@ -98,6 +98,7 @@
</el-table>
</div>
<pagination
:key=
"pageKey"
v-show=
"total>0"
:total=
"total"
:page
.
sync=
"queryParams.page"
...
...
@@ -114,6 +115,7 @@ import commonField from '@/utils/commonField'
import
{
updateProjectStatus
,
delCmsProject
,
listCmsProject
}
from
'@/api/contentManagement/cmsProject'
import
{
parseTime
}
from
'@/utils'
import
{
updatePagesRes
,
updateRes
,
updateResonseUrl
,
updateResponseUrl
}
from
'@/utils/updateUrl'
import
{
getDataCache
,
setDataCache
}
from
"@/assets/js/filterData"
;
export
default
{
name
:
'Index'
,
// components: {
...
...
@@ -121,6 +123,7 @@ export default {
// },
data
()
{
return
{
pageKey
:
0
,
hasAddPerm
:
[
'sys:contentNewssInformation:add'
],
hasUpdatePerm
:
[
'sys:contentNewssInformation:update'
],
imageSrc
:
require
(
'@/assets/image/test.png'
),
...
...
@@ -191,6 +194,23 @@ export default {
return
commonField
}
},
/** 路由离开前存储筛选条件*/
beforeRouteLeave
(
to
,
from
,
next
)
{
setDataCache
(
this
.
$route
.
path
,
this
.
queryParams
)
next
()
},
beforeRouteEnter
(
to
,
from
,
next
)
{
next
(
vm
=>
{
if
(
from
.
path
===
'/contentManagement/centralCase/info/update'
||
from
.
path
===
'/contentManagement/centralCase/info/index'
||
from
.
path
===
'/contentManagement/centralCase/info/index'
)
{
vm
.
queryParams
.
page
=
JSON
.
parse
(
getDataCache
(
vm
.
$route
.
path
)).
page
setTimeout
(()
=>
{
vm
.
loadData
()
},
500
)
}
})
},
created
()
{
},
mounted
:
function
()
{
...
...
@@ -277,6 +297,7 @@ export default {
if
(
response
.
rows
.
length
===
0
)
{
_this
.
tableDataTips
=
'暂无数据'
}
this
.
pageKey
++
})
},
// 修改状态
...
...
src/views/contentManagement/newsInformation/index.vue
View file @
91a2573f
...
...
@@ -155,6 +155,7 @@
</el-table>
</div>
<pagination
:key=
"pageKey"
v-show=
"total>0"
:total=
"total"
:page
.
sync=
"queryParams.page"
...
...
@@ -175,6 +176,7 @@ import {
import
{
updateResponseUrl
}
from
'@/utils/updateUrl'
import
{
error
}
from
'autoprefixer/lib/utils'
import
{
parseTime
}
from
'@/utils'
import
{
getDataCache
,
setDataCache
}
from
'@/assets/js/filterData'
export
default
{
name
:
'Index'
,
// components: {
...
...
@@ -182,6 +184,7 @@ export default {
// },
data
()
{
return
{
pageKey
:
0
,
hasAddPerm
:
[
'sys:contentNewsInformation:add'
],
hasUpdatePerm
:
[
'sys:contentNewsInformation:update'
],
hasDetailPerm
:
[
'sys:contentNewsInformation:query'
],
...
...
@@ -281,7 +284,25 @@ export default {
return
commonField
}
},
/** 路由离开前存储筛选条件*/
beforeRouteLeave
(
to
,
from
,
next
)
{
setDataCache
(
this
.
$route
.
path
,
this
.
queryParams
)
next
()
},
beforeRouteEnter
(
to
,
from
,
next
)
{
next
(
vm
=>
{
if
(
from
.
path
===
'/contentManagement/newsInformation/info/detail'
||
from
.
path
===
'/contentManagement/newsInformation/info/index'
||
from
.
path
===
'/contentManagement/newsInformation/info/update'
)
{
vm
.
queryParams
.
page
=
JSON
.
parse
(
getDataCache
(
vm
.
$route
.
path
)).
page
setTimeout
(()
=>
{
vm
.
loadData
()
},
500
)
}
})
},
created
()
{
// this.queryParams.page = JSON.parse(getDataCache(this.$route.path)).page
// console.log('11111', this.$store.getters.type)
// console.log('url:', window.location.href)
},
...
...
@@ -389,6 +410,7 @@ export default {
if
(
response
.
rows
.
length
===
0
)
{
_this
.
tableDataTips
=
'暂无数据'
}
this
.
pageKey
++
}).
catch
(
function
()
{
_this
.
fullscreenLoading
=
false
console
.
log
(
error
)
...
...
src/views/courseInformation/courseManagement/courseCatalogues.vue
View file @
91a2573f
...
...
@@ -482,6 +482,7 @@ export default {
// }, 1000);
}
return
{
currentPage
:
1
,
uploadType
:
''
,
uploadStateOptions
:
[],
yesLoading
:
false
,
...
...
@@ -1038,7 +1039,8 @@ export default {
})
},
// 查询课程目录
loadCatalog
(
lessonId
,
classHours
,
lessonName
,
code
,
dirId
,
stuMeansFile
)
{
loadCatalog
(
lessonId
,
classHours
,
lessonName
,
code
,
dirId
,
stuMeansFile
,
cpage
)
{
this
.
currentPage
=
cpage
// 清空原课时信息
this
.
classCurrent
=
''
// 清空原章节列表
...
...
@@ -2488,7 +2490,7 @@ export default {
},
// 返回
goBack
()
{
this
.
$emit
(
'goback'
)
this
.
$emit
(
'goback'
,
this
.
currentPage
)
},
// 重新上传
previewToUpload
()
{
...
...
src/views/courseInformation/courseManagement/index.vue
View file @
91a2573f
...
...
@@ -489,6 +489,7 @@
</el-table-column></el-table>
</div>
<pagination
:key=
"pageKey"
v-show=
"total>0"
:total=
"total"
:page
.
sync=
"queryParams.page"
...
...
@@ -705,6 +706,7 @@ import { getDict, listData } from '@/api/system/dict/data'
import
{
listAllCmsLecturer
}
from
'@/api/courseManagement/cmsLecturer'
import
{
urlDecrypt
,
urlEncrypt
}
from
'@/utils/jsencrypt'
import
home_pic_kecheng
from
'@/assets/image/home_pic_kecheng.png'
import
{
getDataCache
,
setDataCache
}
from
"@/assets/js/filterData"
;
export
default
{
name
:
'Index'
,
components
:
{
...
...
@@ -760,6 +762,7 @@ export default {
}
}
return
{
pageKey
:
0
,
uploadType
:
''
,
uploadStateOptions
:
[],
sortChangeTime123
:
false
,
...
...
@@ -977,6 +980,22 @@ export default {
this
.
loadData
()
this
.
getUploadType
()
// 查询上传类型
}
,
/** 路由离开前存储筛选条件*/
beforeRouteLeave
(
to
,
from
,
next
)
{
setDataCache
(
this
.
$route
.
path
,
this
.
queryParams
)
next
()
}
,
beforeRouteEnter
(
to
,
from
,
next
)
{
next
(
vm
=>
{
if
(
from
.
path
===
'/courseInformation/courseManagement/info/add'
||
from
.
path
===
'/courseInformation/courseManagement/info/update'
)
{
vm
.
queryParams
.
page
=
JSON
.
parse
(
getDataCache
(
vm
.
$route
.
path
)).
page
setTimeout
(()
=>
{
vm
.
loadData
()
}
,
500
)
}
}
)
}
,
methods
:
{
getUploadType
()
{
const
params
=
{
...
...
@@ -1296,6 +1315,7 @@ export default {
if
(
response
.
rows
.
length
===
0
)
{
_this
.
tableDataTips
=
'暂无数据'
}
this
.
pageKey
++
}
).
catch
(
function
()
{
_this
.
fullscreenLoading
=
false
console
.
log
(
error
)
...
...
@@ -2031,17 +2051,19 @@ export default {
this
.
curCatForm
.
directionCode
=
this
.
tableData
[
index
].
directionCode
console
.
log
(
'this.curCatForm'
,
this
.
curCatForm
)
// 加载课程目录
this
.
$refs
.
curcat
.
loadCatalog
(
this
.
curCatForm
.
id
,
this
.
curCatForm
.
totalStuHours
,
this
.
curCatForm
.
tlessonName
,
this
.
curCatForm
.
tcode
,
this
.
curCatForm
.
directionId
,
this
.
curCatForm
.
directionCode
)
this
.
$refs
.
curcat
.
loadCatalog
(
this
.
curCatForm
.
id
,
this
.
curCatForm
.
totalStuHours
,
this
.
curCatForm
.
tlessonName
,
this
.
curCatForm
.
tcode
,
this
.
curCatForm
.
directionId
,
this
.
curCatForm
.
directionCode
,
this
.
queryParams
.
page
)
}
,
// 目录页更新
refreshData
()
{
this
.
$refs
.
curcat
.
loadCatalog
(
this
.
curCatForm
.
id
,
this
.
curCatForm
.
totalStuHours
,
this
.
curCatForm
.
tlessonName
,
this
.
curCatForm
.
tcode
,
this
.
curCatForm
.
directionId
,
this
.
curCatForm
.
directionCode
)
}
,
// 子组件关闭
closeChild
()
{
// this.showSwitch.courseContent = true;
// this.showSwitch.curCat = false;
this
.
$router
.
go
(
0
)
closeChild
(
page
)
{
this
.
showSwitch
.
courseContent
=
true
;
this
.
showSwitch
.
curCat
=
false
;
this
.
queryParams
.
page
=
page
this
.
loadData
()
// this.$router.go(0)
}
,
// 清空封面上传列表
clearCoverFileList
()
{
...
...
src/views/courseInformation/feedback/index.vue
View file @
91a2573f
...
...
@@ -145,6 +145,7 @@
</el-table>
</div>
<pagination
:key=
"pageKey"
v-show=
"total>0"
:total=
"total"
:page
.
sync=
"queryParams.page"
...
...
@@ -208,11 +209,13 @@ import {
listFeedbackTypes
}
from
'@/api/courseManagement/cmsFeedback'
import
commonField
from
'@/utils/commonField'
import
{
getDataCache
,
setDataCache
}
from
"@/assets/js/filterData"
;
export
default
{
name
:
'CmsFeedback'
,
data
()
{
return
{
pageKey
:
0
,
hasDetailPerm
:
[
'sys:feedBack:detail'
],
// 遮罩层
loading
:
true
,
...
...
@@ -283,6 +286,21 @@ export default {
this
.
getList
()
// 列表查询
this
.
getFeedbackTypes
()
},
/** 路由离开前存储筛选条件*/
beforeRouteLeave
(
to
,
from
,
next
)
{
setDataCache
(
this
.
$route
.
path
,
this
.
queryParams
)
next
()
},
beforeRouteEnter
(
to
,
from
,
next
)
{
next
(
vm
=>
{
if
(
from
.
path
===
'/courseInformation/feedback/info/index'
)
{
vm
.
queryParams
.
page
=
JSON
.
parse
(
getDataCache
(
vm
.
$route
.
path
)).
page
setTimeout
(()
=>
{
vm
.
getList
()
},
500
)
}
})
},
methods
:
{
handleTimeChange
(
value
)
{
console
.
log
(
'value'
,
value
)
...
...
@@ -302,6 +320,7 @@ export default {
this
.
cmsFeedbackList
=
response
.
rows
this
.
total
=
response
.
total
this
.
loading
=
false
this
.
pageKey
++
}
)
},
...
...
src/views/courseInformation/firstLevelAudit/index.vue
View file @
91a2573f
...
...
@@ -104,6 +104,7 @@
</el-table>
</div>
<pagination
:key=
"pageKey"
v-show=
"total>0"
:total=
"total"
:page
.
sync=
"queryParams.page"
...
...
@@ -117,6 +118,7 @@
<
script
>
import
commonField
from
'@/utils/commonField'
import
{
getDataList
,
getLessonAuditCount
}
from
'@/api/examineApis'
import
{
getDataCache
,
setDataCache
}
from
"@/assets/js/filterData"
;
export
default
{
name
:
'FirstLevelAuditOperation'
,
components
:
{
...
...
@@ -124,6 +126,7 @@ export default {
},
data
()
{
return
{
pageKey
:
0
,
waitNum
:
''
,
failNum
:
''
,
passNum
:
''
,
...
...
@@ -153,6 +156,21 @@ export default {
},
mounted
()
{
},
/** 路由离开前存储筛选条件*/
beforeRouteLeave
(
to
,
from
,
next
)
{
setDataCache
(
this
.
$route
.
path
,
this
.
queryParams
)
next
()
},
beforeRouteEnter
(
to
,
from
,
next
)
{
next
(
vm
=>
{
if
(
from
.
path
===
'/courseInformation/firstLevelAudit/firstLevelAuditOperation'
)
{
vm
.
queryParams
.
page
=
JSON
.
parse
(
getDataCache
(
vm
.
$route
.
path
)).
page
setTimeout
(()
=>
{
vm
.
getList
()
},
500
)
}
})
},
methods
:
{
/** 获取各个审核类型的数量*/
getNumber
()
{
...
...
@@ -198,6 +216,7 @@ export default {
this
.
tableData
=
res
.
data
.
records
this
.
total
=
res
.
data
.
total
this
.
loading
=
false
this
.
pageKey
++
}).
catch
(
function
()
{
this
.
loading
=
false
})
...
...
src/views/courseInformation/jobQuestionBank/index.vue
View file @
91a2573f
...
...
@@ -193,6 +193,7 @@
</el-table-column></el-table>
</div>
<pagination
:key=
"pageKey"
v-show=
"total>0"
:total=
"total"
:page
.
sync=
"queryParams.page"
...
...
@@ -476,6 +477,7 @@ import { listAllCmsLecturer } from '@/api/courseManagement/cmsLecturer'
import
{
urlDecrypt
,
urlEncrypt
}
from
'@/utils/jsencrypt'
import
home_pic_kecheng
from
'@/assets/image/home_pic_kecheng.png'
import
{
batchAddTeaTrialCourse
}
from
'@/api/try/teaTrialCourse'
import
{
getDataCache
,
setDataCache
}
from
"@/assets/js/filterData"
;
export
default
{
name
:
'Index'
,
components
:
{
...
...
@@ -531,6 +533,7 @@ export default {
}
}
return
{
pageKey
:
0
,
multipleSelection
:
[],
selectedCount
:
0
,
enterpriseNameOptions
:
[],
...
...
@@ -728,6 +731,21 @@ export default {
},
created
()
{
},
/** 路由离开前存储筛选条件*/
beforeRouteLeave
(
to
,
from
,
next
)
{
setDataCache
(
this
.
$route
.
path
,
this
.
queryParams
)
next
()
},
beforeRouteEnter
(
to
,
from
,
next
)
{
next
(
vm
=>
{
if
(
from
.
path
===
'/courseInformation/examinationCompany/index'
)
{
vm
.
queryParams
.
page
=
JSON
.
parse
(
getDataCache
(
vm
.
$route
.
path
)).
page
setTimeout
(()
=>
{
vm
.
loadData
()
},
500
)
}
})
},
mounted
:
function
()
{
this
.
getCourseDirection
()
this
.
getJobClassification
()
...
...
@@ -1070,6 +1088,7 @@ export default {
if
(
res
.
rows
.
length
===
0
)
{
_this
.
tableDataTips
=
'暂无数据'
}
this
.
pageKey
++
}).
catch
(
function
()
{
_this
.
fullscreenLoading
=
false
console
.
log
(
error
)
...
...
src/views/courseInformation/secondLevelAudit/index.vue
View file @
91a2573f
...
...
@@ -109,6 +109,7 @@
</el-table>
</div>
<pagination
:key=
"pageKey"
v-show=
"total>0"
:total=
"total"
:page
.
sync=
"queryParams.page"
...
...
@@ -122,6 +123,7 @@
<
script
>
import
commonField
from
'@/utils/commonField'
import
{
getDataList
,
getLessonAuditCount
}
from
'@/api/examineApis'
import
{
getDataCache
,
setDataCache
}
from
"@/assets/js/filterData"
;
export
default
{
name
:
'FirstLevelAuditOperation'
,
components
:
{
...
...
@@ -129,6 +131,7 @@ export default {
},
data
()
{
return
{
pageKey
:
0
,
waitNum
:
''
,
failNum
:
''
,
passNum
:
''
,
...
...
@@ -158,6 +161,21 @@ export default {
},
mounted
()
{
},
/** 路由离开前存储筛选条件*/
beforeRouteLeave
(
to
,
from
,
next
)
{
setDataCache
(
this
.
$route
.
path
,
this
.
queryParams
)
next
()
},
beforeRouteEnter
(
to
,
from
,
next
)
{
next
(
vm
=>
{
if
(
from
.
path
===
'/courseInformation/secondLevelAudit/secondLevelAuditOperation'
)
{
vm
.
queryParams
.
page
=
JSON
.
parse
(
getDataCache
(
vm
.
$route
.
path
)).
page
setTimeout
(()
=>
{
vm
.
getList
()
},
500
)
}
})
},
methods
:
{
/** 获取各个审核类型的数量*/
getNumber
()
{
...
...
@@ -203,6 +221,7 @@ export default {
this
.
tableData
=
res
.
data
.
records
this
.
total
=
res
.
data
.
total
this
.
loading
=
false
this
.
pageKey
++
}).
catch
(
function
()
{
this
.
loading
=
false
})
...
...
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