洋浦学校八大中心 德育管理前端

init
gongdi 3 years ago
parent 3737731de6
commit 3549d93619

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<svg version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" width="40px" height="32px" xmlns="http://www.w3.org/2000/svg">
<g transform="matrix(1 0 0 1 -13 -88 )">
<path d="M 31.6883334869385 29.9668607271635 C 31.1992743438721 27.4581242487981 26.6933032745361 25.0605029296875 22.6489337677002 23.7505596454327 C 22.4511249298096 23.6860772235577 21.2202112335205 23.144892953726 21.9913443511963 20.8583518629808 C 24.006209463501 18.8388224909856 25.533836416626 15.5864423076923 25.533836416626 12.3842228816106 C 25.533836416626 7.46525503305288 22.1836902374268 4.88309382512019 18.2894983428955 4.88309382512019 C 14.3953064483643 4.88309382512019 11.054300894165 7.46169208233173 11.054300894165 12.3842228816106 C 11.054300894165 15.5971660907452 12.58192784729 18.8621563251202 14.6004706329346 20.8780878155048 C 15.38809972229 22.8940193058894 13.9813361114502 23.6448587740385 13.6846228546143 23.745215219351 C 9.83806218566895 25.1017213792067 5.36868932189942 27.508319936899 4.87598821105957 29.9615163010817 C 1.77344940200808 26.6643381963072 0.0513132619075261 22.3465941566381 0.0513132619075261 17.8650791960421 C 0.0513132619075261 8.0010480782156 8.2250294319323 0.00467091779688468 18.307819304388 0.00467091779688468 C 28.3858864419241 0.00467091779688468 36.5576450561513 7.99383876075448 36.5643213409424 17.8532474459135 C 36.5669455905307 22.3497291663115 34.8241622290635 26.6794278653803 31.6883691925049 29.9668607271635 Z " fill-rule="nonzero" fill="#237bbc" stroke="none" transform="matrix(1 0 0 1 13 88 )" />
</g>
</svg>

