king
2020-09-10 159940642620c547bb020b5cdf4bf16a3dfae15f
2020-09-10
8个文件已修改
46 ■■■■■ 已修改文件
src/menu/actioncomponent/actionform/index.jsx 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/actioncomponent/index.jsx 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/newpagebutton/index.jsx 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/comtableconfig/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/sharecomponent/actioncomponent/actionform/index.jsx 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/sharecomponent/actioncomponent/index.jsx 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/subtableconfig/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/zshare/createinterface/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/actioncomponent/actionform/index.jsx
@@ -673,15 +673,13 @@
          if (values.OpenType === 'excelIn') {
            values.position = 'toolbar'
          } else if (values.OpenType === 'excelOut') {
            if (values.intertype === 'inner' && !values.innerFunc) {
              if ((setting.interType === 'inner' && setting.innerFunc) || setting.interType === 'outer') {
                notification.warning({
                  top: 92,
                  message: '表格数据查询未使用数据源,导出Excel使用内部接口时,需自定义内部函数!',
                  duration: 5
                })
                return
              }
            if (values.intertype === 'system' && setting.interType !== 'system') {
              notification.warning({
                top: 92,
                message: '表格数据查询未使用数据源,导出Excel使用内部接口时,需自定义内部函数!',
                duration: 5
              })
              return
            }
            
            values.position = 'toolbar'
src/menu/actioncomponent/index.jsx
@@ -733,10 +733,10 @@
      }
      // 创建存储过程,必须填写内部函数名
      if (!btn.innerFunc) {
      if (btn.intertype !== 'inner') {
        notification.warning({
          top: 92,
          message: '请填写内部函数!',
          message: '使用内部函数时,才可以创建存储过程!',
          duration: 5
        })
        return
src/tabviews/zshare/actionList/newpagebutton/index.jsx
@@ -107,12 +107,18 @@
      window.open(url)
    } else if (btn.pageTemplate === 'custom') {
      let url = btn.url
      let con = '?'
      if (/\?/ig.test(url)) {
        con = '&'
      }
      if (btn.Ot === 'requiredSgl' && btn.joint !== 'false') {
        url = url + `?id=${Id}&appkey=${window.GLOB.appkey}&userid=${sessionStorage.getItem('UserID')}&LoginUID=${sessionStorage.getItem('LoginUID') || ''}`
        url = url + `${con}id=${Id}&appkey=${window.GLOB.appkey}&userid=${sessionStorage.getItem('UserID')}&LoginUID=${sessionStorage.getItem('LoginUID') || ''}`
      } else if (btn.Ot === 'requiredSgl' && btn.joint === 'false') {
        url = url + `?id=${Id}`
        url = url + `${con}id=${Id}`
      } else if (btn.joint !== 'false') {
        url = url + `?appkey=${window.GLOB.appkey}&userid=${sessionStorage.getItem('UserID')}&LoginUID=${sessionStorage.getItem('LoginUID') || ''}`
        url = url + `${con}appkey=${window.GLOB.appkey}&userid=${sessionStorage.getItem('UserID')}&LoginUID=${sessionStorage.getItem('LoginUID') || ''}`
      }
      window.open(url)
src/templates/comtableconfig/index.jsx
@@ -1091,7 +1091,7 @@
    })
    
    if (((config.setting.interType === 'inner' && !config.setting.innerFunc) || config.setting.interType === 'system') && config.setting.default !== 'false' && !config.setting.dataresource) {
    if (config.setting.interType === 'system' && config.setting.default !== 'false' && !config.setting.dataresource) {
      return '菜单尚未设置数据源,不可启用!'
    } else if (!config.setting.primaryKey) {
      return '菜单尚未设置主键,不可启用!'
src/templates/sharecomponent/actioncomponent/actionform/index.jsx
@@ -89,6 +89,8 @@
    } else if (_opentype === 'outerpage') {
      card.pageTemplate = 'custom'
      _opentype = 'innerpage'
    } else if (_opentype === 'blank') {
      _opentype = 'tab'
    }
    let _tabs = this.props.tabs.filter(tab => tab.type === _tabType)
src/templates/sharecomponent/actioncomponent/index.jsx
@@ -721,10 +721,10 @@
      }
      // 创建存储过程,必须填写内部函数名
      if (!btn.innerFunc) {
      if (btn.intertype !== 'inner') {
        notification.warning({
          top: 92,
          message: '请填写内部函数!',
          message: '使用内部函数时,才可以创建存储过程!',
          duration: 5
        })
        return
@@ -908,7 +908,7 @@
    const { actionlist, visible, card, dict, copying, profVisible } = this.state
    let hasbtncrtinter = false
    if (card && !card.copyType && config.setting.interType === 'inner' && !config.setting.innerFunc && config.setting.dataresource) {
    if (card && !card.copyType && config.setting.interType === 'system' && config.setting.dataresource) {
      hasbtncrtinter = true
    }
src/templates/subtableconfig/index.jsx
@@ -918,7 +918,7 @@
      }
    })
    if (config.setting.interType === 'inner' && !config.setting.innerFunc && config.setting.default !== 'false' && !config.setting.dataresource) {
    if (config.setting.interType === 'system' && config.setting.default !== 'false' && !config.setting.dataresource) {
      return '尚未设置数据源,不可启用!'
    } else if (!config.setting.primaryKey) {
      return '尚未设置主键,不可启用!'
src/templates/zshare/createinterface/index.jsx
@@ -311,7 +311,7 @@
   * @description 触发创建写入接口(按钮)
   */
  triggerInInterface = (btn, config, menu) => {
    if (!['pop', 'exec', 'prompt'].includes(btn.OpenType) || btn.funcType || btn.intertype !== 'inner' || btn.innerFunc ) {
    if (!['pop', 'exec', 'prompt'].includes(btn.OpenType) || btn.funcType || btn.intertype !== 'system') {
      notification.warning({
        top: 92,
        message: '打开方式为 弹窗(表单)、提示框或直接执行,且使用系统函数时,才可以创建接口!',