| 12345678910111213141516171819 |
- Ext.define('saas.util.FormUtil', {
- BaseUtil: Ext.create('saas.util.BaseUtil'),
-
- /**
- * 获得form的字段配置
- * @param form: form组件
- * @param url: url
- */
- getFormItems: function(form, url, callback) {
- this.BaseUtil.request(url)
- .then(function(response) {
- var items = Ext.decode(response.responseText);
- form.add(items);
- }).catch(function(response) {
- console.log(response);
- });
- }
- });
|