|
@@ -58,8 +58,9 @@ Page({ |
|
@@ -58,8 +58,9 @@ Page({ |
58
|
selectdata: options.select_data ? JSON.parse(options.select_data) : {}
|
58
|
selectdata: options.select_data ? JSON.parse(options.select_data) : {}
|
59
|
})
|
59
|
})
|
60
|
if (options.type == '1' && options.select_data && JSON.parse(options.select_data)) {
|
60
|
if (options.type == '1' && options.select_data && JSON.parse(options.select_data)) {
|
61
|
- this.handleData(JSON.parse(options.select_data))
|
61
|
+ this.handleData(JSON.parse(options.select_data), JSON.parse(options.complete_data))
|
62
|
}
|
62
|
}
|
|
|
63
|
+ //
|
63
|
},
|
64
|
},
|
64
|
|
65
|
|
65
|
/**
|
66
|
/**
|
|
@@ -76,7 +77,7 @@ Page({ |
|
@@ -76,7 +77,7 @@ Page({ |
76
|
|
77
|
|
77
|
},
|
78
|
},
|
78
|
|
79
|
|
79
|
- handleData: function(data) {
|
80
|
+ handleData: function(data,completedata) {
|
80
|
var selectarray = data.addition_items;
|
81
|
var selectarray = data.addition_items;
|
81
|
console.log("handleData", data)
|
82
|
console.log("handleData", data)
|
82
|
var selectIndex = this.data.selectIndex;
|
83
|
var selectIndex = this.data.selectIndex;
|
|
@@ -88,19 +89,19 @@ Page({ |
|
@@ -88,19 +89,19 @@ Page({ |
88
|
for (var i = 0; i < selectarray.length; i++) {
|
89
|
for (var i = 0; i < selectarray.length; i++) {
|
89
|
if (selectarray[i].addition_category == 'children_education') { //子女教育
|
90
|
if (selectarray[i].addition_category == 'children_education') { //子女教育
|
90
|
selectIndex[0].sureid = true
|
91
|
selectIndex[0].sureid = true
|
91
|
- selectIndex[0].disable_change = true
|
92
|
+ selectIndex[0].disable_change = completedata.indexOf('children_education')!=-1?true:false
|
92
|
}
|
93
|
}
|
93
|
if (selectarray[i].addition_category == 'continuing_education') { //继续教育
|
94
|
if (selectarray[i].addition_category == 'continuing_education') { //继续教育
|
94
|
selectIndex[1].sureid = true
|
95
|
selectIndex[1].sureid = true
|
95
|
- selectIndex[1].disable_change = true
|
96
|
+ selectIndex[1].disable_change = completedata.indexOf('continuing_education') != -1 ? true : false
|
96
|
}
|
97
|
}
|
97
|
if (selectarray[i].addition_category == 'support_duty') { //赡养老人
|
98
|
if (selectarray[i].addition_category == 'support_duty') { //赡养老人
|
98
|
selectIndex[2].sureid = true
|
99
|
selectIndex[2].sureid = true
|
99
|
- selectIndex[2].disable_change = true
|
100
|
+ selectIndex[2].disable_change = completedata.indexOf('support_duty') != -1 ? true : false
|
100
|
}
|
101
|
}
|
101
|
if (selectarray[i].addition_category == 'house_fund_rent') { //住房(租房)
|
102
|
if (selectarray[i].addition_category == 'house_fund_rent') { //住房(租房)
|
102
|
selectIndex[3].sureid = true
|
103
|
selectIndex[3].sureid = true
|
103
|
- selectIndex[3].disable_change = true
|
104
|
+ selectIndex[3].disable_change = completedata.indexOf('house_fund_rent') != -1 ? true : false
|
104
|
this.setData({
|
105
|
this.setData({
|
105
|
flag_housing01: false,
|
106
|
flag_housing01: false,
|
106
|
flag_housing02: true,
|
107
|
flag_housing02: true,
|
|
@@ -108,7 +109,7 @@ Page({ |
|
@@ -108,7 +109,7 @@ Page({ |
108
|
}
|
109
|
}
|
109
|
if (selectarray[i].addition_category == 'house_fund_loan') { //住房(租房)
|
110
|
if (selectarray[i].addition_category == 'house_fund_loan') { //住房(租房)
|
110
|
selectIndex[3].sureid = true
|
111
|
selectIndex[3].sureid = true
|
111
|
- selectIndex[3].disable_change = true
|
112
|
+ selectIndex[3].disable_change = completedata.indexOf('house_fund_loan') != -1 ? true : false
|
112
|
this.setData({
|
113
|
this.setData({
|
113
|
flag_housing01: true,
|
114
|
flag_housing01: true,
|
114
|
flag_housing02: false,
|
115
|
flag_housing02: false,
|