fix(用例管理): 表格组件全局行内编辑全局提示

--bug=1035871 --user=王旭 【用例管理】用例列表编辑用例名称时,用例名称为空没有提示信息 https://www.tapd.cn/55049933/s/1482676
This commit is contained in:
WangXu10 2024-03-28 12:02:31 +08:00 committed by 刘瑞斌
parent a0085b1591
commit 30ecc8d586
3 changed files with 4 additions and 0 deletions

View File

@ -254,6 +254,7 @@
<script lang="ts" setup> <script lang="ts" setup>
import { computed, defineModel, nextTick, onMounted, ref, useAttrs, watch } from 'vue'; import { computed, defineModel, nextTick, onMounted, ref, useAttrs, watch } from 'vue';
import { Message } from '@arco-design/web-vue';
import MsIcon from '@/components/pure/ms-icon-font/index.vue'; import MsIcon from '@/components/pure/ms-icon-font/index.vue';
import MsPagination from '@/components/pure/ms-pagination/index'; import MsPagination from '@/components/pure/ms-pagination/index';
@ -497,6 +498,7 @@
currentEditValue.value = ''; currentEditValue.value = '';
} else { } else {
if (!record[dataIndex]) { if (!record[dataIndex]) {
Message.warning(t('common.value.notNull'));
return; return;
} }
// Enter // Enter

View File

@ -144,4 +144,5 @@ export default {
'common.notQuote': 'Not quote', 'common.notQuote': 'Not quote',
'common.execute': 'execute', 'common.execute': 'execute',
'common.replace': 'replace', 'common.replace': 'replace',
'common.value.notNull': 'The attribute value cannot be empty',
}; };

View File

@ -145,4 +145,5 @@ export default {
'common.notQuote': '不引用', 'common.notQuote': '不引用',
'common.execute': '执行', 'common.execute': '执行',
'common.replace': '替换', 'common.replace': '替换',
'common.value.notNull': '属性值不能为空',
}; };