viewApproval.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <template>
  2. <el-dialog
  3. title="标题"
  4. :close-on-click-modal="false"
  5. :before-close="closeDialog"
  6. :visible.sync="visible"
  7. :modal="false"
  8. width="75%">
  9. <span slot="footer" class="dialog-footer">
  10. <el-button @click="closeDia">取消</el-button>
  11. <el-button type="primary" @click="dataFormSubmit()">确定</el-button>
  12. </span>
  13. </el-dialog>
  14. </template>
  15. <script>
  16. import {addCharge,reviewer,modify} from '@/api/system/auditPaths-add-or-update'
  17. export default {
  18. data () {
  19. return {
  20. visible: false,
  21. }
  22. },
  23. methods: {
  24. init (val) {
  25. this.optionsUsers = []
  26. this.visible = true
  27. if (typeof val !== 'undefined') {
  28. console.log(val)
  29. this.queryAuditPath(val)
  30. } else {
  31. }
  32. },
  33. // 表单提交
  34. dataFormSubmit () {
  35. },
  36. closeDialog (done) {
  37. this.visible = false
  38. this.$emit('refreshDataList')
  39. Object.assign(this.$data, this.$options.data.call(this))
  40. },
  41. closeDia () {
  42. this.visible = false
  43. this.$emit('refreshDataList')
  44. Object.assign(this.$data, this.$options.data.call(this))
  45. }
  46. }
  47. }
  48. </script>