Bläddra i källkod

fix(@six/smart-pharmacy): 智慧药事系统第二版-点评指标库静态页面修改

cmj 1 månad sedan
förälder
incheckning
14c1c75457

+ 0 - 17
apps/smart-pharmacy/src/views/prescription-review/expert/data.ts

@@ -3,10 +3,6 @@ import type { VxeTableGridOptions } from '@vben/plugins/vxe-table';
 import type { VbenFormSchema } from '#/adapter/form';
 import type { PrescriptionReviewModel } from '#/api/method/prescription-review';
 
-import { h } from 'vue';
-
-import { Button } from 'ant-design-vue';
-
 import { listUsersInstitutionMethodTree } from '#/api/method/system';
 import { maskPhone } from '#/utils/mask-phone';
 
@@ -34,7 +30,6 @@ export function useReviewExpertSearchFormSchema(): VbenFormSchema[] {
 }
 
 export function useReviewExpertTableColumns(
-  onNameClick?: (row: PrescriptionReviewModel.ReviewExpert) => void,
   onStatusChange?: (
     newStatus: 0 | 1,
     row: PrescriptionReviewModel.ReviewExpert,
@@ -50,18 +45,6 @@ export function useReviewExpertTableColumns(
       field: 'name',
       minWidth: 100,
       title: '姓名',
-      slots: {
-        default: ({ row }) =>
-          h(
-            Button,
-            {
-              size: 'small',
-              type: 'link',
-              onClick: () => onNameClick?.(row),
-            },
-            { default: () => row.name },
-          ),
-      },
     },
     {
       field: 'hospitalName',

+ 2 - 6
apps/smart-pharmacy/src/views/prescription-review/expert/list.vue

@@ -6,7 +6,7 @@ import type { PrescriptionReviewModel } from '#/api';
 
 import { Page } from '@vben/common-ui';
 
-import { message, Modal, notification } from 'ant-design-vue';
+import { Modal, notification } from 'ant-design-vue';
 
 import { useVbenVxeGrid } from '#/adapter/vxe-table';
 import { listReviewExpertsMethod, updateReviewExpertStatusMethod } from '#/api';
@@ -23,7 +23,7 @@ const [Grid] = useVbenVxeGrid({
     wrapperClass: 'review-expert-search-form',
   },
   gridOptions: {
-    columns: useReviewExpertTableColumns(onNameClick, onStatusChange),
+    columns: useReviewExpertTableColumns(onStatusChange),
     height: 'auto',
     keepSource: true,
     pagerConfig: {
@@ -48,10 +48,6 @@ const [Grid] = useVbenVxeGrid({
   } as VxeTableGridOptions<PrescriptionReviewModel.ReviewExpert>,
 });
 
-function onNameClick(row: PrescriptionReviewModel.ReviewExpert) {
-  message.info(`专家:${row.name}`);
-}
-
 function confirm(content: string, title: string) {
   return new Promise((reslove, reject) => {
     Modal.confirm({