From 56ae3806594964c8df08f48a586c3b03885da7ea Mon Sep 17 00:00:00 2001 From: chenjinlong <22208488@qq.com> Date: Tue, 29 Dec 2020 21:55:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=A7=A3=E6=9E=90=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E8=A1=A8=E6=A0=BCtemplet=E5=88=97=E5=85=AC=E5=85=B1?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/assets/common/js/common.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/webapp/assets/common/js/common.js b/src/main/webapp/assets/common/js/common.js index 75126196..cb8c770a 100644 --- a/src/main/webapp/assets/common/js/common.js +++ b/src/main/webapp/assets/common/js/common.js @@ -1,6 +1,16 @@ /** EasyWeb iframe v3.1.8 date:2020-05-04 License By http://easyweb.vip */ // 用common.js必须加上Feng.addCtx("${ctxPath}"); + +/* 解析数据表格templet列 */ +Feng.parseData = function (res) { + return { + "code": res.code == "00000" ? "0" : res.code, //解析接口状态 + "msg": res.message, //解析提示文本 + "count": res.data.totalRows, //解析数据长度 + "data": res.data.rows //解析数据列表 + }; +}; Feng.info = function (info) { top.layer.msg(info, {icon: 6}); };