rt-sim-training-client/src/views/scriptManage/conditionManage.vue

71 lines
1.5 KiB
Vue
Raw Normal View History

2020-11-04 10:18:29 +08:00
<template>
<el-dialog
v-dialogDrag
title="条件管理"
:visible.sync="dialogVisible"
width="500px"
:before-close="handleClose"
center
:close-on-click-modal="false"
>
<el-table
:data="tableData"
style="width: 100%"
>
<el-table-column
prop="code"
label="触发列车"
/>
<el-table-column
prop="physicalCode"
label="到达区段"
/>
<el-table-column
prop="stop"
label="是否停车"
/>
</el-table>
<el-form :label-position="labelPosition" label-width="80px" :model="formModel">
<el-form-item label="名称">
<el-input v-model="formLabelAlign.name" />
</el-form-item>
<el-form-item label="活动区域">
<el-input v-model="formLabelAlign.region" />
</el-form-item>
<el-form-item label="活动形式">
<el-input v-model="formLabelAlign.type" />
</el-form-item>
</el-form>
</el-dialog>
</template>
<script>
import {updateActionCondition} from '@/api/script';
export default {
name: 'ConditionManage',
data() {
return {
dialogVisible: false,
tableData: [],
formModel: {
code: '',
physicalCode: '',
stop: 1
}
};
},
methods:{
doShow() {
this.dialogVisible = true;
},
handleClose() {
this.dialogVisible = false;
}
}
};
</script>
<style scoped>
</style>