优化展示

This commit is contained in:
2025-11-22 14:06:46 +08:00
parent 147040a1d9
commit 60029d7580
6 changed files with 20 additions and 20 deletions

View File

@@ -4,7 +4,7 @@
<div style="margin-bottom: 20px; display: flex; align-items: center; gap: 10px;">
<el-input
v-model="searchKeyword"
placeholder="请输入品种名称"
placeholder="请输入品种名称"
clearable
style="width: 300px;"
@keyup.enter="handleSearch"
@@ -12,7 +12,7 @@
<el-button type="primary" @click="handleSearch">搜索</el-button>
</div>
<!-- 品种列表 -->
<!-- 品种列表 -->
<el-table :data="tableData" style="width: 100%" v-loading="loading" row-key="id"
:expand-row-keys="expandRowKeys" @expand-change="handleExpandChange">
<el-table-column type="expand">
@@ -126,8 +126,8 @@ export default {
pagination.value.total = response.data.pagination.total;
}
} catch (error) {
console.error('获取品种列表失败:', error);
ElMessage.error('获取品种列表失败');
console.error('获取品种列表失败:', error);
ElMessage.error('获取品种列表失败');
} finally {
loading.value = false;
}
@@ -186,7 +186,7 @@ export default {
const handleDelete = (row) => {
ElMessageBox.confirm(
`确定要删除品种 "${row.name}" 吗?`,
`确定要删除品种 "${row.name}" 吗?`,
'提示',
{
confirmButtonText: '确定',