|

楼主 |
发表于 2015-11-9 10:58:13
|
显示全部楼层
有点不懂,- Model.prototype.data1CustomRefresh = function(event){
- var mdata=event.source;
- $.ajax({
- "type":"post",
- "async":false,
- "cache": false,
- "data":{
- "uid":uid,
- "account":account,
- "key":key
- },
- "dataType":"json",
- "url":"http://192.168.20.16/svnidc/APP/index.php/Index/menu1",
- success: function(resultData){
- var append = event.options && event.options.append;
- mdata.loadData({rows:resultData}, append);
- },
- "error": function(resultData){
- debugger;
- alert(resultData['message']);
- }
- });
- };
- Model.prototype.data2CustomRefresh = function(event){
- var mdata=event.source;
- $.ajax({
- "type":"post",
- "async":false,
- "cache": false,
- "data":{
- "uid":uid,
- "account":account,
- "key":key,
- "pid":pid
- },
- "dataType":"json",
- "url":"http://192.168.20.16/svnidc/APP/index.php/Index/menu2",
- success: function(resultData){
- var append = event.options && event.options.append;
- mdata.loadData({rows:resultData}, append);
- },
- "error": function(resultData){
- debugger;
- alert(resultData['message']);
- }
- });
- };
- Model.prototype.li1Click = function(event){
- this.comp('data2').clear();
- var row=event.bindingContext.$object;
- pid=row.val('id');
- debugger;
- this.comp('list2').refresh('data2');
- };
复制代码
这是我的后台,data1是大项,data2是小项,两个data的列都一样的,要怎么弄 |
-
|