king
2024-10-22 440ffb3b40bc6250f5153fc22596d572b90b0a70
Merge branch 'master' into positec
16个文件已修改
151 ■■■■■ 已修改文件
src/api/index.js 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/share/actioncomponent/actionform/index.jsx 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/share/actioncomponent/formconfig.jsx 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/card/prop-card/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/carousel/prop-card/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/code/sand-box/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/editor/braft-editor/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/form/simple-form/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/form/step-form/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/form/tab-form/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/iframe/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/normalbutton/index.jsx 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/menudesign/index.jsx 30 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mobdesign/index.jsx 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/pcdesign/index.jsx 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/tabledesign/index.jsx 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/index.js
@@ -1071,9 +1071,14 @@
              window.mkInfo(n)
            })
          }
          if (!res.status) {
          if (res.ErrCode === 'version_error') {
            res.ErrCode = '-2'
            MKEmitter.emit('reloadTabs')
            } else if (res.message === 'permission deny') {
              res.message = window.GLOB.dict['permission_deny'] || '无当前菜单或按钮的访问权限,请联系管理员!'
              res.ErrMesg = window.GLOB.dict['permission_deny'] || '无当前菜单或按钮的访问权限,请联系管理员!'
            }
          }
          resolve(res)
        })
src/menu/components/share/actioncomponent/actionform/index.jsx
@@ -15,9 +15,9 @@
const CodeMirror = asyncComponent(() => import('@/templates/zshare/codemirror'))
const MKTable = asyncComponent(() => import('@/components/normalform/modalform/mkTable'))
const acTyOptions = {
  pop: ['label', 'OpenType', 'intertype', 'Ot', 'show', 'hover', 'swipe', 'icon', 'class', 'color', 'execSuccess', 'execError', 'syncComponent', 'switchTab', 'anchors', 'width', 'openmenu', 'refreshTab', 'position', 'hoverTitle', 'hidden', 'preButton', 'excache'],
  prompt: ['label', 'OpenType', 'intertype', 'Ot', 'show', 'hover', 'swipe', 'icon', 'class', 'color', 'execSuccess', 'execError', 'syncComponent', 'switchTab', 'anchors', 'width', 'openmenu', 'refreshTab', 'position', 'tipTitle', 'hoverTitle', 'hidden', 'preButton', 'excache'],
  exec: ['label', 'OpenType', 'intertype', 'Ot', 'show', 'hover', 'swipe', 'icon', 'class', 'color', 'execSuccess', 'execError', 'syncComponent', 'switchTab', 'anchors', 'width', 'openmenu', 'refreshTab', 'hoverTitle', 'hidden', 'preButton', 'excache'],
  pop: ['label', 'OpenType', 'intertype', 'Ot', 'show', 'hover', 'swipe', 'icon', 'class', 'color', 'execSuccess', 'execError', 'syncComponent', 'switchTab', 'anchors', 'width', 'openmenu', 'refreshTab', 'position', 'hoverTitle', 'hidden', 'preButton'],
  prompt: ['label', 'OpenType', 'intertype', 'Ot', 'show', 'hover', 'swipe', 'icon', 'class', 'color', 'execSuccess', 'execError', 'syncComponent', 'switchTab', 'anchors', 'width', 'openmenu', 'refreshTab', 'position', 'tipTitle', 'hoverTitle', 'hidden', 'preButton'],
  exec: ['label', 'OpenType', 'intertype', 'Ot', 'show', 'hover', 'swipe', 'icon', 'class', 'color', 'execSuccess', 'execError', 'syncComponent', 'switchTab', 'anchors', 'width', 'openmenu', 'refreshTab', 'hoverTitle', 'hidden', 'preButton'],
  excelIn: ['label', 'Ot', 'OpenType', 'intertype', 'show', 'hover', 'icon', 'class', 'color', 'sheet', 'execSuccess', 'execError', 'syncComponent', 'switchTab', 'width', 'hidden', 'refreshTab'],
  excelOut: ['label', 'Ot', 'OpenType', 'intertype', 'show', 'hover', 'icon', 'class', 'color', 'execSuccess', 'execError', 'syncComponent', 'switchTab', 'pagination', 'search', 'width', 'hidden', 'refreshTab'],
  popview: ['label', 'Ot', 'OpenType', 'show', 'hover', 'icon', 'class', 'color', 'popClose', 'width', 'display', 'ratio', 'syncComponent', 'clickouter', 'maskStyle', 'closeButton', 'hidden'],
src/menu/components/share/actioncomponent/formconfig.jsx
@@ -1465,18 +1465,6 @@
      forbid: viewType === 'popview'
    },
    {
      type: 'radio',
      key: 'excache',
      label: '清除缓存',
      initVal: card.excache || 'false',
      tooltip: '在使用后端脚本时,是否清除后端缓存,注:需在操作用户或权限时开启。',
      required: false,
      options: [
        {value: 'true', text: '开启'},
        {value: 'false', text: '关闭'},
      ]
    },
    {
      type: 'splitLine',
      key: 'title',
      label: '表单',
@@ -2735,18 +2723,6 @@
        {value: 'false', text: '禁用'},
      ],
      forbid: viewType === 'popview'
    },
    {
      type: 'radio',
      key: 'excache',
      label: '清除缓存',
      initVal: card.excache || 'false',
      tooltip: '在使用后端脚本时,是否清除后端缓存,注:需在操作用户或权限时开启。',
      required: false,
      options: [
        {value: 'true', text: '开启'},
        {value: 'false', text: '关闭'},
      ]
    },
    {
      type: 'radio',
src/tabviews/custom/components/card/prop-card/index.jsx
@@ -49,7 +49,7 @@
    }
    if (_config.wrap.datatype === 'dynamic') {
      _config.setting.onload = _config.setting.sync === 'true' ? 'false' : 'true'
      _config.setting.onload = _config.setting.sync === 'true' ? 'false' : _config.setting.onload || 'true'
      if (_config.setting.supModule && !BID) {
        _config.setting.onload = 'false'
src/tabviews/custom/components/carousel/prop-card/index.jsx
@@ -49,7 +49,7 @@
    }
    
    if (_config.wrap.datatype === 'dynamic') {
      _config.setting.onload = _config.setting.sync === 'true' ? 'false' : 'true'
      _config.setting.onload = _config.setting.sync === 'true' ? 'false' : _config.setting.onload || 'true'
      if (_config.setting.supModule && !BID) {
        _config.setting.onload = 'false'
src/tabviews/custom/components/code/sand-box/index.jsx
@@ -42,7 +42,7 @@
    }
    
    if (_config.wrap.datatype !== 'static') {
      _config.setting.onload = _config.setting.sync === 'true' ? 'false' : 'true'
      _config.setting.onload = _config.setting.sync === 'true' ? 'false' : _config.setting.onload || 'true'
      if (_config.setting.supModule && !BID) {
        _config.setting.onload = 'false'
src/tabviews/custom/components/editor/braft-editor/index.jsx
@@ -43,7 +43,7 @@
    }
    
    if (_config.wrap.datatype === 'dynamic') {
      _config.setting.onload = _config.setting.sync === 'true' ? 'false' : 'true'
      _config.setting.onload = _config.setting.sync === 'true' ? 'false' : _config.setting.onload || 'true'
      if (_config.setting.supModule && !BID) {
        _config.setting.onload = 'false'
src/tabviews/custom/components/form/simple-form/index.jsx
@@ -46,7 +46,7 @@
    }
    if (_config.wrap.datatype === 'dynamic') {
      _config.setting.onload = _config.setting.sync === 'true' ? 'false' : 'true'
      _config.setting.onload = _config.setting.sync === 'true' ? 'false' : _config.setting.onload || 'true'
      if (_config.setting.supModule && !BID) {
        _config.setting.onload = 'false'
src/tabviews/custom/components/form/step-form/index.jsx
@@ -46,7 +46,7 @@
    }
    if (_config.wrap.datatype === 'dynamic') {
      _config.setting.onload = _config.setting.sync === 'true' ? 'false' : 'true'
      _config.setting.onload = _config.setting.sync === 'true' ? 'false' : _config.setting.onload || 'true'
      if (_config.setting.supModule && !BID) {
        _config.setting.onload = 'false'
src/tabviews/custom/components/form/tab-form/index.jsx
@@ -45,7 +45,7 @@
    }
    if (_config.wrap.datatype === 'dynamic') {
      _config.setting.onload = _config.setting.sync === 'true' ? 'false' : 'true'
      _config.setting.onload = _config.setting.sync === 'true' ? 'false' : _config.setting.onload || 'true'
      if (_config.setting.supModule && !BID) {
        _config.setting.onload = 'false'
src/tabviews/custom/components/iframe/index.jsx
@@ -43,7 +43,7 @@
    }
    
    if (_config.wrap.datatype === 'dynamic') {
      _config.setting.onload = _config.setting.sync === 'true' ? 'false' : 'true'
      _config.setting.onload = _config.setting.sync === 'true' ? 'false' : _config.setting.onload || 'true'
      if (_config.setting.supModule && !BID) {
        _config.setting.onload = 'false'
src/tabviews/zshare/actionList/normalbutton/index.jsx
@@ -2938,7 +2938,7 @@
      tabId = btn.refreshTab[btn.refreshTab.length - 1]
    }
    if (btn.excache === 'true') {
    if (window.backend && btn.outerFunc && ['bd_workers_create_user_sso', 's_susers_del', 's_susers_add', 's_susers_update', 's_susers_start', 's_susers_admin'].includes(btn.outerFunc)) {
      this.clearBackSqlCache()
    }
@@ -3053,8 +3053,6 @@
  }
  clearBackSqlCache = () => {
    if (!window.backend) return
    Api.cacheInterface({}).then(res => {
      if (!res.status) {
        notification.warning({
src/views/menudesign/index.jsx
@@ -808,6 +808,10 @@
        delete config.force
      }
      if (config.MenuID === 'home_page_id' || MenuType === 'billPrint') {
        config.permission = 'false'
      }
      let long_data = ''
      if (config.enabled) {
        let sqls = getAllSqls(config)
@@ -822,20 +826,20 @@
        }
        long_data = []
        let oriIds = {}
        if (config.allSqls) {
          config.allSqls.forEach(item => {
            if (!item.md5) return
            oriIds[item.uuid + item.md5] = item.v_id
          })
        }
        // let oriIds = {}
        // if (config.allSqls) {
        //   config.allSqls.forEach(item => {
        //     if (!item.md5) return
        //     oriIds[item.uuid + item.md5] = item.v_id
        //   })
        // }
        
        config.allSqls = sqls.map(item => {
          let v_id = _t + getguid()
          if (oriIds[item.uuid + item.md5]) {
            v_id = oriIds[item.uuid + item.md5]
          }
          // if (oriIds[item.uuid + item.md5]) {
          //   v_id = oriIds[item.uuid + item.md5]
          // }
          long_data.push(`${md5(window.GLOB.appkey + v_id)},${item.uuid},${v_id},${window.btoa(window.encodeURIComponent(item.LText))},${config.permission === 'false' ? '' : item.roleId || ''}`)
          
@@ -844,7 +848,7 @@
            v_id: v_id,
            type: item.type,
            reps: item.reps,
            md5: item.md5 || '',
            // md5: item.md5 || '',
            luser: item.luser === true
          }
        })
@@ -856,10 +860,6 @@
      if (config.cacheUseful !== 'true') {
        config.components = this.resetSyncQuery(config.components)
      }
      if (config.MenuID === 'home_page_id') {
        config.permission = 'false'
      }
      let tbs = []
src/views/mobdesign/index.jsx
@@ -1497,20 +1497,20 @@
        }
        long_data = []
        let oriIds = {}
        if (config.allSqls) {
          config.allSqls.forEach(item => {
            if (!item.md5) return
            oriIds[item.uuid + item.md5] = item.v_id
          })
        }
        // let oriIds = {}
        // if (config.allSqls) {
        //   config.allSqls.forEach(item => {
        //     if (!item.md5) return
        //     oriIds[item.uuid + item.md5] = item.v_id
        //   })
        // }
        
        config.allSqls = sqls.map(item => {
          let v_id = _t + getguid()
          if (oriIds[item.uuid + item.md5]) {
            v_id = oriIds[item.uuid + item.md5]
          }
          // if (oriIds[item.uuid + item.md5]) {
          //   v_id = oriIds[item.uuid + item.md5]
          // }
          
          long_data.push(`${md5(window.GLOB.appkey + v_id)},${item.uuid},${v_id},${window.btoa(window.encodeURIComponent(item.LText))},${item.roleId || ''}`)
          
@@ -1519,7 +1519,7 @@
            v_id: v_id,
            type: item.type,
            reps: item.reps,
            md5: item.md5 || '',
            // md5: item.md5 || '',
            luser: item.luser === true
          }
        })
src/views/pcdesign/index.jsx
@@ -1223,20 +1223,20 @@
        }
        long_data = []
        let oriIds = {}
        if (config.allSqls) {
          config.allSqls.forEach(item => {
            if (!item.md5) return
            oriIds[item.uuid + item.md5] = item.v_id
          })
        }
        // let oriIds = {}
        // if (config.allSqls) {
        //   config.allSqls.forEach(item => {
        //     if (!item.md5) return
        //     oriIds[item.uuid + item.md5] = item.v_id
        //   })
        // }
        
        config.allSqls = sqls.map(item => {
          let v_id = _t + getguid()
          if (oriIds[item.uuid + item.md5]) {
            v_id = oriIds[item.uuid + item.md5]
          }
          // if (oriIds[item.uuid + item.md5]) {
          //   v_id = oriIds[item.uuid + item.md5]
          // }
          
          long_data.push(`${md5(window.GLOB.appkey + v_id)},${item.uuid},${v_id},${window.btoa(window.encodeURIComponent(item.LText))},${item.roleId || ''}`)
          
@@ -1245,7 +1245,7 @@
            v_id: v_id,
            type: item.type,
            reps: item.reps,
            md5: item.md5 || '',
            // md5: item.md5 || '',
            luser: item.luser === true
          }
        })
src/views/tabledesign/index.jsx
@@ -582,20 +582,20 @@
        }
        long_data = []
        let oriIds = {}
        if (config.allSqls) {
          config.allSqls.forEach(item => {
            if (!item.md5) return
            oriIds[item.uuid + item.md5] = item.v_id
          })
        }
        // let oriIds = {}
        // if (config.allSqls) {
        //   config.allSqls.forEach(item => {
        //     if (!item.md5) return
        //     oriIds[item.uuid + item.md5] = item.v_id
        //   })
        // }
        
        config.allSqls = sqls.map(item => {
          let v_id = _t + getguid()
          if (oriIds[item.uuid + item.md5]) {
            v_id = oriIds[item.uuid + item.md5]
          }
          // if (oriIds[item.uuid + item.md5]) {
          //   v_id = oriIds[item.uuid + item.md5]
          // }
          
          long_data.push(`${md5(window.GLOB.appkey + v_id)},${item.uuid},${v_id},${window.btoa(window.encodeURIComponent(item.LText))},${item.roleId || ''}`)
          
@@ -604,7 +604,7 @@
            v_id: v_id,
            type: item.type,
            reps: item.reps,
            md5: item.md5 || '',
            // md5: item.md5 || '',
            luser: item.luser === true
          }
        })