Ver código fonte

fix: 更新页面代码

fan 2 anos atrás
pai
commit
d2b2b237e5

+ 0 - 1
src/views/biz/archives/medicalDocuments/data.ts

@@ -12,7 +12,6 @@ export const dataFormSchema: FormSchema[] = [
       placeholder: '请输入上传日期',
       getPopupContainer: () => document.body,
       valueFormat: 'YYYY-MM-DD',
-      disabled: true,
     },
   },
   {

+ 1 - 1
src/views/biz/bed/near/data.ts

@@ -65,7 +65,7 @@ export function defaultData() {
         week.push({
           id: nanoid(5),
           key: nanoid(8),
-          name: bool ? '' + nanoid(3) : '',
+          name: bool ? '' + nanoid(3) : '',
           date: date,
           old: dayjs().isSame(date, 'day') ? false : dayjs().isAfter(date, 'day'),
           show: true,

+ 5 - 0
src/views/biz/bed/near/index.vue

@@ -178,8 +178,12 @@
   // console.log('🚀 ~ file: index.vue:51 ~ dayjs:', dayjs().day(1).format('MM-DD'));
   const { createMessage } = useMessage();
   const head = ref(defaultHead());
+  console.log('🚀 ~ file: index.vue:181 ~ head:', head.value);
   const bed = defaultBed();
+  console.log('🚀 ~ file: index.vue:181 ~ bed:', bed);
+
   const cnt = ref(defaultData());
+  console.log('🚀 ~ file: index.vue:186 ~ cnt.value:', cnt.value);
   const notBedId = ref('');
   const hasBedId = ref('');
   const filter = ref({}) as any;
@@ -360,6 +364,7 @@
   }
   // 设置数据
   function setCnt(type?: number) {
+    console.log('🚀 ~ file: index.vue:391 ~ setCnt ~ cnt.value:', cnt.value);
     cnt.value = cnt.value.map(ele => {
       ele.sailings = ele.sailings.map(cele => {
         return cele.map((sele, idx) => {

+ 2 - 4
src/views/biz/bed/person/data.ts

@@ -88,7 +88,7 @@ export const columns: BasicColumn[] = [
     title: '姓名',
     dataIndex: 'patientName',
     align: 'left',
-    width: 120,
+    width: 150,
   },
   {
     title: '性别',
@@ -131,7 +131,7 @@ export const columns: BasicColumn[] = [
     dataIndex: 'specialNeed',
     align: 'left',
     // width: 300,
-    ellipsis: true,
+    // ellipsis: false,
   },
 ];
 
@@ -211,7 +211,6 @@ export const dataFormSchema: FormSchema[] = [
   {
     label: '期望周次',
     field: 'specialNeedWeek',
-    required: true,
     component: 'CheckboxGroup',
     componentProps: {
       options: [],
@@ -244,7 +243,6 @@ export const dataFormSchema: FormSchema[] = [
   {
     label: '期望班次',
     field: 'sailingSorts',
-    required: true,
     component: 'ApiCheckboxGroup',
     componentProps: {
       api: getSailings,

+ 6 - 1
src/views/biz/bed/person/index.vue

@@ -16,7 +16,7 @@
         <template #bodyCell="{ column, record }">
           <template v-if="column.key === 'patientName'">
             <span :class="['table-dot', 'table-dot--' + record.status]" />
-            <span>{{ record.patientName }}</span>
+            <span :title="record.patientName">{{ record.patientName }}</span>
           </template>
           <template v-if="column.key === 'patientGender'">
             <span
@@ -321,6 +321,11 @@
     margin: 4px 6px 0;
   }
 
+  .table-special {
+    width: 100%;
+    white-space: break-spaces;
+  }
+
   .table-special .table-special-item:last-of-type {
     color: red;
   }