zoukankan      html  css  js  c++  java
  • 拖拽的几个事件。

    dragShopStart: function (item) {
    console.log(item)
    this.dropData = item //获取拖传过来的对象
    },
    // 拖动结束
    dragShopOver: function (event) {
    event.preventDefault()

    },
    //获取传过来的URLcode
    getQueryString: function (name) {
    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
    var r = window.location.search.substr(1).match(reg);
    if (r != null) return unescape(r[2]);
    return null;

    },
    //放
    dropShop: function (event) {
    this.addBindModalInit()
    const dropData = this.dropData //拖过来的数据
    console.log(dropData)
    if (!dropData.itemId) {
    $("#bindNewItemModal").modal("show")
    this.wayIndex = event.currentTarget.getAttribute('wayNumberAttribute') //获取货道号
    this.costPrice = dropData.costPrice
    this.price = dropData.price
    this.shopDropName = dropData.name
    this.basicItemId = dropData.basicItemId
    this.endDate = dropData.endTime

    // this.dropData=
    } else {
    $("#modalEditShop").modal("show")
    this.modalEditInit()
    this.editShopDropName = dropData.name,

    this.editCostPrice = dropData.costPrice,

    this.editPrice = dropData.price,
    this.editFullNum = dropData.fullNum,
    this.editNum = dropData.num,
    this.editItemId = dropData.itemId,
    this.editWayIndex = event.currentTarget.getAttribute('wayNumberAttribute')
    }
    },
  • 相关阅读:
    每周总结
    5月2日学习日志
    5月1日学习日志
    4月30日学习日志
    4月29日学习日志
    4月28日学习日志
    4月27日学习日志
    每周总结
    vue滚动插件BetterScroll
    vue 获取页面高度
  • 原文地址:https://www.cnblogs.com/zhuwu/p/8286937.html
Copyright © 2011-2022 走看看