优化展示
This commit is contained in:
@@ -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: '确定',
|
||||
|
||||
Reference in New Issue
Block a user