提交 264032f9 authored 作者: wangjiahao's avatar wangjiahao

Merge remote-tracking branch 'origin/main' into main

...@@ -10,7 +10,7 @@ const drawPanel = { ...@@ -10,7 +10,7 @@ const drawPanel = {
type: 'custom', type: 'custom',
style: { style: {
width: 300, width: 300,
height: 35, height: 47,
fontSize: 14, fontSize: 14,
fontWeight: 500, fontWeight: 500,
lineHeight: '', lineHeight: '',
......
...@@ -26,7 +26,7 @@ const drawPanel = { ...@@ -26,7 +26,7 @@ const drawPanel = {
type: 'custom', type: 'custom',
style: { style: {
width: 300, width: 300,
height: 35, height: 47,
fontSize: 14, fontSize: 14,
fontWeight: 500, fontWeight: 500,
lineHeight: '', lineHeight: '',
......
...@@ -22,7 +22,7 @@ const drawPanel = { ...@@ -22,7 +22,7 @@ const drawPanel = {
type: 'custom', type: 'custom',
style: { style: {
width: 300, width: 300,
height: 35, height: 47,
fontSize: 14, fontSize: 14,
fontWeight: 500, fontWeight: 500,
lineHeight: '', lineHeight: '',
......
...@@ -27,7 +27,7 @@ const drawPanel = { ...@@ -27,7 +27,7 @@ const drawPanel = {
type: 'custom', type: 'custom',
style: { style: {
width: 300, width: 300,
height: 35, height: 47,
fontSize: 14, fontSize: 14,
fontWeight: 500, fontWeight: 500,
lineHeight: '', lineHeight: '',
......
...@@ -24,7 +24,7 @@ const drawPanel = { ...@@ -24,7 +24,7 @@ const drawPanel = {
type: 'custom', type: 'custom',
style: { style: {
width: 300, width: 300,
height: 35, height: 47,
fontSize: 14, fontSize: 14,
fontWeight: 500, fontWeight: 500,
lineHeight: '', lineHeight: '',
......
...@@ -22,7 +22,7 @@ const drawPanel = { ...@@ -22,7 +22,7 @@ const drawPanel = {
type: 'custom', type: 'custom',
style: { style: {
width: 300, width: 300,
height: 35, height: 47,
fontSize: 14, fontSize: 14,
fontWeight: 500, fontWeight: 500,
lineHeight: '', lineHeight: '',
......
...@@ -22,7 +22,7 @@ const drawPanel = { ...@@ -22,7 +22,7 @@ const drawPanel = {
type: 'custom', type: 'custom',
style: { style: {
width: 300, width: 300,
height: 35, height: 47,
fontSize: 14, fontSize: 14,
fontWeight: 500, fontWeight: 500,
lineHeight: '', lineHeight: '',
......
...@@ -20,7 +20,7 @@ const drawPanel = { ...@@ -20,7 +20,7 @@ const drawPanel = {
type: 'custom', type: 'custom',
style: { style: {
width: 300, width: 300,
height: 35, height: 47,
fontSize: 14, fontSize: 14,
fontWeight: 500, fontWeight: 500,
lineHeight: '', lineHeight: '',
......
...@@ -22,7 +22,7 @@ const drawPanel = { ...@@ -22,7 +22,7 @@ const drawPanel = {
type: 'custom', type: 'custom',
style: { style: {
width: 300, width: 300,
height: 35, height: 47,
fontSize: 14, fontSize: 14,
fontWeight: 500, fontWeight: 500,
lineHeight: '', lineHeight: '',
......
...@@ -827,7 +827,8 @@ export default { ...@@ -827,7 +827,8 @@ export default {
edit_field: 'Edit Field', edit_field: 'Edit Field',
preview_100_data: 'Show 100 lines data', preview_100_data: 'Show 100 lines data',
invalid_table_check: 'Please sync data first.', invalid_table_check: 'Please sync data first.',
parse_error: 'Parse Error' parse_error: 'Parse Error',
origin_field_type: 'Origin Type'
}, },
datasource: { datasource: {
datasource: 'Data Source', datasource: 'Data Source',
......
...@@ -827,7 +827,8 @@ export default { ...@@ -827,7 +827,8 @@ export default {
edit_field: '編輯自斷', edit_field: '編輯自斷',
preview_100_data: '顯示前100行數據', preview_100_data: '顯示前100行數據',
invalid_table_check: '非直連數據集請先完成數據同步', invalid_table_check: '非直連數據集請先完成數據同步',
parse_error: '解析錯誤' parse_error: '解析錯誤',
origin_field_type: '原始類型'
}, },
datasource: { datasource: {
datasource: '數據源', datasource: '數據源',
......
...@@ -827,7 +827,8 @@ export default { ...@@ -827,7 +827,8 @@ export default {
edit_field: '编辑字段', edit_field: '编辑字段',
preview_100_data: '显示前100行数据', preview_100_data: '显示前100行数据',
invalid_table_check: '非直连数据集请先完成数据同步', invalid_table_check: '非直连数据集请先完成数据同步',
parse_error: '解析错误' parse_error: '解析错误',
origin_field_type: '原始类型'
}, },
datasource: { datasource: {
datasource: '数据源', datasource: '数据源',
......
...@@ -104,9 +104,9 @@ export const BASE_BAR = { ...@@ -104,9 +104,9 @@ export const BASE_BAR = {
fontWeight: 'normal' fontWeight: 'normal'
} }
}, },
// grid: { grid: {
// containLabel: true containLabel: true
// }, },
tooltip: {}, tooltip: {},
legend: { legend: {
show: true, show: true,
...@@ -136,9 +136,9 @@ export const HORIZONTAL_BAR = { ...@@ -136,9 +136,9 @@ export const HORIZONTAL_BAR = {
fontWeight: 'normal' fontWeight: 'normal'
} }
}, },
// grid: { grid: {
// containLabel: true containLabel: true
// }, },
tooltip: {}, tooltip: {},
legend: { legend: {
show: true, show: true,
...@@ -169,9 +169,9 @@ export const BASE_LINE = { ...@@ -169,9 +169,9 @@ export const BASE_LINE = {
fontWeight: 'normal' fontWeight: 'normal'
} }
}, },
// grid: { grid: {
// containLabel: true containLabel: true
// }, },
tooltip: {}, tooltip: {},
legend: { legend: {
show: true, show: true,
...@@ -203,9 +203,9 @@ export const BASE_PIE = { ...@@ -203,9 +203,9 @@ export const BASE_PIE = {
fontWeight: 'normal' fontWeight: 'normal'
} }
}, },
// grid: { grid: {
// containLabel: true containLabel: true
// }, },
tooltip: {}, tooltip: {},
legend: { legend: {
show: true, show: true,
...@@ -239,9 +239,9 @@ export const BASE_FUNNEL = { ...@@ -239,9 +239,9 @@ export const BASE_FUNNEL = {
fontWeight: 'normal' fontWeight: 'normal'
} }
}, },
// grid: { grid: {
// containLabel: true containLabel: true
// }, },
tooltip: { tooltip: {
trigger: 'item' trigger: 'item'
}, },
...@@ -298,9 +298,9 @@ export const BASE_RADAR = { ...@@ -298,9 +298,9 @@ export const BASE_RADAR = {
fontWeight: 'normal' fontWeight: 'normal'
} }
}, },
// grid: { grid: {
// containLabel: true containLabel: true
// }, },
tooltip: {}, tooltip: {},
legend: { legend: {
show: true, show: true,
...@@ -336,9 +336,9 @@ export const BASE_GAUGE = { ...@@ -336,9 +336,9 @@ export const BASE_GAUGE = {
fontWeight: 'normal' fontWeight: 'normal'
} }
}, },
// grid: { grid: {
// containLabel: true containLabel: true
// }, },
tooltip: {}, tooltip: {},
legend: { legend: {
show: true, show: true,
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
</el-row> </el-row>
<el-divider /> <el-divider />
<el-table :data="tableFields" size="mini" :max-height="maxHeight"> <el-table :data="tableFields" size="mini" :max-height="maxHeight">
<el-table-column property="type" :label="$t('dataset.field_type')" width="180"> <el-table-column property="deType" :label="$t('dataset.field_type')" width="140">
<template slot-scope="scope"> <template slot-scope="scope">
<el-select v-model="scope.row.deType" size="mini" style="display: inline-block;width: 26px;"> <el-select v-model="scope.row.deType" size="mini" style="display: inline-block;width: 26px;">
<el-option <el-option
...@@ -46,6 +46,25 @@ ...@@ -46,6 +46,25 @@
</span> </span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column property="deExtractType" :label="$t('dataset.origin_field_type')" width="140">
<template slot-scope="scope">
<span>
<span v-if="scope.row.deExtractType === 0">
<svg-icon v-if="scope.row.deExtractType === 0" icon-class="field_text" class="field-icon-text" />
<span class="field-class">{{ $t('dataset.text') }}</span>
</span>
<span v-if="scope.row.deExtractType === 1">
<svg-icon v-if="scope.row.deExtractType === 1" icon-class="field_time" class="field-icon-time" />
<span class="field-class">{{ $t('dataset.time') }}</span>
</span>
<span v-if="scope.row.deExtractType === 2 || scope.row.deExtractType === 3">
<svg-icon v-if="scope.row.deExtractType === 2 || scope.row.deExtractType === 3" icon-class="field_value" class="field-icon-value" />
<span v-if="scope.row.deExtractType === 2" class="field-class">{{ $t('dataset.value') }}</span>
<span v-if="scope.row.deExtractType === 3" class="field-class">{{ $t('dataset.value') + '(' + $t('dataset.float') + ')' }}</span>
</span>
</span>
</template>
</el-table-column>
<el-table-column property="name" :label="$t('dataset.field_name')" width="180"> <el-table-column property="name" :label="$t('dataset.field_name')" width="180">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.name" size="mini" /> <el-input v-model="scope.row.name" size="mini" />
......
...@@ -139,17 +139,24 @@ export default { ...@@ -139,17 +139,24 @@ export default {
this.showTemplateEditDialog('edit', templateInfo) this.showTemplateEditDialog('edit', templateInfo)
}, },
saveTemplateEdit(templateEditForm) { saveTemplateEdit(templateEditForm) {
save(templateEditForm).then(response => { this.$refs['templateEditForm'].validate((valid) => {
this.$message({ if (valid) {
message: this.$t('commons.save_success'), save(templateEditForm).then(response => {
type: 'success', this.close()
showClose: true this.$message({
}) message: this.$t('commons.save_success'),
this.editTemplate = false type: 'success',
this.getTree() showClose: true
})
this.getTree()
})
} else {
return false
}
}) })
}, },
close() { close() {
this.$refs['templateEditForm'].resetFields()
this.editTemplate = false this.editTemplate = false
}, },
getTree() { getTree() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论