Commit 4cfecefa authored by 黄奎's avatar 黄奎

页面修改

parent ccbc1d85
...@@ -122,7 +122,8 @@ ...@@ -122,7 +122,8 @@
</el-col> </el-col>
<el-col :span="5"> <el-col :span="5">
<el-form-item> <el-form-item>
<input type="button" class="hollowFixedBtn" @click="resetPageIndex(),GetList()" :value="$t('pub.searchBtn')" /> <input type="button" class="hollowFixedBtn" @click="resetPageIndex(),GetList()"
:value="$t('pub.searchBtn')" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
...@@ -166,7 +167,7 @@ ...@@ -166,7 +167,7 @@
{{item.B2BPrice}} {{item.B2BPrice}}
</td> </td>
<td> <td>
{{(item.SurplusFSeat+item.SurplusCSeat+item.SurplusYSeat)}} {{(item.FSeat+item.CSeat+item.YSeat)- (item.SurplusFSeat+item.SurplusCSeat+item.SurplusYSeat)}}
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -336,6 +337,7 @@ ...@@ -336,6 +337,7 @@
}); });
} }
this.dataList = tempArray; this.dataList = tempArray;
console.log("this.dataList", this.dataList)
} else { } else {
this.Error(res.data.message); this.Error(res.data.message);
} }
......
...@@ -72,15 +72,24 @@ ...@@ -72,15 +72,24 @@
if (tempArray && tempArray.length > 0) { if (tempArray && tempArray.length > 0) {
tempArray.forEach(item => { tempArray.forEach(item => {
var totalSeat = 0; var totalSeat = 0;
if (item.FSeat) {
totalSeat += item.FSeat;
}
if (item.CSeat) {
totalSeat += item.CSeat;
}
if (item.YSeat) {
totalSeat += item.YSeat;
}
if (item.SurplusFSeat) { if (item.SurplusFSeat) {
totalSeat += item.SurplusFSeat; totalSeat -= item.SurplusFSeat;
} }
if (item.SurplusCSeat) { if (item.SurplusCSeat) {
totalSeat += item.SurplusCSeat; totalSeat -= item.SurplusCSeat;
} }
if (item.SurplusYSeat) { if (item.SurplusYSeat) {
totalSeat += item.SurplusYSeat; totalSeat -= item.SurplusYSeat;
} }
var flightStatus = false; var flightStatus = false;
if (item.flightList && item.flightList.length > 0) { if (item.flightList && item.flightList.length > 0) {
......
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