修复已知bug
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
<!-- 搜索表单 -->
|
||||
<template>
|
||||
<a-space :size="10" style="flex-wrap: wrap">
|
||||
<a-space :size="10" style="flex-wrap: wrap" v-if="count === 0">
|
||||
<a-button type="primary" class="ele-btn-icon" @click="add">
|
||||
<template #icon>
|
||||
<PlusOutlined />
|
||||
</template>
|
||||
<span>添加</span>
|
||||
<span>创建</span>
|
||||
</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
@@ -19,6 +19,7 @@
|
||||
defineProps<{
|
||||
// 选中的角色
|
||||
selection?: [];
|
||||
count?: 0;
|
||||
}>(),
|
||||
{}
|
||||
);
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
<search
|
||||
@search="reload"
|
||||
:selection="selection"
|
||||
:count="count"
|
||||
@add="openEdit"
|
||||
@remove="removeBatch"
|
||||
@batchMove="openMove"
|
||||
@@ -66,6 +67,7 @@
|
||||
|
||||
// 表格选中数据
|
||||
const selection = ref<Mp[]>([]);
|
||||
const count = ref<number>(0);
|
||||
// 当前编辑数据
|
||||
const current = ref<Mp | null>(null);
|
||||
// 是否显示编辑弹窗
|
||||
@@ -213,6 +215,10 @@
|
||||
/* 查询 */
|
||||
const query = () => {
|
||||
loading.value = true;
|
||||
pageMp({}).then((res) => {
|
||||
console.log(res?.count);
|
||||
count.value = res?.count;
|
||||
});
|
||||
};
|
||||
|
||||
/* 自定义行属性 */
|
||||
|
||||
Reference in New Issue
Block a user