订单录入bug
This commit is contained in:
parent
fefb300be4
commit
6dc5156074
|
|
@ -204,6 +204,7 @@ class Order extends Backend
|
||||||
|
|
||||||
public function add()
|
public function add()
|
||||||
{
|
{
|
||||||
|
|
||||||
if (false === $this->request->isPost()) {
|
if (false === $this->request->isPost()) {
|
||||||
return $this->view->fetch();
|
return $this->view->fetch();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -278,14 +278,14 @@
|
||||||
datas.push({
|
datas.push({
|
||||||
label: `${prov.label} / ${city.label} / ${area.label}`,
|
label: `${prov.label} / ${city.label} / ${area.label}`,
|
||||||
labels: [prov.label, city.label, area.label],
|
labels: [prov.label, city.label, area.label],
|
||||||
value: [prov.value, city.value, area.value],
|
value: [area.value],
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
datas.push({
|
datas.push({
|
||||||
label: `${prov.label} / ${city.label}`,
|
label: `${prov.label} / ${city.label}`,
|
||||||
labels: [prov.label, city.label],
|
labels: [prov.label, city.label],
|
||||||
value: [prov.value, city.value],
|
value: [ city.value],
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
@ -318,6 +318,7 @@
|
||||||
}).sort(function(a, b) {
|
}).sort(function(a, b) {
|
||||||
return b.num - a.num
|
return b.num - a.num
|
||||||
}).slice(0, 10)
|
}).slice(0, 10)
|
||||||
|
console.log(data);
|
||||||
this.reload(data, true)
|
this.reload(data, true)
|
||||||
}
|
}
|
||||||
//关键词筛选数据(暂不用)
|
//关键词筛选数据(暂不用)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user