mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 04:46:46 +08:00
--fix bug 重复数据
This commit is contained in:
@@ -120,6 +120,7 @@ import { computed, defineEmits, defineProps, ref, watch } from "vue";
|
||||
import { useBoeApiPage } from "@/api/request";
|
||||
import { CASE_PAGE } from "@/api/ThirdApi";
|
||||
import { message } from "ant-design-vue";
|
||||
import {useResetRef} from "@/utils/useCommon";
|
||||
|
||||
const props = defineProps({
|
||||
type: Number,
|
||||
@@ -144,14 +145,13 @@ const columns = ref([
|
||||
align: "center",
|
||||
},
|
||||
]);
|
||||
const initParams = {
|
||||
const params = useResetRef({
|
||||
keyWord: "",
|
||||
authorName: "",
|
||||
pageIndex: 1,
|
||||
pageSize: 10,
|
||||
orderAsc: true,
|
||||
};
|
||||
const params = ref(initParams);
|
||||
});
|
||||
|
||||
const rowSelectKeys = ref([]);
|
||||
const selectsData = ref([]);
|
||||
@@ -221,9 +221,7 @@ function search() {
|
||||
function reset() {
|
||||
rowSelectKeys.value = [];
|
||||
selectsData.value = [];
|
||||
params.value.pageIndex = 1;
|
||||
params.value.keyWord = "";
|
||||
params.value.authorName = "";
|
||||
params.reset()
|
||||
fetch();
|
||||
}
|
||||
|
||||
@@ -258,7 +256,6 @@ function confirm() {
|
||||
}
|
||||
let selectedRows = ref(null);
|
||||
function openDrawer(i, row) {
|
||||
console.log("iiiiiiiii", i, row);
|
||||
row && (rowSelectKeys.value = [row.info]);
|
||||
row && (selectsData.value = [{ title: row.name, id: row.courseId }]);
|
||||
i >= 0 && (taskIndex.value = i);
|
||||
|
||||
Reference in New Issue
Block a user