Merge branch 'test' of https://git.code.tencent.com/lian-cbtc/jl-client into test
This commit is contained in:
commit
863e383311
@ -5,20 +5,35 @@
|
|||||||
:visible.sync="dialogVisible"
|
:visible.sync="dialogVisible"
|
||||||
:before-close="doClose"
|
:before-close="doClose"
|
||||||
center
|
center
|
||||||
|
width="400px"
|
||||||
:close-on-click-modal="false"
|
:close-on-click-modal="false"
|
||||||
:z-index="2000"
|
:z-index="2000"
|
||||||
append-to-body
|
append-to-body
|
||||||
>
|
>
|
||||||
{{}}
|
<el-form ref="form" :model="formModel" class="checkConfig" label-width="160px">
|
||||||
|
<el-form-item prop="check" label="是否检查" :required="true">
|
||||||
|
<el-switch
|
||||||
|
v-model="formModel.check"
|
||||||
|
active-color="#409eff"
|
||||||
|
inactive-color="#dcdfe6"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<div class="bottomBtnGroup">
|
||||||
|
<el-button type="primary" size="medium" @click="onSubmit">确定</el-button>
|
||||||
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
import { checkConfig } from '@/api/jmap/mapdraft';
|
||||||
export default {
|
export default {
|
||||||
name:'CheckConfig',
|
name:'CheckConfig',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
dialogVisible:false,
|
dialogVisible:false,
|
||||||
check:false
|
formModel:{
|
||||||
|
check:false
|
||||||
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
@ -26,8 +41,29 @@ export default {
|
|||||||
this.dialogVisible = true;
|
this.dialogVisible = true;
|
||||||
},
|
},
|
||||||
doClose() {
|
doClose() {
|
||||||
|
this.formModel = {
|
||||||
|
check:false
|
||||||
|
};
|
||||||
this.dialogVisible = false;
|
this.dialogVisible = false;
|
||||||
|
},
|
||||||
|
onSubmit() {
|
||||||
|
checkConfig(this.$route.params.mapId, this.formModel).then(res=>{
|
||||||
|
this.$message.success('检查配置成功');
|
||||||
|
this.$emit('checkOver');
|
||||||
|
this.doClose();
|
||||||
|
}).catch(error=>{
|
||||||
|
this.$messageBox('检查配置失败:' + error.meessage);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.checkConfig{}
|
||||||
|
.bottomBtnGroup{
|
||||||
|
width: 100%;
|
||||||
|
margin-top:10px;
|
||||||
|
text-align: center;
|
||||||
|
display: inline-block
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
@ -257,6 +257,7 @@ export default {
|
|||||||
this.$message.success('删除进路成功');
|
this.$message.success('删除进路成功');
|
||||||
this.reloadData();
|
this.reloadData();
|
||||||
delete this.filterRouteMap[row.code];
|
delete this.filterRouteMap[row.code];
|
||||||
|
this.$emit('refresh');
|
||||||
}).catch(error=>{
|
}).catch(error=>{
|
||||||
this.$messageBox('删除进路失败:' + error.meessage);
|
this.$messageBox('删除进路失败:' + error.meessage);
|
||||||
});
|
});
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
:route-data="routeData"
|
:route-data="routeData"
|
||||||
@setCenter="setCenter"
|
@setCenter="setCenter"
|
||||||
/>
|
/>
|
||||||
<big-route-detail ref="routeDetail" :map-info="mapInfo" @routeSelected="routeSelected" />
|
<big-route-detail ref="routeDetail" :map-info="mapInfo" @routeSelected="routeSelected" @refresh="refresh" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@ -91,6 +91,9 @@ export default {
|
|||||||
},
|
},
|
||||||
batchSectionListFocus(flag) {
|
batchSectionListFocus(flag) {
|
||||||
this.$refs.routeEdit.batchSectionListFocus(flag);
|
this.$refs.routeEdit.batchSectionListFocus(flag);
|
||||||
|
},
|
||||||
|
refresh() {
|
||||||
|
this.$refs.routeEdit.initPage();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -266,16 +266,20 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
getBigRouteList(this.$route.params.mapId).then(response => {
|
this.initPage();
|
||||||
response.data.forEach(route=>{
|
|
||||||
if (!route.multiRoute) {
|
|
||||||
this.routeList.push({code:route.code, name:route.name});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}).catch(()=>{
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
|
initPage() {
|
||||||
|
this.routeList = [];
|
||||||
|
getBigRouteList(this.$route.params.mapId).then(response => {
|
||||||
|
response.data.forEach(route=>{
|
||||||
|
if (!route.multiRoute) {
|
||||||
|
this.routeList.push({code:route.code, name:route.name});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}).catch(()=>{
|
||||||
|
});
|
||||||
|
},
|
||||||
hover(field) {
|
hover(field) {
|
||||||
this.field = field === this.field ? '' : field;
|
this.field = field === this.field ? '' : field;
|
||||||
},
|
},
|
||||||
|
@ -526,7 +526,6 @@ export default {
|
|||||||
},
|
},
|
||||||
async verifyMapEvent() {
|
async verifyMapEvent() {
|
||||||
this.$refs.checkConfig.doShow();
|
this.$refs.checkConfig.doShow();
|
||||||
// import { checkConfig } from '@/api/jmap/mapdraft';
|
|
||||||
},
|
},
|
||||||
tableToExcel(data) {
|
tableToExcel(data) {
|
||||||
const filterVal = ['index'];
|
const filterVal = ['index'];
|
||||||
|
Loading…
Reference in New Issue
Block a user