king
2021-09-25 a7ddedc4c5d6cda66a83623d9d318437a19d8338
2021-09-25
14个文件已修改
75 ■■■■ 已修改文件
src/components/header/index.scss 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/tabview/index.jsx 23 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/card/cardItem/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/card/table-card/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/carousel/cardItem/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/chart/antv-pie/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/form/normal-form/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/form/tab-form/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/share/normalTable/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/normalbutton/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/tabbutton/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/normalTable/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/sharecomponent/actioncomponent/actionform/index.jsx 26 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/sharecomponent/fieldscomponent/index.jsx 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/header/index.scss
@@ -169,6 +169,9 @@
    }
  }
}
.ant-dropdown.vertical-dropdown-menu {
  z-index: 1100 !important;
}
.vertical-dropdown-menu, .vertical-dropdown-submenu {
  ul.ant-dropdown-menu {
src/components/tabview/index.jsx
@@ -136,10 +136,27 @@
    }
  }
  modifyTabs = (tab, type) => {
    const { tabviews } = this.state
  modifyTabs = (tab, type, fixed) => {
    const { tabviews, activeId } = this.state
    if (type === 'plus') {
    if (type === 'plus' && fixed) {
      let _tabs = tabviews.filter(item => item.MenuID !== tab.MenuID)
      let index = _tabs.findIndex(item => item.MenuID === activeId)
      this.setState({
        tabviews: _tabs
      }, () => {
        if (index > -1) {
          _tabs.splice(index + 1, 0, tab)
        } else {
          _tabs.push(tab)
        }
        this.setState({
          tabviews: _tabs,
          activeId: tab.MenuID
        })
      })
    } else if (type === 'plus') {
      if (tabviews.findIndex(item => item.MenuID === tab.MenuID) > -1) {
        let _tabs = tabviews.filter(item => item.MenuID !== tab.MenuID)
        this.setState({
src/tabviews/custom/components/card/cardItem/index.jsx
@@ -80,7 +80,7 @@
      if (['linkage_navigation', 'linkage', 'menu_board'].includes(window.GLOB.navBar)) {
        MKEmitter.emit('modifyTabs', newtab, 'replace')
      } else {
        MKEmitter.emit('modifyTabs', newtab, 'plus')
        MKEmitter.emit('modifyTabs', newtab, 'plus', true)
      }
    } else if (card.setting.click === 'link') {
      let src = card.setting.linkurl
src/tabviews/custom/components/card/table-card/index.jsx
@@ -333,7 +333,7 @@
      if (['linkage_navigation', 'linkage', 'menu_board'].includes(window.GLOB.navBar)) {
        MKEmitter.emit('modifyTabs', newtab, 'replace')
      } else {
        MKEmitter.emit('modifyTabs', newtab, 'plus')
        MKEmitter.emit('modifyTabs', newtab, 'plus', true)
      }
    } else if (card.setting.click === 'link') {
      let src = card.setting.linkurl
src/tabviews/custom/components/carousel/cardItem/index.jsx
@@ -63,7 +63,7 @@
      if (['linkage_navigation', 'linkage', 'menu_board'].includes(window.GLOB.navBar)) {
        MKEmitter.emit('modifyTabs', newtab, 'replace')
      } else {
        MKEmitter.emit('modifyTabs', newtab, 'plus')
        MKEmitter.emit('modifyTabs', newtab, 'plus', true)
      }
    } else if (card.setting.click === 'link') {
      let src = card.setting.linkurl
src/tabviews/custom/components/chart/antv-pie/index.jsx
@@ -969,7 +969,7 @@
          if (['linkage_navigation', 'linkage', 'menu_board'].includes(window.GLOB.navBar)) {
            MKEmitter.emit('modifyTabs', newtab, 'replace')
          } else {
            MKEmitter.emit('modifyTabs', newtab, 'plus')
            MKEmitter.emit('modifyTabs', newtab, 'plus', true)
          }
        } catch (e) {
          console.warn('菜单打开失败!')
src/tabviews/custom/components/form/normal-form/index.jsx
@@ -251,7 +251,7 @@
      if (['linkage_navigation', 'linkage', 'menu_board'].includes(window.GLOB.navBar)) {
        MKEmitter.emit('modifyTabs', newtab, 'replace')
      } else {
        MKEmitter.emit('modifyTabs', newtab, 'plus')
        MKEmitter.emit('modifyTabs', newtab, 'plus', true)
      }
    }
  }
src/tabviews/custom/components/form/tab-form/index.jsx
@@ -222,7 +222,7 @@
      if (['linkage_navigation', 'linkage', 'menu_board'].includes(window.GLOB.navBar)) {
        MKEmitter.emit('modifyTabs', newtab, 'replace')
      } else {
        MKEmitter.emit('modifyTabs', newtab, 'plus')
        MKEmitter.emit('modifyTabs', newtab, 'plus', true)
      }
    }
  }
src/tabviews/custom/components/share/normalTable/index.jsx
@@ -585,7 +585,7 @@
      if (['linkage_navigation', 'linkage', 'menu_board'].includes(window.GLOB.navBar)) {
        MKEmitter.emit('modifyTabs', tabmenu, 'replace')
      } else {
        MKEmitter.emit('modifyTabs', tabmenu, 'plus')
        MKEmitter.emit('modifyTabs', tabmenu, 'plus', true)
      }
    } else if (item.linkurl) {
      let src = item.linkurl
src/tabviews/zshare/actionList/normalbutton/index.jsx
@@ -1409,7 +1409,7 @@
      if (['linkage_navigation', 'linkage', 'menu_board'].includes(window.GLOB.navBar)) {
        MKEmitter.emit('modifyTabs', newtab, 'replace')
      } else {
        MKEmitter.emit('modifyTabs', newtab, 'plus')
        MKEmitter.emit('modifyTabs', newtab, 'plus', true)
      }
    }
  }
src/tabviews/zshare/actionList/tabbutton/index.jsx
@@ -155,7 +155,7 @@
    if (['linkage_navigation', 'linkage', 'menu_board'].includes(window.GLOB.navBar)) {
      MKEmitter.emit('modifyTabs', newtab, 'replace')
    } else {
      MKEmitter.emit('modifyTabs', newtab, 'plus')
      MKEmitter.emit('modifyTabs', newtab, 'plus', true)
    }
    MKEmitter.emit('openNewTab')
src/tabviews/zshare/normalTable/index.jsx
@@ -272,7 +272,7 @@
      if (['linkage_navigation', 'linkage', 'menu_board'].includes(window.GLOB.navBar)) {
        MKEmitter.emit('modifyTabs', tabmenu, 'replace')
      } else {
        MKEmitter.emit('modifyTabs', tabmenu, 'plus')
        MKEmitter.emit('modifyTabs', tabmenu, 'plus', true)
      }
    } else if (item.linkurl) {
      let src = item.linkurl
src/templates/sharecomponent/actioncomponent/actionform/index.jsx
@@ -331,30 +331,16 @@
      }, () => {
        this.props.form.setFieldsValue(_fieldval)
      })
    // } else if (key === 'tabType') {
    //   let _tabs = this.props.tabs.filter(tab => tab.type === value)
    //   let _fieldval = {}
    //   this.setState({
    //     formlist: this.state.formlist.map(item => {
    //       if (item.key === 'linkTab') {
    //         item.options = [
    //           {
    //             value: '',
    //             text: '新建'
    //           },
    //           ..._tabs
    //         ]
    //       }
    //       return item
    //     })
    //   }, () => {
    //     this.props.form.setFieldsValue(_fieldval)
    //   })
    } else if (key === 'funcType') {
      let _options = this.getOptions('funcbutton', this.state.interType, value, card.pageTemplate, card.tabTemplate, procMode, Ot)
      let _fieldval = {}
      if (value === 'print') {
        _fieldval.label = '打印'
      } else if (value === 'closetab') {
        _fieldval.label = '关闭'
      }
      this.setState({
        funcType: value,
        formlist: this.state.formlist.map(item => {
src/templates/sharecomponent/fieldscomponent/index.jsx
@@ -110,9 +110,11 @@
          if (cell.selected && cell.type === item.type) { // 数据未修改
            items.push(item)
          } else if (cell.selected) { // 数据类型修改
            item.initval = ''
            if (cell.type === 'select') {
              item.match = '='
            } else if (cell.type === 'daterange') {
              item.initval = '[30, 0]'
              item.match = 'between'
            } else {
              cell.type = 'text'
@@ -120,7 +122,6 @@
            }
            
            item.type = cell.type
            item.initval = ''
            items.push(item)
          }
          columnsMap.delete(item.field.toLowerCase())