Commit e99278af authored by guoyou's avatar guoyou

租车价格表判断

parent 04e21fba
...@@ -344,17 +344,23 @@ export default { ...@@ -344,17 +344,23 @@ export default {
}) })
} }
if (params == '') { if (params == '') {
add_edit('', this.activeTime).then(data => { if (this.activeTime) {
if (data.status == 200) { add_edit('', this.activeTime).then(data => {
this.$message.success('设置成功') if (data.status == 200) {
this.chooseData = [] this.$message.success('设置成功')
this.getList() this.chooseData = []
} else { this.getList()
this.$message.error(data.message) } else {
} this.$message.error(data.message)
}) }
})
}else{
this.$message.error('请选择要设置的日期')
}
} else { } else {
// console.log(params); // console.log(params);
console.log(this.activeTime)
add_edit(params, this.activeTime).then(data => { add_edit(params, this.activeTime).then(data => {
if (data.status == 200) { if (data.status == 200) {
this.$message.success('设置成功') this.$message.success('设置成功')
...@@ -586,8 +592,8 @@ export default { ...@@ -586,8 +592,8 @@ export default {
this.GMTToStrs(item.day) == this.GMTToStrs(item.day) ==
this.chooseData[index] this.chooseData[index]
) )
if (activeStatus[indexs]) activeStatus[indexs].className = 'isChosse' if (activeStatus[indexs])
activeStatus[indexs].className = 'isChosse'
} }
} }
} }
...@@ -609,7 +615,8 @@ export default { ...@@ -609,7 +615,8 @@ export default {
this.GMTToStrs(item.day) == this.GMTToStrs(item.day) ==
this.chooseData[index] this.chooseData[index]
) )
if (activeStatus[indexs]) activeStatus[indexs].className = 'isChosse' if (activeStatus[indexs])
activeStatus[indexs].className = 'isChosse'
// activeStatus[indexs].className = 'isChosse' // activeStatus[indexs].className = 'isChosse'
} }
} }
......
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