大屏数据源配置
This commit is contained in:
		| @@ -401,20 +401,23 @@ | ||||
|         this.$refs.form.validate((valid) => { | ||||
|           if (valid) { | ||||
|             let configs = [] | ||||
|             this.filedList.forEach(item => { | ||||
|               if (item.value.length) { | ||||
|                 item.value.forEach(v => { | ||||
|                   configs.push({ | ||||
|                     alias: item.fieldCnName, | ||||
|                     calcType: v, | ||||
|                     fieldCnName: item.fieldCnName, | ||||
|                     fieldName: item.fieldName, | ||||
|                     dictCode: item.dictCode, | ||||
|                     orderType: this.orderType | ||||
|  | ||||
|             if (this.filedList.length) { | ||||
|               this.filedList.forEach(item => { | ||||
|                 if (item.value.length) { | ||||
|                   item.value.forEach(v => { | ||||
|                     configs.push({ | ||||
|                       alias: item.fieldCnName, | ||||
|                       calcType: v, | ||||
|                       fieldCnName: item.fieldCnName, | ||||
|                       fieldName: item.fieldName, | ||||
|                       dictCode: item.dictCode, | ||||
|                       orderType: this.orderType | ||||
|                     }) | ||||
|                   }) | ||||
|                 }) | ||||
|               } | ||||
|             }) | ||||
|                 } | ||||
|               }) | ||||
|             } | ||||
|  | ||||
|             this.instance.post(`${this.urlPrefix}/appdiylargescreen/addOrUpdateDatasource`, { | ||||
|               ...this.form, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user