八大中心-细节调整

init
zhusiyu 3 years ago
parent ec95f63474
commit cc3aade1fd

@ -37,7 +37,9 @@
</div> </div>
</a-list-item> </a-list-item>
</a-list> </a-list>
<div v-if="showData && dataList.length === 0" class="no-data-content-style"><a-empty description="暂无数据"/></div> <div v-if="showData && dataList.length === 0" class="no-data-content-style">
<a-empty description="暂无数据"/>
</div>
</vue-scroll> </vue-scroll>
</a-spin> </a-spin>
</CommonBox> </CommonBox>
@ -48,16 +50,17 @@
* */ * */
import CommonBox from '../../secondPages/commonBox.vue'; import CommonBox from '../../secondPages/commonBox.vue';
import {Icon, Spin, List, Empty} from 'ant-design-vue' import {Icon, Spin, List, Empty} from 'ant-design-vue'
export default{
data(){ export default {
data() {
return { return {
showData:false, showData: false,
spinning: false, spinning: false,
listScroll: this.StaticParams.scrollOption, listScroll: this.StaticParams.scrollOption,
dataList: [], dataList: [],
} }
}, },
mounted(){ mounted() {
this.getDataexReport(); this.getDataexReport();
}, },
methods: { methods: {
@ -280,10 +283,11 @@
} }
} }
} }
.no-data-content-style{ .no-data-content-style {
width: 100%; width: 100%;
height: 100%; height: 100%;
display: flex; display: flex;
margin-top: 100px;
} }
} }
} }

@ -112,11 +112,11 @@
"query_format": "json", "query_format": "json",
"query_group": [] "query_group": []
} }
this.spinning = true;
this.DataexReportInterface.callInterface([{ this.DataexReportInterface.callInterface([{
params: param, params: param,
method: "post", method: "post",
}], (result) => { }], (result) => {
this.spinning = false
if (result[0].data.success) { if (result[0].data.success) {
this.smallClassNum = this.middleClassNum = this.totalClassNum = this.totalSmallStudentNum = this.totalMiddleStudentNum = 0 this.smallClassNum = this.middleClassNum = this.totalClassNum = this.totalSmallStudentNum = this.totalMiddleStudentNum = 0
let res = JSON.parse(result[0].data.result) let res = JSON.parse(result[0].data.result)
@ -155,7 +155,6 @@
break break
} }
this.totalClassNum = this.smallClassNum + this.middleClassNum this.totalClassNum = this.smallClassNum + this.middleClassNum
this.spinning = false
//console.log('tab', res) //console.log('tab', res)
} }
} }

