|
|
|
@ -36,15 +36,15 @@
|
|
|
|
|
<a-spin class="brandCreat" :spinning="spinning2">
|
|
|
|
|
<vue-scroll class="summary-record-list-div" :ops="listScroll" style="height:10rem">
|
|
|
|
|
<a-table v-show="tableKey===1" :dataSource="dataSourceDept" :columns="columnsYear"
|
|
|
|
|
bordered :pagination="false"></a-table>
|
|
|
|
|
bordered :pagination="false" rowKey="person_id"></a-table>
|
|
|
|
|
<a-table v-show="tableKey===2" :dataSource="dataSourceDept" :columns="columnsTerm"
|
|
|
|
|
bordered :pagination="false"></a-table>
|
|
|
|
|
bordered :pagination="false" rowKey="person_id"></a-table>
|
|
|
|
|
<a-table v-show="tableKey===3" :dataSource="dataSourceDept" :columns="columnsMonth"
|
|
|
|
|
bordered :pagination="false"></a-table>
|
|
|
|
|
bordered :pagination="false" rowKey="person_id"></a-table>
|
|
|
|
|
<a-table v-show="tableKey===4" :dataSource="dataSourceDept" :columns="columnsWeek"
|
|
|
|
|
bordered :pagination="false"></a-table>
|
|
|
|
|
bordered :pagination="false" rowKey="person_id"></a-table>
|
|
|
|
|
<a-table v-show="tableKey===5" :dataSource="dataSourceDept" :columns="columnsDay"
|
|
|
|
|
bordered :pagination="false"></a-table>
|
|
|
|
|
bordered :pagination="false" rowKey="person_id"></a-table>
|
|
|
|
|
</vue-scroll>
|
|
|
|
|
</a-spin>
|
|
|
|
|
</div>
|
|
|
|
@ -52,15 +52,15 @@
|
|
|
|
|
<a-spin class="brandCreat" :spinning="spinning3">
|
|
|
|
|
<vue-scroll class="summary-record-list-div" :ops="listScroll" style="height:10rem">
|
|
|
|
|
<a-table v-show="orgTableKey===1" :dataSource="dataSourceOrg" :columns="columnsDeptYear"
|
|
|
|
|
bordered :pagination="false"></a-table>
|
|
|
|
|
bordered :pagination="false" rowKey="dept_id"></a-table>
|
|
|
|
|
<a-table v-show="orgTableKey===2" :dataSource="dataSourceOrg" :columns="columnsDeptTerm"
|
|
|
|
|
bordered :pagination="false"></a-table>
|
|
|
|
|
bordered :pagination="false" rowKey="dept_id"></a-table>
|
|
|
|
|
<a-table v-show="orgTableKey===3" :dataSource="dataSourceOrg" :columns="columnsDeptMonth"
|
|
|
|
|
bordered :pagination="false"></a-table>
|
|
|
|
|
bordered :pagination="false" rowKey="dept_id"></a-table>
|
|
|
|
|
<a-table v-show="orgTableKey===4" :dataSource="dataSourceOrg" :columns="columnsDeptWeek"
|
|
|
|
|
bordered :pagination="false"></a-table>
|
|
|
|
|
bordered :pagination="false" rowKey="dept_id"></a-table>
|
|
|
|
|
<a-table v-show="orgTableKey===5" :dataSource="dataSourceOrg" :columns="columnsDeptDay"
|
|
|
|
|
bordered :pagination="false"></a-table>
|
|
|
|
|
bordered :pagination="false" rowKey="dept_id"></a-table>
|
|
|
|
|
</vue-scroll>
|
|
|
|
|
</a-spin>
|
|
|
|
|
</div>
|
|
|
|
@ -436,10 +436,10 @@
|
|
|
|
|
},
|
|
|
|
|
selectedData: {
|
|
|
|
|
handler(select_data) {
|
|
|
|
|
if (select_data.length == 0) {
|
|
|
|
|
if (select_data.length === undefined) {
|
|
|
|
|
this.deptId = this.BaseConfig.person_info_my.dep_id;
|
|
|
|
|
} else {
|
|
|
|
|
this.deptId = select_data[0].id
|
|
|
|
|
this.deptId = select_data[select_data.length - 1].id
|
|
|
|
|
this.getWorkSummaryDeptPersonOverview()
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
@ -499,9 +499,9 @@
|
|
|
|
|
method: interConfig.getWorkSummaryPersonCycleStatistics.method,
|
|
|
|
|
isTestLogin: interConfig.getWorkSummaryPersonCycleStatistics.isTestLogin,
|
|
|
|
|
}], (result) => {
|
|
|
|
|
let resData = result[0].data;
|
|
|
|
|
// console.log('我的总结-提交情况', resData)
|
|
|
|
|
if (resData.code === 2000) {
|
|
|
|
|
if (result[0].data.code === 2000) {
|
|
|
|
|
let resData = result[0].data;
|
|
|
|
|
this.dayList = resData.data.day_list;
|
|
|
|
|
this.weekList = resData.data.week_list;
|
|
|
|
|
this.monthList = resData.data.month_list;
|
|
|
|
@ -511,7 +511,7 @@
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
getWorkSummaryDeptPersonOverview: function () {
|
|
|
|
|
this.spinning2 = true
|
|
|
|
|
this.spinning2 = true;
|
|
|
|
|
let timeStr = this.searchTime;
|
|
|
|
|
if (timeStr !== "") {
|
|
|
|
|
let startDate = timeStr.split("|")[0];
|
|
|
|
@ -528,18 +528,18 @@
|
|
|
|
|
method: interConfig.workSummaryDeptPersonOverview.method,
|
|
|
|
|
isTestLogin: interConfig.workSummaryDeptPersonOverview.isTestLogin,
|
|
|
|
|
}], (result) => {
|
|
|
|
|
this.spinning2 = false
|
|
|
|
|
let resData = result[0].data;
|
|
|
|
|
if (resData.code === 2000) {
|
|
|
|
|
this.spinning2 = false;
|
|
|
|
|
if (result[0].data.code === 2000) {
|
|
|
|
|
let resData = result[0].data;
|
|
|
|
|
let dataSource = resData.data.person_list;//1学年2学期3月报4周报5日报
|
|
|
|
|
this.dataSourceDept = dataSource
|
|
|
|
|
this.dataSourceDept = dataSource;
|
|
|
|
|
this.changeType();
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
getWorkSummaryOrgDeptOverview: function () {
|
|
|
|
|
this.spinning3 = true
|
|
|
|
|
this.spinning3 = true;
|
|
|
|
|
let timeStr = this.searchTime;
|
|
|
|
|
if (timeStr !== "") {
|
|
|
|
|
let startDate = timeStr.split("|")[0];
|
|
|
|
@ -555,11 +555,11 @@
|
|
|
|
|
method: interConfig.workSummaryOrgDeptOverview.method,
|
|
|
|
|
isTestLogin: interConfig.workSummaryOrgDeptOverview.isTestLogin,
|
|
|
|
|
}], (result) => {
|
|
|
|
|
let resData = result[0].data;
|
|
|
|
|
this.spinning3 = false;
|
|
|
|
|
//console.log('小块机构表格', resData)
|
|
|
|
|
if (resData.code === 2000) {
|
|
|
|
|
if (result[0].data.code === 2000) {
|
|
|
|
|
let resData = result[0].data;
|
|
|
|
|
this.dataSourceOrg = resData.data.dept_list;
|
|
|
|
|
this.spinning3 = false
|
|
|
|
|
this.changeType();
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|