bug
This commit is contained in:
parent
7892a7cefb
commit
d3873be2b5
|
|
@ -15,7 +15,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import sampelDataDb from "@/json/data-entry/sampelDataDb.json";
|
import myContentJson from "@/json/data-entry/myContentJson.json";
|
||||||
import refineCodes from "@/json/refineCodes.json";
|
import refineCodes from "@/json/refineCodes.json";
|
||||||
import MyContent from "@/components/lazy-load/global/MyContent.vue";
|
import MyContent from "@/components/lazy-load/global/MyContent.vue";
|
||||||
const { $http: httpService } = useNuxtApp();
|
const { $http: httpService } = useNuxtApp();
|
||||||
|
|
@ -30,14 +30,19 @@ const pagination = ref({
|
||||||
page: 1,
|
page: 1,
|
||||||
limit: 10,
|
limit: 10,
|
||||||
});
|
});
|
||||||
let myContentSchema = {};
|
const myContentSchema = computed(() => {
|
||||||
myContentSchema = ref(JSON.parse(JSON.stringify(sampelDataDb)));
|
const baseSchema = JSON.parse(JSON.stringify(myContentJson));
|
||||||
myContentSchema.value.items = props.listConflicts.hits.hits;
|
|
||||||
myContentSchema.value.pagination = {
|
return {
|
||||||
total: props.listConflicts.hits.total.value,
|
...baseSchema,
|
||||||
|
items: props.listConflicts?.hits ?? [],
|
||||||
|
pagination: {
|
||||||
|
total: props.listConflicts?.total?.value ?? 0,
|
||||||
page: pagination.value.page,
|
page: pagination.value.page,
|
||||||
limit: pagination.value.limit,
|
limit: pagination.value.limit,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
});
|
||||||
const headerTools = computed(() => [
|
const headerTools = computed(() => [
|
||||||
{
|
{
|
||||||
items: [
|
items: [
|
||||||
|
|
|
||||||
|
|
@ -127,7 +127,7 @@ const getListConflict = async (textSearch = "", filterExtended = "") => {
|
||||||
);
|
);
|
||||||
console.log("res", res);
|
console.log("res", res);
|
||||||
|
|
||||||
listConflicts.value = res;
|
listConflicts.value = res.hits;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error("خطا در دریافت داده:", err);
|
console.error("خطا در دریافت داده:", err);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user