|
@@ -126,11 +126,28 @@ var Bll = { |
|
@@ -126,11 +126,28 @@ var Bll = { |
126
|
__editRender:function(){
|
126
|
__editRender:function(){
|
127
|
components.init();
|
127
|
components.init();
|
128
|
components.on("file_onComplete", function(obj) {
|
128
|
components.on("file_onComplete", function(obj) {
|
|
|
129
|
+ // var names=obj.field;
|
|
|
130
|
+ // Bll.module.contentData.data=common.util.__buildobj(names, '.', Bll.module.contentData.data, function(o, name) {
|
|
|
131
|
+ // o[name] = obj.data;
|
|
|
132
|
+ // });
|
|
|
133
|
+ // console.log(obj);
|
|
|
134
|
+
|
129
|
var names=obj.field;
|
135
|
var names=obj.field;
|
130
|
- Bll.module.contentData.data=common.util.__buildobj(names, '.', Bll.module.contentData.data, function(o, name) {
|
|
|
131
|
- o[name] = obj.data;
|
|
|
132
|
- });
|
|
|
133
|
- console.log(obj);
|
136
|
+ if(obj.datas.length>0){
|
|
|
137
|
+ for(var i in obj.datas){
|
|
|
138
|
+ names=names.replace(/^\d+/,i);
|
|
|
139
|
+ if(i>0){
|
|
|
140
|
+ Bll.module.contentData.data.push(Bll.module.contentData.data[0]);
|
|
|
141
|
+ }
|
|
|
142
|
+ Bll.module.contentData.data=common.util.__buildobj(names, '.', Bll.module.contentData.data, function(o, name) {
|
|
|
143
|
+ o[name] = obj.data;
|
|
|
144
|
+ });
|
|
|
145
|
+ }
|
|
|
146
|
+
|
|
|
147
|
+ }
|
|
|
148
|
+ console.log("Bll.module.contentData.data",Bll.module.contentData.data);
|
|
|
149
|
+ Bll.renderDialog(Bll.module.contentData.dialog);
|
|
|
150
|
+
|
134
|
});
|
151
|
});
|
135
|
},
|
152
|
},
|
136
|
rendContent: function() {
|
153
|
rendContent: function() {
|