|
@ -17,7 +17,7 @@ import moment from "moment"; |
|
|
import ajax from "@/services"; |
|
|
import ajax from "@/services"; |
|
|
const { RangePicker } = DatePicker; |
|
|
const { RangePicker } = DatePicker; |
|
|
const { TextArea } = Input; |
|
|
const { TextArea } = Input; |
|
|
function BlacklistManagement({id}) { |
|
|
|
|
|
|
|
|
function BlacklistManagement({ id }) { |
|
|
const [searchForm] = Form.useForm(); |
|
|
const [searchForm] = Form.useForm(); |
|
|
const [editForm] = Form.useForm(); |
|
|
const [editForm] = Form.useForm(); |
|
|
const columns = [ |
|
|
const columns = [ |
|
@ -156,7 +156,7 @@ function BlacklistManagement({id}) { |
|
|
}; |
|
|
}; |
|
|
//搜索接口 |
|
|
//搜索接口 |
|
|
const search = () => { |
|
|
const search = () => { |
|
|
let params = { ...searchForm.getFieldsValue(), ...pageData }; |
|
|
|
|
|
|
|
|
let params = { ...searchForm.getFieldsValue(), ...pageData, road_id: id, }; |
|
|
ajax.getBlackList(params).then((res) => { |
|
|
ajax.getBlackList(params).then((res) => { |
|
|
if (res.status === 20000) { |
|
|
if (res.status === 20000) { |
|
|
setDataSource(res.data.list); |
|
|
setDataSource(res.data.list); |
|
@ -209,7 +209,7 @@ function BlacklistManagement({id}) { |
|
|
if (editModal.status === "add") { |
|
|
if (editModal.status === "add") { |
|
|
ajax.addRoadBlackVehicle({ |
|
|
ajax.addRoadBlackVehicle({ |
|
|
...res, |
|
|
...res, |
|
|
road_id:id, |
|
|
|
|
|
|
|
|
road_id: id, |
|
|
effective_begin_date: moment(res.effective_date[0]).format("YY-MM-DD HH:mm:ss"), |
|
|
effective_begin_date: moment(res.effective_date[0]).format("YY-MM-DD HH:mm:ss"), |
|
|
effective_end_date: moment(res.effective_date[1]).format("YY-MM-DD HH:mm:ss") |
|
|
effective_end_date: moment(res.effective_date[1]).format("YY-MM-DD HH:mm:ss") |
|
|
}).then((res) => { |
|
|
}).then((res) => { |
|
|