Merge pull request #7084 from dataease/pr@dev@fix_chart_detail
fix(视图): 表格详情使用原有样式,其他视图统一样式,不使用斑马纹。
This commit is contained in:
commit
380d89086b
@ -13,7 +13,7 @@
|
|||||||
:title="$t('user.change_password')"
|
:title="$t('user.change_password')"
|
||||||
:show-close="false"
|
:show-close="false"
|
||||||
>
|
>
|
||||||
<PasswordUpdateForm :old-pwd=defaultPwd />
|
<PasswordUpdateForm :old-pwd="defaultPwd" />
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@ -145,7 +145,7 @@
|
|||||||
:target="curComponent.hyperlinks.openMode "
|
:target="curComponent.hyperlinks.openMode "
|
||||||
:href="curComponent.hyperlinks.content "
|
:href="curComponent.hyperlinks.content "
|
||||||
>
|
>
|
||||||
<i class="icon iconfont icon-com-jump"/>
|
<i class="icon iconfont icon-com-jump" />
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
@ -193,7 +193,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {mapState} from 'vuex'
|
import { mapState } from 'vuex'
|
||||||
import bus from '@/utils/bus'
|
import bus from '@/utils/bus'
|
||||||
import SettingMenu from '@/components/canvas/components/editor/SettingMenu'
|
import SettingMenu from '@/components/canvas/components/editor/SettingMenu'
|
||||||
import LinkageField from '@/components/canvas/components/editor/LinkageField'
|
import LinkageField from '@/components/canvas/components/editor/LinkageField'
|
||||||
@ -202,13 +202,13 @@ import FieldsList from '@/components/canvas/components/editor/FieldsList'
|
|||||||
import LinkJumpSet from '@/views/panel/linkJumpSet'
|
import LinkJumpSet from '@/views/panel/linkJumpSet'
|
||||||
import Background from '@/views/background/index'
|
import Background from '@/views/background/index'
|
||||||
import MapLayerController from '@/views/chart/components/map/MapLayerController'
|
import MapLayerController from '@/views/chart/components/map/MapLayerController'
|
||||||
import {uploadFileResult} from '@/api/staticResource/staticResource'
|
import { uploadFileResult } from '@/api/staticResource/staticResource'
|
||||||
import eventBus from '@/components/canvas/utils/eventBus'
|
import eventBus from '@/components/canvas/utils/eventBus'
|
||||||
import {hasDataPermission} from '@/utils/permission'
|
import { hasDataPermission } from '@/utils/permission'
|
||||||
import {exportExcelDownload} from '@/components/canvas/utils/utils'
|
import { exportExcelDownload } from '@/components/canvas/utils/utils'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {Background, LinkJumpSet, FieldsList, SettingMenu, LinkageField, MapLayerController},
|
components: { Background, LinkJumpSet, FieldsList, SettingMenu, LinkageField, MapLayerController },
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
canvasId: {
|
canvasId: {
|
||||||
@ -467,7 +467,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
showViewDetails(openType = 'details') {
|
showViewDetails(openType = 'details') {
|
||||||
this.$emit('showViewDetails', {openType: openType})
|
this.$emit('showViewDetails', { openType: openType })
|
||||||
},
|
},
|
||||||
exportExcelDownload() {
|
exportExcelDownload() {
|
||||||
exportExcelDownload(this.chart)
|
exportExcelDownload(this.chart)
|
||||||
|
|||||||
@ -1025,10 +1025,13 @@ export default {
|
|||||||
const tableChart = deepCopy(this.chart)
|
const tableChart = deepCopy(this.chart)
|
||||||
tableChart.customAttr = JSON.parse(this.chart.customAttr)
|
tableChart.customAttr = JSON.parse(this.chart.customAttr)
|
||||||
tableChart.customStyle = JSON.parse(this.chart.customStyle)
|
tableChart.customStyle = JSON.parse(this.chart.customStyle)
|
||||||
tableChart.customAttr.color.tableHeaderBgColor = '#f8f8f9'
|
if (!this.chart.type?.includes('table')) {
|
||||||
tableChart.customAttr.color.tableItemBgColor = '#ffffff'
|
tableChart.customAttr.color.tableHeaderBgColor = '#f8f8f9'
|
||||||
tableChart.customAttr.color.tableHeaderFontColor = '#7c7e81'
|
tableChart.customAttr.color.tableItemBgColor = '#ffffff'
|
||||||
tableChart.customAttr.color.tableFontColor = '#7c7e81'
|
tableChart.customAttr.color.tableHeaderFontColor = '#7c7e81'
|
||||||
|
tableChart.customAttr.color.tableFontColor = '#7c7e81'
|
||||||
|
tableChart.customAttr.color.enableTableCrossBG = false
|
||||||
|
}
|
||||||
tableChart.customAttr.color.tableStripe = true
|
tableChart.customAttr.color.tableStripe = true
|
||||||
tableChart.customAttr.size.tablePageMode = 'pull'
|
tableChart.customAttr.size.tablePageMode = 'pull'
|
||||||
tableChart.customStyle.text.show = false
|
tableChart.customStyle.text.show = false
|
||||||
|
|||||||
@ -495,7 +495,7 @@ export default {
|
|||||||
bus.$off('add-new-tab', this.addNewTab)
|
bus.$off('add-new-tab', this.addNewTab)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
setTabLayout: _.debounce(function () {
|
setTabLayout: _.debounce(function() {
|
||||||
this.headClassScroll = !!this.$refs?.deTabsConstom?.$refs?.tabsConstom?.$refs?.nav?.scrollable ? 'head-class-scroll' : ''
|
this.headClassScroll = !!this.$refs?.deTabsConstom?.$refs?.tabsConstom?.$refs?.nav?.scrollable ? 'head-class-scroll' : ''
|
||||||
}, 100),
|
}, 100),
|
||||||
calcTabLength() {
|
calcTabLength() {
|
||||||
|
|||||||
@ -14,8 +14,8 @@
|
|||||||
<span
|
<span
|
||||||
v-if="chart.type"
|
v-if="chart.type"
|
||||||
v-show="title_show"
|
v-show="title_show"
|
||||||
:class="titleIsRight"
|
|
||||||
ref="title"
|
ref="title"
|
||||||
|
:class="titleIsRight"
|
||||||
:style="title_class"
|
:style="title_class"
|
||||||
style="cursor: default;display: block;"
|
style="cursor: default;display: block;"
|
||||||
>
|
>
|
||||||
|
|||||||
@ -605,7 +605,8 @@ export default {
|
|||||||
this.colorForm.tableHeaderFontColor = this.colorForm.tableHeaderFontColor ? this.colorForm.tableHeaderFontColor : this.colorForm.tableFontColor
|
this.colorForm.tableHeaderFontColor = this.colorForm.tableHeaderFontColor ? this.colorForm.tableHeaderFontColor : this.colorForm.tableFontColor
|
||||||
this.$set(this.colorForm, 'gradient', this.colorForm.gradient || false)
|
this.$set(this.colorForm, 'gradient', this.colorForm.gradient || false)
|
||||||
this.colorForm.tableScrollBarColor = this.colorForm.tableScrollBarColor ? this.colorForm.tableScrollBarColor : DEFAULT_COLOR_CASE.tableScrollBarColor
|
this.colorForm.tableScrollBarColor = this.colorForm.tableScrollBarColor ? this.colorForm.tableScrollBarColor : DEFAULT_COLOR_CASE.tableScrollBarColor
|
||||||
this.colorForm.quotaSuffixColor = this.colorForm.quotaSuffixColor ? this.colorForm.quotaSuffixColor :DEFAULT_COLOR_CASE.quotaSuffixColor
|
this.colorForm.quotaSuffixColor = this.colorForm.quotaSuffixColor ? this.colorForm.quotaSuffixColor : DEFAULT_COLOR_CASE.quotaSuffixColor
|
||||||
|
this.colorForm.tableItemSubBgColor = this.colorForm.tableItemSubBgColor ? this.colorForm.tableItemSubBgColor : DEFAULT_COLOR_CASE.tableItemSubBgColor
|
||||||
|
|
||||||
this.colorForm.mapStyle = this.colorForm.mapStyle ? this.colorForm.mapStyle : DEFAULT_COLOR_CASE.mapStyle
|
this.colorForm.mapStyle = this.colorForm.mapStyle ? this.colorForm.mapStyle : DEFAULT_COLOR_CASE.mapStyle
|
||||||
this.colorForm.mapLineGradient = this.colorForm.mapLineGradient ? this.colorForm.mapLineGradient : DEFAULT_COLOR_CASE.mapLineGradient
|
this.colorForm.mapLineGradient = this.colorForm.mapLineGradient ? this.colorForm.mapLineGradient : DEFAULT_COLOR_CASE.mapLineGradient
|
||||||
|
|||||||
@ -68,8 +68,9 @@
|
|||||||
@node-click="handleNodeClick"
|
@node-click="handleNodeClick"
|
||||||
@check-change="handleCheckChange"
|
@check-change="handleCheckChange"
|
||||||
>
|
>
|
||||||
<span class="custom-tree-node"
|
<span
|
||||||
slot-scope="{ node, data}"
|
slot-scope="{ node, data}"
|
||||||
|
class="custom-tree-node"
|
||||||
:title="data.excelLabel"
|
:title="data.excelLabel"
|
||||||
>
|
>
|
||||||
<span class="label">{{ data.excelLabel }}</span>
|
<span class="label">{{ data.excelLabel }}</span>
|
||||||
@ -91,9 +92,10 @@
|
|||||||
v-show="!data.sheet"
|
v-show="!data.sheet"
|
||||||
type="text"
|
type="text"
|
||||||
size="mini"
|
size="mini"
|
||||||
@click="() => remove(node, data)">
|
@click="() => remove(node, data)"
|
||||||
{{ $t('dataset.delete') }}
|
>
|
||||||
</el-button>
|
{{ $t('dataset.delete') }}
|
||||||
|
</el-button>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
@ -475,10 +477,10 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
remove(node, data) {
|
remove(node, data) {
|
||||||
const parent = node.parent;
|
const parent = node.parent
|
||||||
const children = parent.data.children || parent.data;
|
const children = parent.data.children || parent.data
|
||||||
const index = children.findIndex(d => d.id === data.id);
|
const index = children.findIndex(d => d.id === data.id)
|
||||||
children.splice(index, 1);
|
children.splice(index, 1)
|
||||||
},
|
},
|
||||||
save() {
|
save() {
|
||||||
var validate = true
|
var validate = true
|
||||||
|
|||||||
@ -526,14 +526,14 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item
|
<el-form-item
|
||||||
:label="$t('datasource.query_timeout')"
|
:label="$t('datasource.query_timeout')"
|
||||||
prop="apiQueryTimeout"
|
prop="apiQueryTimeout"
|
||||||
>
|
>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="apiItem.apiQueryTimeout"
|
v-model="apiItem.apiQueryTimeout"
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
type="number"
|
type="number"
|
||||||
:min="0"
|
:min="0"
|
||||||
>
|
>
|
||||||
<template slot="append">{{ $t('panel.second') }}</template>
|
<template slot="append">{{ $t('panel.second') }}</template>
|
||||||
</el-input>
|
</el-input>
|
||||||
@ -1158,24 +1158,24 @@ export default {
|
|||||||
}
|
}
|
||||||
callback()
|
callback()
|
||||||
},
|
},
|
||||||
isNumber(rule, value, callback) {
|
isNumber(rule, value, callback) {
|
||||||
if (!value) {
|
if (!value) {
|
||||||
callback(new Error(i18n.t('datasource.please_input_query_timeout')))
|
callback(new Error(i18n.t('datasource.please_input_query_timeout')))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
let isNumber = false
|
let isNumber = false
|
||||||
var reg = /^\d+$/;
|
var reg = /^\d+$/
|
||||||
isNumber = reg.test(value);
|
isNumber = reg.test(value)
|
||||||
if (!isNumber) {
|
if (!isNumber) {
|
||||||
callback(new Error(i18n.t('datasource.please_input_query_timeout')))
|
callback(new Error(i18n.t('datasource.please_input_query_timeout')))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if(value <= 0 || value > 300){
|
if (value <= 0 || value > 300) {
|
||||||
callback(new Error(i18n.t('datasource.please_input_query_timeout')))
|
callback(new Error(i18n.t('datasource.please_input_query_timeout')))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
callback()
|
callback()
|
||||||
},
|
},
|
||||||
next() {
|
next() {
|
||||||
if (this.active === 1) {
|
if (this.active === 1) {
|
||||||
let hasRepeatName = false
|
let hasRepeatName = false
|
||||||
|
|||||||
@ -85,14 +85,14 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<el-form-item
|
<el-form-item
|
||||||
:label="$t('system_parameter_setting.ds_sync_log_retention_time')"
|
:label="$t('system_parameter_setting.ds_sync_log_retention_time')"
|
||||||
prop="logTimeOut"
|
prop="logTimeOut"
|
||||||
>
|
>
|
||||||
<el-input
|
<el-input
|
||||||
v-model="formInline.dsSyncLogTimeOut"
|
v-model="formInline.dsSyncLogTimeOut"
|
||||||
:placeholder="$t('system_parameter_setting.empty_msg')"
|
:placeholder="$t('system_parameter_setting.empty_msg')"
|
||||||
><template
|
><template
|
||||||
slot="append"
|
slot="append"
|
||||||
>{{ $t('components.day') }}</template></el-input>
|
>{{ $t('components.day') }}</template></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user