From 4d08cb2fa0daad4b7593a2b8282466b000194344 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 27 七月 2021 14:29:55 +0800
Subject: [PATCH] 2021-07-27

---
 src/pc/transfer/index.jsx |   44 ++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 40 insertions(+), 4 deletions(-)

diff --git a/src/pc/transfer/index.jsx b/src/pc/transfer/index.jsx
index 615c3b8..d2fb44e 100644
--- a/src/pc/transfer/index.jsx
+++ b/src/pc/transfer/index.jsx
@@ -2,11 +2,9 @@
 import PropTypes from 'prop-types'
 import { is, fromJS } from 'immutable'
 import { Button, Modal, notification } from 'antd'
-// import moment from 'moment'
 
 import zhCN from '@/locales/zh-CN/model.js'
 import enUS from '@/locales/en-US/model.js'
-// import Utils from '@/utils/utils.js'
 import SettingForm from './settingform'
 import Api from '@/api'
 import './index.scss'
@@ -28,10 +26,48 @@
   }
 
   verifySubmit = () => {
+    const { MenuID } = this.props
+
     this.verifyRef.handleConfirm().then(res => {
+      let param = {
+        func: 's_sVersionDetail_CloudAdd',
+        kei_no: sessionStorage.getItem('kei_no'),
+        kei_no_detail: sessionStorage.getItem('typename'),
+        lang: sessionStorage.getItem('lang'),
+        BID: res.VersionName,
+        VType: 'mob_menu',
+        TrdMenuID: MenuID
+      }
+
       this.setState({
-        // loading: true,
-        visible: false
+        loading: true
+      })
+      
+      Api.getCloudConfig(param).then(result => {
+        if (result.status) {
+          notification.success({
+            top: 92,
+            message: '鎿嶄綔鎴愬姛锛�',
+            duration: 3
+          })
+          this.setState({
+            loading: false,
+            visible: false
+          })
+        } else {
+          this.setState({
+            loading: false
+          })
+          notification.warning({
+            top: 92,
+            message: result.message,
+            duration: 5
+          })
+        }
+      }, () => {
+        this.setState({
+          loading: false
+        })
       })
     })
   }

--
Gitblit v1.8.0