File was renamed from src/views/mobmanage/index.jsx |
| | |
| | | } |
| | | |
| | | 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'})))}`)) |
| | | } |
| | | |
| | | /** |
| | |
| | | * @description 点击整行,触发切换, 判断是否可选,单选或多选,进行对应操作 |
| | | */ |
| | | changeSubRow = (record) => { |
| | | console.log(record) |
| | | this.setState({ selectedSubRowKeys: [record.ID], selectSubApp: record }) |
| | | } |
| | | |
| | |
| | | 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: '应用类型已存在!', |