总结统计:提交情况tab

init
zhusiyu 3 years ago
parent 7c62082881
commit be983d6f5f

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

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

Loading…
Cancel
Save