总结统计:提交情况tab

init
zhusiyu 3 years ago
parent 7c62082881
commit be983d6f5f

@ -92,8 +92,9 @@
import {Spin} from 'ant-design-vue';
import interConfig from './interConfig';
import moment from 'moment';
export default{
data(){
export default {
data() {
return {
begin_date: "",
end_date: "",
@ -106,7 +107,7 @@
this.getNowTime()
},
methods: {
getRecordData () {
getRecordData() {
let timeStr = this.searchTime;
if (timeStr !== "") {
let startDate = timeStr.split("|")[0];
@ -141,7 +142,7 @@
})
}
},
getNowTime () {
getNowTime() {
this.InterfaceConfig.callInterface([{
url: interConfig.getNowTime.url,
params: {},

@ -4,14 +4,14 @@
<div class="part-content" :class="{'largeSummary':largeSummary}">
<div class="submit-list-content">
<div class="tab-change-style">
<div v-for="tab,index in tabArr" :key="tab.id" class="tab-box-style"
<div v-for="(tab,index) in tabArr" :key="tab.id" class="tab-box-style"
@click="tabChange(tab.id,index)">
<span :class="'tab-text' + (tab.id === tabKey?' tab-selected':'')">{{tab.value}}</span>
</div>
</div>
<div class="summary-record-list-content-div" v-if="type === 1">
<div class="change-box">
<a-icon class="icon-style" type="left" @click="removeTab(-1)"/>
<a-icon class="icon-style" type="left" @click="removeTab(1)"/>
</div>
<a-spin class="brandCreat" :spinning="spinning1">
<vue-scroll class="summary-record-list-div" :ops="listScroll"
@ -29,7 +29,7 @@
</vue-scroll>
</a-spin>
<div class="change-box">
<a-icon class="icon-style" type="right" @click="removeTab(1)"/>
<a-icon class="icon-style" type="right" @click="removeTab(-1)"/>
</div>
</div>
<div class="summary-record-list-content-div" v-if="type === 2">
@ -77,24 +77,18 @@
import interConfig from './interConfig';
import {Icon, Tabs, Table, Spin} from 'ant-design-vue';
import * as echarts from 'echarts';
export default{
export default {
props: {
type: Number,
searchTime: String,
largeSummary: Boolean,
},
data(){
data() {
return {
selectType: 5,// 5 4 3 2 1
paneKey: 5,
title: "",
tabArr: [
{id: 2, value: "学期"},
{id: 1, value: "学年"},
{id: 5, value: "日报"},
{id: 4, value: "周报"},
{id: 3, value: "月报"},
],
columnsYear: [
{
title: '成员姓名',
@ -377,10 +371,6 @@
],
dataSourceDept: [],
dataSourceOrg: [],
tableKey: 5,
orgTableKey: 5,
tabKey: 5,
centerIndex: 1,//
listScroll: this.StaticParams.scrollOption,
beginDate: "",
endDate: "",
@ -391,11 +381,22 @@
spinning1: true,
spinning2: true,
spinning3: true,
tableKey: 5,
orgTableKey: 5,
centerIndex: 2,//
tabArr: [
{id: 1, value: "学年"},
{id: 2, value: "学期"},
{id: 5, value: "日报"},
{id: 3, value: "月报"},
{id: 4, value: "周报"},
],
tabKey: 5,
}
},
watch: {
type: {
handler (val) {
handler(val) {
if (val === 1) {
//
this.title = "提交情况";
@ -413,7 +414,7 @@
immediate: true
},
searchTime: {
handler(time){
handler(time) {
if (time !== "") {
this.searchTime = time;
if (this.type === 1) {
@ -428,7 +429,7 @@
immediate: true
},
},
mounted(){
mounted() {
if (this.type !== 1) {
this.changeType();
}

Loading…
Cancel
Save