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/tabviews/commontable/index.jsx | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/tabviews/commontable/index.jsx b/src/tabviews/commontable/index.jsx index 1549350..3335fd9 100644 --- a/src/tabviews/commontable/index.jsx +++ b/src/tabviews/commontable/index.jsx @@ -2,6 +2,7 @@ import PropTypes from 'prop-types' import { is, fromJS } from 'immutable' import { BackTop, notification} from 'antd' +import moment from 'moment' import Api from '@/api' import MainSearch from './mainSearch' import MainAction from './mainAction' @@ -168,6 +169,10 @@ obj_name: 'data', arr_field: item.valueField + ',' + item.valueText } + + param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss') + '.000' + param.secretkey = Utils.encrypt(param.LText, param.timestamp) + let defer = new Promise(resolve => { Api.getSystemConfig(param).then(res => { res.search = item @@ -228,7 +233,10 @@ let DateCount = `select count(1) as total from ${setting.dataresource} ${search}` param.LText = Utils.formatOptions(LText) + param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss') + '.000' + param.secretkey = Utils.encrypt(param.LText, param.timestamp) param.DateCount = Utils.formatOptions(DateCount) + let result = await Api.genericInterface(param) if (result.status) { this.setState({ -- Gitblit v1.8.0