1. 程式人生 > >儲存表單元件

儲存表單元件

/*儲存表單元件*/
                saveFormControl: function (controls) {
                    var that = this;

                    //當勾選的元件不為空時
                    if (controls != undefined && controls != null && controls.length > 0) {
                        var controlList = [];
                        
for (var i = 0; i < controls.length; ++i) { controlList[i] = controls[i].WF_CTRL_CODE; } //引數 var param = { reqType: "SaveFormControl", formID: that.uiStore.gvFormList.getSelectRow().WF_FORM_ID,
//表單id formControls: controlList.join(',') }; that.ajaxDeal(that.dataStore.ajaxUrl, param, function () { //新增成功 //that.dataStore.sortFieldIndex = null;
that.loadFormList(); }); } },