Forráskód Böngészése

🎨 优化采集列表,列表样式,重复图标移除

快乐的梦鱼 1 napja
szülő
commit
88fe9ce2be

+ 0 - 15
src/pages/dig/forms/data/element.ts

@@ -131,21 +131,6 @@ export const vilElementForm : SingleForm = [CommonInfoModel, (r) => ({
           } as FieldProps,
           rules:  [] 
         },
-        {
-          label: '图片', 
-          name: 'images', 
-          type: 'uploader', 
-          defaultValue: '',
-          additionalProps: {
-            upload: useAliOssUploadCo('xiangyuan/element', {
-              getVillageId: () => r.value.getGlobalParams().villageId,
-              overflow: () => r.value.emitMessage('storageOverflow'),
-            }),
-            maxFileSize: 1024 * 1024 * 20,
-            maxUploadCount: 20,
-          } as UploaderFieldProps,
-          rules:  [] 
-        },
         ...villageCommonContent(r, {
           title: '环境要素',
           showContent: false,

+ 1 - 0
src/pages/dig/forms/list-ordinary.vue

@@ -69,6 +69,7 @@
               <FlexCol>
                 <FlexRow>
                   <FrameButton :text="item.statusText" size="midium" @click="navTo('/pages/dig/about/goving')" />
+                  <FrameButton v-if="item.villageVolunteerId === volunteerInfo?.id" text="编辑" size="midium" @click="goEdit(item)" />
                   <FrameButton v-if="isManagement" text="管理" size="midium" @click="goEdit(item)" />
                 </FlexRow>
                 <FlexRow gap="gap.md">

+ 2 - 3
src/pages/dig/forms/submits.vue

@@ -55,7 +55,6 @@
               :height="150"
               radius="radius.sm"
               mode="aspectFill"
-              round
             />
             <FlexCol>
               <H4 :size="36">{{ item.title }}</H4>
@@ -159,8 +158,8 @@ const listLoader = useSimplePageListLoader<CommonInfoModel>(8, async (page, page
 function goDetail(item: CommonInfoModel) {
   navTo('common', { 
     id: item.id,
-    villageId: querys.value.villageId,
-    villageVolunteerId: querys.value.villageVolunteerId,
+    villageId: item.villageId,
+    villageVolunteerId: item.villageVolunteerId,
     catalogId: item.catalogId,
     collectModuleId: item.collectModuleId,
     subKey: '',