Merge pull request #9416 from ulleo/dev

feat(X-Pack): 数据填报创建索引增加关于降序索引的提示
This commit is contained in:
ulleo 2024-04-28 17:56:44 +08:00 committed by GitHub
commit 01013c875b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 24 additions and 3 deletions

View File

@ -662,6 +662,7 @@ export default {
create_index: 'Create Index', create_index: 'Create Index',
add_index: 'Add Index', add_index: 'Add Index',
index_name: 'Index Name', index_name: 'Index Name',
create_index_hint: 'MySQL versions earlier than 8.0 or MariaDB versions earlier than 10.8.0 do not support Descending indexes',
index_column: 'Index Column', index_column: 'Index Column',
order_asc: 'Asc', order_asc: 'Asc',
order_desc: 'Desc', order_desc: 'Desc',

View File

@ -662,6 +662,7 @@ export default {
create_index: '創建索引', create_index: '創建索引',
add_index: '新增索引', add_index: '新增索引',
index_name: '索引名稱', index_name: '索引名稱',
create_index_hint: 'MySQL 8.0 或 MariaDB 10.8.0 以下版本不支持索引降序排序',
index_column: '索引字段', index_column: '索引字段',
order_asc: '升序', order_asc: '升序',
order_desc: '降序', order_desc: '降序',

View File

@ -660,6 +660,7 @@ export default {
create_index: '创建索引', create_index: '创建索引',
add_index: '新增索引', add_index: '新增索引',
index_name: '索引名称', index_name: '索引名称',
create_index_hint: 'MySQL 8.0 或 MariaDB 10.8.0 以下版本不支持索引降序排序',
index_column: '索引字段', index_column: '索引字段',
order_asc: '升序', order_asc: '升序',
order_desc: '降序', order_desc: '降序',

View File

@ -597,9 +597,27 @@ export default {
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column>
:label="$t('data_fill.form.index_column')" <template
> slot="header"
slot-scope="scope"
>
{{ $t('data_fill.form.index_column') }}
<el-tooltip
class="item"
effect="dark"
placement="bottom"
>
<div
slot="content"
v-html="$t('data_fill.form.create_index_hint')"
/>
<i
class="el-icon-info"
style="cursor: pointer;"
/>
</el-tooltip>
</template>
<template slot-scope="scope"> <template slot-scope="scope">
<div <div
v-for="(indexRow, $index) in scope.row.columns" v-for="(indexRow, $index) in scope.row.columns"