popup.js 798 Bytes
import Popup from '@/components/Popup/index'
import Popup1 from '@/components/Popup1/index'
export function popupDialog (title, url, params, width = '75%', height, btnShow = false, callback) {
  // Popup.install
  Popup1(title, url, {
    height: height,
    width: width,
    formData: params,
    btnShow: btnShow,
    cancel: () => {
      console.log("取消回调");
    },
    confirm: () => {
      callback
    }
  })
}
export function popupDialog1 (title, url, params, width = '75%', height, btnShow = false, callback) {
  Popup1(title, url, {
    height: height,
    width: width,
    formData: params,
    btnShow: btnShow,
    cancel: () => {
      console.log("取消回调");
    },
    confirm: () => {
      callback
    }
  })
}
export function popupCacel () {
  Popup1().close()
}