|
@@ -333,7 +333,7 @@ export default {
|
|
|
this.getTerm()
|
|
this.getTerm()
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- //获取字典表
|
|
|
|
|
|
|
+ // 获取字典表
|
|
|
getTerm () {
|
|
getTerm () {
|
|
|
itemDetailApi.getItemDetailByItemCode({ ItemCode: 'Term' })
|
|
itemDetailApi.getItemDetailByItemCode({ ItemCode: 'Term' })
|
|
|
.then(res => {
|
|
.then(res => {
|
|
@@ -345,25 +345,25 @@ export default {
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- //class
|
|
|
|
|
|
|
+ // class
|
|
|
initDatas_class () {
|
|
initDatas_class () {
|
|
|
let _this = this
|
|
let _this = this
|
|
|
let params = {
|
|
let params = {
|
|
|
_currentPage: this.currpage,
|
|
_currentPage: this.currpage,
|
|
|
- _size: this.size,
|
|
|
|
|
|
|
+ _size: this.size
|
|
|
}
|
|
}
|
|
|
ClassApi.getAllClass(params)
|
|
ClassApi.getAllClass(params)
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
for (let i = 0; i < res.records.length; i++) {
|
|
for (let i = 0; i < res.records.length; i++) {
|
|
|
- this.activitiesclass.push({ value: (res.records[i].Id), label: (res.records[i].Year + "_" + res.records[i].Name) });
|
|
|
|
|
|
|
+ this.activitiesclass.push({ value: (res.records[i].Id), label: (res.records[i].Year + '_' + res.records[i].Name) })
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
initSelectYear (year) {
|
|
initSelectYear (year) {
|
|
|
- var myDate = new Date;
|
|
|
|
|
- var year = myDate.getFullYear();//获取当前年
|
|
|
|
|
|
|
+ var myDate = new Date()
|
|
|
|
|
+ var year = myDate.getFullYear()// 获取当前年
|
|
|
for (let i = 0; i < 5; i++) {
|
|
for (let i = 0; i < 5; i++) {
|
|
|
- this.years.push({ value: (year - i), label: (year - i) + "年" });
|
|
|
|
|
|
|
+ this.years.push({ value: (year - i), label: (year - i) + '年' })
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
// 初始化列表数据,值班管理列表
|
|
// 初始化列表数据,值班管理列表
|
|
@@ -371,7 +371,7 @@ export default {
|
|
|
let _this = this
|
|
let _this = this
|
|
|
let params = {
|
|
let params = {
|
|
|
_currentPage: this.currpage,
|
|
_currentPage: this.currpage,
|
|
|
- _size: this.size,
|
|
|
|
|
|
|
+ _size: this.size
|
|
|
}
|
|
}
|
|
|
DutyApi.getAllDuty(params)
|
|
DutyApi.getAllDuty(params)
|
|
|
.then(res => {
|
|
.then(res => {
|
|
@@ -388,8 +388,8 @@ export default {
|
|
|
},
|
|
},
|
|
|
formatStatus (row, column) {
|
|
formatStatus (row, column) {
|
|
|
for (var i = 0; i < this.status.length; i++) {
|
|
for (var i = 0; i < this.status.length; i++) {
|
|
|
- if (this.status[i].value == row.status) {
|
|
|
|
|
- return this.status[i].key;
|
|
|
|
|
|
|
+ if (this.status[i].value === row.status) {
|
|
|
|
|
+ return this.status[i].key
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -397,10 +397,10 @@ export default {
|
|
|
this.search = {
|
|
this.search = {
|
|
|
Title: '',
|
|
Title: '',
|
|
|
Status: -1,
|
|
Status: -1,
|
|
|
- Content: '',
|
|
|
|
|
|
|
+ Content: ''
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- //初始化分页分页对象
|
|
|
|
|
|
|
+ // 初始化分页分页对象
|
|
|
initPageInfo () {
|
|
initPageInfo () {
|
|
|
this.search.page = {
|
|
this.search.page = {
|
|
|
total: 0,
|
|
total: 0,
|
|
@@ -423,7 +423,7 @@ export default {
|
|
|
this.$refs.informationDialog.dialogvisible = false
|
|
this.$refs.informationDialog.dialogvisible = false
|
|
|
this.initPageInfo()
|
|
this.initPageInfo()
|
|
|
this.initDatas()
|
|
this.initDatas()
|
|
|
- console.log("handleClose informationId" + this.informationId)
|
|
|
|
|
|
|
+ console.log('handleClose informationId' + this.informationId)
|
|
|
},
|
|
},
|
|
|
publish (information) {
|
|
publish (information) {
|
|
|
information.status = 1
|
|
information.status = 1
|
|
@@ -437,7 +437,7 @@ export default {
|
|
|
this.search.page = res
|
|
this.search.page = res
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- //信息发布
|
|
|
|
|
|
|
+ // 信息发布
|
|
|
handleSizeChange (val) {
|
|
handleSizeChange (val) {
|
|
|
this.search.page.size = val
|
|
this.search.page.size = val
|
|
|
this.search.page.current = 1
|
|
this.search.page.current = 1
|
|
@@ -447,7 +447,7 @@ export default {
|
|
|
this.search.page.current = val
|
|
this.search.page.current = val
|
|
|
this.initDatas()
|
|
this.initDatas()
|
|
|
},
|
|
},
|
|
|
- //课程管理
|
|
|
|
|
|
|
+ // 课程管理
|
|
|
handleSizeChange_course (val) {
|
|
handleSizeChange_course (val) {
|
|
|
this.search.page.size = val
|
|
this.search.page.size = val
|
|
|
this.search.page.current = 1
|
|
this.search.page.current = 1
|
|
@@ -457,8 +457,6 @@ export default {
|
|
|
this.search.page.current = val
|
|
this.search.page.current = val
|
|
|
this.initDatasCourse()
|
|
this.initDatasCourse()
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
searchCommand (command) {
|
|
searchCommand (command) {
|
|
|
if (command === 'search') {
|
|
if (command === 'search') {
|
|
|
this.dialogvisible = true
|
|
this.dialogvisible = true
|