@tianqing123
2017-08-03T10:31:46.000000Z
字数 1533
阅读 761
页面布局
页面ui配置
pageUI:{form:{api:'', // 请求form数据ui:[// 示例{type:'dropdown',code:'color',name:'颜色',datasourceAjax:'xxxx'}// ...],btns:[{api:'', // 发起保存或者创建name:'', // 按钮的名字class:'' // 按钮的样式 可缺省}]}}
pageUI:{form:{api:'', // 请求form数据ui:[// 示例{type:'dropdown',code:'color',name:'颜色',datasourceAjax:'xxxx'}// ...],btns:[{api:'', // 发起保存或者创建name:'', // 按钮的名字class:'' // 按钮的样式 可缺省}]},table:{apiname:'', // 请求table数据header:[{name:'商品名',code:'itemName'}],options:{show:{ // 控制显示checkbox:false, // 全选paging:true, // 分页toolbar:true // 工具栏},event:[ // 操作事件{name:'',fn:function(){}}]},toolbar:{},paging:{index:0, // 当前页size:10, // 每页显示条数pageSize:[10,20,50,100] // 选择每页显示的条数}}}
{title:'', // 标题entity:'', // 业务type:'', // 页面类型template:{},// 模版配置pageUI:{form:{},table:{}}}
接口名: createUI
用途:创建UI
入参:
| 名称 | 字段 | 类型 | 说明 |
|---|---|---|---|
| 标题 | title | string | -- |
| 业务 | entity | string | -- |
| 页面类型 | action | string | -- |
| 模版配置 | template | json | -- |
| UI配置 | pageUI | json | -- |
| 描述 | remark | string | -- |
接口名: updateUI
用途:更新UI
入参:
| 名称 | 字段 | 类型 | 可选 | 说明 |
|---|---|---|---|---|
| 唯一标识 | id | string | N | -- |
| 标题 | title | string | N | -- |
| 业务 | entity | string | N | -- |
| 页面类型 | action | string | N | -- |
| 模版配置 | template | json | N | -- |
| UI配置 | pageUI | json | N | -- |
| 描述 | remark | string | N | -- |
接口名: readUI
用途:获取UI
返回数据的入参:
| 名称 | 字段 | 类型 | 可选 | 说明 |
|---|---|---|---|---|
| 唯一标识 | id | string | N | 传id 返回数据 |
返回ui的入参
| 名称 | 字段 | 类型 | 可选 | 说明 |
|---|---|---|---|---|
| 页面类型 | action | string | N | -- |
| 业务 | entity | string | N | -- |
出参:
| 名称 | 字段 | 类型 | 可选 | 说明 |
|---|---|---|---|---|
| 唯一标识 | id | string | N | -- |
| 标题 | title | string | N | -- |
| 业务 | entity | string | N | -- |
| 页面类型 | action | string | N | -- |
| 模版配置 | template | json | N | -- |
| UI配置 | pageUI | json | N | -- |
| 描述 | remark | string | N | -- |
接口名: delUI
用途:删除UI
入参:
| 名称 | 字段 | 类型 | 可选 | 说明 |
|---|---|---|---|---|
| 唯一标识 | id | string | N | -- |
接口名: getUIList
用途:获取ui列表数据
入参:
| 名称 | 字段 | 类型 | 可选 | 说明 |
|---|---|---|---|---|
| 唯一标识 | id | string | Y | -- |
| 业务 | entity | string | Y | -- |
| 页面类型 | action | string | Y | -- |
| 页码 | index | string | N | -- |
| 数目 | size | string | N | -- |