|
|
|
@ -1,44 +1,45 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div class="summary-total-record-box-style">
|
|
|
|
|
<div class="part-title">{{title}}</div>
|
|
|
|
|
<div v-if="!spinning" class="part-content">
|
|
|
|
|
<div class="record-item-box-style">
|
|
|
|
|
<div class="info-row-style default-style">应交 {{totalRecordJson.total_day_summary}}</div>
|
|
|
|
|
<div class="info-row-style default-style">已交 {{totalRecordJson.total_day_summary}}</div>
|
|
|
|
|
<div class="info-row-style warning-style">延期 {{totalRecordJson.delay_day_summary}}</div>
|
|
|
|
|
<div class="info-row-style danger-style">空缺 {{totalRecordJson.empty_day_summary}}</div>
|
|
|
|
|
<div class="triangle"><span>日报</span></div>
|
|
|
|
|
<a-spin :spinning="spinning" style="width: 100%;height: 100%;">
|
|
|
|
|
<div class="part-content">
|
|
|
|
|
<div class="record-item-box-style">
|
|
|
|
|
<div class="info-row-style default-style">应交 {{totalRecordJson.total_day_summary}}</div>
|
|
|
|
|
<div class="info-row-style default-style">已交 {{totalRecordJson.total_day_summary}}</div>
|
|
|
|
|
<div class="info-row-style warning-style">延期 {{totalRecordJson.delay_day_summary}}</div>
|
|
|
|
|
<div class="info-row-style danger-style">空缺 {{totalRecordJson.empty_day_summary}}</div>
|
|
|
|
|
<div class="triangle"><span>日报</span></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="record-item-box-style">
|
|
|
|
|
<div class="info-row-style default-style">应交 {{totalRecordJson.total_day_summary}}</div>
|
|
|
|
|
<div class="info-row-style default-style">已交 {{totalRecordJson.total_day_summary}}</div>
|
|
|
|
|
<div class="info-row-style warning-style">延期 {{totalRecordJson.delay_week_summary}}</div>
|
|
|
|
|
<div class="info-row-style danger-style">空缺 {{totalRecordJson.empty_week_summary}}</div>
|
|
|
|
|
<div class="triangle"><span>周报</span></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="record-item-box-style">
|
|
|
|
|
<div class="info-row-style default-style">应交 {{totalRecordJson.total_day_summary}}</div>
|
|
|
|
|
<div class="info-row-style default-style">已交 {{totalRecordJson.total_day_summary}}</div>
|
|
|
|
|
<div class="info-row-style warning-style">延期 {{totalRecordJson.delay_month_summary}}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="info-row-style danger-style">空缺 {{totalRecordJson.empty_month_summary}}</div>
|
|
|
|
|
<div class="triangle"><span>月报</span></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="record-item-box-style">
|
|
|
|
|
<div class="info-row-style default-style">应交 {{totalRecordJson.total_day_summary}}</div>
|
|
|
|
|
<div class="info-row-style default-style">已交 {{totalRecordJson.total_day_summary}}</div>
|
|
|
|
|
<div class="info-row-style warning-style">延期 {{totalRecordJson.delay_term_summary}}</div>
|
|
|
|
|
<div class="info-row-style danger-style">空缺 {{totalRecordJson.empty_term_summary}}</div>
|
|
|
|
|
<div class="triangle"><span>学期</span></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="record-item-box-style">
|
|
|
|
|
<div class="info-row-style default-style">应交 {{totalRecordJson.total_day_summary}}</div>
|
|
|
|
|
<div class="info-row-style default-style">已交 {{totalRecordJson.total_day_summary}}</div>
|
|
|
|
|
<div class="info-row-style warning-style">延期 {{totalRecordJson.delay_year_summary}}</div>
|
|
|
|
|
<div class="info-row-style danger-style">空缺 {{totalRecordJson.empty_year_summary}}</div>
|
|
|
|
|
<div class="triangle"><span>学年</span></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="record-item-box-style">
|
|
|
|
|
<div class="info-row-style default-style">应交 {{totalRecordJson.total_day_summary}}</div>
|
|
|
|
|
<div class="info-row-style default-style">已交 {{totalRecordJson.total_day_summary}}</div>
|
|
|
|
|
<div class="info-row-style warning-style">延期 {{totalRecordJson.delay_week_summary}}</div>
|
|
|
|
|
<div class="info-row-style danger-style">空缺 {{totalRecordJson.empty_week_summary}}</div>
|
|
|
|
|
<div class="triangle"><span>周报</span></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="record-item-box-style">
|
|
|
|
|
<div class="info-row-style default-style">应交 {{totalRecordJson.total_day_summary}}</div>
|
|
|
|
|
<div class="info-row-style default-style">已交 {{totalRecordJson.total_day_summary}}</div>
|
|
|
|
|
<div class="info-row-style warning-style">延期 {{totalRecordJson.delay_month_summary}}</div>
|
|
|
|
|
<div class="info-row-style danger-style">空缺 {{totalRecordJson.empty_month_summary}}</div>
|
|
|
|
|
<div class="triangle"><span>月报</span></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="record-item-box-style">
|
|
|
|
|
<div class="info-row-style default-style">应交 {{totalRecordJson.total_day_summary}}</div>
|
|
|
|
|
<div class="info-row-style default-style">已交 {{totalRecordJson.total_day_summary}}</div>
|
|
|
|
|
<div class="info-row-style warning-style">延期 {{totalRecordJson.delay_term_summary}}</div>
|
|
|
|
|
<div class="info-row-style danger-style">空缺 {{totalRecordJson.empty_term_summary}}</div>
|
|
|
|
|
<div class="triangle"><span>学期</span></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="record-item-box-style">
|
|
|
|
|
<div class="info-row-style default-style">应交 {{totalRecordJson.total_day_summary}}</div>
|
|
|
|
|
<div class="info-row-style default-style">已交 {{totalRecordJson.total_day_summary}}</div>
|
|
|
|
|
<div class="info-row-style warning-style">延期 {{totalRecordJson.delay_year_summary}}</div>
|
|
|
|
|
<div class="info-row-style danger-style">空缺 {{totalRecordJson.empty_year_summary}}</div>
|
|
|
|
|
<div class="triangle"><span>学年</span></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<a-spin v-else="spinning">
|
|
|
|
|
</a-spin>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
@ -47,20 +48,27 @@
|
|
|
|
|
* type: person 累计汇总 dept 部门汇总 org 机构汇总
|
|
|
|
|
*
|
|
|
|
|
* */
|
|
|
|
|
import interConfig from '../interConfig';
|
|
|
|
|
import moment from 'moment';
|
|
|
|
|
import {Spin} from 'ant-design-vue';
|
|
|
|
|
import interConfig from '../interConfig'
|
|
|
|
|
import moment from 'moment'
|
|
|
|
|
import {Spin} from 'ant-design-vue'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
props: {
|
|
|
|
|
type: Number,
|
|
|
|
|
searchTime: String,
|
|
|
|
|
selectedData: {
|
|
|
|
|
type: Object,
|
|
|
|
|
default: () => {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
title: "",
|
|
|
|
|
totalRecordJson: {},
|
|
|
|
|
spinning: false,
|
|
|
|
|
spinning: true,
|
|
|
|
|
deptId: this.BaseConfig.person_info_my.dep_id,
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
watch: {
|
|
|
|
@ -68,10 +76,13 @@
|
|
|
|
|
handler(val) {
|
|
|
|
|
if (val === 1) {
|
|
|
|
|
this.title = "总结概览";
|
|
|
|
|
this.deptBtnShow = false
|
|
|
|
|
} else if (val === 2) {
|
|
|
|
|
this.title = "部门总结汇总";
|
|
|
|
|
this.deptBtnShow = true
|
|
|
|
|
} else if (val === 3) {
|
|
|
|
|
this.title = "机构总结汇总";
|
|
|
|
|
this.deptBtnShow = false
|
|
|
|
|
}
|
|
|
|
|
this.type = val;
|
|
|
|
|
this.getRecordData();
|
|
|
|
@ -79,14 +90,25 @@
|
|
|
|
|
immediate: true
|
|
|
|
|
},
|
|
|
|
|
searchTime: {
|
|
|
|
|
handler(time) {
|
|
|
|
|
if (time !== "") {
|
|
|
|
|
handler(time, oldTime) {
|
|
|
|
|
if (time !== "" && oldTime != time && oldTime != 'undefined') {
|
|
|
|
|
this.searchTime = time;
|
|
|
|
|
this.getRecordData();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
immediate: true
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
selectedData: {
|
|
|
|
|
handler(select_data) {
|
|
|
|
|
if (select_data.length == 0) {
|
|
|
|
|
this.deptId = this.BaseConfig.person_info_my.dep_id;
|
|
|
|
|
} else {
|
|
|
|
|
this.deptId = select_data[0].id
|
|
|
|
|
this.getRecordData()
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
immediate: true
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
getRecordData: function () {
|
|
|
|
@ -103,19 +125,20 @@
|
|
|
|
|
let method = "";
|
|
|
|
|
let isTestLogin = "";
|
|
|
|
|
if (this.type === 1) {
|
|
|
|
|
url = interConfig.workSummaryPersonStatistics.url;
|
|
|
|
|
url = interConfig.workSummaryPersonOverview.url;
|
|
|
|
|
param.person_id = this.BaseConfig.userInfo.person_id;
|
|
|
|
|
method = interConfig.workSummaryPersonStatistics.method;
|
|
|
|
|
isTestLogin = interConfig.workSummaryPersonStatistics.isTestLogin;
|
|
|
|
|
method = interConfig.workSummaryPersonOverview.method;
|
|
|
|
|
isTestLogin = interConfig.workSummaryPersonOverview.isTestLogin;
|
|
|
|
|
} else if (this.type === 2) {
|
|
|
|
|
url = interConfig.workSummaryDeptStatistics.url;
|
|
|
|
|
param.dept_id = this.BaseConfig.person_info_my.dep_id;
|
|
|
|
|
method = interConfig.workSummaryDeptStatistics.method;
|
|
|
|
|
isTestLogin = interConfig.workSummaryDeptStatistics.isTestLogin;
|
|
|
|
|
url = interConfig.workSummaryDeptOverview.url;
|
|
|
|
|
// param.dept_id = this.BaseConfig.person_info_my.dep_id;
|
|
|
|
|
param.dept_id = this.deptId;
|
|
|
|
|
method = interConfig.workSummaryDeptOverview.method;
|
|
|
|
|
isTestLogin = interConfig.workSummaryDeptOverview.isTestLogin;
|
|
|
|
|
} else if (this.type === 3) {
|
|
|
|
|
url = interConfig.workSummaryOrgStatistics.url;
|
|
|
|
|
method = interConfig.workSummaryOrgStatistics.method;
|
|
|
|
|
isTestLogin = interConfig.workSummaryOrgStatistics.isTestLogin;
|
|
|
|
|
url = interConfig.workSummaryOrgOverview.url;
|
|
|
|
|
method = interConfig.workSummaryOrgOverview.method;
|
|
|
|
|
isTestLogin = interConfig.workSummaryOrgOverview.isTestLogin;
|
|
|
|
|
}
|
|
|
|
|
this.spinning = true;
|
|
|
|
|
this.InterfaceConfig.callInterface([{
|
|
|
|
@ -124,25 +147,18 @@
|
|
|
|
|
method: method,
|
|
|
|
|
isTestLogin: isTestLogin,
|
|
|
|
|
}], (result) => {
|
|
|
|
|
this.showLoading = false;
|
|
|
|
|
this.spinning = false;
|
|
|
|
|
let resData = result[0].data;
|
|
|
|
|
// console.log('我的总结-总结概览', resData.data)
|
|
|
|
|
if (result[0].status === 200) {
|
|
|
|
|
if (resData.code === 2000) {
|
|
|
|
|
this.spinning = false;
|
|
|
|
|
this.totalRecordJson = resData.data;
|
|
|
|
|
} else {
|
|
|
|
|
this.spinning = false;
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
this.spinning = false;
|
|
|
|
|
//console.log('我的总结-总结概览', resData)
|
|
|
|
|
if (resData.code === 2000) {
|
|
|
|
|
this.totalRecordJson = resData.data;
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
components: {
|
|
|
|
|
ASpin: Spin
|
|
|
|
|
ASpin: Spin,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|