From d05e0494d938c165d328c37ba452a2a8579ed724 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 06 十二月 2019 17:10:53 +0800
Subject: [PATCH] 2019-12-06

---
 src/components/sidemenu/editthdmenu/index.jsx |   20 ++++++++++++--------
 1 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/src/components/sidemenu/editthdmenu/index.jsx b/src/components/sidemenu/editthdmenu/index.jsx
index 387cd83..b94b6f9 100644
--- a/src/components/sidemenu/editthdmenu/index.jsx
+++ b/src/components/sidemenu/editthdmenu/index.jsx
@@ -4,6 +4,7 @@
 import { DndProvider } from 'react-dnd'
 import HTML5Backend from 'react-dnd-html5-backend'
 import { notification, Modal, Button, Spin, Icon, Col, Card, Tabs, Row, Input } from 'antd'
+import moment from 'moment'
 import Preview from '@/components/preview'
 import TransferForm from '@/components/transferform'
 import Utils from '@/utils/utils.js'
@@ -195,14 +196,17 @@
     } else if (type === 'confirm') {
       if (previewList && !is(fromJS(previewList), fromJS(this.state.subMenulist))) {
         let _this = this
-        let param  = {}
-        param.func = 'sPC_Menu_SortUpt'
-        let _text = []
-        previewList.forEach((item, index) => {
-          _text.push('select \'' + item.MenuID + '\' as Menuid,' + (index + 1) * 10 + ' as sort')
-        })
-        _text = _text.join(' union ')
-        param.LText = Utils.formatOptions(_text)
+        let param  = {
+          func: 'sPC_Menu_SortUpt',
+          LText: previewList.map((item, index) => {
+            return 'select \'' + item.MenuID + '\' as Menuid,' + (index + 1) * 10 + ' as sort'
+          })
+        }
+
+        param.LText = param.LText.join(' union ') // sql鎷兼帴
+        param.LText = Utils.formatOptions(param.LText) // 鍏抽敭瀛楃鏇挎崲锛宐ase64鍔犲瘑
+        param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss') + '.000' // 鏃堕棿鎴�
+        param.secretkey = Utils.encrypt(param.LText, param.timestamp) // md5瀵嗛挜
 
         confirm({
           title: this.state.dict['header.menu.resetorder'],

--
Gitblit v1.8.0