king
2020-12-17 68d839ab51dab23bcb12cfe243b318203025451b
2020-12-17
4个文件已修改
50 ■■■■ 已修改文件
src/components/header/index.jsx 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/card/cardcellList/index.jsx 29 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/card/data-card/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/card/prop-card/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/header/index.jsx
@@ -585,7 +585,22 @@
  }
  changeSystem = (system) => {
    let href = system.LinkUrl1 + 'index.html#/ssologin/' + window.btoa(window.encodeURIComponent(JSON.stringify({
    let url = system.LinkUrl1
    if (!url) {
      notification.warning({
        top: 92,
        message: '系统地址不存在!',
        duration: 5
      })
      return
    } else if (/index\.html/ig.test(url)) {
      url = url.replace(/index\.html.*/ig, '')
    } else if (!/\/$/ig.test(url)) {
      url = url + '/'
    }
    let href = url + 'index.html#/ssologin/' + window.btoa(window.encodeURIComponent(JSON.stringify({
      UserID: sessionStorage.getItem('UserID'),
      LoginUID: sessionStorage.getItem('LoginUID'),
      User_Name: sessionStorage.getItem('User_Name'),
src/tabviews/custom/components/card/cardcellList/index.jsx
@@ -94,18 +94,25 @@
          duration: 5
        })
        return
      } else {
        url = data.LinkUrl1 + 'index.html#/ssologin/' + window.btoa(window.encodeURIComponent(JSON.stringify({
          UserID: sessionStorage.getItem('UserID'),
          LoginUID: sessionStorage.getItem('LoginUID'),
          User_Name: sessionStorage.getItem('User_Name'),
          Full_Name: sessionStorage.getItem('Full_Name'),
          avatar: sessionStorage.getItem('avatar'),
          dataM: data.dataM ? 'true' : '',
          debug: data.debug || '',
          role_id: data.role_id || ''
        })))
      }
      let _url = data.LinkUrl1
      if (/index\.html/ig.test(_url)) {
        _url = _url.replace(/index\.html.*/ig, '')
      } else if (!/\/$/ig.test(_url)) {
        _url = _url + '/'
      }
      url = _url + 'index.html#/ssologin/' + window.btoa(window.encodeURIComponent(JSON.stringify({
        UserID: sessionStorage.getItem('UserID'),
        LoginUID: sessionStorage.getItem('LoginUID'),
        User_Name: sessionStorage.getItem('User_Name'),
        Full_Name: sessionStorage.getItem('Full_Name'),
        avatar: sessionStorage.getItem('avatar'),
        dataM: data.dataM ? 'true' : '',
        debug: data.debug || '',
        role_id: data.role_id || ''
      })))
    } else {
      let Id = ''
      let con = '?'
src/tabviews/custom/components/card/data-card/index.jsx
@@ -349,7 +349,7 @@
            getexceloutparam={this.getexceloutparam}
          /> : null
        }
        <div className={`data-zoom ${config.wrap.cardType} ${config.wrap.scale}`}>
        <div className={`data-zoom ${config.wrap.cardType || ''} ${config.wrap.scale || ''}`}>
          {switchable ? <div className={'prev-page ' + (pageIndex === 1 ? 'disabled' : '')} onClick={this.prevPage}><div><div><img src={preImg} alt=""/></div></div></div> : null}
          {data && data.length > 0 ? <div className="card-row-list">
            {data.map((item, index) => (
src/tabviews/custom/components/card/prop-card/index.jsx
@@ -263,7 +263,7 @@
            <Spin />
          </div> : null
        }
        <div className={`card-row-list ${config.wrap.cardType} ${config.wrap.scale}`}>
        <div className={`card-row-list ${config.wrap.cardType || ''} ${config.wrap.scale || ''}`}>
          {config.subcards.map((item, index) => (
            <Col className={activeKey === index ? 'active' : ''} key={index} span={item.setting.width || 6} offset={item.offset || 0} onClick={() => {this.changeCard(index, item)}}>
              <CardItem card={item} cards={config} data={data} updateStatus={this.updateStatus}/>