|
@@ -640,21 +640,32 @@ export default {
|
|
|
|
|
|
editDetails(val) {
|
|
|
this.rules_detail_form = JSON.parse(JSON.stringify(val));
|
|
|
+ console.log(val);
|
|
|
if (this.rules_detail_form.min_point == this.rules_detail_form.max_point) {
|
|
|
this.rules_detail_form.range_type = '1';
|
|
|
} else {
|
|
|
this.rules_detail_form.range_type = '2';
|
|
|
}
|
|
|
+
|
|
|
if (this.rules_detail_form.min_point < 0) {
|
|
|
this.integral_select_name1 = '2';
|
|
|
+ let str=this.rules_detail_form.min_point;
|
|
|
+ console.log(str);
|
|
|
+ this.rules_detail_form.min_point=str.toString().substring(1);
|
|
|
} else {
|
|
|
this.integral_select_name1 = '1';
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
if (this.rules_detail_form.max_point < 0) {
|
|
|
this.integral_select_name2 = '2';
|
|
|
+ let str=this.rules_detail_form.max_point;
|
|
|
+ this.rules_detail_form.max_point=str.toString().substring(1);
|
|
|
} else {
|
|
|
this.integral_select_name2 = '1';
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
this.rule_show = true;
|
|
|
this.rule_type = 'edit';
|
|
|
},
|