From be983d6f5fb29e132b50e694699f0d550b42fcd9 Mon Sep 17 00:00:00 2001 From: zhusiyu <410827992@qq.com> Date: Tue, 30 Aug 2022 16:35:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=80=BB=E7=BB=93=E7=BB=9F=E8=AE=A1=EF=BC=9A?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=83=85=E5=86=B5tab?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../oa/summaryRecord/myLargeSummary.vue | 9 +++-- .../moduleCom/oa/summaryRecord/submitInfo.vue | 39 ++++++++++--------- 2 files changed, 25 insertions(+), 23 deletions(-) diff --git a/src/views/screenAdaptation/pages/adminCenter/moduleCom/oa/summaryRecord/myLargeSummary.vue b/src/views/screenAdaptation/pages/adminCenter/moduleCom/oa/summaryRecord/myLargeSummary.vue index 46927c5..8b05fa9 100644 --- a/src/views/screenAdaptation/pages/adminCenter/moduleCom/oa/summaryRecord/myLargeSummary.vue +++ b/src/views/screenAdaptation/pages/adminCenter/moduleCom/oa/summaryRecord/myLargeSummary.vue @@ -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: {}, diff --git a/src/views/screenAdaptation/pages/adminCenter/moduleCom/oa/summaryRecord/submitInfo.vue b/src/views/screenAdaptation/pages/adminCenter/moduleCom/oa/summaryRecord/submitInfo.vue index 39bd258..9b84196 100644 --- a/src/views/screenAdaptation/pages/adminCenter/moduleCom/oa/summaryRecord/submitInfo.vue +++ b/src/views/screenAdaptation/pages/adminCenter/moduleCom/oa/summaryRecord/submitInfo.vue @@ -4,14 +4,14 @@
-
{{tab.value}}
- +
- +
@@ -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(); }