diff --git a/src/pages/04_product-service/MainPage.vue b/src/pages/04_product-service/MainPage.vue
index 72fcd87c..37403231 100644
--- a/src/pages/04_product-service/MainPage.vue
+++ b/src/pages/04_product-service/MainPage.vue
@@ -1187,20 +1187,111 @@ watch(currentStatus, async () => {
class="row q-col-gutter-lg flex"
style="padding: 20px"
>
+
+ {
+ toggleStatusProduct(i.id, i.status);
+ }
+ "
+ @menuViewDetail="
+ () => {
+ currentIdProduct = i.id;
+ assignFormDataProduct(i);
+ dialogProductEdit = true;
+ }
+ "
+ @menuEdit="
+ () => {
+ currentIdProduct = i.id;
+ infoProductEdit = true;
+ assignFormDataProduct(i);
+ dialogProductEdit = true;
+ }
+ "
+ @viewDetail="
+ () => {
+ currentIdProduct = i.id;
+ infoProductEdit = false;
+ assignFormDataProduct(i);
+ dialogProductEdit = true;
+ }
+ "
+ />
+
- if (currentStatus === 'INACTIVE') {
+
+ {
+ toggleStatusService(i.id, i.status);
+ }
+ "
+ @menuViewDetail="
+ () => {
+ currentIdService = i.id;
+ infoServiceEdit = false;
+ assignFormDataProductService(i.id);
+ dialogServiceEdit = true;
+ }
+ "
+ @menuEdit="
+ () => {
+ currentIdService = i.id;
+ infoServiceEdit = true;
+ assignFormDataProductService(i.id);
+ dialogServiceEdit = true;
+ }
+ "
+ />
+
+
+
+
+ {
- if (currentStatus === 'All') {
- return true;
- }
-
- if (currentStatus === 'ACTIVE') {
- return i.status === 'ACTIVE' || i.status === 'CREATED';
- }
-
- if (currentStatus === 'INACTIVE') {
+ if (currentStatus === 'All' || currentStatus === 'INACTIVE') {
return i.status === 'INACTIVE';
}
})