增加解析数据表格templet列公共方法

pull/65/head
chenjinlong 2020-12-29 21:55:04 +08:00
parent 6fd6dc70cf
commit 56ae380659
1 changed files with 10 additions and 0 deletions

View File

@ -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});
};