king
2025-05-23 24842b40de5cd60700bf69dfd38a0332f5431e36
Merge branch 'master' into positec
24个文件已修改
115 ■■■■ 已修改文件
src/api/index.js 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/imgScale/index.scss 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/card/prop-card/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/datasource/verifycard/settingform/index.jsx 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/card/data-card/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/card/double-data-card/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/card/prop-card/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/chart/antv-X6/index.jsx 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/chart/antv-X6/index.scss 3 ●●●●● 补丁 | 查看 | 原始文档 | 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/edit-table/normalTable/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/table/normal-table/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/excelInbutton/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/exceloutbutton/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/funcMegvii/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/funczip/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/normalbutton/index.jsx 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/popupbutton/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/printbutton/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/tabbutton/index.jsx 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/utils-custom.js 25 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/login/index.scss 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/systemfunc/sidemenu/config.jsx 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/index.js
@@ -1125,8 +1125,9 @@
              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'] || '无当前菜单或按钮的访问权限,请联系管理员!'
              let isBtn = url.indexOf('s_TableData_InUpDe') > -1
              res.message = window.GLOB.dict['permission_deny'] || `无当前${isBtn ? '按钮' : '菜单'}的访问权限,请联系管理员!`
              res.ErrMesg = res.message
            }
          }
          resolve(res)
src/components/imgScale/index.scss
@@ -48,8 +48,8 @@
  overflow: hidden;
}
.mk-image-preview-img {
  max-width: 100%;
  max-height: 100%;
  max-width: 95%;
  max-height: 95%;
  vertical-align: middle;
  -webkit-transform: scale3d(1, 1, 1);
          transform: scale3d(1, 1, 1);
src/menu/components/card/prop-card/index.jsx
@@ -403,7 +403,7 @@
            <CopyComponent type="propcard" card={card}/>
            <PasteComponent options={['cardcell']} updateConfig={this.pasteComponent} />
            <FontColorsOutlined className="style" title="调整样式" onClick={this.changeStyle}/>
            {card.wrap.datatype === 'dynamic' ? <ClockComponent config={card} updateConfig={this.updateComponent}/> : <ClockCircleOutlined style={{color: '#eeeeee', cursor: 'not-allowed'}}/>}
            {card.wrap.datatype !== 'public' ? <ClockComponent config={card} updateConfig={this.updateComponent}/> : <ClockCircleOutlined style={{color: '#eeeeee', cursor: 'not-allowed'}}/>}
            <DeleteOutlined className="close" title="删除组件" onClick={() => this.props.deletecomponent(card.uuid)} />
            {card.wrap.datatype === 'dynamic' ? <SettingComponent config={card} updateConfig={this.updateComponent} /> : <SettingOutlined style={{color: '#eeeeee', cursor: 'not-allowed'}}/>}
          </div>
src/menu/datasource/verifycard/settingform/index.jsx
@@ -219,6 +219,7 @@
        sm: { span: 16 }
      }
    }
    let hasUp = !['balcony', 'menubar', 'commonbar', 'tabbar', 'invTable'].includes(config.subtype) && (!config.wrap || config.wrap.supType !== 'multi') && MenuType !== 'billPrint'
    return (
      <div className="model-datasource-setting-form-box">
@@ -474,7 +475,7 @@
                </Radio.Group>)}
              </Form.Item>
            </Col> : null}
            {!['balcony', 'menubar', 'commonbar', 'tabbar', 'invTable'].includes(config.subtype) && (!config.wrap || config.wrap.supType !== 'multi') && MenuType !== 'billPrint' ? <Col span={8}>
            {hasUp ? <Col span={8}>
              <Form.Item label={
                <Tooltip placement="topLeft" title={'该组件如果受其他组件控制,请选项相应的组件,没有时选“无”。'}>
                  <QuestionCircleOutlined className="mk-form-tip" />
@@ -737,6 +738,20 @@
                })(<InputNumber min={0} max={60000} precision={0} />)}
              </Form.Item>
            </Col> : null}
            {hasUp && setting.supModule && setting.supModule[0] && setting.supModule[0] !== 'empty' ? <Col span={8}>
              <Form.Item label={
                <Tooltip placement="topLeft" title="未获取到上级主键值的提示文本。">
                  <QuestionCircleOutlined className="mk-form-tip" />
                  上级空值提示
                </Tooltip>
              }>
                {getFieldDecorator('supModTip', {
                  initialValue: setting.supModTip || ''
                })(
                  <Input placeholder={''} autoComplete="off" />
                )}
              </Form.Item>
            </Col> : null}
          </Row>
        </Form>
        <Modal
