king
2024-08-25 326aa6b3effaccc71cfe0775d47b0f29eb3695a6
src/views/basedesign/updateFormTab/index.jsx
@@ -28,7 +28,7 @@
  trigger = () => {
    const { config, menu, btnTab } = this.props
    const _this = this
    const that = this
    if (!config || !menu || !menu.LongParam) {
      notification.warning({
@@ -78,7 +78,7 @@
      content: '',
      onOk() {
        return new Promise(resolve => {
          _this.execUpdate(resolve, _config)
          that.execUpdate(resolve, _config)
        })
      },
      onCancel() {}
@@ -313,7 +313,7 @@
      let defers = _tbs.map((item, i) => {
        return new Promise((resolve) => {
          setTimeout(() => {
            Api.getSystemConfig({
            Api.getCloudConfig({
              func: 'sPC_Get_LongParam',
              MenuID: item.linkTab
            }).then(res => {
@@ -393,7 +393,7 @@
      let defers = popActions.map((item, i) => {
        return new Promise((resolve) => {
          setTimeout(() => {
            Api.getSystemConfig({
            Api.getCloudConfig({
              func: 'sPC_Get_LongParam',
              MenuID: item.linkTab
            }).then(res => {
@@ -573,7 +573,7 @@
      let defers = formActions.map((item, i) => {
        return new Promise((resolve) => {
          setTimeout(() => {
            Api.getSystemConfig({
            Api.getCloudConfig({
              func: 'sPC_Get_LongParam',
              MenuID: item.origin
            }).then(res => {
@@ -878,18 +878,18 @@
      debug_md5: key,
      debug_url: url,
      debug_list: window.btoa(tbs),
      LongParam: window.btoa(window.encodeURIComponent(JSON.stringify(config)))
      LongParam: window.btoa(window.encodeURIComponent(JSON.stringify(config))),
      LText: ''
    }
    param.LText = Utils.formatOptions(param.LText)
    param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss')
    param.secretkey = Utils.encrypt(param.LText, param.timestamp)
    param.secretkey = Utils.encrypt('', param.timestamp)
    Api.getSystemConfig(param).then(res => {
    Api.getCloudConfig(param).then(res => {
      _resolve()
      if (res.status) {
        // if (this.delButtons.length > 0) {
        //   Api.getSystemConfig({
        //   Api.getCloudConfig({
        //     func: 'sPC_MainMenu_Del',
        //     up_type: 'Y',
        //     MenuID: this.delButtons.join(',')
@@ -915,7 +915,7 @@
    let _card = {
      uuid: newCon.uuid,
      type: 'table',
      name: newCon.name,
      name: newCon.name || '',
      format: 'array',
      pageable: true,
      switchable: true,
@@ -923,7 +923,7 @@
      action: [],
      subtype: 'normaltable',
      setting: { useMSearch: 'false', sync: 'false', onload: 'true' },
      wrap: {name: newCon.name},
      wrap: {name: newCon.name || ''},
      style: {},
      headerStyle: {},
      columns: [],
@@ -1195,14 +1195,10 @@
        if (newCon.equalTab && oldtabs && oldtabs[newCon.equalTab]) {
          _btn.syncComponent.push(oldtabs[newCon.equalTab])
        }
      } else if (_btn.execSuccess === 'maingrid') {
        _btn.execSuccess = 'mainline'
      }
      if (_btn.execError === 'equaltab') {
        _btn.execError = 'grid'
      } else if (_btn.execError === 'maingrid') {
        _btn.execError = 'mainline'
      }
      if (_btn.popClose === 'equaltab') {
@@ -1212,8 +1208,6 @@
        if (newCon.equalTab && oldtabs && oldtabs[newCon.equalTab]) {
          _btn.syncComponent.push(oldtabs[newCon.equalTab])
        }
      } else if (_btn.popClose === 'maingrid') {
        _btn.popClose = 'mainline'
      }
      if (_btn.OpenType === 'pop' || (_btn.OpenType === 'funcbutton' && _btn.funcType === 'print' && _btn.execMode === 'pop')) {