|
|
@@ -419,7 +419,6 @@ helper.getDropList = {
|
|
419
|
419
|
obj.change(function() {
|
|
420
|
420
|
if(obj.find("option:selected").val() != 0) {
|
|
421
|
421
|
helper.getDropList.getAreas(obj1, obj.find("option:selected").val());
|
|
422
|
|
- $('#sourceaddress').val(obj.find("option:selected").text());
|
|
423
|
422
|
} else {
|
|
424
|
423
|
obj1.empty();
|
|
425
|
424
|
obj1.append('<option selected="selected" value="0">请选择</option>');
|
|
|
@@ -432,20 +431,20 @@ helper.getDropList = {
|
|
432
|
431
|
obj1.change(function() {
|
|
433
|
432
|
if(obj1.find("option:selected").val() != 0) {
|
|
434
|
433
|
helper.getDropList.getAreas(obj2, obj1.find("option:selected").val());
|
|
435
|
|
- $('#sourceaddress').val(obj.find("option:selected").text() + ' ' + obj1.find("option:selected").text());
|
|
|
434
|
+ $('#sourceaddress').val(obj1.find("option:selected").text());
|
|
436
|
435
|
} else if(obj.find("option:selected").val() != 0){
|
|
437
|
436
|
obj2.empty();
|
|
438
|
437
|
obj2.append('<option selected="selected" value="0">请选择</option>');
|
|
439
|
|
- $('#sourceaddress').val(obj.find("option:selected").text());
|
|
|
438
|
+ $('#sourceaddress').val('');
|
|
440
|
439
|
}
|
|
441
|
440
|
obj2.trigger('change');
|
|
442
|
441
|
});
|
|
443
|
442
|
|
|
444
|
443
|
obj2.change(function() {
|
|
445
|
444
|
if(obj2.find("option:selected").val() != 0) {
|
|
446
|
|
- $('#sourceaddress').val(obj.find("option:selected").text() + ' ' + obj1.find("option:selected").text() + ' ' + obj2.find("option:selected").text());
|
|
|
445
|
+ $('#sourceaddress').val(obj1.find("option:selected").text() + obj2.find("option:selected").text());
|
|
447
|
446
|
} else if(obj1.find("option:selected").val() != 0){
|
|
448
|
|
- $('#sourceaddress').val(obj.find("option:selected").text() + ' ' + obj1.find("option:selected").text());
|
|
|
447
|
+ $('#sourceaddress').val(obj1.find("option:selected").text());
|
|
449
|
448
|
}
|
|
450
|
449
|
dtd.resolve(); // 改变Deferred对象的执行状态
|
|
451
|
450
|
});
|