代码调整

This commit is contained in:
joylink_cuiweidong 2021-04-16 16:36:17 +08:00
parent 388f85c3db
commit e554ff45b7

View File

@ -7,7 +7,6 @@
<el-form-item label="名称:" prop="name">
<el-input v-model="addModel.name" style="width: 220px;" />
</el-form-item>
<!-- -->
<el-form-item label="是否多进路:" prop="multiRoute">
<el-radio-group v-model="addModel.multiRoute" @change="changeRadio">
<el-radio :label="true">{{ $t('map.are') }}</el-radio>
@ -90,7 +89,6 @@
/>
</el-select>
</el-form-item>
<!-- routeAspectList -->
<el-form-item v-if="addModel.multiRoute" label="多进路引用进路:" prop="routeAspectList">
<el-select v-model="routeCode" clearable filterable>
<el-option
@ -146,8 +144,8 @@
</el-form>
<div class="bigDraft">
<el-button-group class="bigDraftBtn">
<el-button v-if="!isModify" type="primary" size="small" :loading="loading" @click="save">保存进路</el-button>
<el-button v-else type="warning" size="small" :loading="loading" @click="update">更新进路</el-button>
<el-button v-if="isModify" type="warning" size="small" :loading="loading" @click="update ">更新进路</el-button>
<el-button v-else type="primary" size="small" :loading="loading" @click="save">保存进路</el-button>
</el-button-group>
</div>
</div>
@ -361,6 +359,10 @@ export default {
}
},
update() {
this.$refs.form.validate((valid) => {
if (valid) {
}
});
},
pushRouteAspect() {
if (this.routeCode && this.signalAspect) {