king
2024-09-13 9f972ec2a0889a876546c76eab95300423f600cc
Merge branch 'develop'
11个文件已修改
82 ■■■■ 已修改文件
src/tabviews/custom/components/share/tabtransfer/index.jsx 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/index.jsx 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/utils-datamanage.js 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/design/sidemenu/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/design/sidemenu/index.scss 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/menudesign/index.jsx 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mobdesign/index.jsx 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/pcdesign/index.jsx 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/rolemanage/index.jsx 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/rolemanage/index.scss 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/tabledesign/index.jsx 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/share/tabtransfer/index.jsx
@@ -140,7 +140,11 @@
    let param = getStructuredParams(params, config, BID)
    if (config.$cache && config.$time) {
      Api.getLCacheConfig(params[0].uuid || params[0].id, config.$time, BID).then(res => {
      let uuid = params[0].uuid || ''
      if (params[0].id) {
        uuid = window.GLOB.CacheData.get('first_' + params[0].id) || ''
      }
      Api.getLCacheConfig(uuid, config.$time, BID).then(res => {
        if (!res.valid) {
          this.getMainData(param, params, config.uuid)
        }
src/tabviews/custom/index.jsx
@@ -1383,7 +1383,11 @@
    this.setState({loading: true, loadingview: false})
    if (config.$cache && config.$time) {
      Api.getLCacheConfig(params[0].uuid || params[0].id, config.$time, BID).then(res => {
      let uuid = params[0].uuid || ''
      if (params[0].id) {
        uuid = window.GLOB.CacheData.get('first_' + params[0].id) || ''
      }
      Api.getLCacheConfig(uuid, config.$time, BID).then(res => {
        if (!res.valid) {
          this.getMainData(param, params, config.MenuID)
        } else {
src/utils/utils-datamanage.js
@@ -635,6 +635,11 @@
  const { columns, setting, dataName, format, uuid } = component
  if (window.backend && window.GLOB.CacheData.has('sql_' + uuid)) {
    if (first) {
      let item = window.GLOB.CacheData.get('sql_' + uuid)
      window.GLOB.CacheData.set('first_' + item.id, uuid)
    }
    return getBackendQueryParam(setting, searchlist, setting.order, 1, 1000, '', BID, '', dataName)
  }
@@ -713,7 +718,7 @@
  if (window.backend && params[0].exps) {
    let param = {
      $backend: true,
      $type: 's_Get_TableData',
      $type: 's_Get_structured_data',
      data: params.map(item => {
        let cell = {...item}
src/views/design/sidemenu/index.jsx
@@ -326,7 +326,7 @@
                {item.children.map(cell => {
                  return (
                    <Menu.Item key={cell.MenuID}>
                      <span className={'editable-menu-item ' + (cell.up_action ? 'unupdate' : '')} onDoubleClick={() => this.editmenu(cell)}>{cell.PageParam && cell.PageParam.interfaces === 'true' ? <ApiOutlined title="菜单中使用了外部接口" /> : null}{cell.PageParam && cell.PageParam.msg === 'true' ? <SoundOutlined title="菜单中发送了消息" /> : null}{cell.MenuName}</span>
                      <span className={'editable-menu-item ' + (cell.up_action ? 'unupdate' : '') + (window.backend && window.GLOB.systemType !== 'production' && cell.PageParam.backend !== 'level1' ? ' unbackend' : '')} onDoubleClick={() => this.editmenu(cell)}>{cell.PageParam.interfaces === 'true' ? <ApiOutlined title="菜单中使用了外部接口" /> : null}{cell.PageParam.msg === 'true' ? <SoundOutlined title="菜单中发送了消息" /> : null}{cell.MenuName}</span>
                    </Menu.Item>
                  )
                })}
src/views/design/sidemenu/index.scss
@@ -37,6 +37,17 @@
    .editable-menu-item.unupdate {
      color: orange;
    }
    .editable-menu-item.unbackend::before {
      content: '';
      display: block;
      position: absolute;
      width: 4px;
      height: 4px;
      background-color: orange;
      border-radius: 4px;
      top: 10px;
      left: 42px;
    }
  }
  .ant-menu-sub.ant-menu-inline {
    position: relative;
src/views/menudesign/index.jsx
@@ -780,7 +780,7 @@
    } else if (this.checklog()) {
      if (sessionStorage.getItem('langList') && !config.trans) {
      } else if (window.backend && config.enabled && !config.allSqls) {
      } else if (config.enabled && !config.allSqls) {
      } else {
        notification.success({
@@ -809,7 +809,7 @@
      }
      let long_data = ''
      if (window.backend && config.enabled) {
      if (config.enabled) {
        let sqls = getAllSqls(config)
        let _t = moment().format('YYYYMMDDHHmmss')
        let getguid = () => {
@@ -913,7 +913,7 @@
        EasyCode: config.easyCode || '',
        Template: 'CustomPage',
        MenuName: config.MenuName || '',
        PageParam: JSON.stringify({Template: 'CustomPage', OpenType: config.OpenType || 'newtab', hidden: config.hidden || 'false', menuColor: config.menuColor || '', interfaces, msg, urlFields}),
        PageParam: JSON.stringify({Template: 'CustomPage', OpenType: config.OpenType || 'newtab', hidden: config.hidden || 'false', menuColor: config.menuColor || '', interfaces, msg, backend: 'level1', urlFields}),
        open_edition: config.open_edition,
        long_data: long_data,
        debug_md5: key,
src/views/mobdesign/index.jsx
@@ -1455,7 +1455,7 @@
    } else if (this.checklog()) {
      if ((sessionStorage.getItem('applangList') && !config.trans) || (adapters.includes('wxmini') && !config.hasOwnProperty('miniStyle'))) {
      } else if (window.backend && config.enabled && !config.allSqls) {
      } else if (config.enabled && !config.allSqls) {
        
      } else {
        notification.success({
@@ -1484,7 +1484,7 @@
      }
      let long_data = ''
      if (window.backend && config.enabled) {
      if (config.enabled) {
        let sqls = getAllSqls(config)
        let _t = moment().format('YYYYMMDDHHmmss')
        let getguid = () => {
@@ -1639,7 +1639,7 @@
        TypeCharOne: sessionStorage.getItem('kei_no'),
        Typename: sessionStorage.getItem('typename'),
        MenuName: config.MenuName || '',
        PageParam: JSON.stringify({Template: 'webPage', interfaces, msg}),
        PageParam: JSON.stringify({Template: 'webPage', interfaces, msg, backend: 'level1'}),
        open_edition: config.open_edition,
        menus_rolelist: window.btoa(window.encodeURIComponent(JSON.stringify(roleParam))),
        long_data: long_data,
@@ -1713,7 +1713,7 @@
              TypeCharOne: sessionStorage.getItem('kei_no'),
              Typename: sessionStorage.getItem('typename'),
              MenuName: NavBar.name || '',
              PageParam: JSON.stringify({Template: NavBar.type}),
              PageParam: JSON.stringify({Template: NavBar.type, backend: 'level1'}),
              open_edition: _item ? (_item.open_edition || '') : '',
              menus_rolelist: window.btoa(window.encodeURIComponent(JSON.stringify(roles))),
              // LText: '',
src/views/pcdesign/index.jsx
@@ -1181,7 +1181,7 @@
    } else if (this.checklog()) {
      if (sessionStorage.getItem('applangList') && !config.trans) {
      } else if (window.backend && config.enabled && !config.allSqls) {
      } else if (config.enabled && !config.allSqls) {
        
      } else {
        notification.success({
@@ -1210,7 +1210,7 @@
      }
      let long_data = ''
      if (window.backend && config.enabled) {
      if (config.enabled) {
        let sqls = getAllSqls(config)
        let _t = moment().format('YYYYMMDDHHmmss')
        let getguid = () => {
@@ -1320,7 +1320,7 @@
        TypeCharOne: sessionStorage.getItem('kei_no'),
        Typename: 'pc',
        MenuName: config.MenuName || '',
        PageParam: JSON.stringify({Template: 'webPage', interfaces, msg}),
        PageParam: JSON.stringify({Template: 'webPage', interfaces, msg, backend: 'level1'}),
        menus_rolelist: window.btoa(window.encodeURIComponent(JSON.stringify(roleParam))),
        open_edition: config.open_edition,
        long_data: long_data,
@@ -1411,7 +1411,7 @@
              TypeCharOne: sessionStorage.getItem('kei_no'),
              Typename: 'pc',
              MenuName: NavBar.name || '',
              PageParam: JSON.stringify({Template: NavBar.type}),
              PageParam: JSON.stringify({Template: NavBar.type, backend: 'level1'}),
              menus_rolelist: window.btoa(window.encodeURIComponent(JSON.stringify(roles))),
              open_edition: NavBar.open_edition,
              // LText: '',
src/views/rolemanage/index.jsx
@@ -26,12 +26,13 @@
    columns: [
      {
        title: '菜单名称', dataIndex: 'MenuName', key: 'MenuName', align: 'center', render: (text, record) => {
          let className = window.backend && record.backend !== 'level1' ? 'unbackend' : ''
          if (record.extra || this.state.appKeys.includes(record.MenuID)) {
            return <span style={{color: '#1890ff'}}>{text}</span>
            return <span className={className} style={{color: '#1890ff'}}>{text}</span>
          } else if (record.interfaces === 'true' || record.msg === 'true') {
            return <span>{record.interfaces === 'true' ? <ApiOutlined style={{color: 'orange', marginRight: '5px'}} title="菜单中使用了外部接口" /> : null}{record.msg === 'true' ? <SoundOutlined style={{color: 'orange', marginRight: '5px'}} title="菜单中发送了消息" /> : null}{text}</span>
            return <span className={className}>{record.interfaces === 'true' ? <ApiOutlined style={{color: 'orange', marginRight: '5px'}} title="菜单中使用了外部接口" /> : null}{record.msg === 'true' ? <SoundOutlined style={{color: 'orange', marginRight: '5px'}} title="菜单中发送了消息" /> : null}{text}</span>
          }
          return text
          return <span className={className}>{text}</span>
        }
      },
      {
@@ -158,6 +159,7 @@
              item.nodes = pageParam
              item.interfaces = pageParam.interfaces || 'false'
              item.msg = pageParam.msg || 'false'
              item.backend = pageParam.backend || ''
              
              if (pageParam.type) {
                item.type = pageParam.type
src/views/rolemanage/index.scss
@@ -87,4 +87,18 @@
      margin-right: 0px;
    }
  }
  .unbackend {
    position: relative;
  }
  .unbackend::before {
    content: '';
    display: block;
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: orange;
    border-radius: 4px;
    top: 0px;
    left: -5px;
  }
}
src/views/tabledesign/index.jsx
@@ -540,7 +540,7 @@
    } else if (this.checklog()) {
      if (sessionStorage.getItem('langList') && !config.trans) {
      } else if (window.backend && config.enabled && !config.allSqls) {
      } else if (config.enabled && !config.allSqls) {
      } else {
        notification.success({
@@ -569,7 +569,7 @@
      }
      let long_data = ''
      if (window.backend && config.enabled) {
      if (config.enabled) {
        let sqls = getAllSqls(config)
        let _t = moment().format('YYYYMMDDHHmmss')
        let getguid = () => {
@@ -661,7 +661,7 @@
        EasyCode: config.easyCode || '',
        Template: 'BaseTable',
        MenuName: config.MenuName || '',
        PageParam: JSON.stringify({Template: 'BaseTable', OpenType: config.OpenType || 'newtab', hidden: config.hidden || 'false', menuColor: config.menuColor || '', interfaces, msg, urlFields}),
        PageParam: JSON.stringify({Template: 'BaseTable', OpenType: config.OpenType || 'newtab', hidden: config.hidden || 'false', menuColor: config.menuColor || '', interfaces, msg, backend: 'level1', urlFields}),
        open_edition: config.open_edition,
        long_data: long_data,
        debug_md5: key,