...
|
...
|
@@ -104,7 +104,8 @@ var Bll = { |
|
|
if (/^file_onComplete/.test(obj.key)) {
|
|
|
//(!!~index?index:0)
|
|
|
var _field = obj.key.replace(/^file_onComplete_file__/, '').split('-');
|
|
|
Bll.module.data[_field[1]].src = obj.data;
|
|
|
// Bll.module.data[_field[1]].src = obj.data;
|
|
|
|
|
|
}
|
|
|
});
|
|
|
},
|
...
|
...
|
@@ -314,12 +315,13 @@ $(document).on("click", ".del", function() { |
|
|
|
|
|
$(document).on("change", ".observe", function() {
|
|
|
var $this = $(this);
|
|
|
var name = $this.data("field"),
|
|
|
index = $this.data("index");
|
|
|
var module = (index == undefined) ? Bll.module.data : Bll.module.data[index];
|
|
|
common.util.__buildobj(name, '.', module, function(obj, name) {
|
|
|
var name = $this.data("field");
|
|
|
// index = $this.data("index");
|
|
|
// var module = (index == undefined) ? Bll.module.data : Bll.module.data[index];
|
|
|
Bll.module.data=common.util.__buildobj(name, '.', Bll.module.data, function(obj, name) {
|
|
|
obj[name] = $this.val();
|
|
|
});
|
|
|
console.log("module",Bll.module.data);
|
|
|
});
|
|
|
|
|
|
$(document).on("click", ".edit", function() {
|
...
|
...
|
@@ -511,7 +513,10 @@ $(document).on("click", "#submit", function() { |
|
|
|
|
|
/*测试*/
|
|
|
var AAA={};
|
|
|
var bbb=common.util.__buildobj("a.0.b",".",AAA,function(obj,name){
|
|
|
AAA=common.util.__buildobj("0.b",".",AAA,function(obj,name){
|
|
|
obj[name]="1";
|
|
|
});
|
|
|
AAA=common.util.__buildobj("1.b",".",AAA,function(obj,name){
|
|
|
obj[name]="1";
|
|
|
});
|
|
|
console.log(bbb); |
|
|
\ No newline at end of file |
|
|
console.log(AAA); |
|
|
\ No newline at end of file |
...
|
...
|
|