|
@@ -4,15 +4,19 @@
|
|
<bar :tit="'学生记录'" :backPage="1"></bar>
|
|
<bar :tit="'学生记录'" :backPage="1"></bar>
|
|
<div style="height: 50px;"></div>
|
|
<div style="height: 50px;"></div>
|
|
<!-- 顶部学生信息开始 -->
|
|
<!-- 顶部学生信息开始 -->
|
|
|
|
+
|
|
<div class="top">
|
|
<div class="top">
|
|
<div class="UserInfo" style="flex: 1;">
|
|
<div class="UserInfo" style="flex: 1;">
|
|
<div class="sInfo">
|
|
<div class="sInfo">
|
|
<div class="userName">{{ studentInfo.name }}</div>
|
|
<div class="userName">{{ studentInfo.name }}</div>
|
|
</div>
|
|
</div>
|
|
<div class="cla">{{ studentInfo.cname }}</div>
|
|
<div class="cla">{{ studentInfo.cname }}</div>
|
|
|
|
+ <!-- <div class="shade"></div> -->
|
|
|
|
+ <div class="backPage" v-if="isSelectShow" @click="fuClick1"></div>
|
|
|
|
|
|
<selectStyle
|
|
<selectStyle
|
|
ref="claSel"
|
|
ref="claSel"
|
|
|
|
+ @shadeIsShow="shadeIsShow"
|
|
@update-search="handleUpdateSearch"
|
|
@update-search="handleUpdateSearch"
|
|
:listCont="termList"
|
|
:listCont="termList"
|
|
:tit="'请选择学期'"
|
|
:tit="'请选择学期'"
|
|
@@ -52,18 +56,23 @@
|
|
</div>
|
|
</div>
|
|
<div class="observe_box">
|
|
<div class="observe_box">
|
|
<!-- <div class="observe_boxTit">筛选框</div> -->
|
|
<!-- <div class="observe_boxTit">筛选框</div> -->
|
|
- <div class="observe_boxSelect">
|
|
|
|
- <!-- <div class="observe_boxCon" style="display: inline-block;" @click="addFil('')">全部</div> -->
|
|
|
|
- <div
|
|
|
|
- class="observe_boxCon"
|
|
|
|
- v-for="(i, index) in filtrate"
|
|
|
|
- @click="addFil(i.id, index)"
|
|
|
|
- :class="{ active: activeItem === index }"
|
|
|
|
- :key="index"
|
|
|
|
- >
|
|
|
|
|
|
+ <!-- <div class="observe_boxSelect"> -->
|
|
|
|
+ <!-- <div class="observe_boxCon" style="display: inline-block;" @click="addFil('')">全部</div> -->
|
|
|
|
+ <div
|
|
|
|
+ class="observe_boxCon"
|
|
|
|
+ v-for="(i, index) in filtrate"
|
|
|
|
+ @click="addFil(i.id, index)"
|
|
|
|
+ :class="{ active: activeItem === index }"
|
|
|
|
+ :key="index"
|
|
|
|
+ @touchstart="touchStart(index)"
|
|
|
|
+ @touchend="touchend(index)"
|
|
|
|
+ >
|
|
|
|
+ <div class="txt">{{ i.name }}</div>
|
|
|
|
+ <div ref="loop" class="loopList">
|
|
{{ i.name }}
|
|
{{ i.name }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <!-- </div> -->
|
|
</div>
|
|
</div>
|
|
<!-- 观察内容开始 -->
|
|
<!-- 观察内容开始 -->
|
|
<van-swipe-cell v-show="conList.length" v-for="(i, index) in conList" :key="index">
|
|
<van-swipe-cell v-show="conList.length" v-for="(i, index) in conList" :key="index">
|
|
@@ -139,6 +148,9 @@ export default {
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ // 遮罩层
|
|
|
|
+ isSelectShow: false,
|
|
|
|
+
|
|
activeItem: null,
|
|
activeItem: null,
|
|
// 观察记录数组
|
|
// 观察记录数组
|
|
conList: [],
|
|
conList: [],
|
|
@@ -170,6 +182,22 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ touchStart(e) {
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ const target = this.$refs.loop[e]
|
|
|
|
+ target.style.display = 'block'
|
|
|
|
+ if (e % 4 !== 0) {
|
|
|
|
+ console.log(0)
|
|
|
|
+ target.style.right = '0'
|
|
|
|
+ }
|
|
|
|
+ }, 500)
|
|
|
|
+ },
|
|
|
|
+ touchend(e) {
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ const target = this.$refs.loop[e]
|
|
|
|
+ target.style.display = 'none'
|
|
|
|
+ }, 1000)
|
|
|
|
+ },
|
|
// 获取基础数据
|
|
// 获取基础数据
|
|
getData() {
|
|
getData() {
|
|
// 获取班学生列表
|
|
// 获取班学生列表
|
|
@@ -337,6 +365,10 @@ export default {
|
|
this.conList = res[0]
|
|
this.conList = res[0]
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ fuClick1() {
|
|
|
|
+ this.isSelectShow = false
|
|
|
|
+ this.$refs.claSel.close()
|
|
|
|
+ },
|
|
|
|
|
|
getTermRecord() {
|
|
getTermRecord() {
|
|
// 获取所有学生记录
|
|
// 获取所有学生记录
|
|
@@ -345,14 +377,20 @@ export default {
|
|
trm: this.termData[0],
|
|
trm: this.termData[0],
|
|
txt: ''
|
|
txt: ''
|
|
}
|
|
}
|
|
- console.log(' 获取所有学生记录aaaaaaaaaaaaaaaaaaaaaaa', data4)
|
|
|
|
|
|
+ // console.log(' 获取所有学生记录aaaaaaaaaaaaaaaaaaaaaaa', data4)
|
|
selectRecord(data4).then(res => {
|
|
selectRecord(data4).then(res => {
|
|
console.log('获取所有学生记录', res)
|
|
console.log('获取所有学生记录', res)
|
|
this.TermRecord = res[0]
|
|
this.TermRecord = res[0]
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ shadeIsShow() {
|
|
|
|
+ this.isSelectShow = true
|
|
|
|
+ },
|
|
handleUpdateSearch(e) {
|
|
handleUpdateSearch(e) {
|
|
- console.log(e)
|
|
|
|
|
|
+ // console.log('前', this.isSelectShow)
|
|
|
|
+ this.isSelectShow = false
|
|
|
|
+ // console.log('后', this.isSelectShow)
|
|
|
|
+ // console.log(e)
|
|
// 获取筛选学期所有学生记录
|
|
// 获取筛选学期所有学生记录
|
|
const data4 = {
|
|
const data4 = {
|
|
uid: this.stuId,
|
|
uid: this.stuId,
|
|
@@ -376,24 +414,48 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
- // this.getStuList()
|
|
|
|
this.stuId = localStorage.getItem('userId')
|
|
this.stuId = localStorage.getItem('userId')
|
|
- // console.log('localStorage', localStorage.getItem('userId'))
|
|
|
|
this.selTerm()
|
|
this.selTerm()
|
|
-
|
|
|
|
- console.log('this.$route.query', this.$route.query)
|
|
|
|
- // console.log('state', this.$store.state)
|
|
|
|
- // console.log(this.$route.query.cid)
|
|
|
|
|
|
+ // console.log('this.$route.query', this.$route.query)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
|
+.loopList {
|
|
|
|
+ height: 20px;
|
|
|
|
+ line-height: 20px;
|
|
|
|
+ display: none;
|
|
|
|
+ position: absolute;
|
|
|
|
+ // min-width: 120px;
|
|
|
|
+ text-wrap: nowrap;
|
|
|
|
+ font-size: 12px;
|
|
|
|
+ border-radius: 5px;
|
|
|
|
+ padding: 0 5px;
|
|
|
|
+ background-color: #309cd6;
|
|
|
|
+ top: -80%;
|
|
|
|
+ color: #fff;
|
|
|
|
+ // left: 0;
|
|
|
|
+}
|
|
.goods-card {
|
|
.goods-card {
|
|
margin: 0;
|
|
margin: 0;
|
|
background-color: #fff;
|
|
background-color: #fff;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+.backPage {
|
|
|
|
+ // background-color: aquamarine;
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 0;
|
|
|
|
+ left: 0;
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 60vh;
|
|
|
|
+ z-index: 99;
|
|
|
|
+}
|
|
|
|
+// .shade {
|
|
|
|
+// background-color: #005ccd;
|
|
|
|
+// position: absolute;
|
|
|
|
+// width: 100%;
|
|
|
|
+// height: 100vh;
|
|
|
|
+// }
|
|
.delete-button {
|
|
.delete-button {
|
|
height: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
@@ -515,7 +577,7 @@ export default {
|
|
text-overflow: ellipsis;
|
|
text-overflow: ellipsis;
|
|
height: 20px;
|
|
height: 20px;
|
|
line-height: 30px;
|
|
line-height: 30px;
|
|
- font-size: 10px;
|
|
|
|
|
|
+ font-size: 12px;
|
|
color: #ffffff;
|
|
color: #ffffff;
|
|
}
|
|
}
|
|
.dataNum {
|
|
.dataNum {
|
|
@@ -570,6 +632,9 @@ export default {
|
|
// border: 1px solid rgba(187, 187, 187, 1);
|
|
// border: 1px solid rgba(187, 187, 187, 1);
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
padding: 0 10px;
|
|
padding: 0 10px;
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: flex-start;
|
|
|
|
+ flex-wrap: wrap;
|
|
.observe_boxTit {
|
|
.observe_boxTit {
|
|
width: 84px;
|
|
width: 84px;
|
|
height: 29px;
|
|
height: 29px;
|
|
@@ -580,32 +645,43 @@ export default {
|
|
font-family: PingFangSC-regular;
|
|
font-family: PingFangSC-regular;
|
|
margin-bottom: 5px;
|
|
margin-bottom: 5px;
|
|
}
|
|
}
|
|
- .observe_boxSelect {
|
|
|
|
- width: 100%;
|
|
|
|
- display: flex;
|
|
|
|
- // justify-content: space-between;
|
|
|
|
- align-items: center;
|
|
|
|
- flex-wrap: wrap;
|
|
|
|
- .observe_boxCon {
|
|
|
|
- width: 74.46px;
|
|
|
|
- height: 30px;
|
|
|
|
- line-height: 30px;
|
|
|
|
- border-radius: 4px;
|
|
|
|
- background-color: #fff;
|
|
|
|
- color: rgba(153, 152, 152, 1);
|
|
|
|
- font-size: 12px;
|
|
|
|
- text-align: center;
|
|
|
|
- font-family: Roboto;
|
|
|
|
- border: 1px solid rgba(231, 231, 231, 1);
|
|
|
|
- margin-bottom: 8px;
|
|
|
|
- margin-right: 10px;
|
|
|
|
- }
|
|
|
|
- .active {
|
|
|
|
- background-color: #e0eafb;
|
|
|
|
- color: #0061ff;
|
|
|
|
|
|
+ .observe_boxCon {
|
|
|
|
+ position: relative;
|
|
|
|
+ width: calc((100% - 60px) / 4);
|
|
|
|
+ height: 30px;
|
|
|
|
+ line-height: 30px;
|
|
|
|
+ border-radius: 4px;
|
|
|
|
+ background-color: #fff;
|
|
|
|
+ color: rgba(153, 152, 152, 1);
|
|
|
|
+ font-size: 12px;
|
|
|
|
+
|
|
|
|
+ text-align: center;
|
|
|
|
+ font-family: Roboto;
|
|
|
|
+ border: 1px solid rgba(231, 231, 231, 1);
|
|
|
|
+ margin-bottom: 8px;
|
|
|
|
+ margin-right: 5%;
|
|
|
|
+ .txt {
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ text-overflow: ellipsis;
|
|
|
|
+ white-space: nowrap;
|
|
}
|
|
}
|
|
- // height: 100%;
|
|
|
|
}
|
|
}
|
|
|
|
+ .observe_boxCon:nth-child(4n) {
|
|
|
|
+ margin-right: 0;
|
|
|
|
+ }
|
|
|
|
+ .active {
|
|
|
|
+ background-color: #e0eafb;
|
|
|
|
+ color: #0061ff;
|
|
|
|
+ }
|
|
|
|
+ // .observe_boxSelect {
|
|
|
|
+ // width: 100%;
|
|
|
|
+ // display: flex;
|
|
|
|
+ // justify-content: space-between;
|
|
|
|
+ // align-items: center;
|
|
|
|
+ // flex-wrap: wrap;
|
|
|
|
+
|
|
|
|
+ // // height: 100%;
|
|
|
|
+ // }
|
|
}
|
|
}
|
|
// 观察记录结束
|
|
// 观察记录结束
|
|
|
|
|