|
@@ -3,8 +3,8 @@
|
|
|
<div class="studentEvaluate" @click="col">
|
|
<div class="studentEvaluate" @click="col">
|
|
|
<bar :tit="'学生评价'" :num="1">
|
|
<bar :tit="'学生评价'" :num="1">
|
|
|
<template v-slot:btn>
|
|
<template v-slot:btn>
|
|
|
- <div v-if="!shareShow" @click="save">发布</div>
|
|
|
|
|
- <div v-else @click="amend">修改</div>
|
|
|
|
|
|
|
+ <div v-if="!shareShow" style="font-size: 16px;font-weight: normal;" @click="save">发布</div>
|
|
|
|
|
+ <div v-else style="font-size: 16px;font-weight: normal;" @click="amend">修改</div>
|
|
|
</template>
|
|
</template>
|
|
|
</bar>
|
|
</bar>
|
|
|
|
|
|
|
@@ -12,6 +12,11 @@
|
|
|
|
|
|
|
|
<!-- <div class="bigBlock"> -->
|
|
<!-- <div class="bigBlock"> -->
|
|
|
<div class="bigBlock" style="">
|
|
<div class="bigBlock" style="">
|
|
|
|
|
+ <div
|
|
|
|
|
+ v-if="placeShow"
|
|
|
|
|
+ @click="placeShow = false"
|
|
|
|
|
+ style="position:absolute;top: 0;left: 0;width: 100%;height: 100%;z-index: 10;"
|
|
|
|
|
+ ></div>
|
|
|
<div class="claName">
|
|
<div class="claName">
|
|
|
<div class="tit">学生</div>
|
|
<div class="tit">学生</div>
|
|
|
<div class="studentName">{{ studentInfo.name }}</div>
|
|
<div class="studentName">{{ studentInfo.name }}</div>
|
|
@@ -85,10 +90,32 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div v-show="tim" style="height: 10px;"></div>
|
|
<div v-show="tim" style="height: 10px;"></div>
|
|
|
|
|
|
|
|
- <div class="claName">
|
|
|
|
|
|
|
+ <div class="claName" style="position: relative;">
|
|
|
<div class="tit">地点</div>
|
|
<div class="tit">地点</div>
|
|
|
<div class="inpBlock studentName">
|
|
<div class="inpBlock studentName">
|
|
|
- <input type="text" v-model="place" class="inp" placeholder="请输入" />
|
|
|
|
|
|
|
+ <!-- <radioSelect ref="claSel" :listCont="placeList" :tit="'请选择地点'" :choose="termData"></radioSelect> -->
|
|
|
|
|
+ <!-- <div > -->
|
|
|
|
|
+ <!-- :readonly="placeId != 1" -->
|
|
|
|
|
+ <input type="text" v-model="place" @click="selectPlace" class="inp" placeholder="请选择或输入" />
|
|
|
|
|
+ <!-- </div> -->
|
|
|
|
|
+
|
|
|
|
|
+ <div class="list" v-if="placeShow">
|
|
|
|
|
+ <div class="ol" v-for="(i, index) in placeList" :key="index + 'w'" @click="cho(i)">
|
|
|
|
|
+ <div :style="{ color: placeId == i.id ? '#3894FF' : '' }">{{ i.name }}</div>
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <img :style="{ display: placeId == i.id ? '' : 'none' }" src="@/assets/images/eva/dui.png" alt="" />
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="ol" @click="cho({ name: '', id: '1' })">
|
|
|
|
|
+ <div :style="{ color: placeId == 1 ? '#3894FF' : '' }">
|
|
|
|
|
+ 其他
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <img :style="{ display: placeId == 1 ? '' : 'none' }" src="@/assets/images/eva/dui.png" alt="" />
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="claName">
|
|
<div class="claName">
|
|
@@ -171,6 +198,7 @@ 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 { selectSTEType } from '@/api/eva'
|
|
|
|
|
+import { selectSTEPlace } from '@/api/eva'
|
|
|
|
|
|
|
|
import '@/utils/aws-sdk-2.235.1.min.js'
|
|
import '@/utils/aws-sdk-2.235.1.min.js'
|
|
|
|
|
|
|
@@ -196,6 +224,9 @@ export default {
|
|
|
// 纬度选项
|
|
// 纬度选项
|
|
|
weiList: [],
|
|
weiList: [],
|
|
|
termList: [],
|
|
termList: [],
|
|
|
|
|
+ placeList: [],
|
|
|
|
|
+ // 遮罩层
|
|
|
|
|
+ placeShow: false,
|
|
|
// 所选数据
|
|
// 所选数据
|
|
|
// 学生
|
|
// 学生
|
|
|
selectSData: [],
|
|
selectSData: [],
|
|
@@ -207,6 +238,8 @@ export default {
|
|
|
visitTime: '',
|
|
visitTime: '',
|
|
|
// 地点
|
|
// 地点
|
|
|
place: '',
|
|
place: '',
|
|
|
|
|
+ placeId: 1,
|
|
|
|
|
+
|
|
|
// 观察内容
|
|
// 观察内容
|
|
|
observeCon: '',
|
|
observeCon: '',
|
|
|
// 观察记录
|
|
// 观察记录
|
|
@@ -282,6 +315,7 @@ export default {
|
|
|
// console.log('this.studentList', this.studentList)
|
|
// console.log('this.studentList', this.studentList)
|
|
|
// })
|
|
// })
|
|
|
},
|
|
},
|
|
|
|
|
+ // 获取学期筛选框
|
|
|
getTermData() {
|
|
getTermData() {
|
|
|
selectTerm().then(res => {
|
|
selectTerm().then(res => {
|
|
|
// console.log('获取学期筛选框', res)
|
|
// console.log('获取学期筛选框', res)
|
|
@@ -294,6 +328,7 @@ export default {
|
|
|
this.termList = res[0]
|
|
this.termList = res[0]
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
+ // 获取纬度筛选框
|
|
|
getWei() {
|
|
getWei() {
|
|
|
const data3 = {
|
|
const data3 = {
|
|
|
org: this.$store.state.user.userinfo.org,
|
|
org: this.$store.state.user.userinfo.org,
|
|
@@ -350,6 +385,7 @@ export default {
|
|
|
this.imgList = imgList
|
|
this.imgList = imgList
|
|
|
this.$forceUpdate()
|
|
this.$forceUpdate()
|
|
|
},
|
|
},
|
|
|
|
|
+ // 保存前进行判断
|
|
|
save() {
|
|
save() {
|
|
|
// 判断是否填写完整,是否让他继续往下走
|
|
// 判断是否填写完整,是否让他继续往下走
|
|
|
let isOk = 0
|
|
let isOk = 0
|
|
@@ -365,11 +401,13 @@ export default {
|
|
|
|
|
|
|
|
this.isShowMask = true
|
|
this.isShowMask = true
|
|
|
},
|
|
},
|
|
|
|
|
+ // 重复添加
|
|
|
repPop() {
|
|
repPop() {
|
|
|
this.recordCon = ''
|
|
this.recordCon = ''
|
|
|
this.imgList = []
|
|
this.imgList = []
|
|
|
this.getPresentDate()
|
|
this.getPresentDate()
|
|
|
},
|
|
},
|
|
|
|
|
+ // 添加新纪录进行判断
|
|
|
repetitionSave() {
|
|
repetitionSave() {
|
|
|
let isOk = 0
|
|
let isOk = 0
|
|
|
|
|
|
|
@@ -385,7 +423,63 @@ export default {
|
|
|
|
|
|
|
|
this.repShowMask = true
|
|
this.repShowMask = true
|
|
|
},
|
|
},
|
|
|
|
|
+ getRecordPlace() {
|
|
|
|
|
+ const data = {
|
|
|
|
|
+ org: this.$store.state.user.userinfo.org,
|
|
|
|
|
+ oid: this.$store.state.user.userinfo.organizeid
|
|
|
|
|
+ }
|
|
|
|
|
+ selectSTEPlace(data).then(res => {
|
|
|
|
|
+ // this.filtrate = res[0]
|
|
|
|
|
+ console.log('getRecordPlace', res)
|
|
|
|
|
+ var ptype = res[0] // 公共子级分类
|
|
|
|
|
+ var pctype = res[1] // 该学校子级分类
|
|
|
|
|
+ var potype = res[2] // 组织子级分类
|
|
|
|
|
+
|
|
|
|
|
+ if (potype.length > 0) {
|
|
|
|
|
+ this.placeList = potype
|
|
|
|
|
+ } else if (pctype.length > 0) {
|
|
|
|
|
+ this.placeList = pctype
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.placeList = ptype
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
+ // 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
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ selectPlace() {
|
|
|
|
|
+ this.placeShow = true
|
|
|
|
|
+ },
|
|
|
|
|
+ cho(i) {
|
|
|
|
|
+ // console.log('i', i)
|
|
|
|
|
+ this.place = i.name
|
|
|
|
|
+ this.placeId = i.id
|
|
|
|
|
+ },
|
|
|
|
|
+ // 修改前判断
|
|
|
amend() {
|
|
amend() {
|
|
|
let isOk = 0
|
|
let isOk = 0
|
|
|
// console.log(this.$store.state);
|
|
// console.log(this.$store.state);
|
|
@@ -422,7 +516,8 @@ export default {
|
|
|
observeCon: this.observeCon,
|
|
observeCon: this.observeCon,
|
|
|
recordCon: this.recordCon,
|
|
recordCon: this.recordCon,
|
|
|
imgList: this.imgList.join(','),
|
|
imgList: this.imgList.join(','),
|
|
|
- term: this.termData[0]
|
|
|
|
|
|
|
+ term: this.termData[0],
|
|
|
|
|
+ pid: this.placeId
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
// return console.log(data)
|
|
// return console.log(data)
|
|
@@ -463,7 +558,8 @@ export default {
|
|
|
observeCon: this.observeCon,
|
|
observeCon: this.observeCon,
|
|
|
recordCon: this.recordCon,
|
|
recordCon: this.recordCon,
|
|
|
imgList: this.imgList.join(','),
|
|
imgList: this.imgList.join(','),
|
|
|
- term: this.termData[0]
|
|
|
|
|
|
|
+ term: this.termData[0],
|
|
|
|
|
+ pid: this.placeId
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
// return console.log(data);
|
|
// return console.log(data);
|
|
@@ -508,7 +604,7 @@ export default {
|
|
|
this.studentInfo.cname = allData.cname
|
|
this.studentInfo.cname = allData.cname
|
|
|
this.studentInfo.classid = allData.classid
|
|
this.studentInfo.classid = allData.classid
|
|
|
this.studentInfo.userid = allData.sid
|
|
this.studentInfo.userid = allData.sid
|
|
|
-
|
|
|
|
|
|
|
+ this.placeId = allData.placeId
|
|
|
this.visitTime = allData.recordDate
|
|
this.visitTime = allData.recordDate
|
|
|
this.place = allData.place
|
|
this.place = allData.place
|
|
|
this.recordCon = allData.recordCon
|
|
this.recordCon = allData.recordCon
|
|
@@ -531,6 +627,7 @@ export default {
|
|
|
// console.log('selectWData', this.selectWData)
|
|
// console.log('selectWData', this.selectWData)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
+ // 获取当前时间
|
|
|
getPresentDate() {
|
|
getPresentDate() {
|
|
|
const currentTime = new Date()
|
|
const currentTime = new Date()
|
|
|
const year = currentTime.getFullYear()
|
|
const year = currentTime.getFullYear()
|
|
@@ -618,6 +715,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
created() {
|
|
created() {
|
|
|
|
|
+ this.getRecordPlace()
|
|
|
// 是否显示分享和继续记录按钮。添加按钮进来不显示
|
|
// 是否显示分享和继续记录按钮。添加按钮进来不显示
|
|
|
this.shareShow = this.$route.query.shareShow * 1
|
|
this.shareShow = this.$route.query.shareShow * 1
|
|
|
// console.log(this.shareShow)
|
|
// console.log(this.shareShow)
|
|
@@ -636,6 +734,7 @@ export default {
|
|
|
.studentEvaluate {
|
|
.studentEvaluate {
|
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
|
z-index: 1;
|
|
z-index: 1;
|
|
|
|
|
+ position: relative;
|
|
|
// min-height: 100vh;
|
|
// min-height: 100vh;
|
|
|
background-image: linear-gradient(to bottom, #005ccd 1%, #005ccd 12%, #f6f5f8 35%, #f6f5f8 100%);
|
|
background-image: linear-gradient(to bottom, #005ccd 1%, #005ccd 12%, #f6f5f8 35%, #f6f5f8 100%);
|
|
|
.rl {
|
|
.rl {
|
|
@@ -652,7 +751,7 @@ export default {
|
|
|
margin-top: 10px;
|
|
margin-top: 10px;
|
|
|
background-color: #fff;
|
|
background-color: #fff;
|
|
|
border-radius: 15px;
|
|
border-radius: 15px;
|
|
|
- position: relative;
|
|
|
|
|
|
|
+ // position: relative;
|
|
|
z-index: 1;
|
|
z-index: 1;
|
|
|
// scroll-behavior: auto;
|
|
// scroll-behavior: auto;
|
|
|
overflow-y: scroll;
|
|
overflow-y: scroll;
|
|
@@ -750,8 +849,34 @@ export default {
|
|
|
}
|
|
}
|
|
|
.inpBlock {
|
|
.inpBlock {
|
|
|
// border: 1px solid rgba(187, 187, 187, 1);
|
|
// border: 1px solid rgba(187, 187, 187, 1);
|
|
|
|
|
+ position: relative;
|
|
|
height: 100%;
|
|
height: 100%;
|
|
|
flex: 1;
|
|
flex: 1;
|
|
|
|
|
+ .list {
|
|
|
|
|
+ position: absolute;
|
|
|
|
|
+ left: 0;
|
|
|
|
|
+ top: calc(100% + 10px);
|
|
|
|
|
+ max-height: 220px;
|
|
|
|
|
+ overflow-y: scroll;
|
|
|
|
|
+ background-color: #fff;
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ box-shadow: 0px 1px 6px 0px rgba(0, 0, 0, 0.1);
|
|
|
|
|
+ z-index: 30;
|
|
|
|
|
+ border-radius: 8px;
|
|
|
|
|
+ .ol {
|
|
|
|
|
+ height: 40px;
|
|
|
|
|
+ line-height: 40px;
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ background-color: #fff;
|
|
|
|
|
+ box-sizing: border-box;
|
|
|
|
|
+ padding: 0px 10px;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ justify-content: space-between;
|
|
|
|
|
+ }
|
|
|
|
|
+ // .ol:hover {
|
|
|
|
|
+ // background-color: #f3f6f9;
|
|
|
|
|
+ // }
|
|
|
|
|
+ }
|
|
|
.inp {
|
|
.inp {
|
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
|
height: 100%;
|
|
height: 100%;
|