@ -131,7 +131,8 @@
v-for='(item,index) in honorDataSourse' :key='index'> v-for='(item,index) in honorDataSourse' :key='index'>
<a-row> <a-row>
<a-col :span="8"> <a-col :span="8">
<img src="../images/headSrc1.png" alt=""> <img-preview :imgObj="JSON.parse(item.attachment_json)"/>
<!--<img src="../images/headSrc1.png" alt="">-->
</a-col> </a-col>
<a-col :span="16"> <a-col :span="16">
<p style="margin-bottom: 0 !important; ">{{item.student_name}}</p> <p style="margin-bottom: 0 !important; ">{{item.student_name}}</p>
@ -139,7 +140,7 @@
{{item.class_name}}</p> {{item.class_name}}</p>
</a-col> </a-col>
</a-row> </a-row>
<a-row style="color: #3CD5FF;margin:10px 0 15px 0;"> <a-row style="color: #3CD5FF;margin:10px 0 10px 0;">
<a-col>{{item.reward_name}}</a-col> <a-col>{{item.reward_name}}</a-col>
</a-row> </a-row>
<a-row> <a-row>
@ -207,8 +208,9 @@
import CommonInfo from '../../../common/commonInfo.vue' import CommonInfo from '../../../common/commonInfo.vue'
import {Carousel, Table, Row, Col, Collapse, Spin, Empty} from 'ant-design-vue'; import {Carousel, Table, Row, Col, Collapse, Spin, Empty} from 'ant-design-vue';
import {swiper, swiperSlide} from 'vue-awesome-swiper' import {swiper, swiperSlide} from 'vue-awesome-swiper'
import 'swiper/dist/css/swiper.css' import 'swiper/css/swiper.css'
import * as echarts from 'echarts' import * as echarts from 'echarts'
import ImgPreview from '../../../common/imgPreview.vue';
export default { export default {
data() { data() {
@ -246,7 +248,7 @@
loop: true, // loop: true, //
autoplay: true, //3 autoplay: true, //3
speed: 800,// speed: 800,//
slidesPerView: 4, slidesPerView: 4,//
}, },
dotposition: 'right', dotposition: 'right',
@ -258,7 +260,7 @@
headText: '', headText: '',
tableData: [], tableData: [],
columns: [ columns: [
{title: '年级', dataIndex: 'stage_name', key: 'stage_name', align: "center",}, {title: '年级', dataIndex: 'ENTRANCE_YEAR', key: 'ENTRANCE_YEAR', align: "center",},
{title: '人数', dataIndex: 'total', key: 'total', align: "center",}, {title: '人数', dataIndex: 'total', key: 'total', align: "center",},
{title: '男生', dataIndex: 'nan_total', key: 'nan_total', align: "center",}, {title: '男生', dataIndex: 'nan_total', key: 'nan_total', align: "center",},
{title: '女生', dataIndex: 'nv_total', key: 'nv_total', align: "center",}, {title: '女生', dataIndex: 'nv_total', key: 'nv_total', align: "center",},
@ -269,7 +271,7 @@
headText: '', headText: '',
tableData: [], tableData: [],
columns: [ columns: [
{title: '年级', dataIndex: 'stage_name', key: 'stage_name', align: "center",}, {title: '年级', dataIndex: 'ENTRANCE_YEAR', key: 'ENTRANCE_YEAR', align: "center",},
{title: '人数', dataIndex: 'total', key: 'total', align: "center",}, {title: '人数', dataIndex: 'total', key: 'total', align: "center",},
{title: '男生', dataIndex: 'nan_total', key: 'nan_total', align: "center",}, {title: '男生', dataIndex: 'nan_total', key: 'nan_total', align: "center",},
{title: '女生', dataIndex: 'nv_total', key: 'nv_total', align: "center",}, {title: '女生', dataIndex: 'nv_total', key: 'nv_total', align: "center",},
@ -279,7 +281,7 @@
headText: '', headText: '',
tableData: [], tableData: [],
columns: [ columns: [
{title: '年级', dataIndex: 'stage_name', key: 'stage_name', align: "center",}, {title: '年级', dataIndex: 'ENTRANCE_YEAR', key: 'ENTRANCE_YEAR', align: "center",},
{title: '人数', dataIndex: 'total', key: 'total', align: "center",}, {title: '人数', dataIndex: 'total', key: 'total', align: "center",},
{title: '男生', dataIndex: 'nan_total', key: 'nan_total', align: "center",}, {title: '男生', dataIndex: 'nan_total', key: 'nan_total', align: "center",},
{title: '女生', dataIndex: 'nv_total', key: 'nv_total', align: "center",}, {title: '女生', dataIndex: 'nv_total', key: 'nv_total', align: "center",},
@ -293,7 +295,6 @@
honorDataSourseEmpty: false, honorDataSourseEmpty: false,
studentNoticeDataEmpty: false, studentNoticeDataEmpty: false,
collapseDataEmpty: false, collapseDataEmpty: false,
} }
}, },
computed: {}, computed: {},
@ -492,9 +493,13 @@
params: param, params: param,
method: "post", method: "post",
}], (result) => { }], (result) => {
this.honorDataSourse = []
this.spinning = false; this.spinning = false;
if (result[0].data.result.length != 0) { if (result[0].data.result.length != 0) {
this.honorDataSourse = JSON.parse(result[0].data.result) this.honorDataSourse = JSON.parse(result[0].data.result)
if (this.honorDataSourse.length <= 4) {
this.swiperOption.autoplay = false
}
} else { } else {
this.honorDataSourseEmpty = true this.honorDataSourseEmpty = true
} }
@ -651,7 +656,7 @@
// this.modalContent = accept.punish_context // this.modalContent = accept.punish_context
// this.modalContentName = accept.punish_students // this.modalContentName = accept.punish_students
}, },
closeInfo () { closeInfo() {
this.infoId = ""; this.infoId = "";
this.visible = false; this.visible = false;
} }
@ -671,6 +676,7 @@
swiper, swiper,
swiperSlide, swiperSlide,
CommonInfo, CommonInfo,
ImgPreview,
} }
} }
</script> </script>

@ -160,7 +160,7 @@
import CommonBox from '../../secondPages/commonBox.vue'; import CommonBox from '../../secondPages/commonBox.vue';
import {Icon, Tabs, row, col, Empty, Spin} from 'ant-design-vue'; import {Icon, Tabs, row, col, Empty, Spin} from 'ant-design-vue';
import {swiper, swiperSlide} from "vue-awesome-swiper"; import {swiper, swiperSlide} from "vue-awesome-swiper";
import "swiper/dist/css/swiper.css"; // import "swiper/dist/css/swiper.css";
import moment from 'moment'; import moment from 'moment';
import ImgPreview from '../../../common/imgPreview.vue'; import ImgPreview from '../../../common/imgPreview.vue';
import CommonInfo from '../../../common/commonInfo.vue'; import CommonInfo from '../../../common/commonInfo.vue';
@ -560,7 +560,7 @@
} }
.tab-content-style { .tab-content-style {
width: 100%; width: 100%;
height: calc(100% - 20px); height: 100%;
.ant-tabs { .ant-tabs {
height: 100%; height: 100%;
.ant-tabs-content { .ant-tabs-content {

Loading…
Cancel
Save