|
@@ -210,11 +210,11 @@ export default {
|
|
onSporadicSubmit(formName) {
|
|
onSporadicSubmit(formName) {
|
|
this.$refs[formName].validate(valid => {
|
|
this.$refs[formName].validate(valid => {
|
|
if (valid) {
|
|
if (valid) {
|
|
- let params = {
|
|
|
|
|
|
+ let params = [{
|
|
id: this.sporadicId,
|
|
id: this.sporadicId,
|
|
paranValue: JSON.stringify(this.formSporadic),
|
|
paranValue: JSON.stringify(this.formSporadic),
|
|
paramName: "sporadic_channel"
|
|
paramName: "sporadic_channel"
|
|
- };
|
|
|
|
|
|
+ }];
|
|
sysConfigUpdate(params).then(res => {
|
|
sysConfigUpdate(params).then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.messageTips("保存", res);
|
|
this.messageTips("保存", res);
|
|
@@ -243,7 +243,6 @@ export default {
|
|
res.data.forEach((item, index) => {
|
|
res.data.forEach((item, index) => {
|
|
if (item.paramName === "amount_channel") {
|
|
if (item.paramName === "amount_channel") {
|
|
paranValue = item.paranValue ? JSON.parse(item.paranValue) : [];
|
|
paranValue = item.paranValue ? JSON.parse(item.paranValue) : [];
|
|
- con
|
|
|
|
this.selectId = item.id;
|
|
this.selectId = item.id;
|
|
if(paranValue.length > 0) {
|
|
if(paranValue.length > 0) {
|
|
this.result.domains = []
|
|
this.result.domains = []
|