刷新添加案例页面

This commit is contained in:
NiSen
2023-06-30 15:44:06 +08:00
parent 8e96aac015
commit 6c943f2e2d
2 changed files with 8 additions and 1 deletions

View File

@@ -223,6 +223,7 @@ const remove = (id) => {
}
// 下一步返回的刷新列表
function submitCall(flag) {
searchDataInfo.pageIndex = 1
flag && getTopList()
}
// 计算选择的条数

View File

@@ -59,7 +59,7 @@
</div>
</template>
<script setup lang="jsx">
import { ref, onMounted, reactive } from "vue";
import { ref, onMounted, reactive, watch } from "vue";
import { Form, message } from "ant-design-vue";
import { boeRequest } from "@/api/request";
import useDownload from '@/hooks/useDownload'
@@ -186,6 +186,12 @@ const searchData = ref({
const newNext = ref(false);
const recommendTimeList = ref([]);
const loading = ref(false);
watch(newNext, (value) => {
if (!value) {
searchData.value.pageIndex = 1;
getList()
}
})
const getList = (num) => {
if (num === 1) searchData.value.pageIndex = 1;