Commit 6cf1c4fc by wangzhihui

交互优化

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