Browse Source

⚙️ 修改管理员页列表问题

快乐的梦鱼 1 month ago
parent
commit
7da4407fa2

+ 22 - 20
src/pages/collect/assessment/argeement-sign-list.vue

@@ -9,25 +9,27 @@
       />
     </FlexRow>
     <SimplePageListLoader :loader="loader">
-      <Touchable
-        v-for="item in loader.list.value"
-        :key="`${item.userId}-${item.agreementId ?? 0}`"
-        direction="row"
-        justify="space-between"
-        backgroundColor="white"
-        padding="space.md"
-        radius="radius.md"
-        @click="openRow(item)"
-      >
-        <FlexCol>
-          <Text :text="item.title || item.partyB || '—'" />
-          <Text fontConfig="subText" :text="subLine(item)" />
-        </FlexCol>
-        <FlexRow align="center" gap="gap.sm">
-          <Text fontConfig="subText" :text="progressLabel(item.progress)" />
-          <Icon name="arrow-right-bold" />
-        </FlexRow>
-      </Touchable>
+      <FlexCol gap="gap.md">
+        <Touchable
+          v-for="item in loader.list.value"
+          :key="`${item.userId}-${item.agreementId ?? 0}`"
+          direction="row"
+          justify="space-between"
+          backgroundColor="white"
+          padding="space.md"
+          radius="radius.md"
+          @click="openRow(item)"
+        >
+          <FlexCol>
+            <Text :text="item.title || item.partyB || '—'" />
+            <Text fontConfig="subText" :text="subLine(item)" />
+          </FlexCol>
+          <FlexRow align="center" gap="gap.sm">
+            <Text fontConfig="subText" :text="progressLabel(item.progress)" />
+            <Icon name="arrow-right-bold" />
+          </FlexRow>
+        </Touchable>
+      </FlexCol>
     </SimplePageListLoader>
     <XBarSpace />
   </FlexCol>
@@ -83,7 +85,7 @@ function openRow(item: UserAgreementListRow) {
   navTo('./argeement-sign', { id, userId: uid });
 }
 
-const loader = useSimplePageListLoader(10, async (page, pageSize) => {
+const loader = useSimplePageListLoader(20, async (page, pageSize) => {
   const pv = progressFilter.value;
   const progress = pv > -50 ? pv : undefined;
   const list = await AssessmentContentApi.getUserAgreementList({

+ 33 - 31
src/pages/collect/assessment/evaluation-list.vue

@@ -9,38 +9,40 @@
       />
     </FlexRow>
     <SimplePageListLoader :loader="loader">
-      <FlexRow
-        v-for="item in loader.list.value"
-        :key="`${item.userId}-${item.checkId ?? item.id}`"
-        align="center"
-        justify="space-between"
-        gap="gap.sm"
-        backgroundColor="white"
-        padding="space.md"
-        radius="radius.md"
-      >
-        <Touchable
-          flex="1"
-          direction="row"
+      <FlexCol gap="gap.md">
+        <FlexRow
+          v-for="item in loader.list.value"
+          :key="`${item.userId}-${item.checkId ?? item.id}`"
+          align="center"
           justify="space-between"
-          @click="openEdit(item)"
+          gap="gap.sm"
+          backgroundColor="white"
+          padding="space.md"
+          radius="radius.md"
         >
-          <FlexCol flex="1">
-            <Text :text="item.inheritor ?? item.title ?? '?'" />
-            <Text fontConfig="subText" :text="subLine(item)" />
-          </FlexCol>
-        </Touchable>
-        <Text fontConfig="subText" :text="progressLabel(item.progress)" />
-        <Button
-          v-if="canReview(item)"
-          type="primary"
-          size="small"
-          @click.stop="openReview(item)"
-        >
-          审核
-        </Button>
-        <Icon name="arrow-right-bold" />
-      </FlexRow>
+          <Touchable
+            flex="1"
+            direction="row"
+            justify="space-between"
+            @click="openEdit(item)"
+          >
+            <FlexCol flex="1">
+              <Text :text="item.inheritor ?? item.title ?? '?'" />
+              <Text fontConfig="subText" :text="subLine(item)" />
+            </FlexCol>
+          </Touchable>
+          <Text fontConfig="subText" :text="progressLabel(item.progress)" />
+          <Button
+            v-if="canReview(item)"
+            type="primary"
+            size="small"
+            @click.stop="openReview(item)"
+          >
+            审核
+          </Button>
+          <Icon name="arrow-right-bold" />
+        </FlexRow>
+      </FlexCol>
     </SimplePageListLoader>
     <XBarSpace />
   </FlexCol>
@@ -120,7 +122,7 @@ function openReview(item: InheritorCheckListRow) {
   });
 }
 
-const loader = useSimplePageListLoader(10, async (page, pageSize) => {
+const loader = useSimplePageListLoader(20, async (page, pageSize) => {
   const pv = progressFilter.value;
   const progress = pv > -50 ? pv : undefined;
   const list = await AssessmentContentApi.getInheritorList({