|
@@ -125,7 +125,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<pop v-show="isShowMask">
|
|
<pop v-show="isShowMask">
|
|
|
- <template v-slot:tit>确定</template>
|
|
|
|
|
|
|
+ <template v-slot:tit>提示</template>
|
|
|
<template v-slot:con>确定{{ shareShow ? '修改' : '发布' }}吗</template>
|
|
<template v-slot:con>确定{{ shareShow ? '修改' : '发布' }}吗</template>
|
|
|
<template v-slot:btn1>
|
|
<template v-slot:btn1>
|
|
|
<div class="btn" style="color: rgba(136,136,136,1);" @click="isShowMask = false">取消</div>
|
|
<div class="btn" style="color: rgba(136,136,136,1);" @click="isShowMask = false">取消</div>
|
|
@@ -153,12 +153,13 @@ import pop from './components/pop.vue'
|
|
|
|
|
|
|
|
import { insertRecord } from '@/api/eva'
|
|
import { insertRecord } from '@/api/eva'
|
|
|
// import { selectClassStudent } from '@/api/eva'
|
|
// import { selectClassStudent } from '@/api/eva'
|
|
|
-import { selectVeiDoo } from '@/api/eva'
|
|
|
|
|
|
|
+// import { selectVeiDoo } from '@/api/eva'
|
|
|
import { selectRecordDetail } from '@/api/eva'
|
|
import { selectRecordDetail } from '@/api/eva'
|
|
|
import { updateRecordData } from '@/api/eva'
|
|
import { updateRecordData } from '@/api/eva'
|
|
|
import { selectTerm } from '@/api/eva'
|
|
import { selectTerm } from '@/api/eva'
|
|
|
import { selectStudentDetail } from '@/api/eva'
|
|
import { selectStudentDetail } from '@/api/eva'
|
|
|
import { selectManyClassStudent } from '@/api/eva'
|
|
import { selectManyClassStudent } from '@/api/eva'
|
|
|
|
|
+import { selectSTEType } from '@/api/eva'
|
|
|
|
|
|
|
|
import '@/utils/aws-sdk-2.235.1.min.js'
|
|
import '@/utils/aws-sdk-2.235.1.min.js'
|
|
|
|
|
|
|
@@ -226,38 +227,33 @@ export default {
|
|
|
|
|
|
|
|
selectStudentDetail(stuData).then(res => {
|
|
selectStudentDetail(stuData).then(res => {
|
|
|
this.studentInfo = res[0][0]
|
|
this.studentInfo = res[0][0]
|
|
|
- console.log('获取学生信息', this.studentInfo)
|
|
|
|
|
|
|
+ // console.log('获取学生信息', this.studentInfo)
|
|
|
|
|
|
|
|
// 获取班学生列表
|
|
// 获取班学生列表
|
|
|
const data2 = {
|
|
const data2 = {
|
|
|
cid: this.studentInfo.classid,
|
|
cid: this.studentInfo.classid,
|
|
|
uid: localStorage.getItem('userId')
|
|
uid: localStorage.getItem('userId')
|
|
|
}
|
|
}
|
|
|
- console.log('获取班学生列表', data2)
|
|
|
|
|
|
|
+ // console.log('获取班学生列表', data2)
|
|
|
selectManyClassStudent(data2).then(res => {
|
|
selectManyClassStudent(data2).then(res => {
|
|
|
- // res[0].forEach(e => {
|
|
|
|
|
- // if (e.id === this.$route.query.uid) {
|
|
|
|
|
- // this.stuName = e
|
|
|
|
|
- // } else {
|
|
|
|
|
- // this.studentList.push(e)
|
|
|
|
|
- // }
|
|
|
|
|
- // })
|
|
|
|
|
this.studentList = res[0]
|
|
this.studentList = res[0]
|
|
|
-
|
|
|
|
|
- console.log('this.studentList', this.studentList)
|
|
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
// 获取纬度筛选框
|
|
// 获取纬度筛选框
|
|
|
- selectVeiDoo().then(res => {
|
|
|
|
|
- this.weiList = res[0]
|
|
|
|
|
- console.log('this.weiList', this.weiList)
|
|
|
|
|
- })
|
|
|
|
|
|
|
+
|
|
|
|
|
+ this.getWei()
|
|
|
|
|
+ // selectVeiDoo().then(res => {
|
|
|
|
|
+ // this.weiList = res[0]
|
|
|
|
|
+ // // console.log('this.weiList', this.weiList)
|
|
|
|
|
+ // })
|
|
|
|
|
+
|
|
|
|
|
+ // console.log('获取筛选项22222222', data3)
|
|
|
|
|
|
|
|
// 获取学期筛选框
|
|
// 获取学期筛选框
|
|
|
selectTerm().then(res => {
|
|
selectTerm().then(res => {
|
|
|
- console.log('获取学期筛选框', res)
|
|
|
|
|
|
|
+ // console.log('获取学期筛选框', res)
|
|
|
res[0].forEach(e => {
|
|
res[0].forEach(e => {
|
|
|
- console.log(e)
|
|
|
|
|
|
|
+ // console.log(e)
|
|
|
if (e.defaultC === 1) {
|
|
if (e.defaultC === 1) {
|
|
|
this.termData.push(e.id)
|
|
this.termData.push(e.id)
|
|
|
}
|
|
}
|
|
@@ -280,6 +276,49 @@ export default {
|
|
|
// console.log('this.studentList', this.studentList)
|
|
// console.log('this.studentList', this.studentList)
|
|
|
// })
|
|
// })
|
|
|
},
|
|
},
|
|
|
|
|
+ getWei() {
|
|
|
|
|
+ const data3 = {
|
|
|
|
|
+ org: this.$store.state.user.userinfo.org,
|
|
|
|
|
+ oid: this.$store.state.user.userinfo.organizeid
|
|
|
|
|
+ }
|
|
|
|
|
+ selectSTEType(data3).then(res => {
|
|
|
|
|
+ // this.filtrate = res[0]
|
|
|
|
|
+ var ftype = res[0] // 公共父级分类
|
|
|
|
|
+ var stype = res[1] // 公共子级分类
|
|
|
|
|
+ var sctype = res[2] // 该学校子级分类
|
|
|
|
|
+ var fctype = res[3] // 该学校父级分类
|
|
|
|
|
+ var fotype = res[4] // 组织父级分类
|
|
|
|
|
+ var sotype = res[5] // 组织子级分类
|
|
|
|
|
+ var allfType = []
|
|
|
|
|
+ var allsType = []
|
|
|
|
|
+ if (fotype.length == 0 && sotype.length == 0) {
|
|
|
|
|
+ if (fctype.length == 0 && sctype.length == 0) {
|
|
|
|
|
+ for (var i = 0; i < ftype.length; i++) {
|
|
|
|
|
+ allfType.push(ftype[i])
|
|
|
|
|
+ }
|
|
|
|
|
+ for (var i = 0; i < stype.length; i++) {
|
|
|
|
|
+ allsType.push(stype[[i]])
|
|
|
|
|
+ }
|
|
|
|
|
+ } else {
|
|
|
|
|
+ for (var i = 0; i < fctype.length; i++) {
|
|
|
|
|
+ allfType.push(fctype[i])
|
|
|
|
|
+ }
|
|
|
|
|
+ for (var i = 0; i < sctype.length; i++) {
|
|
|
|
|
+ allsType.push(sctype[[i]])
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ } else {
|
|
|
|
|
+ for (var i = 0; i < fotype.length; i++) {
|
|
|
|
|
+ allfType.push(fotype[i])
|
|
|
|
|
+ }
|
|
|
|
|
+ for (var i = 0; i < sotype.length; i++) {
|
|
|
|
|
+ allsType.push(sctysotypepe[[i]])
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ // console.log('分类分类分类', res)
|
|
|
|
|
+ this.weiList = allsType
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
// 调用子元素selects中的方法隐藏选项列表
|
|
// 调用子元素selects中的方法隐藏选项列表
|
|
|
col() {
|
|
col() {
|
|
|
this.$refs.StuSel.fuClick()
|
|
this.$refs.StuSel.fuClick()
|
|
@@ -344,7 +383,7 @@ export default {
|
|
|
// return console.log(data)
|
|
// return console.log(data)
|
|
|
|
|
|
|
|
insertRecord(data).then(res => {
|
|
insertRecord(data).then(res => {
|
|
|
- console.log(res)
|
|
|
|
|
|
|
+ // console.log(res)
|
|
|
if (res === 1) {
|
|
if (res === 1) {
|
|
|
this.$toast({
|
|
this.$toast({
|
|
|
message: '发布成功',
|
|
message: '发布成功',
|
|
@@ -381,7 +420,7 @@ export default {
|
|
|
]
|
|
]
|
|
|
// return console.log(data);
|
|
// return console.log(data);
|
|
|
updateRecordData(data).then(res => {
|
|
updateRecordData(data).then(res => {
|
|
|
- console.log(res)
|
|
|
|
|
|
|
+ // console.log(res)
|
|
|
if (res === 1) {
|
|
if (res === 1) {
|
|
|
this.$toast({
|
|
this.$toast({
|
|
|
message: '修改成功',
|
|
message: '修改成功',
|
|
@@ -487,7 +526,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
visitTime(val) {
|
|
visitTime(val) {
|
|
|
- console.log('val', val)
|
|
|
|
|
|
|
+ // console.log('val', val)
|
|
|
if (val === '') {
|
|
if (val === '') {
|
|
|
this.tim = true
|
|
this.tim = true
|
|
|
} else {
|
|
} else {
|
|
@@ -499,9 +538,9 @@ export default {
|
|
|
created() {
|
|
created() {
|
|
|
// 是否显示分享和继续记录按钮。添加按钮进来不显示
|
|
// 是否显示分享和继续记录按钮。添加按钮进来不显示
|
|
|
this.shareShow = this.$route.query.shareShow * 1
|
|
this.shareShow = this.$route.query.shareShow * 1
|
|
|
- console.log(this.shareShow)
|
|
|
|
|
|
|
+ // console.log(this.shareShow)
|
|
|
if (this.$route.query.shareShow * 1 === 1) {
|
|
if (this.$route.query.shareShow * 1 === 1) {
|
|
|
- console.log('aaaaaaaaaaaaaaaaaaaaa')
|
|
|
|
|
|
|
+ // console.log('aaaaaaaaaaaaaaaaaaaaa')
|
|
|
this.getRecord()
|
|
this.getRecord()
|
|
|
}
|
|
}
|
|
|
this.getData()
|
|
this.getData()
|