src/tabviews/custom/components/card/data-card/index.jsx
@@ -1091,7 +1091,7 @@
    if (config.setting.supModule && !BID && config.wrap.supKey !== 'false') {
      notification.warning({
        top: 92,
        message: window.GLOB.dict['sup_key_req'] || '需要上级主键值!',
        message: config.setting.supModTip || window.GLOB.dict['sup_key_req'] || '需要上级主键值!',
        duration: 5
      })
      this.setState({
src/tabviews/custom/components/card/double-data-card/index.jsx
@@ -1002,7 +1002,7 @@
    if (config.setting.supModule && !BID && config.wrap.supKey !== 'false') {
      notification.warning({
        top: 92,
        message: window.GLOB.dict['sup_key_req'] || '需要上级主键值!',
        message: config.setting.supModTip || window.GLOB.dict['sup_key_req'] || '需要上级主键值!',
        duration: 5
      })
      this.setState({
src/tabviews/custom/components/card/prop-card/index.jsx
@@ -161,7 +161,7 @@
      MKEmitter.addListener('searchRefresh', this.searchRefresh)
    }
    if (config.timer && config.wrap.datatype === 'dynamic') {
    if (config.timer && config.wrap.datatype !== 'public') {
      this.timer = new TimerTask()
      this.timer.init(config.uuid, config.timer, config.timerRepeats, () => {this.loadData('timer')})
    }
src/tabviews/custom/components/chart/antv-X6/index.jsx
@@ -1563,12 +1563,16 @@
  setback = () => {
    if (this.mkGraph.canUndo()) {
      this.mkGraph.undo()
    } else {
      message.warning('无可撤销记录!')
    }
  }
  setprev = () => {
    if (this.mkGraph.canRedo()) {
      this.mkGraph.redo()
    } else {
      message.warning('无可前进记录!')
    }
  }
@@ -1746,7 +1750,10 @@
    let cells = this.mkGraph.getCells()
    const that = this
    if (cells.length === 0) return
    if (cells.length === 0) {
      message.warning('尚未添加元素!')
      return
    }
    confirm({
      title: '确定清空元素吗?',
src/tabviews/custom/components/chart/antv-X6/index.scss
@@ -94,6 +94,9 @@
      border-right: 1px solid #dfe3e8;
      transition: all 0.2s;
      .x6-port {
        display: none;
      }
      .x6-widget-stencil-title {
        display: none;
      }
src/tabviews/custom/components/table/base-table/index.jsx
@@ -436,7 +436,7 @@
    if (config.setting.supModule && !BID) {
      notification.warning({
        top: 92,
        message: window.GLOB.dict['sup_key_req'] || '需要上级主键值!',
        message: config.setting.supModTip || window.GLOB.dict['sup_key_req'] || '需要上级主键值!',
        duration: 5
      })
      this.setState({
src/tabviews/custom/components/table/edit-table/index.jsx
@@ -637,7 +637,7 @@
    if (setting.supModule && !BID) {
      notification.warning({
        top: 92,
        message: window.GLOB.dict['sup_key_req'] || '需要上级主键值!',
        message: setting.supModTip || window.GLOB.dict['sup_key_req'] || '需要上级主键值!',
        duration: 5
      })
      this.setState({
src/tabviews/custom/components/table/edit-table/normalTable/index.jsx
@@ -2508,7 +2508,7 @@
    if (setting.supModule && !BID) {
      notification.warning({
        top: 92,
        message: dict['sup_key_req'] || '需要上级主键值!',
        message: setting.supModTip || dict['sup_key_req'] || '需要上级主键值!',
        duration: 5
      })
src/tabviews/custom/components/table/normal-table/index.jsx
@@ -901,7 +901,7 @@
    if (setting.supModule && !BID && setting.supKey !== 'false') {
      notification.warning({
        top: 92,
        message: window.GLOB.dict['sup_key_req'] || '需要上级主键值!',
        message: setting.supModTip || window.GLOB.dict['sup_key_req'] || '需要上级主键值!',
        duration: 5
      })
      this.setState({
src/tabviews/zshare/actionList/excelInbutton/index.jsx
@@ -121,7 +121,7 @@
    if (setting.supModule && !BID) {
      notification.warning({
        top: 92,
        message: dict['sup_key_req'] || '需要上级主键值!',
        message: setting.supModTip || dict['sup_key_req'] || '需要上级主键值!',
        duration: 5
      })
    } else if (btn.Ot === 'requiredSgl' && data.length !== 1) {
src/tabviews/zshare/actionList/exceloutbutton/index.jsx
@@ -102,7 +102,7 @@
    if (setting.supModule && !BID) {
      notification.warning({
        top: 92,
        message: dict['sup_key_req'] || '需要上级主键值!',
        message: setting.supModTip || dict['sup_key_req'] || '需要上级主键值!',
        duration: 5
      })
    } else {
src/tabviews/zshare/actionList/funcMegvii/index.jsx
@@ -122,7 +122,7 @@
    if (setting.supModule && !BID) {
      notification.warning({
        top: 92,
        message: '需要上级主键值!',
        message: setting.supModTip || '需要上级主键值!',
        duration: 5
      })
    } else if (data.length === 0) {
src/tabviews/zshare/actionList/funczip/index.jsx
@@ -113,7 +113,7 @@
    if (setting.supModule && !BID) {
      notification.warning({
        top: 92,
        message: dict['sup_key_req'] || '需要上级主键值!',
        message: setting.supModTip || dict['sup_key_req'] || '需要上级主键值!',
        duration: 5
      })
      return
src/tabviews/zshare/actionList/normalbutton/index.jsx
@@ -413,7 +413,7 @@
    if (setting.supModule && !BID) {
      notification.warning({
        top: 92,
        message: dict['sup_key_req'] || '需要上级主键值!',
        message: setting.supModTip || dict['sup_key_req'] || '需要上级主键值!',
        duration: 5
      })
      return false
@@ -1533,7 +1533,7 @@
    if (setting.supModule && !BID) {
      notification.warning({
        top: 92,
        message: window.GLOB.dict['sup_key_req'] || '需要上级主键值!',
        message: setting.supModTip || window.GLOB.dict['sup_key_req'] || '需要上级主键值!',
        duration: 5
      })
      _resolve()
src/tabviews/zshare/actionList/popupbutton/index.jsx
@@ -155,7 +155,7 @@
    if (setting.supModule && !BID) {
      notification.warning({
        top: 92,
        message: dict['sup_key_req'] || '需要上级主键值!',
        message: setting.supModTip || dict['sup_key_req'] || '需要上级主键值!',
        duration: 5
      })
      return
src/tabviews/zshare/actionList/printbutton/index.jsx
@@ -143,7 +143,7 @@
    if (setting.supModule && !BID) {
      notification.warning({
        top: 92,
        message: dict['sup_key_req'] || '需要上级主键值!',
        message: setting.supModTip || dict['sup_key_req'] || '需要上级主键值!',
        duration: 5
      })
      return
src/tabviews/zshare/actionList/tabbutton/index.jsx
@@ -188,7 +188,7 @@
      if (!menu) {
        notification.warning({
          top: 92,
          message: dict['no_perm'] || '菜单已删除或没有访问权限!',
          message: dict['no_perm'] || `没有${btn.MenuName ? `菜单《${btn.MenuName}》的` : '此菜单的'}访问权限!`,
          duration: 5
        })
        return
@@ -285,7 +285,7 @@
    if (!menu) {
      notification.warning({
        top: 92,
        message: dict['no_perm'] || '菜单已删除或没有访问权限!',
        message: dict['no_perm'] || '没有此菜单的访问权限!',
        duration: 5
      })
      return
src/utils/utils-custom.js
@@ -2553,6 +2553,9 @@
              filterSql(script.sql)
            })
          }
          if (item.setting.supModTip) {
            sql.push(item.setting.supModTip)
          }
        }
        if (item.columns) {
@@ -2729,6 +2732,9 @@
          filterSql(script.sql)
        })
      }
      if (item.setting.supModTip) {
        sql.push(item.setting.supModTip)
      }
    })
  }
@@ -2767,7 +2773,12 @@
  ops = ops.map(n => n.replace(/^\s+|\s+$/g, ''))
  menu = menu.map(n => n.replace(/^\s+|\s+$/g, ''))
  sql = sql.filter(Boolean)
  sql = sql.filter((n) => {
    if (!n) return false
    if (/^[a-zA-Z_]+$/.test(n)) return false
    return true
  })
  btn = btn.filter(Boolean)
  ops = ops.filter(Boolean)
  menu = menu.filter(Boolean)
@@ -3145,6 +3156,9 @@
              script.sql = filterSql(script.sql)
            })
          }
          if (item.setting.supModTip) {
            item.setting.supModTip = replaceTitle(item.setting.supModTip)
          }
        }
        if (item.columns) {
@@ -3320,6 +3334,9 @@
        item.scripts && item.scripts.forEach(script => {
          script.sql = filterSql(script.sql)
        })
      }
      if (item.setting.supModTip) {
        item.setting.supModTip = replaceTitle(item.setting.supModTip)
      }
    })
  }
@@ -3566,6 +3583,9 @@
              script.sql = filterSql(script.sql)
            })
          }
          if (item.setting.supModTip) {
            item.setting.supModTip = replaceTitle(item.setting.supModTip)
          }
        }
        if (item.columns) {
@@ -3726,6 +3746,9 @@
          script.sql = filterSql(script.sql)
        })
      }
      if (item.setting.supModTip) {
        item.setting.supModTip = replaceTitle(item.setting.supModTip)
      }
    })
  }
src/views/login/index.scss
@@ -36,7 +36,7 @@
    border-bottom: 2px solid var(--mk-sys-color);
    display: flex;
    align-items: center;
    justify-content: right;
    justify-content: flex-end;
    padding-right: 20vw;
    overflow: hidden;
src/views/systemfunc/sidemenu/config.jsx
@@ -191,13 +191,13 @@
    MenuID: '1577972969199lei1g0qkvlh4tkc908m',
    MenuNo: 'sModularM',
    MenuName: '系统模块',
  }, {
    src: '',
    PageParam: {OpenType: 'newtab', Template: 'BaseTable'},
    type: 'BaseTable',
    MenuID: '1578479100252lfbp29v1kafk4s4q4ig',
    MenuNo: 'BDLanguagePacksM',
    MenuName: '语言包',
  // }, {
  //   src: '',
  //   PageParam: {OpenType: 'newtab', Template: 'BaseTable'},
  //   type: 'BaseTable',
  //   MenuID: '1578479100252lfbp29v1kafk4s4q4ig',
  //   MenuNo: 'BDLanguagePacksM',
  //   MenuName: '语言包',
  }, {
    src: '',
    systems: ['production', 'local', 'SSO', 'cloud'],