فهرست منبع

fix: 更新页面代码

fan 2 سال پیش
والد
کامیت
c08ab22882

+ 0 - 32
src/components/XTUpload/src/XTUpload.vue

@@ -223,9 +223,6 @@
         return status;
       }
       async function uploadApiByItem(item: FileItem, idx: number, len: number) {
-        console.log('🚀 ~ file: XTUpload.vue:226 ~ uploadApiByItem ~ len:', len);
-        console.log('🚀 ~ file: XTUpload.vue:226 ~ uploadApiByItem ~ idx:', idx);
-        console.log('🚀 ~ file: XTUpload.vue:226 ~ uploadApiByItem ~ item:', item);
         const { api } = props;
         if (!api || !isFunction(api)) {
           return warn('upload api must exist and be a function');
@@ -249,26 +246,7 @@
           item.status =
             data.code == ResultEnum.SUCCESS ? UploadResultStatus.SUCCESS : UploadResultStatus.ERROR;
           item.responseData = data;
-
-          // console.log('🚀 ~ file: XTUpload.vue:250 ~ uploadApiByItem ~ item:', item);
-          // console.log(
-          //   '🚀 ~ file: XTUpload.vue:259 ~ uploadApiByItem ~ fileListRef.value:',
-          //   fileListRef.value,
-          // );
-          // console.log(
-          //   '🚀 ~ file: XTUpload.vue:259 ~ uploadApiByItem ~ fileListRef.value:',
-          //   fileList.value,
-          // );
           if (idx + 1 == len) {
-            // console.log('执行赋值操作');
-            // console.log(
-            //   '🚀 ~ file: XTUpload.vue:259 ~ uploadApiByItem ~ fileListRef.value:',
-            //   fileListRef.value,
-            // );
-            // console.log(
-            //   '🚀 ~ file: XTUpload.vue:259 ~ uploadApiByItem ~ fileListRef.value:',
-            //   fileList.value,
-            // );
             fileListRef.value.forEach(ele => {
               const responseData = ele.responseData as any;
               if (responseData?.code == ResultEnum.SUCCESS) {
@@ -309,16 +287,6 @@
           // 只上传不是成功状态的
           const uploadFileList =
             fileListRef.value.filter(item => item.status !== UploadResultStatus.SUCCESS) || [];
-          console.log(
-            '🚀 ~ file: XTUpload.vue:267 ~ handleStartUpload ~ fileListRef.value:',
-            fileListRef.value,
-          );
-
-          console.log(
-            '🚀 ~ file: XTUpload.vue:263 ~ handleStartUpload ~ uploadFileList:',
-            uploadFileList,
-          );
-          // console.log('fileList.value', fileList.value);
 
           const data = await Promise.all(
             uploadFileList.map((item, idx) => {

+ 1 - 1
src/views/biz/archives/formula/FormDrawer.vue

@@ -112,7 +112,7 @@
     isUpdate.value = data.isUpdate;
     getTitle.value = `${isUpdate.value ? '编辑透析处方模板' : '新建透析处方模板'} ( ${
       data.record.name
-    } | ${data.record.gender} | ${data.record.age} )`;
+    } | ${data.record.gender} | ${data.record.age} )`;
     bizDictOptions.accessType = await listDictModel({ dictCode: 'va_type' });
     patientBasicId.value = data.record.patientBasicId;
     rowId.value = data.record?.id;

+ 3 - 1
src/views/biz/archives/index/data.ts

@@ -59,7 +59,7 @@ export const siftFormSchema: FormSchema[] = [
     componentProps: {
       placeholder: '请输入年龄',
       max: 99,
-      min: 1,
+      min: 0,
       range: true,
       tooltipPlacement: 'bottom',
       tooltipVisible: true,
@@ -134,6 +134,7 @@ export const columns: BasicColumn[] = [
     title: '出生日期',
     dataIndex: 'birthday',
     align: 'left',
+    sorter: true,
   },
   {
     title: '年龄',
@@ -150,6 +151,7 @@ export const columns: BasicColumn[] = [
     dataIndex: 'createTime',
     align: 'left',
     width: 180,
+    sorter: true,
   },
   {
     title: '类型',

+ 18 - 4
src/views/biz/archives/index/index.vue

@@ -76,8 +76,8 @@
             <TableAction
               :actions="[
                 {
-                  auth: 'sys:log:query',
-                  icon: 'icon-eye|iconfont',
+                  auth: 'archives:patientBasic:query',
+                  icon: 'icon-xt-medical_default|iconfont',
                   tooltip: '详情',
                   label: '详情',
                   onClick: handleView.bind(null, record),
@@ -173,7 +173,7 @@
     showIndexColumn: true,
     bordered: true,
     actionColumn: {
-      width: 200,
+      width: 100,
       title: '操作',
       dataIndex: 'action',
     },
@@ -231,6 +231,16 @@
     siftData.value.forEach(ele => {
       sift[ele.field] = ele.isDict ? ele.dict : ele.value;
     });
+    if (params?.order) {
+      params.orders = [
+        {
+          field: params.field,
+          direction: params.order.substring(0, params.order.length - 3).toUpperCase(),
+        },
+      ];
+      delete params.order;
+      delete params.field;
+    }
     return {
       ...params,
       queryType: activeKey.value == '0' ? '0' : activeKey.value,
@@ -252,7 +262,7 @@
         accessId: record.accessId,
         name: record.name,
         gender: formatDictValue(bizDictOptions.gender, record.gender),
-        age: dayjs().diff(record.birthday, 'year'),
+        age: record.age,
       },
     });
   }
@@ -362,4 +372,8 @@
       background-color: #f7b500;
     }
   }
+
+  ::v-deep(.ant-btn-link) {
+    color: rgb(61 65 85 / 100%);
+  }
 </style>

+ 1 - 1
src/views/biz/archives/patientBasic/index.vue

@@ -188,7 +188,7 @@
     const firstDialysisResContent = firstDialysisRes.firstDialysis?.content[0];
     basicData.value[2].data.unshift({
       field: 'first',
-      label: '首次透析111',
+      label: '首次透析',
       value: firstDialysisResContent?.recordTime
         ? dayjs(firstDialysisResContent?.recordTime).format('YYYY-MM-DD')
         : '',

+ 1 - 1
src/views/biz/archives/vascularAccess/FormDrawer.vue

@@ -68,7 +68,7 @@
     }
     getTitle.value = `${isUpdate.value ? '编辑' : '新建'}${accessType.value}   ( ${
       data.record.name
-    } | ${data.record.gender} | ${data.record.age} )`;
+    } | ${data.record.gender} | ${data.record.age} )`;
   });
 
   // 提交按钮事件

+ 1 - 1
src/views/biz/archives/vascularAccess/FormModal.vue

@@ -73,7 +73,7 @@
     }
     getTitle.value = `${isUpdate.value ? '编辑' : '新建'}${accessType.value}   ( ${
       data.record.name
-    } | ${data.record.gender} | ${data.record.age} )`;
+    } | ${data.record.gender} | ${data.record.age} )`;
   });
 
   // 提交按钮事件

+ 1 - 1
src/views/biz/archives/vascularAccess/FormModalReturn.vue

@@ -50,7 +50,7 @@
     setModalProps({ confirmLoading: false });
     bizDictOptions.accessType = await listDictModel({ dictCode: 'va_type' });
     isUpdate.value = !!data?.isUpdate;
-    getTitle.value = `通路转归 ( ${data.record.name} | ${data.record.gender} | ${data.record.age} )`;
+    getTitle.value = `通路转归 ( ${data.record.name} | ${data.record.gender} | ${data.record.age} )`;
     vascularAccessId.value = data.accessId;
     console.log('🚀 ~ file: FormModalReturn.vue:56 ~  data.record:', data.record);
     if (unref(isUpdate)) {

+ 5 - 4
src/views/biz/archives/vascularAccess/ViewDrawerComplication.vue

@@ -11,7 +11,7 @@
     cancel-text="关闭"
   >
     <div class="!px-4 !pt-4">
-      <div class="mb-4">
+      <div class="mb-4" v-auth="'archives:accessComplication:add'">
         <a-button type="primary" shape="round" @click="handleAdd">
           <template #icon>
             <PlusOutlined />
@@ -72,7 +72,7 @@
 
   const [registerDrawer, { setDrawerProps, closeDrawer }] = useDrawerInner(async data => {
     setDrawerProps({ confirmLoading: false });
-    getTitle.value = `通路并发症 ( ${data.record.name} | ${data.record.gender} | ${data.record.age} )`;
+    getTitle.value = `通路并发症 ( ${data.record.name} | ${data.record.gender} | ${data.record.age} )`;
     isUpdate.value = !!data?.isUpdate;
     bizDictOptions.accessType = await listDictModel({ dictCode: 'va_type' });
     bizDictOptions.vaComp = await listDictModel({ dictCode: 'va_comp' });
@@ -98,13 +98,13 @@
     if (!record.editable) {
       return [
         {
-          auth: 'sys:log:query',
+          auth: 'archives:accessComplication:add',
           icon: 'icon-xt-details_edit_default|iconfont',
           tooltip: '编辑',
           onClick: handleEdit.bind(null, record),
         },
         {
-          auth: 'sys:log:query',
+          auth: 'archives:accessComplication:remove',
           icon: 'icon-xt-details_delete_default|iconfont',
           tooltip: '删除',
           popConfirm: {
@@ -138,6 +138,7 @@
       return ele;
     });
     setTableData(tableData.value);
+    await nextTick();
   }
 
   // 提交按钮事件