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