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/header/editmenu/index.jsx | 21 +++++++++++++-------- 1 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/components/header/editmenu/index.jsx b/src/components/header/editmenu/index.jsx index fc8bc41..6b35dc4 100644 --- a/src/components/header/editmenu/index.jsx +++ b/src/components/header/editmenu/index.jsx @@ -4,6 +4,7 @@ import { DndProvider } from 'react-dnd' import HTML5Backend from 'react-dnd-html5-backend' import { notification, Modal, Button, Spin } from 'antd' +import moment from 'moment' import TransferForm from '@/components/transferform' import DragElement from '../dragelement' import MenuForm from '../menuform' @@ -232,14 +233,18 @@ }) } else if (type === 'confirm' && _menuchange) { 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'], content: '', -- Gitblit v1.8.0