62 lines
1.8 KiB
Vue
62 lines
1.8 KiB
Vue
|
<template>
|
||
|
<el-dialog class="planEdit__tool systerm-out" :title="title" :visible.sync="dialogShow" :width="width + 'px'"
|
||
|
:before-close="doClose" :zIndex="2000" :modal="false" :close-on-click-modal="false" v-dialogDrag>
|
||
|
<el-input type="textarea" :rows="10" v-model="context" readonly></el-input>
|
||
|
<el-row type="flex" justify="center" class="button-group">
|
||
|
<el-button @click="handleCommit">确 定</el-button>
|
||
|
<el-button @click="doClose">取 消</el-button>
|
||
|
</el-row>
|
||
|
</el-dialog>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
|
||
|
export default {
|
||
|
name: 'SystermOut',
|
||
|
components: {
|
||
|
},
|
||
|
data() {
|
||
|
return {
|
||
|
dialogShow: false,
|
||
|
loading: false,
|
||
|
params: {
|
||
|
width: 400,
|
||
|
contextList: []
|
||
|
},
|
||
|
}
|
||
|
},
|
||
|
computed: {
|
||
|
title() {
|
||
|
return '系统输出框'
|
||
|
},
|
||
|
width() {
|
||
|
if (this.params.width) {
|
||
|
return this.params.width;
|
||
|
} else {
|
||
|
return 400;
|
||
|
}
|
||
|
},
|
||
|
context() {
|
||
|
return this.params.contextList.join("\n") || '';
|
||
|
}
|
||
|
},
|
||
|
mounted() {
|
||
|
},
|
||
|
methods: {
|
||
|
doShow(params) {
|
||
|
this.params = params || {};
|
||
|
this.dialogShow = true;
|
||
|
},
|
||
|
doClose() {
|
||
|
this.loading = false;
|
||
|
this.dialogShow = false;
|
||
|
},
|
||
|
handleCommit() {
|
||
|
this.doClose();
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
<style rel="stylesheet/scss" lang="scss" scoped>
|
||
|
@import "src/styles/mixin.scss";
|
||
|
</style>
|