|
|
|
@ -274,12 +274,12 @@ export default {
|
|
|
|
|
align: 'center', |
|
|
|
|
span: 11, |
|
|
|
|
multiple: true, |
|
|
|
|
dicData: [], |
|
|
|
|
// dicUrl: '/api/logpm-basicdata/vehicle/dictionary', |
|
|
|
|
// props: { |
|
|
|
|
// label: 'vehicleNub', |
|
|
|
|
// value: 'id', |
|
|
|
|
// }, |
|
|
|
|
// dicData: [], |
|
|
|
|
dicUrl: '/api/logpm-basicdata/vehicle/dictionary', |
|
|
|
|
props: { |
|
|
|
|
label: 'vehicleNub', |
|
|
|
|
value: 'id', |
|
|
|
|
}, |
|
|
|
|
// addDisplay: false, |
|
|
|
|
// editDisplay: false, |
|
|
|
|
// viewDisplay: false, |
|
|
|
@ -618,12 +618,9 @@ export default {
|
|
|
|
|
rowSave(row, done, loading) { |
|
|
|
|
console.log(row, 'row信息'); |
|
|
|
|
|
|
|
|
|
if (Array.isArray(row.bindVehicles) && row.bindVehicles.length > 0) { |
|
|
|
|
row.bindVehicles = row.bindVehicles.join(","); |
|
|
|
|
console.log(row.bindVehicles); |
|
|
|
|
}else{ |
|
|
|
|
row.bindVehicles = ''; |
|
|
|
|
|
|
|
|
|
if (Array.isArray(row.bindVehicles)) { |
|
|
|
|
row.bindVehicles = row.bindVehicles.join(","); |
|
|
|
|
console.log(row.bindVehicles); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
add(row).then( |
|
|
|
@ -642,12 +639,10 @@ export default {
|
|
|
|
|
); |
|
|
|
|
}, |
|
|
|
|
rowUpdate(row, index, done, loading) { |
|
|
|
|
console.log('swx>>>>>>>>>>>>>>'); |
|
|
|
|
if (Array.isArray(row.bindVehicles) && row.bindVehicles.length > 0) { |
|
|
|
|
|
|
|
|
|
if (Array.isArray(row.bindVehicles)) { |
|
|
|
|
row.bindVehicles = row.bindVehicles.join(","); |
|
|
|
|
console.log(row.bindVehicles); |
|
|
|
|
}else{ |
|
|
|
|
row.bindVehicles = ''; |
|
|
|
|
} |
|
|
|
|
update(row).then( |
|
|
|
|
() => { |
|
|
|
@ -783,7 +778,7 @@ export default {
|
|
|
|
|
//查询车辆绑定情况 |
|
|
|
|
this.getVehiclede(); |
|
|
|
|
//查询人员信息 |
|
|
|
|
this.getpeople(); |
|
|
|
|
//this.getpeople(); |
|
|
|
|
// getVehicle().then(res => { |
|
|
|
|
// console.log("res.data.data>>>>>>>",res.data.data) |
|
|
|
|
// res.data.data.map(v=>{ |
|
|
|
|