Blame view

src/utils/popup.js 481 Bytes
任超 committed
1
import Popup from '@/components/Popup/index'
2
import Popup1 from '@/components/Popup1/index'
任超 committed
3
export function popupDialog (title, url, params, width = '75%', height, btnShow = false, callback) {
4 5
  // Popup.install
  Popup1(title, url, {
任超 committed
6 7 8 9 10 11 12 13 14 15 16
    height: height,
    width: width,
    formData: params,
    btnShow: btnShow,
    cancel: () => {
      console.log("取消回调");
    },
    confirm: () => {
      callback
    }
  })
17
}
任超 committed
18

19 20
export function popupCacel () {
  Popup1().close()
任超 committed
21
}