uGanttDialog.vue 872 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <template>
  2. <el-dialog :title="title" :visible.sync="dialogVisible" width="55%">
  3. <span slot="footer" class="dialog-footer">
  4. <el-button @click="cancel">关 闭</el-button>
  5. </span>
  6. </el-dialog>
  7. </template>
  8. <script>
  9. export default {
  10. name: 'JixiaoModal',
  11. props: {
  12. // 接受父组件传来的委托id
  13. weituoId: String
  14. },
  15. data () {
  16. return {
  17. title:'委托详情',
  18. // 弹窗
  19. dialogVisible: false,
  20. // 弹窗内容
  21. currentDbEdit: {},
  22. }
  23. },
  24. methods: {
  25. open() {
  26. this.dialogVisible = true
  27. },
  28. cancel(){
  29. // this.currentDbEdit = {}
  30. this.dialogVisible = false
  31. },
  32. }
  33. }
  34. </script>