forked from github/dataease
Merge pull request #3931 from dataease/pr@dev_memory_component
Pr@dev memory component
This commit is contained in:
commit
421ee906f5
@ -148,12 +148,11 @@
|
||||
:disabled="!hasDataPermission('manage', param.privileges)"
|
||||
class="select-type"
|
||||
:options="getFields(scope.row)"
|
||||
@visible-change="getPopPosition"
|
||||
@change="saveEdit(scope.row)"
|
||||
>
|
||||
<template slot-scope="{ node, data }">
|
||||
<span
|
||||
v-if="node.level === 2"
|
||||
v-if="node.level === 2 && data.label === 'yyyy-MM-dd'"
|
||||
class="format-title"
|
||||
:style="popPosition"
|
||||
>{{ $t('chart.date_format') }}</span>
|
||||
@ -488,12 +487,11 @@
|
||||
:disabled="!hasDataPermission('manage', param.privileges)"
|
||||
class="select-type"
|
||||
:options="getFields(scope.row)"
|
||||
@visible-change="getPopPosition"
|
||||
@change="saveEdit(scope.row)"
|
||||
>
|
||||
<template slot-scope="{ node, data }">
|
||||
<span
|
||||
v-if="node.level === 2"
|
||||
v-if="node.level === 2 && data.label === 'yyyy-MM-dd'"
|
||||
class="format-title"
|
||||
:style="popPosition"
|
||||
>{{ $t('chart.date_format') }}</span>
|
||||
@ -807,15 +805,6 @@ export default {
|
||||
that.maxHeight = currentHeight - 56 - 30 - 35 - 26 - 10 - 10 + 'px'
|
||||
}, 10)
|
||||
},
|
||||
getPopPosition(val) {
|
||||
if (!val) return
|
||||
this.$nextTick(() => {
|
||||
const list = document.querySelectorAll('body > .select-date-resolution-format')
|
||||
const ele = list[list.length - 1]
|
||||
const { top, left } = ele?.style
|
||||
this.popPosition = { top: parseInt(top) - 18 + 'px', left: parseInt(left) + 181 + 'px', position: 'fixed' }
|
||||
})
|
||||
},
|
||||
initField() {
|
||||
fieldListDQ(this.param.id).then((response) => {
|
||||
this.tableFields = response.data
|
||||
@ -1198,6 +1187,7 @@ span {
|
||||
position: fixed;
|
||||
display: inline-block;
|
||||
height: 30px;
|
||||
transform: translate(-30px, -37px);
|
||||
background: #dfe6ec;
|
||||
width: 180px;
|
||||
padding-left: 30px;
|
||||
|
@ -109,7 +109,7 @@
|
||||
icon="el-icon-delete"
|
||||
:command="beforeClickMore('delete', data, node)"
|
||||
>
|
||||
{{ $t('emailtask.default') + $t('commons.cancel') }}
|
||||
{{ $t('commons.cancel') + $t('emailtask.default') }}
|
||||
</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</el-dropdown>
|
||||
|
@ -708,6 +708,7 @@ export default {
|
||||
if (this.form.type === 'oracle') {
|
||||
this.$set(this.form.configuration, 'charset', 'Default')
|
||||
this.$set(this.form.configuration, 'targetCharset', 'Default')
|
||||
this.$set(this.form.configuration, 'connectionType', 'sid')
|
||||
}
|
||||
},
|
||||
changeEdit() {
|
||||
|
Loading…
Reference in New Issue
Block a user