1 API参数类型字典 2 self.render加载页面时,传入List参数,方便html页面使用
1 API参数类型字典
return App.remote('/system/dict/ApiParamType/dictitem/root/direct-children/');
dictoCode自己定义的 dictItemCode是root
数据库如下
data: function () {
this.svcId = this.getParam('svcId');
this.versionId = this.getParam('id');
this.status = this.getParam('status');
return App.remote('/system/dict/ApiParamType/dictitem/root/direct-children/');
},
dataFilter:function(err, data)
{
this.apiType=data;
return {status:this.status};
},
2 self.render加载页面时,传入List参数,方便html页面使用