refacor(视图): 优化视图联动loading显示,空值处理问题

This commit is contained in:
wangjiahao 2022-11-29 14:51:45 +08:00
parent edf2aba91b
commit b5a3a66362
3 changed files with 5 additions and 3 deletions

View File

@ -185,7 +185,7 @@ export function multFieldValues(data) {
return request({
url: '/dataset/field/multFieldValues',
method: 'post',
loading: true,
loading: false,
data
})
}
@ -241,6 +241,7 @@ export function checkCustomDs() {
loading: true
})
}
export function exportExcel(data) {
return request({
url: '/dataset/taskLog/export',
@ -268,4 +269,5 @@ export function exportDataset(data) {
responseType: 'blob'
})
}
export default { loadTable, getScene, addGroup, delGroup, addTable, delTable, groupTree, checkCustomDs, exportDataset }

View File

@ -602,7 +602,7 @@ export default {
return 'auto'
}
}
if (this.element.auxiliaryMatrix) {
if (this.element.auxiliaryMatrix && this.curCanvasScaleSelf) {
const height = Math.round(this.height / this.curCanvasScaleSelf.matrixStyleHeight) * this.curCanvasScaleSelf.matrixStyleHeight
return (height - this.curGap * 2) + 'px'
} else {

View File

@ -202,7 +202,7 @@ export default {
})
},
checkSelected(param) {
return (this.linkageActiveParam.name === param.name) &&
return (this.linkageActiveParam.name === param.name || (this.linkageActiveParam.name === 'NO_DATA' && !param.name)) &&
(this.linkageActiveParam.category === param.category)
},
preDraw() {