Commit 55f7d157 by 任晓松

组合form,表单项更新config_params

parent 00be74bf
......@@ -98,7 +98,7 @@ class ForminfoService extends ServiceBase {
let ctl = {}
ctl['type'] = data[item.item_type];
ctl['label'] = item.name;
ctl['prop'] = item.name;
ctl['prop'] = item.code;
//单选框 多选框 下拉选项 添加options属性 结构为 a,b,c
if(['singleBtn','multipleBtn','downOptions'].includes(item.item_type) && item.config_params){
ctl['options'] = item.config_params.options
......
......@@ -41,6 +41,9 @@ class FormitemService extends ServiceBase {
* @returns {Promise<void>}
*/
async updateItem(pobj) {
//参数重组
let config_params = await this.packageConfigParams(pobj);
pobj.config_params = config_params;
let upResult = await this.update(pobj);
return system.getResult(upResult);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment