Create share.vue

This commit is contained in:
木子李·De
2021-07-18 18:19:08 +08:00
parent d73e54a2bd
commit 32681285ae

View File

@@ -0,0 +1,54 @@
<template>
<el-dialog class="tree_dialog" title="报表分享" width="60%" :close-on-click-modal="false" center :visible.sync="visib" :before-close="closeDialog">
<div slot="footer" style="text-align: center">
{{reportCode}}
<el-button type="primary" plain @click="saveReportShare">保存</el-button>
<el-button type="danger" plain @click="closeDialog">取消</el-button>
</div>
</el-dialog>
</template>
<script>
export default {
props: {
visib: {
required: true,
type: Boolean,
default: false,
},
reportCode: {
required: true,
type: String,
default: () => {
return ''
},
},
},
data() {
return {
}
},
watch: {
visib(val) {
if (val) {
// 弹窗弹出时需要执行的逻辑
}
},
},
created() {},
methods: {
async saveReportShare() {
var params = {
}
//const { code } = await saveAuthorityTree(params)
//if (code != '200') return
this.closeDialog()
},
// 弹窗关闭之前需要执行的逻辑
closeDialog() {
this.$emit('handleClose')
},
},
}
</script>