Merge branch 'dev' into pr@dev_memory_component

This commit is contained in:
dataeaseShu 2022-12-27 17:01:42 +08:00
commit 2d23652cc5
8 changed files with 22 additions and 10 deletions

View File

@ -234,6 +234,7 @@
group by sa.auth_source group by sa.auth_source
) pg_auth on pg_auth.id = pg.id ) pg_auth on pg_auth.id = pg.id
where dt.id=#{datasetId,jdbcType=VARCHAR} where dt.id=#{datasetId,jdbcType=VARCHAR}
group by id,panel_id
order by id order by id
</select> </select>
</mapper> </mapper>

View File

@ -239,6 +239,7 @@
group by sa.auth_source group by sa.auth_source
) pg_auth on pg_auth.id = pg.id ) pg_auth on pg_auth.id = pg.id
where ds.id=#{datasourceId,jdbcType=VARCHAR} where ds.id=#{datasourceId,jdbcType=VARCHAR}
group by id,panel_id
order by id order by id
</select> </select>
</mapper> </mapper>

View File

@ -285,7 +285,7 @@
) )
group by sa.auth_source group by sa.auth_source
) dt_auth on dt.id = dt_auth.id ) dt_auth on dt.id = dt_auth.id
join datasource ds on dt.data_source_id = ds.id left join datasource ds on dt.data_source_id = ds.id
left join left join
( (
select select
@ -318,7 +318,8 @@
group by sa.auth_source group by sa.auth_source
) ds_auth on ds_auth.id = ds.id ) ds_auth on ds_auth.id = ds.id
where pg.id=#{panelId,jdbcType=VARCHAR} where pg.id=#{panelId,jdbcType=VARCHAR}
group by dt.id group by id,dt_id
order by id
</select> </select>
<select id="listPanelByUser" resultType="io.dataease.plugins.common.base.domain.PanelGroup" <select id="listPanelByUser" resultType="io.dataease.plugins.common.base.domain.PanelGroup"

View File

@ -141,7 +141,7 @@ export default {
} }
// //
if (jumpParam.sourceType && jumpParam.sourceType === 'table-pivot') { if (jumpParam.sourceType && jumpParam.sourceType === 'table-pivot') {
jumpRequestParam.targetPanelId = null jumpRequestParam.sourceFieldId = null
} }
try { try {
// //

View File

@ -792,12 +792,14 @@ export default {
this.requestStatus = 'success' this.requestStatus = 'success'
this.httpRequest.status = true this.httpRequest.status = true
} else { } else {
console.error('err2-' + JSON.stringify(response))
this.requestStatus = 'error' this.requestStatus = 'error'
this.message = response.message this.message = response.message
} }
this.isFirstLoad = false this.isFirstLoad = false
return true return true
}).catch(err => { }).catch(err => {
console.error('err-' + err)
this.requestStatus = 'error' this.requestStatus = 'error'
if (err.message && err.message.indexOf('timeout') > -1) { if (err.message && err.message.indexOf('timeout') > -1) {
this.message = this.$t('panel.timeout_refresh') this.message = this.$t('panel.timeout_refresh')
@ -878,10 +880,10 @@ export default {
} }
if (formatterCfg) { if (formatterCfg) {
const v = valueFormatter(value, formatterCfg) const v = valueFormatter(value, formatterCfg)
rowData[key] = v.includes('NaN') ? value : v rowData[key] = v && v.includes('NaN') ? value : v
} else { } else {
const v = valueFormatter(value, formatterItem) const v = valueFormatter(value, formatterItem)
rowData[key] = v.includes('NaN') ? value : v rowData[key] = v && v.includes('NaN') ? value : v
} }
} }
} }

View File

@ -53,12 +53,14 @@ export function listenGlobalKeyDown() {
window.onkeydown = (e) => { window.onkeydown = (e) => {
if (!store.state.isInEditor) return if (!store.state.isInEditor) return
const { keyCode } = e const { keyCode } = e
e.preventDefault()
e.stopPropagation()
if (keyCode === ctrlKey || keyCode === commandKey) { if (keyCode === ctrlKey || keyCode === commandKey) {
e.preventDefault()
e.stopPropagation()
isCtrlOrCommandDown = true isCtrlOrCommandDown = true
} else if (isCtrlOrCommandDown) { } else if (isCtrlOrCommandDown) {
if (keyCode === zKey || keyCode === yKey || keyCode === dKey || keyCode === sKey || keyCode === enlargeKey) { if (keyCode === zKey || keyCode === yKey || keyCode === dKey || keyCode === sKey || keyCode === enlargeKey) {
e.preventDefault()
e.stopPropagation()
unlockMap[keyCode]() unlockMap[keyCode]()
} }
} }
@ -74,13 +76,14 @@ export function listenGlobalKeyDown() {
export function listenGlobalKeyDownPreview() { export function listenGlobalKeyDownPreview() {
window.onkeydown = (e) => { window.onkeydown = (e) => {
const { keyCode } = e const { keyCode } = e
e.preventDefault()
e.stopPropagation()
if (keyCode === ctrlKey || keyCode === commandKey) { if (keyCode === ctrlKey || keyCode === commandKey) {
e.preventDefault()
e.stopPropagation()
isCtrlOrCommandDown = true isCtrlOrCommandDown = true
} else if (isCtrlOrCommandDown) { } else if (isCtrlOrCommandDown) {
if (keyCode === enlargeKey) { if (keyCode === enlargeKey) {
e.preventDefault() e.preventDefault()
e.stopPropagation()
unlockMap[keyCode]() unlockMap[keyCode]()
} }
} }

View File

@ -426,7 +426,8 @@ export default {
name: this.pointParam.data.name, name: this.pointParam.data.name,
viewId: this.chart.id, viewId: this.chart.id,
dimensionList: this.pointParam.data.dimensionList, dimensionList: this.pointParam.data.dimensionList,
quotaList: this.pointParam.data.quotaList quotaList: this.pointParam.data.quotaList,
sourceType: this.pointParam.data.sourceType
} }
switch (trackAction) { switch (trackAction) {
case 'drill': case 'drill':

View File

@ -152,6 +152,9 @@ export default {
sourceFieldId: jumpParam.sourceFieldId, sourceFieldId: jumpParam.sourceFieldId,
targetPanelId: this.resourceId targetPanelId: this.resourceId
} }
if (jumpParam.sourceType && jumpParam.sourceType === 'table-pivot') {
jumpRequestParam.sourceFieldId = null
}
// //
queryTargetPanelJumpInfo(jumpRequestParam).then(rsp => { queryTargetPanelJumpInfo(jumpRequestParam).then(rsp => {
this.show = true this.show = true