Ver Fonte

feat: table增加双击打开详情

laiqi há 1 ano atrás
pai
commit
50d7a7004c

+ 11 - 1
apps/web-ele/src/views/coupon-manage/index.vue

@@ -90,7 +90,17 @@ const gridOptions: VxeGridProps<any> = {
   ],
 };
 
-const [Grid, gridApi] = useVbenVxeGrid({ gridOptions, formOptions });
+const gridEvents: VxeGridListeners<RowType> = {
+  cellDblclick: ({ row }) => {
+    handleDetail(row);
+  },
+};
+
+const [Grid, gridApi] = useVbenVxeGrid({
+  gridEvents,
+  gridOptions,
+  formOptions,
+});
 
 const [Modal, modalApi] = useVbenModal({
   fullscreenButton: false,

+ 11 - 1
apps/web-ele/src/views/customer-manage/index.vue

@@ -115,7 +115,17 @@ const gridOptions: VxeGridProps<any> = {
   ],
 };
 
-const [Grid, gridApi] = useVbenVxeGrid({ gridOptions, formOptions });
+const gridEvents: VxeGridListeners<RowType> = {
+  cellDblclick: ({ row }) => {
+    handleDetail(row);
+  },
+};
+
+const [Grid, gridApi] = useVbenVxeGrid({
+  gridEvents,
+  gridOptions,
+  formOptions,
+});
 
 const [Modal, modalApi] = useVbenModal({
   fullscreenButton: false,

+ 11 - 1
apps/web-ele/src/views/examine-manage/examine-coupon/index.vue

@@ -126,7 +126,17 @@ const gridOptions: VxeGridProps<any> = {
   ],
 };
 
-const [Grid, gridApi] = useVbenVxeGrid({ gridOptions, formOptions });
+const gridEvents: VxeGridListeners<RowType> = {
+  cellDblclick: ({ row }) => {
+    handleDetail(row);
+  },
+};
+
+const [Grid, gridApi] = useVbenVxeGrid({
+  gridEvents,
+  gridOptions,
+  formOptions,
+});
 
 const [Modal, modalApi] = useVbenModal({
   fullscreenButton: false,

+ 11 - 1
apps/web-ele/src/views/examine-manage/examine-subsidy/index.vue

@@ -97,7 +97,17 @@ const gridOptions: VxeGridProps<any> = {
   ],
 };
 
-const [Grid, gridApi] = useVbenVxeGrid({ gridOptions, formOptions });
+const gridEvents: VxeGridListeners<RowType> = {
+  cellDblclick: ({ row }) => {
+    handleDetail(row);
+  },
+};
+
+const [Grid, gridApi] = useVbenVxeGrid({
+  gridEvents,
+  gridOptions,
+  formOptions,
+});
 
 const [Modal, modalApi] = useVbenModal({
   fullscreenButton: false,

+ 11 - 1
apps/web-ele/src/views/order-manage/index.vue

@@ -110,7 +110,17 @@ const gridOptions: VxeGridProps<any> = {
   ],
 };
 
-const [Grid, gridApi] = useVbenVxeGrid({ gridOptions, formOptions });
+const gridEvents: VxeGridListeners<RowType> = {
+  cellDblclick: ({ row }) => {
+    handleDetail(row);
+  },
+};
+
+const [Grid, gridApi] = useVbenVxeGrid({
+  gridEvents,
+  gridOptions,
+  formOptions,
+});
 
 const [Modal, modalApi] = useVbenModal({
   fullscreenButton: false,

+ 11 - 1
apps/web-ele/src/views/product-manage/index.vue

@@ -108,7 +108,17 @@ const gridOptions: VxeGridProps<any> = {
   ],
 };
 
-const [Grid, gridApi] = useVbenVxeGrid({ gridOptions, formOptions });
+const gridEvents: VxeGridListeners<RowType> = {
+  cellDblclick: ({ row }) => {
+    handleDetail(row);
+  },
+};
+
+const [Grid, gridApi] = useVbenVxeGrid({
+  gridEvents,
+  gridOptions,
+  formOptions,
+});
 
 const [Modal, modalApi] = useVbenModal({
   fullscreenButton: false,

+ 11 - 1
apps/web-ele/src/views/scqy-manage/index.vue

@@ -84,7 +84,17 @@ const gridOptions: VxeGridProps<any> = {
   ],
 };
 
-const [Grid, gridApi] = useVbenVxeGrid({ gridOptions, formOptions });
+const gridEvents: VxeGridListeners<RowType> = {
+  cellDblclick: ({ row }) => {
+    handleDetail(row);
+  },
+};
+
+const [Grid, gridApi] = useVbenVxeGrid({
+  gridEvents,
+  gridOptions,
+  formOptions,
+});
 
 const [Modal, modalApi] = useVbenModal({
   fullscreenButton: false,

+ 11 - 1
apps/web-ele/src/views/subsidy-manage/index.vue

@@ -97,7 +97,17 @@ const gridOptions: VxeGridProps<any> = {
   ],
 };
 
-const [Grid, gridApi] = useVbenVxeGrid({ gridOptions, formOptions });
+const gridEvents: VxeGridListeners<RowType> = {
+  cellDblclick: ({ row }) => {
+    handleDetail(row);
+  },
+};
+
+const [Grid, gridApi] = useVbenVxeGrid({
+  gridEvents,
+  gridOptions,
+  formOptions,
+});
 
 const [Modal, modalApi] = useVbenModal({
   fullscreenButton: false,

+ 11 - 1
apps/web-ele/src/views/system-manage/data-dictionary/index.vue

@@ -144,7 +144,17 @@ const gridOptions: VxeGridProps<any> = {
   ],
 };
 
-const [Grid, gridApi] = useVbenVxeGrid({ gridOptions, formOptions });
+const gridEvents: VxeGridListeners<RowType> = {
+  cellDblclick: ({ row }) => {
+    handleDetail(row);
+  },
+};
+
+const [Grid, gridApi] = useVbenVxeGrid({
+  gridEvents,
+  gridOptions,
+  formOptions,
+});
 
 const [Modal, modalApi] = useVbenModal({
   fullscreenButton: false,

+ 11 - 1
apps/web-ele/src/views/system-manage/menu-manage/index.vue

@@ -157,7 +157,17 @@ const gridOptions: VxeGridProps<any> = {
   ],
 };
 
-const [Grid, gridApi] = useVbenVxeGrid({ gridOptions, formOptions });
+const gridEvents: VxeGridListeners<RowType> = {
+  cellDblclick: ({ row }) => {
+    handleDetail(row);
+  },
+};
+
+const [Grid, gridApi] = useVbenVxeGrid({
+  gridEvents,
+  gridOptions,
+  formOptions,
+});
 
 const [Modal, modalApi] = useVbenModal({
   fullscreenButton: false,

+ 11 - 1
apps/web-ele/src/views/system-manage/operation-logs/index.vue

@@ -138,7 +138,17 @@ const gridOptions: VxeGridProps<any> = {
   ],
 };
 
-const [Grid, gridApi] = useVbenVxeGrid({ gridOptions, formOptions });
+const gridEvents: VxeGridListeners<RowType> = {
+  cellDblclick: ({ row }) => {
+    handleDetail(row);
+  },
+};
+
+const [Grid, gridApi] = useVbenVxeGrid({
+  gridEvents,
+  gridOptions,
+  formOptions,
+});
 
 const [Modal, modalApi] = useVbenModal({
   fullscreenButton: true,

+ 11 - 1
apps/web-ele/src/views/system-manage/role-manage/index.vue

@@ -125,7 +125,17 @@ const gridOptions: VxeGridProps<any> = {
   ],
 };
 
-const [Grid, gridApi] = useVbenVxeGrid({ gridOptions, formOptions });
+const gridEvents: VxeGridListeners<RowType> = {
+  cellDblclick: ({ row }) => {
+    handleDetail(row);
+  },
+};
+
+const [Grid, gridApi] = useVbenVxeGrid({
+  gridEvents,
+  gridOptions,
+  formOptions,
+});
 
 const [Modal, modalApi] = useVbenModal({
   fullscreenButton: false,

+ 11 - 1
apps/web-ele/src/views/system-manage/user-manage/index.vue

@@ -120,7 +120,17 @@ const gridOptions: VxeGridProps<any> = {
   ],
 };
 
-const [Grid, gridApi] = useVbenVxeGrid({ gridOptions, formOptions });
+const gridEvents: VxeGridListeners<RowType> = {
+  cellDblclick: ({ row }) => {
+    handleDetail(row);
+  },
+};
+
+const [Grid, gridApi] = useVbenVxeGrid({
+  gridEvents,
+  gridOptions,
+  formOptions,
+});
 
 const [Modal, modalApi] = useVbenModal({
   fullscreenButton: false,

+ 11 - 1
apps/web-ele/src/views/system-manage/worker-manage/index.vue

@@ -102,7 +102,17 @@ const gridOptions: VxeGridProps<any> = {
   ],
 };
 
-const [Grid, gridApi] = useVbenVxeGrid({ gridOptions, formOptions });
+const gridEvents: VxeGridListeners<RowType> = {
+  cellDblclick: ({ row }) => {
+    handleDetail(row);
+  },
+};
+
+const [Grid, gridApi] = useVbenVxeGrid({
+  gridEvents,
+  gridOptions,
+  formOptions,
+});
 
 const [Modal, modalApi] = useVbenModal({
   fullscreenButton: false,