@ -35,8 +35,14 @@
},
methods: {
getImgURL: function () {
if (this.img && this.img.key && this.img.key !== "") {
return this.BaseConfig.url_path_down + this.img.key;
if (this.img) {
if(this.img.key && this.img.key !== ""){
return this.BaseConfig.url_path_down + this.img.key;
}else if(this.img.url && this.img.url !== ""){
console.log("imgUrl:",this.BaseConfig.url_path_down)
console.log("imgUrl:",this.BaseConfig.url_path_down + this.img.url)
return this.BaseConfig.url_path_down +"/"+ this.img.url;
}
} else {
//
return require("../assets/images/noImg.png");

@ -8,11 +8,13 @@
</div>
</div>
<div v-if="showData && dutyList.length > 0" class="content-list-box-style">
<vue-scroll class="duty-list-content-style" :ops="listScroll" style="height:350px" ref="contentRef">
<div v-for="item,index in dutyList" :key="'duty-group-'+index" class="content-list-style">
<div class="title-style"><span>{{item.rotaName}}</span></div>
<div v-for="person in item.dutyList" :key="person.staff_id" class="duty-box-style">
<div class="img-box-style">
<img :src="person.imgSrc">
<!--<img :src="person.imgSrc">-->
<img-preview :imgObj="getImgObj(person)"/>
</div>
<div class="person-name-style">
{{person.staff_name}}
@ -23,6 +25,7 @@
</div>
</div>
</div>
</vue-scroll>
</div>
<div v-if="showData && dutyList.length === 0" class="no-data-content-style"><a-empty description="暂无数据"/></div>
@ -51,9 +54,11 @@
import CommonBox from '../../secondPages/commonBox.vue';
import a from '../../../assets/images/dutyMember/duty1.png';
import {Spin, Empty} from 'ant-design-vue';
import ImgPreview from '../../../common/imgPreview.vue'
export default{
data(){
return {
listScroll:this.StaticParams.scrollOption,
showData: false,
spinning: false,
weekList: [
@ -183,9 +188,20 @@
if (result[0].data.success) {
let dataList = JSON.parse(result[0].data.result);
this.dutyList.push(...this.buildJsonList(dataList));
console.log("this.dutyList:",this.dutyList)
}
})
},
getImgObj:function (obj) {
console.log("obj:",obj)
let json = obj.id_photo_json;
if(json && json !== ""){
return JSON.parse(json)
}else {
return {}
}
// return JSON.parse(json);
},
//
buildJsonList: function (dataList) {
let dutyList = [];
@ -219,7 +235,8 @@
components: {
CommonBox,
ASpin: Spin,
AEmpty: Empty
AEmpty: Empty,
ImgPreview
}
}
</script>
@ -266,6 +283,7 @@
height: 100%;
display: flex;
justify-content: space-between;
margin-bottom: 10px;
.title-style {
width: 10%;
border-radius: 5px;

@ -140,7 +140,8 @@
})
},
handleAdd() {
const {count, dataSource} = this;
//const {count, dataSource} = this;
//console.log("dataSource",dataSource)
const newData = {
rota_name: "自定义组名",
staff_id_1: "",
@ -154,8 +155,8 @@
identity_id: this.BaseConfig.userInfo.identity_id_cookie,
bureau_id: this.BaseConfig.person_info_my.bureau_id,
};
this.dataSource = [...dataSource, newData];
this.count = count + 1;
this.dataSource = [...this.dataSource, newData];
this.count = this.count + 1;
this.param = newData;
this.submitChoose();
},
@ -169,7 +170,7 @@
}
if (target) {
target[dataIndex] = value;
this.dataSource = dataSource;
//this.dataSource = dataSource;
this.param = target;
this.submitChoose();
}

@ -439,6 +439,9 @@
}
})
},
closeInfo:function () {
}
},
components: {
CommonBox,

@ -99,7 +99,7 @@
},
mounted() {
this.getRecipes()
this.getRecipesDate()
//this.getRecipesDate()
},
methods: {
//
@ -125,6 +125,7 @@
this.spinning = false;
if (result[0].data.result.length != 0) {
let res = JSON.parse(result[0].data.result)
console.log("食谱:",res)
res.forEach(item => {
this.selectOptions.push({
value: item.menu_id,
@ -132,10 +133,8 @@
})
})
this.defaultValue = this.selectOptions[0].value
} else {
this.getRecipesDate()
}
console.log('食谱1', this.defaultValue)
console.log('食谱2', this.selectOptions)
}
@ -149,7 +148,7 @@
"query": {
"query_id": "query_deyu_shipu2",
"query_param": [
this.BaseConfig.person_info_my.bureau_id + ""
this.defaultValue + ""
]
},
"query_cache": 0,

@ -73,6 +73,7 @@
},
components: {
CommonBox,
CommonInfo,
ASpin: Spin,
},
mounted() {

@ -385,8 +385,8 @@
"query": {
"query_id": "query_deyu_pingyou2",
"query_param": [
this.excellent_id + "",
this.BaseConfig.person_info_my.bureau_id + ""
this.BaseConfig.person_info_my.bureau_id + "",
this.excellent_id + ""
]
},
"query_cache": 0,

@ -208,7 +208,7 @@
import CommonInfo from '../../../common/commonInfo.vue'
import {Carousel, Table, Row, Col, Collapse, Spin, Empty} from 'ant-design-vue';
import {swiper, swiperSlide} from 'vue-awesome-swiper'
import 'swiper/css/swiper.css'
//import 'swiper/css/swiper.css'
import * as echarts from 'echarts'
import ImgPreview from '../../../common/imgPreview.vue';

@ -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: "201901",
// projectName: ""
// },
// {
// id: 2,
// imgSrc: require('../../../assets/images/teacherImg/teacherImg02.jpg'),
// name: "",
// className: "202104",
// projectName: ""
// },
// {
// id: 3,
// imgSrc: require('../../../assets/images/teacherImg/teacherImg03.jpg'),
// name: "",
// className: "202001",
// projectName: ""
// },
// {
// id: 4,
// imgSrc: require('../../../assets/images/teacherImg/teacherImg04.jpg'),
// name: "",
// className: "202102",
// projectName: ""
// },
// {
// id: 5,
// imgSrc: require('../../../assets/images/teacherImg/teacherImg05.jpg'),
// name: "",
// className: "202002",
// projectName: ""
// },
// {
// id: 6,
// imgSrc: require('../../../assets/images/teacherImg/teacherImg06.jpg'),
// name: "",
// className: "201801",
// 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;

Loading…
Cancel
Save