Commit 91a2573f authored by liwei's avatar liwei

修改bug

parent 4a295623
......@@ -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++
})
},
// 修改状态
......
......@@ -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)
......
......@@ -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() {
......
......@@ -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() {
......
......@@ -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++
}
)
},
......
......@@ -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
})
......
......@@ -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)
......
......@@ -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
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment