king
2023-08-11 4adb8b8868aeed1f5f3b89ae269a7724c6b451ad
src/views/design/header/versions/index.jsx
@@ -5,7 +5,6 @@
import moment from 'moment'
import Api from '@/api'
import options from '@/store/options.js'
import Utils from '@/utils/utils.js'
import './index.scss'
@@ -28,7 +27,7 @@
      func: 's_get_sversions_sys',
    }
    Api.getSystemConfig(_param).then(result => {
    Api.getCloudConfig(_param).then(result => {
      if (!result.status) {
        notification.warning({
          top: 92,
@@ -39,9 +38,9 @@
      }
      let edition_int = ''
      if (options.sysType === 'SSO') {
      if (window.GLOB.sysType === 'SSO') {
        edition_int = result.edition_int_sso
      } else if (options.sysType === 'local' && window.GLOB.systemType !== 'production') {
      } else if (window.GLOB.sysType === 'local' && window.GLOB.systemType !== 'production') {
        edition_int = result.edition_int_local
      } else {
        if (result.edition_int_sso < result.edition_int_local) {
@@ -59,7 +58,7 @@
        return
      }
      let sysType = options.sysType.toLowerCase()
      let sysType = window.GLOB.sysType.toLowerCase()
      if (window.GLOB.systemType === 'production' || sysType !== 'local') {
        sysType = ''
@@ -116,7 +115,7 @@
      res.func = 's_sVersion_Local_add'
      res.VersionName = version.id
      Api.getLocalConfig(res).then(result => {
      Api.genericInterface(res).then(result => {
        if (!result.status) {
          notification.warning({
            top: 92,
@@ -151,7 +150,7 @@
        param.secretkey = Utils.encrypt(param.LText, param.timestamp)
        param.DateCount = ''
        Api.getLocalConfig(param).then(response => {
        Api.genericInterface(param).then(response => {
          if (!response.status) {
            notification.warning({
              top: 92,
@@ -232,7 +231,7 @@
  }
  execSso = (ssoParam, scripts) => {
    Api.getLocalConfig(ssoParam).then(res => {
    Api.genericInterface(ssoParam).then(res => {
      if (!res.status) {
        notification.warning({
          top: 92,
@@ -260,7 +259,7 @@
  }
  execLocal = (localParam, ssoParam, scripts) => {
    Api.getLocalConfig(localParam).then(res => {
    Api.genericInterface(localParam).then(res => {
      if (!res.status) {
        notification.warning({
          top: 92,
@@ -327,7 +326,7 @@
    param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss')
    param.secretkey = Utils.encrypt('', param.timestamp)
    Api.getLocalConfig(param).then(response => {
    Api.genericInterface(param).then(response => {
      if (!response.status) {
        notification.warning({
          top: 92,