king
2021-11-15 ded0a522a7747fb841719c13c8c35f13cf5cda4c
2021-11-15
6个文件已修改
64 ■■■■■ 已修改文件
src/index.js 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/share/actioncomponent/formconfig.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/card/balcony/index.jsx 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/card/cardcellList/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/card/prop-card/index.jsx 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/carousel/prop-card/index.jsx 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/index.js
@@ -85,6 +85,9 @@
      if (config.probation && /^20\d{2}-\d{2}-\d{2}$/.test(config.probation) && new Date(config.probation).getTime() > new Date().getTime()) {
        GLOB.probation = true
      }
    } else if (options.sysType === 'local') {
      GLOB.probation = true
      GLOB.systemType = ''
    } else {
      GLOB.systemType = ''
    }
src/menu/components/share/actioncomponent/formconfig.jsx
@@ -578,7 +578,7 @@
      key: 'refreshTab',
      label: '刷新菜单',
      initVal: card.refreshTab || [],
      tooltip: '执行成功后或标签关闭时,需要同步刷新的菜单',
      tooltip: '执行成功后(或功能按钮中标签关闭类型),需要同步刷新的菜单',
      required: false,
      forbid: isApp || viewType === 'popview',
      options: menulist
src/tabviews/custom/components/card/balcony/index.jsx
@@ -39,7 +39,7 @@
    let _config = fromJS(this.props.config).toJS()
    let _cols = new Map()
    let _data = {}
    let _data = { $$empty: true }
    let _sync = false
    
    if (_config.setting && _config.wrap.datatype !== 'static') {
@@ -52,8 +52,6 @@
        }
        _sync = false
      }
    } else {
      _data = {}
    }
    if (_data) {
@@ -138,7 +136,7 @@
    const { sync, config, BID } = this.state
    if (sync && !is(fromJS(this.props.data), fromJS(nextProps.data))) {
      let _data = {}
      let _data = {$$empty: true}
      if (nextProps.data && nextProps.data[config.dataName]) {
        _data = nextProps.data[config.dataName]
        if (_data && Array.isArray(_data)) {
@@ -285,12 +283,12 @@
    if (config.wrap.datatype === 'static') {
      this.setState({
        data: {$$BID: BID || '', $$BData: BData},
        data: {$$BID: BID || '', $$BData: BData, $$empty: true},
      })
      return
    } else if (config.setting.supModule && !BID) { // BID 不存在时,不做查询
      this.setState({
        data: {$$BID: BID || '', $$BData: BData},
        data: {$$BID: BID || '', $$BData: BData, $$empty: true},
      })
      return
    }
@@ -308,7 +306,14 @@
    let result = await Api.genericInterface(param)
    if (result.status) {
      let _data = result.data && result.data[0] ? result.data[0] : {}
      let _data = {}
      if (!result.data || !result.data[0]) {
        _data.$$empty = true
      } else {
        _data = result.data[0]
      }
      _data.$$BID = BID || ''
      _data.$$BData = BData
src/tabviews/custom/components/card/cardcellList/index.jsx
@@ -641,7 +641,7 @@
    } else if (card.eleType === 'button') {
      let _data = [data]
      if (data.$$type === 'extendCard') {
      if (data.$$type === 'extendCard' || data.$$empty) {
        _data = []
      } else if (card.$sync) {
        _data = this.props.syncData
src/tabviews/custom/components/card/prop-card/index.jsx
@@ -39,7 +39,7 @@
    let _config = fromJS(this.props.config).toJS()
    let _cols = new Map()
    let _data = {}
    let _data = { $$empty: true }
    let _sync = false
    
    if (_config.setting && _config.wrap.datatype !== 'static') {
@@ -58,8 +58,6 @@
        }
        _sync = false
      }
    } else {
      _data = {}
    }
    if (_data) {
@@ -155,7 +153,7 @@
    const { sync, config, BID, BData } = this.state
    if (sync && !is(fromJS(this.props.data), fromJS(nextProps.data))) {
      let _data = {}
      let _data = { $$empty: true }
      if (nextProps.data && nextProps.data[config.dataName]) {
        _data = nextProps.data[config.dataName]
        if (_data && Array.isArray(_data)) {
@@ -286,12 +284,12 @@
    if (config.wrap.datatype === 'static') {
      this.setState({
        data: {$$BID: BID || '', $$BData: BData},
        data: {$$BID: BID || '', $$BData: BData, $$empty: true},
      })
      return
    } else if (config.setting.supModule && !BID) { // BID 不存在时,不做查询
      this.setState({
        data: {$$BID: BID || '', $$BData: BData},
        data: {$$BID: BID || '', $$BData: BData, $$empty: true},
      })
      return
    }
@@ -314,7 +312,14 @@
    let result = await Api.genericInterface(param)
    if (result.status) {
      let _data = result.data && result.data[0] ? result.data[0] : {}
      let _data = {}
      if (!result.data || !result.data[0]) {
        _data.$$empty = true
      } else {
        _data = result.data[0]
      }
      _data.$$BID = BID || ''
      _data.$$BData = BData
src/tabviews/custom/components/carousel/prop-card/index.jsx
@@ -34,7 +34,7 @@
    let _config = fromJS(this.props.config).toJS()
    let _cols = new Map()
    let _data = {}
    let _data = {$$empty: true}
    let _sync = false
    
    if (_config.setting && _config.wrap.datatype !== 'static') {
@@ -53,8 +53,6 @@
        }
        _sync = false
      }
    } else {
      _data = {}
    }
    if (_data) {
@@ -121,7 +119,7 @@
    const { sync, config, BID, BData } = this.state
    if (sync && !is(fromJS(this.props.data), fromJS(nextProps.data))) {
      let _data = {}
      let _data = {$$empty: true}
      if (nextProps.data && nextProps.data[config.dataName]) {
        _data = nextProps.data[config.dataName]
        if (_data && Array.isArray(_data)) {
@@ -192,12 +190,12 @@
    if (config.wrap.datatype === 'static') {
      this.setState({
        data: {$$BID: BID || '', $$BData: BData}
        data: {$$BID: BID || '', $$BData: BData, $$empty: true}
      })
      return
    } else if (config.setting.supModule && !BID) { // BID 不存在时,不做查询
      this.setState({
        data: {$$BID: BID || '', $$BData: BData}
        data: {$$BID: BID || '', $$BData: BData, $$empty: true}
      })
      return
    }
@@ -218,7 +216,14 @@
    let result = await Api.genericInterface(param)
    if (result.status) {
      let _data = result.data && result.data[0] ? result.data[0] : {}
      let _data = {}
      if (!result.data || !result.data[0]) {
        _data.$$empty = true
      } else {
        _data = result.data[0]
      }
      _data.$$BID = BID || ''
      _data.$$BData = BData || ''