feat: add full detail query param

This commit is contained in:
Methapon Metanipat 2024-09-18 17:49:16 +07:00
parent e1f5483aeb
commit caf8ba87a2
2 changed files with 4 additions and 2 deletions

View file

@ -111,6 +111,7 @@ async function getAllService(
page: opts?.page ?? 1,
pageSize: opts?.pageSize ?? 9999,
productGroupId: groupId,
fullDetail: true,
});
if (ret) serviceList.value[groupId] = ret.result;
}
@ -161,7 +162,7 @@ function convertToTree() {
</MainButton>
<div
v-if="productList[selectedGroup.id]"
v-if="selectedGroupSub === 'product' && productList[selectedGroup.id]"
v-for="item in productList[selectedGroup.id]"
class="row items-center"
>
@ -171,7 +172,7 @@ function convertToTree() {
</div>
<div
v-if="serviceList[selectedGroup.id]"
v-if="selectedGroupSub === 'service' && serviceList[selectedGroup.id]"
v-for="item in serviceList[selectedGroup.id]"
class="row items-center"
>

View file

@ -290,6 +290,7 @@ const useProductServiceStore = defineStore('api-product-service', () => {
pageSize?: number;
productGroupId?: string;
status?: string;
fullDetail?: boolean;
}) {
const params = new URLSearchParams();