rt-sim-training-client/src/views/system/commandDictionary/showCondition.vue

45 lines
1.2 KiB
Vue
Raw Normal View History

2019-11-19 13:00:36 +08:00
<template>
<el-dialog v-dialogDrag title="条件参数" :visible.sync="dialogVisible" width="400px" :before-close="handleClose" center :close-on-click-modal="false">
<el-table :data="conditionList" border class="param-table">
<el-table-column prop="name" label="参数名" />
2020-01-08 17:21:17 +08:00
<el-table-column prop="expression" label="运算">
<template slot-scope="scope">
{{ scope.row.expression=="neq"?'不等于':'等于' }}
</template>
</el-table-column>
2019-11-19 13:00:36 +08:00
<el-table-column prop="value" label="参数值" />
</el-table>
<span slot="footer" class="dialog-footer">
<el-button @click="handleClose">关闭</el-button>
</span>
</el-dialog>
</template>
<script>
export default {
name: 'ShowCondition',
data() {
return {
dialogVisible: false,
conditionList: []
};
},
mounted () {
},
methods: {
doShow(data) {
2019-11-19 16:39:24 +08:00
this.dialogVisible = true;
2019-11-19 13:00:36 +08:00
this.conditionList = data;
},
handleClose() {
this.dialogVisible = false;
}
}
};
</script>
<style rel="stylesheet/scss" lang="scss" scoped>
</style>