Elements-SY

modify

...@@ -55,14 +55,15 @@ ...@@ -55,14 +55,15 @@
55 <template slot="title"> 55 <template slot="title">
56 <span class="fontWeight">{{ routeItem.route }}</span> 56 <span class="fontWeight">{{ routeItem.route }}</span>
57 </template> 57 </template>
58 - <el-card shadow="always" v-for="(val, idx) in infoForm.list" :key="idx" style="min-height:350px"> 58 + <template v-for="(val, idx) in infoForm.list">
59 - <div v-if="val.flightRoute === routeItem.route"> 59 + <el-card shadow="always" style="min-height:350px" v-if="val.flightRoute === routeItem.route" :key="idx">
60 + <div>
60 <el-empty description="未设置规则!" v-if="!val.isLocation"> 61 <el-empty description="未设置规则!" v-if="!val.isLocation">
61 <el-button type="primary" size="small" @click="newRoute(idx)">新增规则 62 <el-button type="primary" size="small" @click="newRoute(idx)">新增规则
62 </el-button> 63 </el-button>
63 </el-empty> 64 </el-empty>
64 <el-row class="rowPadding" v-else> 65 <el-row class="rowPadding" v-else>
65 - <el-button type="primary" size="mini" @click="submit(idx)">保 存</el-button> 66 + <el-button type="primary" size="mini" @click="submit(idx)">2003保 存</el-button>
66 <el-button type="primary" v-if="val.status === '1'" size="mini" icon="el-icon-video-pause" 67 <el-button type="primary" v-if="val.status === '1'" size="mini" icon="el-icon-video-pause"
67 @click="changeStatus(idx)"> 68 @click="changeStatus(idx)">
68 停 用</el-button> 69 停 用</el-button>
...@@ -304,6 +305,7 @@ ...@@ -304,6 +305,7 @@
304 </el-row> 305 </el-row>
305 </div> 306 </div>
306 </el-card> 307 </el-card>
308 + </template>
307 </el-collapse-item> 309 </el-collapse-item>
308 </el-collapse> 310 </el-collapse>
309 <el-card v-else shadow="always" v-for="(val, idx) in infoForm.list" :key="idx" style="min-height:350px"> 311 <el-card v-else shadow="always" v-for="(val, idx) in infoForm.list" :key="idx" style="min-height:350px">
...@@ -603,6 +605,7 @@ export default { ...@@ -603,6 +605,7 @@ export default {
603 } 605 }
604 }, 606 },
605 created() { 607 created() {
608 + // console.log(this.$route.params)
606 this.dictData() 609 this.dictData()
607 this.status = this.$route.params.handle 610 this.status = this.$route.params.handle
608 this.$route.params.handle === 'detail' ? this.disabled = true : this.disabled = false 611 this.$route.params.handle === 'detail' ? this.disabled = true : this.disabled = false
...@@ -637,6 +640,7 @@ export default { ...@@ -637,6 +640,7 @@ export default {
637 this.getRouteDimension(obj) 640 this.getRouteDimension(obj)
638 } 641 }
639 } 642 }
643 +
640 } else { 644 } else {
641 this.infoForm.fltNo = '' 645 this.infoForm.fltNo = ''
642 this.infoForm.fltDate = null 646 this.infoForm.fltDate = null
......