king
2024-07-03 8d065b358a4b1b6df704d62c28eefc80d8bc3826
2024-07-03
7个文件已修改
126 ■■■■ 已修改文件
src/mob/mobshell/index.jsx 44 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pc/menushell/index.jsx 44 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/card/data-card/index.jsx 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/card/double-data-card/index.jsx 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/table/base-table/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/table/edit-table/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/table/normal-table/index.jsx 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/mob/mobshell/index.jsx
@@ -217,12 +217,48 @@
        _cards.push(Navbar)
      }
      if (style) {
        handleList({...menu, style, components: _cards})
      if (item.component === 'navbar') {
        let appMenus = sessionStorage.getItem('appViewList')
        if (appMenus) {
          try {
            appMenus = JSON.parse(appMenus)
            appMenus = appMenus.filter(item => item.keys_type === 'navbar')
          } catch (e) {
            appMenus = []
          }
        } else {
          appMenus = []
        }
        if (appMenus.length) {
          confirm({
            title: '如需使用当前应用中已有的菜单栏,请点击右侧关联菜单栏,如需新增请点确定。',
            onOk() {
              if (style) {
                handleList({...menu, style, components: _cards})
              } else {
                handleList({...menu, components: _cards})
              }
              setCards(_cards)
            },
            onCancel() {}
          })
        } else {
          if (style) {
            handleList({...menu, style, components: _cards})
          } else {
            handleList({...menu, components: _cards})
          }
          setCards(_cards)
        }
      } else {
        handleList({...menu, components: _cards})
        if (style) {
          handleList({...menu, style, components: _cards})
        } else {
          handleList({...menu, components: _cards})
        }
        setCards(_cards)
      }
      setCards(_cards)
    }
  })
src/pc/menushell/index.jsx
@@ -169,12 +169,48 @@
      const { index: overIndex } = findCard(`${targetId}`)
      const _cards = update(cards, { $splice: [[overIndex + 1, 0, newcard]] })
      if (style) {
        handleList({...menu, style, components: _cards})
      if (item.component === 'navbar') {
        let appMenus = sessionStorage.getItem('appViewList')
        if (appMenus) {
          try {
            appMenus = JSON.parse(appMenus)
            appMenus = appMenus.filter(item => item.keys_type === 'navbar')
          } catch (e) {
            appMenus = []
          }
        } else {
          appMenus = []
        }
        if (appMenus.length) {
          confirm({
            title: '如需使用当前应用中已有的菜单栏,请点击右侧关联菜单栏,如需新增请点确定。',
            onOk() {
              if (style) {
                handleList({...menu, style, components: _cards})
              } else {
                handleList({...menu, components: _cards})
              }
              setCards(_cards)
            },
            onCancel() {}
          })
        } else {
          if (style) {
            handleList({...menu, style, components: _cards})
          } else {
            handleList({...menu, components: _cards})
          }
          setCards(_cards)
        }
      } else {
        handleList({...menu, components: _cards})
        if (style) {
          handleList({...menu, style, components: _cards})
        } else {
          handleList({...menu, components: _cards})
        }
        setCards(_cards)
      }
      setCards(_cards)
    }
  })
src/tabviews/custom/components/card/data-card/index.jsx
@@ -439,13 +439,9 @@
          }, i * 10)
        })
      } else {
        if (position === 'line' || position === 'line_grid') {
          if (lines && lines.length === 1) {
            this.loadLinedata(lines[0].$$uuid, position)
          } else {
            this.loadData(id)
          }
        } else if (!btn || btn.resetPageIndex !== 'false') {
        if ((position === 'line' || position === 'line_grid') && lines && lines.length === 1 && !config.forbidLine) {
          this.loadLinedata(lines[0].$$uuid, position)
        } else if (btn.resetPageIndex !== 'false') {
          this.setState({
            pageIndex: 1
          }, () => {
@@ -459,14 +455,20 @@
      let supModule = config.setting.supModule
      if (position === 'line' || position === 'line_grid') {
        if (lines && lines.length === 1) {
        if (lines && lines.length === 1 && !config.forbidLine) {
          this.loadLinedata(lines[0].$$uuid, position)
        } else if (btn.resetPageIndex !== 'false') {
          this.setState({
            pageIndex: 1
          }, () => {
            this.loadData(id)
          })
        } else {
          this.loadData(id)
        }
      } else if (['mainline', 'maingrid', 'popclose'].includes(position) && supModule) {
        MKEmitter.emit('reloadData', supModule, position === 'maingrid' ? '' : BID)
      } else if (!btn || btn.resetPageIndex !== 'false') {
      } else if (btn.resetPageIndex !== 'false') {
        this.setState({
          pageIndex: 1
        }, () => {
src/tabviews/custom/components/card/double-data-card/index.jsx
@@ -374,14 +374,20 @@
    let supModule = config.setting.supModule
    if (position === 'line' || position === 'line_grid') {
      if (lines && lines.length === 1) {
      if (lines && lines.length === 1 && !config.forbidLine) {
        this.loadLinedata(lines[0].$$parentId || lines[0].$$uuid, position)
      } else if (btn.resetPageIndex !== 'false') {
        this.setState({
          pageIndex: 1
        }, () => {
          this.loadData(id)
        })
      } else {
        this.loadData(id)
      }
    } else if (['mainline', 'maingrid', 'popclose'].includes(position) && supModule) {
      MKEmitter.emit('reloadData', supModule, position === 'maingrid' ? '' : BID)
    } else if (!btn || btn.resetPageIndex !== 'false') {
    } else if (btn.resetPageIndex !== 'false') {
      this.setState({
        pageIndex: 1
      }, () => {
src/tabviews/custom/components/table/base-table/index.jsx
@@ -568,7 +568,7 @@
    if (config.uuid !== menuId) return
    if (position === 'line' || position === 'line_grid') {
      if (lines && lines.length === 1) {
      if (lines && lines.length === 1 && !config.forbidLine) {
        this.loadLinedata(lines[0].$$uuid, position)
      } else {
        this.reloadtable(btn, id)
src/tabviews/custom/components/table/edit-table/index.jsx
@@ -749,7 +749,7 @@
    if (config.uuid !== menuId) return
    if (position === 'line' || position === 'line_grid') {
      if (lines && lines.length === 1) {
      if (lines && lines.length === 1 && !config.forbidLine) {
        this.loadLinedata(lines[0].$$uuid, position)
      } else {
        this.reloadtable(btn)
src/tabviews/custom/components/table/normal-table/index.jsx
@@ -960,7 +960,7 @@
        })
      } else {
        if (position === 'line' || position === 'line_grid') {
          if (lines && lines.length === 1) {
          if (lines && lines.length === 1 && !config.forbidLine) {
            this.loadLinedata(lines[0].$$uuid, position)
          } else {
            this.reloadtable(btn, id)
@@ -971,7 +971,7 @@
      }
    } else {
      if (position === 'line' || position === 'line_grid') {
        if (lines && lines.length === 1) {
        if (lines && lines.length === 1 && !config.forbidLine) {
          this.loadLinedata(lines[0].$$uuid, position)
        } else {
          this.reloadtable(btn, id)