king
2021-02-22 5a7e0659e6365709e2f5c02307d5d5b0a6bd1cc8
src/views/appmanage/index.jsx
File was renamed from src/views/mobmanage/index.jsx
@@ -231,7 +231,14 @@
  }
  
  jumpApp = (item) => {
    console.log(item)
    const { selectApp } = this.state
    let route = 'mobdesign'
    if (item.typename === 'pc') {
      route = 'pcdesign'
    }
    window.open(window.location.href.replace(/#.+/ig, `#/${route}/${window.btoa(window.encodeURIComponent(JSON.stringify({...item, kei_no: selectApp.kei_no, remark: selectApp.remark, type: 'app'})))}`))
  }
  /**
@@ -262,7 +269,6 @@
   * @description 点击整行,触发切换, 判断是否可选,单选或多选,进行对应操作
   */
  changeSubRow = (record) => {
    console.log(record)
    this.setState({ selectedSubRowKeys: [record.ID], selectSubApp: record })
  }
@@ -370,7 +376,7 @@
    const { selectApp, subVisible, selectSubApp } = this.state
    this.submobcardRef.handleConfirm().then(res => {
      if (subVisible === 'plus' && selectApp.sublist.filter(item => item.typename === res.typename).length > 0) {
      if (subVisible === 'plus' && selectApp.sublist.filter(item => item.typename === res.typename && item.lang === res.lang).length > 0) {
        notification.warning({
          top: 92,
          message: '应用类型已存在!',