Commit 6cf1c4fc by wangzhihui

交互优化

1 parent 96fa3c00
......@@ -1578,7 +1578,8 @@ export const oaFlowStatusOpt = [
]
//支付状态
export const oaFlowPaymentStatusOpt = [
{ confId: "1", confValue: "支付成功", color: "#2CCA74" },
{ confId: "2", confValue: "支付失败", color: "#EB4E4E" },
{ confId: "3", confValue: "支付中", color: "#FDB757" }
{ confId: "2", confValue: "支付成功", color: "#2CCA74" },
{ confId: "23", confValue: "支付失败", color: "#EB4E4E" },
{ confId: "1", confValue: "支付中", color: "#FDB757" },
{ confId: "4", confValue: "支付取消", color: "#8C8C8C" }
]
......@@ -34,15 +34,16 @@ export default {
this.getEvaluationData()
},
methods: {
getEvaluationData() {
getEvaluationData(activeIndex = 0, index = 0) {
let params = {
dateType: this.dateType,
merchantNos: ""
}
getEvaluationData(params)
.then((res) => {
console.log(res)
this.handleData(res)
if (activeIndex == index) {
this.handleData(res)
}
})
.catch((err) => {
new Error(err)
......@@ -59,9 +60,9 @@ export default {
this.yData = yData
},
handleClick(data) {
handleClick(data, activeIndex, index) {
this.dateType = data.value
this.getEvaluationData()
this.getEvaluationData(activeIndex, index)
}
}
}
......
......@@ -38,9 +38,11 @@ export default {
},
methods: {
handleClick(index) {
this.activeIndex = index
let data = this.timeopts[index]
this.$emit("handleClick", data)
if (this.activeIndex != index) {
this.activeIndex = index
let data = this.timeopts[index]
this.$emit("handleClick", data, this.activeIndex, index)
}
}
}
}
......
......@@ -406,11 +406,13 @@ export default {
delete params.date
return params
},
getdataBoard() {
getdataBoard(index) {
let params = this.getParams()
getdataBoard(params)
.then((res) => {
this.statisticsObj = res
if (this.activeIndex == index) {
this.statisticsObj = res
}
})
.catch((err) => {
new Error(err)
......@@ -431,10 +433,12 @@ export default {
})
},
handleClick(index) {
this.activeIndex = index
this.dataForm.date = []
this.dataForm.dateType = this.timeTabOpt[index].confId
this.getdataBoard()
if (this.activeIndex != index) {
this.activeIndex = index
this.dataForm.date = []
this.dataForm.dateType = this.timeTabOpt[index].confId
this.getdataBoard(index)
}
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!