Merge branch 'master' into positec
| | |
| | | |
| | | axios.interceptors.response.use((response) => { |
| | | if (response.data.ErrCode === 'LoginError') { |
| | | if (window.debugger === true || window.GLOB.saving) { |
| | | if (window.debugger === true) { |
| | | response.data.ErrCode = 'E' |
| | | return Promise.resolve(response.data) |
| | | } else if (window.GLOB.developing) { |
| | | sessionStorage.setItem('devError', 'true') |
| | | response.data.ErrCode = 'E' |
| | | return Promise.resolve(response.data) |
| | | } else if (!sessionStorage.getItem('loginError')) { |
| | |
| | | } |
| | | |
| | | _config.$extend = false |
| | | _config.$empty = true |
| | | |
| | | _config.subcards.forEach(item => { |
| | | if (item.setting.click === 'button' && !item.setting.linkbtn) { |
| | |
| | | _card = item |
| | | } else if (!_card) { |
| | | _config.$extend = true |
| | | if (item.setting.width !== 24) { |
| | | _config.$empty = false |
| | | } |
| | | precards.push(item) |
| | | } else { |
| | | _config.$extend = true |
| | | _config.$empty = false |
| | | nextcards.push(item) |
| | | } |
| | | }) |
| | |
| | | ))} |
| | | </Row> |
| | | {switchable ? <div className={'prev-page ' + (total <= _total ? 'disabled' : '')} onClick={this.nextPage}><div><div><img src={nextImg} alt=""/></div></div></div> : null} |
| | | {!config.$extend && (!data || data.length === 0) ? <Empty description={false}/> : null} |
| | | </div> |
| | | {config.$empty && (!data || data.length === 0) ? <Empty description={false}/> : null} |
| | | {config.wrap.pagestyle === 'page' && data ? <Pagination size="small" total={total} showTotal={(t, range) => total > 0 ? `${range[0]}-${range[1]} 共 ${total} 条` : `共 ${total} 条`} pageSize={pageSize} showSizeChanger={true} pageSizeOptions={this.state.pageOptions} onChange={this.changePageIndex} onShowSizeChange={this.pageSizeChange} current={pageIndex}/> : null} |
| | | {config.wrap.pagestyle === 'more' && data && data.length > 0 ? <div className={'mk-more' + (pageSize * pageIndex >= total ? ' disabled' : '')} onClick={this.loadMore}>查看更多<DownOutlined/></div> : null} |
| | | </div> |
| | |
| | | } |
| | | |
| | | .ant-empty { |
| | | width: 100%; |
| | | min-height: 100px; |
| | | padding-top: 15px; |
| | | |
| | |
| | | } |
| | | |
| | | _config.$extend = false |
| | | _config.$empty = true |
| | | |
| | | _config.subcards.forEach(item => { |
| | | if (item.setting.click === 'button' && !item.setting.linkbtn) { |
| | |
| | | _card = item |
| | | } else if (!_card) { |
| | | _config.$extend = true |
| | | if (item.setting.width !== 24) { |
| | | _config.$empty = false |
| | | } |
| | | precards.push(item) |
| | | } else { |
| | | _config.$extend = true |
| | | _config.$empty = false |
| | | nextcards.push(item) |
| | | } |
| | | }) |
| | |
| | | </Col> |
| | | ))} |
| | | </Row> |
| | | {!config.$extend && (!data || data.length === 0) ? <Empty description={false}/> : null} |
| | | </div> |
| | | {config.$empty && (!data || data.length === 0) ? <Empty description={false}/> : null} |
| | | </div> |
| | | {config.wrap.pagestyle === 'page' && data ? <Pagination size="small" total={total} showTotal={(t, range) => total > 0 ? `${range[0]}-${range[1]} 共 ${total} 条` : `共 ${total} 条`} pageSize={pageSize} showSizeChanger={true} pageSizeOptions={this.state.pageOptions} onChange={this.changePageIndex} onShowSizeChange={this.pageSizeChange} current={pageIndex}/> : null} |
| | | {config.wrap.pagestyle === 'more' && data && data.length > 0 ? <div className={'mk-more' + (pageSize * pageIndex >= total ? ' disabled' : '')} onClick={this.loadMore}>查看更多<DownOutlined/></div> : null} |
| | |
| | | } |
| | | |
| | | .ant-empty { |
| | | width: 100%; |
| | | min-height: 100px; |
| | | padding-top: 15px; |
| | | |
| | |
| | | cursor: not-allowed; |
| | | color: #bcbcbc; |
| | | } |
| | | .ant-empty { |
| | | min-height: 100px; |
| | | padding-top: 15px; |
| | | .ant-empty-image { |
| | | height: 60px; |
| | | } |
| | | } |
| | | } |
| | | |
| | | .custom-card-box::after { |
| | |
| | | } |
| | | |
| | | UNSAFE_componentWillMount() { |
| | | if (sessionStorage.getItem('devError') === 'true') { |
| | | sessionStorage.clear() |
| | | window.history.replaceState(null, null, window.location.href.split('#')[0] + '#/login') |
| | | window.location.reload() |
| | | return |
| | | } |
| | | |
| | | if (!sessionStorage.getItem('UserID')) { |
| | | sessionStorage.removeItem('isEditState') |
| | | sessionStorage.removeItem('appType') |
| | |
| | | window.GLOB.TabsMap = new Map() // 缓存用户操作的标签页 |
| | | window.GLOB.urlFields = [] // url变量 |
| | | window.GLOB.customMenu = null // 保存菜单信息 |
| | | window.GLOB.developing = true |
| | | |
| | | try { |
| | | let param = JSON.parse(window.decodeURIComponent(window.atob(this.props.match.params.param))) |
| | |
| | | menuloading: true |
| | | }) |
| | | |
| | | window.GLOB.saving = true |
| | | |
| | | setTimeout(() => { |
| | | let _pass = this.verifyConfig(config) |
| | | |
| | |
| | | menuloading: false |
| | | }) |
| | | |
| | | window.GLOB.saving = false |
| | | |
| | | if (!res) return |
| | | |
| | | if (res.status) { |
| | |
| | | this.setState({ |
| | | menuloading: false |
| | | }) |
| | | |
| | | window.GLOB.saving = false |
| | | |
| | | if (!error) { |
| | | notification.warning({ |
| | |
| | | } |
| | | |
| | | UNSAFE_componentWillMount() { |
| | | if (sessionStorage.getItem('devError') === 'true') { |
| | | sessionStorage.clear() |
| | | window.history.replaceState(null, null, window.location.href.split('#')[0] + '#/login') |
| | | window.location.reload() |
| | | return |
| | | } |
| | | |
| | | if (!sessionStorage.getItem('UserID')) { |
| | | sessionStorage.removeItem('isEditState') |
| | | sessionStorage.removeItem('editMenuType') |
| | |
| | | } |
| | | |
| | | if (memberLevel < 30) return |
| | | |
| | | window.GLOB.developing = true |
| | | |
| | | try { |
| | | let param = JSON.parse(window.decodeURIComponent(window.atob(this.props.match.params.param))) |
| | | |
| | |
| | | menuloading: true |
| | | }) |
| | | |
| | | window.GLOB.saving = true |
| | | |
| | | setTimeout(() => { |
| | | let _pass = this.verifyConfig(config) |
| | | |
| | |
| | | menuloading: false |
| | | }) |
| | | |
| | | window.GLOB.saving = false |
| | | |
| | | if (!res) return |
| | | |
| | | if (res.status) { |
| | |
| | | this.setState({ |
| | | menuloading: false |
| | | }) |
| | | |
| | | window.GLOB.saving = false |
| | | |
| | | if (!error) { |
| | | notification.warning({ |
| | |
| | | } |
| | | |
| | | UNSAFE_componentWillMount() { |
| | | if (sessionStorage.getItem('devError') === 'true') { |
| | | sessionStorage.clear() |
| | | window.history.replaceState(null, null, window.location.href.split('#')[0] + '#/login') |
| | | window.location.reload() |
| | | return |
| | | } |
| | | |
| | | if (!sessionStorage.getItem('UserID')) { |
| | | sessionStorage.removeItem('isEditState') |
| | | sessionStorage.removeItem('appType') |
| | |
| | | window.GLOB.CacheIndependent = new Map() |
| | | window.GLOB.urlFields = [] // url变量 |
| | | window.GLOB.customMenu = null // 保存菜单信息 |
| | | window.GLOB.developing = true |
| | | |
| | | try { |
| | | let param = JSON.parse(window.decodeURIComponent(window.atob(this.props.match.params.param))) |
| | |
| | | menuloading: true |
| | | }) |
| | | |
| | | window.GLOB.saving = true |
| | | |
| | | setTimeout(() => { |
| | | let _pass = this.verifyConfig(config) |
| | | |
| | |
| | | menuloading: false |
| | | }) |
| | | |
| | | window.GLOB.saving = false |
| | | |
| | | if (!res) return |
| | | |
| | | if (res.status) { |
| | |
| | | menuloading: false |
| | | }) |
| | | |
| | | window.GLOB.saving = false |
| | | |
| | | if (!error) { |
| | | notification.warning({ |
| | | top: 92, |
| | |
| | | } |
| | | |
| | | UNSAFE_componentWillMount() { |
| | | if (sessionStorage.getItem('devError') === 'true') { |
| | | sessionStorage.clear() |
| | | window.history.replaceState(null, null, window.location.href.split('#')[0] + '#/login') |
| | | window.location.reload() |
| | | return |
| | | } |
| | | |
| | | if (!sessionStorage.getItem('UserID')) { |
| | | sessionStorage.removeItem('isEditState') |
| | | sessionStorage.removeItem('appType') |
| | |
| | | window.GLOB.TabsMap = new Map() // 缓存用户操作的标签页 |
| | | window.GLOB.urlFields = [] // url变量 |
| | | window.GLOB.customMenu = null // 保存菜单信息 |
| | | window.GLOB.developing = true |
| | | |
| | | try { |
| | | let param = JSON.parse(window.decodeURIComponent(window.atob(this.props.match.params.param))) |
| | |
| | | menuloading: true |
| | | }) |
| | | |
| | | window.GLOB.saving = true |
| | | |
| | | setTimeout(() => { |
| | | let _pass = this.verifyConfig(config) |
| | | |
| | |
| | | menuloading: false |
| | | }) |
| | | |
| | | window.GLOB.saving = false |
| | | |
| | | if (!res) return |
| | | |
| | | if (res.status) { |
| | |
| | | this.setState({ |
| | | menuloading: false |
| | | }) |
| | | |
| | | window.GLOB.saving = false |
| | | |
| | | if (!error) { |
| | | notification.warning({ |