From 4df0471b7dff0494625ff09969b1a13b5359a26e Mon Sep 17 00:00:00 2001 From: XingChuan <m17600301067@163.com> Date: 星期一, 31 五月 2021 22:41:47 +0800 Subject: [PATCH] 统计表弹框UI优化;增加点击企业名称缩放至企业;二级表展示功能优化。 --- src/utils/AjaxUtils.js | 22 +++------------------- 1 files changed, 3 insertions(+), 19 deletions(-) diff --git a/src/utils/AjaxUtils.js b/src/utils/AjaxUtils.js index d0e1bfa..b99fd67 100644 --- a/src/utils/AjaxUtils.js +++ b/src/utils/AjaxUtils.js @@ -44,31 +44,15 @@ const GetDataAsynByUrl = async (oUrl, pData) => { const pUrl = encodeURI(oUrl) - const res = await axios({ - method: 'get', - url: pUrl, - data: pData + const res = await axios.get(pUrl, { + params: pData }).then((response) => { return (response) }) .catch((error) => { console.error('鏁版嵁鑾峰彇澶辫触', error) }) - return res - - // $.ajax({ - // type: 'GET', - // url: pUrl, - // data: pData, - // timeout: 600000, - // async: true, - // success: function (datas, nnn) { - // pBackFun(datas) - // }, - // error: function (e, nnnn) { - // console.error('鏁版嵁鑾峰彇澶辫触', pUrl) - // } - // }) + return res.data } function postDataAsynByUrl (pUrl, pData, pBackFun) { $.ajax({ -- Gitblit v1.8.0