tangning преди 1 месец
родител
ревизия
57e72b2aae
променени са 3 файла, в които са добавени 23 реда и са изтрити 17 реда
  1. 2 2
      .env.development
  2. BIN
      public/resource/img/file.png
  3. 21 15
      src/views/scenes/list.vue

+ 2 - 2
.env.development

@@ -7,7 +7,7 @@ VITE_PUBLIC_PATH = /
 # Cross-domain proxy, you can configure multiple
 # Please note that no line breaks
 # http://192.168.0.38:8190/shop
-VITE_PROXY = [["/basic-api","https://cszfb.4dkankan.com/basic-api"],["/service","https://test-jp.4dkankan.com/service"],["/zfb-api","https://cszfb.4dkankan.com"]]
+VITE_PROXY = [["/basic-api","https://cszfb.4dkankan.com/basic-api"],["/service","https://njs-dev.4dkankan.jp/service"],["/zfb-api","https://cszfb.4dkankan.com"]]
 #["/zfb-api","http://192.168.0.47:7081"]]
 # VITE_PROXY=[["/api","https://vvbin.cn/test"]]
 
@@ -25,4 +25,4 @@ VITE_GLOB_API_URL_PREFIX=
 
 VITE_GOOGLE_KEY=AIzaSyBGUvCR1bppO9pfuS0MUWzuftiZ127y4Os
 
-VITE_DOMAIN=https://test-jp.4dkankan.com/
+VITE_DOMAIN=https://njs-dev.4dkankan.jp/

BIN
public/resource/img/file.png


+ 21 - 15
src/views/scenes/list.vue

@@ -17,12 +17,15 @@
         :rowSelection="{ type: 'checkbox', getCheckboxProps: getCheckboxProps }"
         @fetch-success="handleFetchSuccess"
       >
+        <template #tableTitle>
+          <div class="fileName">root</div>
+        </template>
         <template #toolbar>
           <a-button v-if="isPatchAuth" type="primary" @click="handlePatchSelect">
             {{ t('routes.archive.patchArchive') }}</a-button
           >
-          <!-- <a-button type="primary" color="warning" @click="() => {}"> 编辑</a-button>
-        <a-button type="primary" color="error" @click="() => {}"> 删除</a-button> -->
+          <!-- <a-button type="primary" color="warning" @click="() => {}"> 编辑</a-button>-->
+        <a-button type="primary" color="error" @click="() => {}"> 新建文件夹</a-button> 
         </template>
         <template #mapShow="{ record }">
           <Switch
@@ -34,11 +37,14 @@
           />
         </template>
         <template #cover="{ record }">
-          <TableImg
-            :size="120"
-            :simpleShow="true"
-            :imgList="[record.thumb || '/resource/img/header.jpg']"
-          />
+          <div class="cover">
+            <img src="/resource/img/file.png" style="margin: 0 auto;" alt="" v-if="record.companyName == '哈哈哈哈'" />
+            <TableImg v-else
+              :size="120"
+              :simpleShow="true"
+              :imgList="[record.thumb || '/resource/img/header.jpg']"
+            />
+          </div>
         </template>
         <template #link="{ record }">
           <template v-if="record.payStatus != -2">
@@ -249,6 +255,13 @@
           width: 80,
           defaultHidden: true,
         },
+        {
+          title: t('routes.scenes.appListPicUrl'),
+          dataIndex: 'thumb',
+          ellipsis: true,
+          slots: { customRender: 'cover' },
+          width: 150,
+        },
         // {
         //   title: 'isCopy(测试)',
         //   dataIndex: 'isCopy',
@@ -278,13 +291,6 @@
           width: 180,
         },
         {
-          title: t('routes.scenes.appListPicUrl'),
-          dataIndex: 'thumb',
-          ellipsis: true,
-          slots: { customRender: 'cover' },
-          width: 150,
-        },
-        {
           title: t('routes.scenes.shootUserName'),
           dataIndex: 'userName',
           ellipsis: false,
@@ -402,7 +408,7 @@
         ],
       };
       const [registerTable, { reload, getSelectRowKeys, clearSelectedRowKeys }] = useTable({
-        title: t('routes.scenes.sceneList'),
+        //title: t('routes.scenes.sceneList'),
         api: ListApi,
         columns: columns,
         useSearchForm: true,