|
@@ -254,19 +254,17 @@ export default {
|
|
|
if (item.paramName === "amount_channel") {
|
|
|
paranValue = item.paranValue ? JSON.parse(item.paranValue) : [];
|
|
|
this.selectId = item.id;
|
|
|
- this.result.domains = []
|
|
|
- paranValue.forEach((item, index) => {
|
|
|
- // let disabled = true
|
|
|
- // if(paranValue.length - 1 === index) {
|
|
|
- // disabled = false
|
|
|
- // }
|
|
|
- this.result.domains.push({
|
|
|
- organId: item.organId,
|
|
|
- routeOrganId: item.routeOrganId,
|
|
|
- amount: item.amount,
|
|
|
- type: item.type
|
|
|
+ if(paranValue.length > 0) {
|
|
|
+ this.result.domains = []
|
|
|
+ paranValue.forEach((item, index) => {
|
|
|
+ this.result.domains.push({
|
|
|
+ organId: item.organId,
|
|
|
+ routeOrganId: item.routeOrganId,
|
|
|
+ amount: item.amount,
|
|
|
+ type: item.type
|
|
|
+ })
|
|
|
})
|
|
|
- })
|
|
|
+ }
|
|
|
}
|
|
|
if (item.paramName === "sporadic_channel") {
|
|
|
this.formSporadic = item.paranValue
|
|
@@ -305,13 +303,12 @@ export default {
|
|
|
this.$refs["ruleFormValid"].validate(valid => {
|
|
|
if(valid) {
|
|
|
if (!checked) {
|
|
|
- lastDate.disabled = true;
|
|
|
+ // lastDate.disabled = true;
|
|
|
domains.push({
|
|
|
organId: null,
|
|
|
routeOrganId: null,
|
|
|
amount: null,
|
|
|
- type: null,
|
|
|
- disabled: false
|
|
|
+ type: null
|
|
|
});
|
|
|
}
|
|
|
} else {
|