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="参数名" />
|
|
|
|
<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>
|