|
|
|
@ -45,7 +45,7 @@ |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="数量比例" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<span>{{ scope.row.sellScale }}</span> |
|
|
|
|
<span>{{ scope.row.sellScale }}%</span> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
|
@ -56,7 +56,7 @@ |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column label="金额比例" align="center"> |
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
<span>{{ scope.row.sellMoneyScale }}</span> |
|
|
|
|
<span>{{ scope.row.sellMoneyScale }}%</span> |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
</el-table> |
|
|
|
@ -391,12 +391,22 @@ export default { |
|
|
|
|
}) |
|
|
|
|
console.log('tableList', this.tableList) |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// 表格搜索 |
|
|
|
|
productSearchs() { |
|
|
|
|
console.log(this.Time) |
|
|
|
|
console.log('time', this.Time) |
|
|
|
|
|
|
|
|
|
if (this.Time !== null && this.Time.length !== 0) { |
|
|
|
|
this.createTime = this.Time[0] + '/' + this.Time[1] |
|
|
|
|
if (this.isDate(this.Time[0])) { |
|
|
|
|
this.createTime = this.Time[0] + '/' + this.Time[1] |
|
|
|
|
console.log('-----') |
|
|
|
|
} else { |
|
|
|
|
var time1 = this.getSimpleDate(this.Time[0]) |
|
|
|
|
var time2 = this.getSimpleDate(this.Time[1]) |
|
|
|
|
this.createTime = time1 + '/' + time2 |
|
|
|
|
} |
|
|
|
|
console.log('createTime------', this.createTime) |
|
|
|
|
|
|
|
|
|
this.getChartList() |
|
|
|
|
} else { |
|
|
|
|
this.$message.error('请选择要查询的时间段!') |
|
|
|
@ -404,15 +414,43 @@ export default { |
|
|
|
|
}, |
|
|
|
|
// 表格搜索 |
|
|
|
|
userSearchs() { |
|
|
|
|
console.log('createTime2', this.createTime2) |
|
|
|
|
this.page.currentPage = 1 |
|
|
|
|
|
|
|
|
|
if (this.createTime2 !== null && this.createTime2.length !== 0) { |
|
|
|
|
this.page.params.startTime = this.createTime2[0] |
|
|
|
|
this.page.params.endTime = this.createTime2[1] |
|
|
|
|
if (this.isDate(this.createTime2[0])) { |
|
|
|
|
this.page.params.startTime = this.createTime2[0] |
|
|
|
|
this.page.params.endTime = this.createTime2[1] |
|
|
|
|
} else { |
|
|
|
|
var time1 = this.getSimpleDate(this.createTime2[0]) |
|
|
|
|
var time2 = this.getSimpleDate(this.createTime2[1]) |
|
|
|
|
this.page.params.startTime = time1 |
|
|
|
|
this.page.params.endTime = time2 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.getList() |
|
|
|
|
} else { |
|
|
|
|
this.$message.error('请选择要查询的时间段!') |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
isDate(dateStr) { |
|
|
|
|
var pattern = /^\d{4}-\d{2}-\d{2}$/ |
|
|
|
|
return pattern.test(dateStr) |
|
|
|
|
}, |
|
|
|
|
getSimpleDate(date) { |
|
|
|
|
var y = date.getFullYear() |
|
|
|
|
var m = date.getMonth() + 1 |
|
|
|
|
m = m < 10 ? '0' + m : m |
|
|
|
|
var d = date.getDate() |
|
|
|
|
d = d < 10 ? '0' + d : d |
|
|
|
|
// var h = date.getHours() |
|
|
|
|
// var minute = date.getMinutes() |
|
|
|
|
// minute = minute < 10 ? '0' + minute : minute |
|
|
|
|
// var s = date.getSeconds() |
|
|
|
|
// s = s < 10 ? '0' + s : s |
|
|
|
|
return y + '-' + m + '-' + d |
|
|
|
|
}, |
|
|
|
|
// 数据导出; |
|
|
|
|
exportData: function() {}, |
|
|
|
|
|
|
|
|
|