Commit ff853b39 authored by 廖旭伟's avatar 廖旭伟

Merge remote-tracking branch 'origin/master'

parents 45cef612 7d53eba5
......@@ -165,6 +165,18 @@ export default {
},
// 处理
handleArr(arr, currentTime) {
// 处理createTime相同的数据
for (let i = 0; i < arr.length; i++) {
for (let j = i + 1; j < arr.length; j++) {
if (arr[i]["createTime"] == arr[j]["createTime"]) {
if (arr[i]["attendanceSummary"].indexOf("; ") == -1) {
arr[i]["attendanceSummary"] =
arr[i]["attendanceSummary"] + "; " + arr[j].attendanceSummary;
}
}
}
}
let index = arr.findIndex((item) => item.createTime == currentTime);
if (index > -1) {
return arr[index].attendanceSummary ? (
......
......@@ -97,7 +97,7 @@ export default {
fuzzy: false,
},
{
name: "createTimeMonth",
name: "yearmonth",
type: "month",
label: "请选择登记年月",
fuzzy: false,
......
......@@ -98,7 +98,7 @@ export default {
fuzzy: false,
},
{
name: "createTimeMonth",
name: "yearmonth",
type: "month",
label: "请选择登记年月",
fuzzy: false,
......
......@@ -293,10 +293,15 @@ export default {
},
handleNodeClick(node) {
delete this.$route.query.page;
this.currentNode = node;
this.query = Object.assign({}, this.query, { deptId: node.id });
this.query.page = 1;
this.$router.push({
path: this.$route.path,
query: {
page: 1,
},
});
this.getData();
},
doExport() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment