<template>
  <el-dialog
    title="标题"
    :close-on-click-modal="false"
    :before-close="closeDialog"
    :visible.sync="visible"
    :modal="false"
    width="75%">
    <span slot="footer" class="dialog-footer">
      <el-button @click="closeDia">取消</el-button>
      <el-button type="primary" @click="dataFormSubmit()">确定</el-button>
    </span>
  </el-dialog>
</template>

<script>
import {addCharge,reviewer,modify} from '@/api/system/auditPaths-add-or-update'

export default {
  data () {
    return {
      visible: false,
    }
  },
  methods: {
    init (val) {
      this.optionsUsers = []
      this.visible = true
      if (typeof val !== 'undefined') {
        console.log(val)
        this.queryAuditPath(val)
      } else {
      }
    },
    // 表单提交
    dataFormSubmit () {

    },
    closeDialog (done) {
      this.visible = false
      this.$emit('refreshDataList')
      Object.assign(this.$data, this.$options.data.call(this))
    },
    closeDia () {
      this.visible = false
      this.$emit('refreshDataList')
      Object.assign(this.$data, this.$options.data.call(this))
    }
  }
}
</script>
