mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-28 03:09:24 +08:00
搭建PVB架构,实现前端的基础布局、菜单、表格、图示等功能
This commit is contained in:
@@ -10,10 +10,10 @@ using namespace std;
|
||||
|
||||
struct PageInfo
|
||||
{
|
||||
int total = 0;
|
||||
int page_id = 1;
|
||||
int page_size = 10;
|
||||
int page_max = 0;
|
||||
int total {0};
|
||||
int pageIndex {0};
|
||||
int pageSize {10};
|
||||
int pageCount {0};
|
||||
};
|
||||
|
||||
class DataFields
|
||||
@@ -64,7 +64,13 @@ public:
|
||||
* @param: [string key] 索引名称
|
||||
*/
|
||||
float getFloat(string key);
|
||||
|
||||
|
||||
/**
|
||||
* 获取 double 值
|
||||
* @param: [string key] 索引名称
|
||||
*/
|
||||
double getDouble(string key);
|
||||
|
||||
/**
|
||||
* 删除指定索引的值
|
||||
* @param: [string key] 索引名称
|
||||
@@ -116,7 +122,7 @@ public:
|
||||
* 遍历数据项
|
||||
* @param: [function... on_foraach] 回调函数
|
||||
*/
|
||||
void foreach_item(function<void(string key, string val)> on_foraach);
|
||||
void foreachItem(function<void(string key, string val)> on_foraach);
|
||||
|
||||
/**
|
||||
* 判断是否含有数据项
|
||||
@@ -133,7 +139,7 @@ public:
|
||||
/**
|
||||
* 转换成键值对的字符串格式
|
||||
*/
|
||||
string to_str();
|
||||
string toStr();
|
||||
|
||||
/**
|
||||
* 获取数据项的大小
|
||||
|
||||
Reference in New Issue
Block a user