Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@@ -562,37 +562,36 @@ export default {
|
|||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if(res?.data) {
|
if(res?.data) {
|
||||||
// let data = [
|
let data = [
|
||||||
// {taskCount: 4, deptId: "10"},
|
{taskCount: 4, deptId: "10"},
|
||||||
// {taskCount: 6, deptId: "13"},
|
{taskCount: 6, deptId: "13"},
|
||||||
// {taskCount: 24, deptId: "5"},
|
{taskCount: 24, deptId: "5"},
|
||||||
// {taskCount: 14, deptId: "22"},
|
{taskCount: 14, deptId: "22"},
|
||||||
// {taskCount: 12, deptId: "20"},
|
{taskCount: 12, deptId: "20"},
|
||||||
// {taskCount: 11, deptId: "15"}
|
{taskCount: 11, deptId: "15"}
|
||||||
// ]
|
]
|
||||||
let items = [], xData = [], yData = []
|
let items = [], xData = [], yData = []
|
||||||
res.data.map((item) => {
|
// res.data.map((item) => {
|
||||||
var i = {type: 'departmentName', id: item.deptId, corpid: this.user.corpId}
|
|
||||||
items.push(i)
|
|
||||||
xData.push(item.deptId)
|
|
||||||
yData.push(item.taskCount)
|
|
||||||
})
|
|
||||||
// data.map((item) => {
|
|
||||||
// var i = {type: 'departmentName', id: item.deptId, corpid: this.user.corpId}
|
// var i = {type: 'departmentName', id: item.deptId, corpid: this.user.corpId}
|
||||||
// items.push(i)
|
// items.push(i)
|
||||||
// xData.push(item.deptId)
|
|
||||||
// yData.push(item.taskCount)
|
// yData.push(item.taskCount)
|
||||||
// })
|
// })
|
||||||
|
data.map((item) => {
|
||||||
|
var i = {type: 'departmentName', id: item.deptId, corpid: this.user.corpId}
|
||||||
|
items.push(i)
|
||||||
|
// xData.push(item.deptId)
|
||||||
|
yData.push(item.taskCount)
|
||||||
|
})
|
||||||
|
|
||||||
// this.initOpenData({canvas:true})
|
this.initOpenData({canvas:true})
|
||||||
// this.transCanvas(items).then((data) => {
|
this.transCanvas(items).then((data) => {
|
||||||
// console.log(data,'data哈哈哈');
|
console.log(data,'data哈哈哈');
|
||||||
// data.items.map((i) => {
|
data.items.map((i) => {
|
||||||
// xData.push(i.data)
|
xData.push(i.data)
|
||||||
// })
|
})
|
||||||
// this.getColumnarEcharts(xData, yData)
|
this.getColumnarEcharts(xData, yData)
|
||||||
// })
|
})
|
||||||
this.getColumnarEcharts(xData, yData)
|
// this.getColumnarEcharts(xData, yData)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -45,14 +45,14 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getNowDay()
|
this.getNowDay()
|
||||||
this.getData()
|
this.getData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
changeMonth(e) {
|
changeMonth(e) {
|
||||||
if(e.month<=9) {
|
if(e.month<=9) {
|
||||||
this.yyyyMM = e.year + '-' + '0' + e.month
|
this.yyyyMM = e.year + '0' + e.month
|
||||||
} else if(e.month > 9) {
|
} else if(e.month > 9) {
|
||||||
this.yyyyMM = e.year + '-' + e.month
|
this.yyyyMM = e.year + e.month
|
||||||
}
|
}
|
||||||
this.getData()
|
this.getData()
|
||||||
},
|
},
|
||||||
@@ -65,6 +65,7 @@ export default {
|
|||||||
const date = new Date()
|
const date = new Date()
|
||||||
this.year = date.getFullYear()
|
this.year = date.getFullYear()
|
||||||
this.month = date.getMonth() + 1
|
this.month = date.getMonth() + 1
|
||||||
|
this.day = date.getDate()
|
||||||
},
|
},
|
||||||
toGroup() {
|
toGroup() {
|
||||||
uni.navigateTo({url: './groupSendResident'})
|
uni.navigateTo({url: './groupSendResident'})
|
||||||
@@ -81,7 +82,6 @@ export default {
|
|||||||
let arr = Object.keys(res.data).map(key => (res.data[key]))
|
let arr = Object.keys(res.data).map(key => (res.data[key]))
|
||||||
this.list = arr[this.day - 1]?.taskList
|
this.list = arr[this.day - 1]?.taskList
|
||||||
let calList = arr.filter(item=> (item.taskList && item.taskList.length > 0))
|
let calList = arr.filter(item=> (item.taskList && item.taskList.length > 0))
|
||||||
console.log(calList);
|
|
||||||
this.selected = calList.map(item=> {
|
this.selected = calList.map(item=> {
|
||||||
if(item.day>=1 && item.day<=9) {
|
if(item.day>=1 && item.day<=9) {
|
||||||
if(this.month>=1 && this.month <=9) {
|
if(this.month>=1 && this.month <=9) {
|
||||||
|
|||||||
Reference in New Issue
Block a user