rt-sim-training-client/src/views/system/commandDictionary/showCondition.vue
2020-01-08 17:21:17 +08:00

45 lines
1.2 KiB
Vue

<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="参数名" />
<el-table-column prop="expression" label="运算">
<template slot-scope="scope">
{{ scope.row.expression=="neq"?'不等于':'等于' }}
</template>
</el-table-column>
<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) {
this.dialogVisible = true;
this.conditionList = data;
},
handleClose() {
this.dialogVisible = false;
}
}
};
</script>
<style rel="stylesheet/scss" lang="scss" scoped>
</style>