|
@@ -256,7 +256,10 @@
|
|
|
label="占用车位"
|
|
|
align="center"
|
|
|
>
|
|
|
- <el-input-number v-model="num"></el-input-number>
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-input-number v-model="tableData[scope.$index].num"></el-input-number>
|
|
|
+ </template>
|
|
|
+
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
label="位置信息"
|
|
@@ -495,6 +498,7 @@ export default {
|
|
|
positionInformation: '',
|
|
|
areaName: '',
|
|
|
parkingId: '',
|
|
|
+ num: 1
|
|
|
},
|
|
|
],
|
|
|
parkingSpaceSetting: [
|
|
@@ -507,7 +511,6 @@ export default {
|
|
|
}
|
|
|
],
|
|
|
eloption: [],
|
|
|
- num: '1',
|
|
|
|
|
|
// parkingArea: '',//可停区域
|
|
|
beforelicense: [
|
|
@@ -740,7 +743,7 @@ export default {
|
|
|
|
|
|
|
|
|
parked (item) {
|
|
|
- this.areaNamed = [];
|
|
|
+ // this.areaNamed = [];
|
|
|
this.areaNamed.push(item.label);
|
|
|
this.formDate.sort = item.startDate;
|
|
|
if (this.rules.parkingArea[0].required == true && this.formDate.parkingArea == '') {
|
|
@@ -858,7 +861,8 @@ export default {
|
|
|
debugger
|
|
|
this.tableData.push({
|
|
|
parkingArea: '',
|
|
|
- positionInformation: ''
|
|
|
+ positionInformation: '',
|
|
|
+ num: 1
|
|
|
})
|
|
|
},
|
|
|
addTimes () {
|
|
@@ -1002,7 +1006,7 @@ export default {
|
|
|
table.push({
|
|
|
areaId: [this.tableData[i].parkingArea],
|
|
|
areaName: this.tableData[i].areaName,
|
|
|
- lotCount: this.num,
|
|
|
+ lotCount: this.tableData[i].num,
|
|
|
lotName: this.tableData[i].positionInformation,
|
|
|
parkingId: this.tableData[i].parkingId,
|
|
|
carType: '',
|
|
@@ -1139,14 +1143,22 @@ export default {
|
|
|
this.formDate.parkId = data.parkId
|
|
|
var carLotStr = JSON.parse(data.carLotStr)
|
|
|
debugger
|
|
|
+ this.tableData = [];
|
|
|
for (let i = 0; i < carLotStr.length; i++) {
|
|
|
+ this.tableData.push({
|
|
|
+ parkingArea: '',
|
|
|
+ areaName: carLotStr[i].areaName,
|
|
|
+ num: carLotStr[i].lotCount,
|
|
|
+ positionInformation: carLotStr[i].lotName,
|
|
|
+ parkingId: carLotStr[i].parkingId
|
|
|
+ })
|
|
|
this.formDate.areaName = carLotStr[i].areaName;
|
|
|
- this.tableData[i].areaName = carLotStr[i].areaName
|
|
|
+ // this.tableData[i].areaName = carLotStr[i].areaName
|
|
|
this.areaNamed.push(carLotStr[i].areaName);
|
|
|
- this.tableData[i].carType = data.cardType
|
|
|
- this.tableData[i].lotCount = carLotStr[i].lotCount
|
|
|
- this.tableData[i].positionInformation = carLotStr[i].lotName
|
|
|
- this.tableData[i].parkingId = carLotStr[i].parkingId
|
|
|
+ // this.tableData[i].carType = data.cardType
|
|
|
+ // this.tableData[i].lotCount = carLotStr[i].lotCount
|
|
|
+ // this.tableData[i].positionInformation = carLotStr[i].lotName
|
|
|
+ // this.tableData[i].parkingId = carLotStr[i].parkingId
|
|
|
this.formDate.ruleId = carLotStr.ruleId
|
|
|
this.formDate.sort = carLotStr.sequence
|
|
|
|