|
|
|
@ -2,28 +2,31 @@
|
|
|
|
|
<CommonBox title="教师档案" class="teacher-archives-box-style">
|
|
|
|
|
<a-spin class="brandCreat" :spinning="spinning">
|
|
|
|
|
<div class="teacher-archives-content-style">
|
|
|
|
|
<a-select style="width:100px" :value="subjectId" @change="projectChange">
|
|
|
|
|
<a-select-option v-for="item in projectList" :key="item.id" :value="item.id">
|
|
|
|
|
<a-select style="width:100px" :value="subjectName" @change="projectChange">
|
|
|
|
|
<a-select-option v-for="item in projectList" :key="item.name" :value="item.name">
|
|
|
|
|
{{ item.subject_name }}
|
|
|
|
|
</a-select-option>
|
|
|
|
|
</a-select>
|
|
|
|
|
<vue-scroll class="teacher-box-content-style" :ops="listScroll" style="height:215px" ref="contentRef">
|
|
|
|
|
<div class="content-style">
|
|
|
|
|
<a-empty description="暂无数据" v-if="dataListEmpty" class="timeLine-empty"/>
|
|
|
|
|
<div v-for="item in dataList" :key="item.id" class="teacher-box-style" v-if="!dataListEmpty">
|
|
|
|
|
<div class="person-img-style">
|
|
|
|
|
<img :src="item.imgSrc"/>
|
|
|
|
|
<div v-for="item in dataList" :key="item.id" class="teacher-box-style" v-if="!dataListEmpty">
|
|
|
|
|
<div class="person-img-style">
|
|
|
|
|
<img src="../../../assets/images/teacher.svg" style="width: 80%;height: 80%"/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="person-info-style">
|
|
|
|
|
<div class="item-style person-name-style">{{item.person_name}}</div>
|
|
|
|
|
<div class="item-style class-name-style">{{'授课班级/' + item.class_total}}</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="list-flag-style">
|
|
|
|
|
<div class="flag-before"></div>
|
|
|
|
|
<div class="flag-after"></div>
|
|
|
|
|
<span class="flat-text-style">{{item.subject_name}}</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="person-info-style">
|
|
|
|
|
<div class="item-style person-name-style">{{item.name}}</div>
|
|
|
|
|
<div class="item-style class-name-style">{{'授课班级/' + item.className}}</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="list-flag-style">
|
|
|
|
|
<div class="flag-before"></div>
|
|
|
|
|
<div class="flag-after"></div>
|
|
|
|
|
<span class="flat-text-style">{{item.projectName}}</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</vue-scroll>
|
|
|
|
|
</div>
|
|
|
|
|
</a-spin>
|
|
|
|
|
</CommonBox>
|
|
|
|
@ -38,65 +41,24 @@
|
|
|
|
|
export default {
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
listScroll:this.StaticParams.scrollOption,
|
|
|
|
|
projectList: [],
|
|
|
|
|
subjectId: 0,
|
|
|
|
|
subjectName:"",
|
|
|
|
|
dataListEmpty: false,
|
|
|
|
|
spinning: false,
|
|
|
|
|
dataList: [
|
|
|
|
|
// {
|
|
|
|
|
// id: 1,
|
|
|
|
|
// imgSrc: require('../../../assets/images/teacherImg/teacherImg01.jpg'),
|
|
|
|
|
// name: "赵雪娇",
|
|
|
|
|
// className: "2019级01班",
|
|
|
|
|
// projectName: "语文"
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// id: 2,
|
|
|
|
|
// imgSrc: require('../../../assets/images/teacherImg/teacherImg02.jpg'),
|
|
|
|
|
// name: "张大鹏",
|
|
|
|
|
// className: "2021级04班",
|
|
|
|
|
// projectName: "语文"
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// id: 3,
|
|
|
|
|
// imgSrc: require('../../../assets/images/teacherImg/teacherImg03.jpg'),
|
|
|
|
|
// name: "于露",
|
|
|
|
|
// className: "2020级01班",
|
|
|
|
|
// projectName: "语文"
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// id: 4,
|
|
|
|
|
// imgSrc: require('../../../assets/images/teacherImg/teacherImg04.jpg'),
|
|
|
|
|
// name: "王爽",
|
|
|
|
|
// className: "2021级02班",
|
|
|
|
|
// projectName: "语文"
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// id: 5,
|
|
|
|
|
// imgSrc: require('../../../assets/images/teacherImg/teacherImg05.jpg'),
|
|
|
|
|
// name: "刘亚楠",
|
|
|
|
|
// className: "2020级02班",
|
|
|
|
|
// projectName: "语文"
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// id: 6,
|
|
|
|
|
// imgSrc: require('../../../assets/images/teacherImg/teacherImg06.jpg'),
|
|
|
|
|
// name: "李菲",
|
|
|
|
|
// className: "2018级01班",
|
|
|
|
|
// projectName: "语文"
|
|
|
|
|
// },
|
|
|
|
|
]
|
|
|
|
|
dataList: []
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
this.teacerArchivesSubject()
|
|
|
|
|
this.teacerArchivesTeacher()
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
projectChange: function (value) {
|
|
|
|
|
console.log('valuea', value)
|
|
|
|
|
if (this.subjectId !== value) {
|
|
|
|
|
this.subjectId = value;
|
|
|
|
|
if (this.subjectName !== value) {
|
|
|
|
|
this.subjectName = value;
|
|
|
|
|
}
|
|
|
|
|
this.teacerArchivesTeacher()
|
|
|
|
|
},
|
|
|
|
@ -126,9 +88,12 @@
|
|
|
|
|
if (res !== "") {
|
|
|
|
|
this.projectList = JSON.parse(res);
|
|
|
|
|
this.projectList.forEach(item => {
|
|
|
|
|
item.id = item.subject_id
|
|
|
|
|
item.id = item.subject_id;
|
|
|
|
|
item.name = item.subject_name;
|
|
|
|
|
})
|
|
|
|
|
this.subjectId = this.projectList[0].id
|
|
|
|
|
this.subjectName = this.projectList[0].name
|
|
|
|
|
this.teacerArchivesTeacher()
|
|
|
|
|
} else {
|
|
|
|
|
this.dataListEmpty = true
|
|
|
|
|
}
|
|
|
|
@ -137,6 +102,7 @@
|
|
|
|
|
},
|
|
|
|
|
//教师档案2
|
|
|
|
|
teacerArchivesTeacher() {
|
|
|
|
|
console.log("this.subjectName:",this.subjectName)
|
|
|
|
|
this.spinning = true
|
|
|
|
|
let param = {
|
|
|
|
|
"access_token": "system_01##20200102030405##a6ce11eab94df48a6ce11eab",
|
|
|
|
@ -144,7 +110,7 @@
|
|
|
|
|
"query_id": "query_jiaoshi_dangan2",
|
|
|
|
|
"query_param": [
|
|
|
|
|
this.BaseConfig.person_info_my.bureau_id + "",
|
|
|
|
|
this.subjectId + ""
|
|
|
|
|
this.subjectName + ""
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"query_cache": 0,
|
|
|
|
@ -153,6 +119,7 @@
|
|
|
|
|
"query_group": []
|
|
|
|
|
}
|
|
|
|
|
console.log('param', param)
|
|
|
|
|
this.dataList = [];
|
|
|
|
|
this.DataexReportInterface.callInterface([{
|
|
|
|
|
params: param,
|
|
|
|
|
method: "post",
|
|
|
|
@ -161,7 +128,8 @@
|
|
|
|
|
if (result[0].data.success) {
|
|
|
|
|
let res = result[0].data.result;
|
|
|
|
|
if (res !== "") {
|
|
|
|
|
let dataList = JSON.parse(res);
|
|
|
|
|
this.dataList.push(...JSON.parse(res))
|
|
|
|
|
console.log("this.dataList:",this.dataList)
|
|
|
|
|
} else {
|
|
|
|
|
this.dataListEmpty = true
|
|
|
|
|
}
|
|
|
|
@ -209,7 +177,7 @@
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.content-style {
|
|
|
|
|
/deep/ .content-style {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 215px;
|
|
|
|
|
margin-top: 10px;
|
|
|
|
@ -224,7 +192,7 @@
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.teacher-box-style {
|
|
|
|
|
width: calc(50% - 10px);
|
|
|
|
|
width: calc(50% - 20px);
|
|
|
|
|
height: 60px;
|
|
|
|
|
margin-top: 10px;
|
|
|
|
|
border: 1px solid $color-default-bright;
|
|
|
|
|