vue创建dom

let confirmText = [

          "因本次操作涉及批量导出个人信息,请注意:",

          "1、不得用于业务目的以外用途",

          "2、不得违规共享或外发数据",

          "违反上述内容需承担相应法律法规责任",

      ]

      const newDatas = []

      const h = this.$createElement //先用$createElement创建h函数。

      for (const i in confirmText) {

      newDatas.push(h("p",  confirmText[i]))

      }

      const now = moment(); // 获取当前时间

      const year = now.format('YYYY'); // 年

      const month = now.format('MM'); // 月 (01-12)

      const day = now.format('DD'); // 日 (01-31)

      const hour = now.format('HH'); // 时 (00-23)

      const minute = now.format('mm'); // 分 (00-59)

      const second = now.format('ss'); // 秒 (00-59)

      const exportName = `人员认证记录${year+month+day+hour+minute+second}.xlsx`

      this.$confirm("提示", {  message: h("div", null, newDatas), type: "warning" }).then(async()=>{

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值