소스 검색

Merge branch 'cheney' into dev

WanGxC 7 달 전
부모
커밋
58f760f833
3개의 변경된 파일19개의 추가작업 그리고 6개의 파일을 삭제
  1. 17 0
      src/views/shop-information/components/DataTable.vue
  2. 1 1
      src/views/shop-information/index.vue
  3. 1 5
      src/views/shop-information/useColumns.tsx

+ 17 - 0
src/views/shop-information/components/DataTable.vue

@@ -10,6 +10,8 @@ import { shopInfoColumns } from '/@/views/shop-information/useColumns';
 import * as api from '../api';
 import { useTableData } from '/@/utils/useTableData';
 import { useResponse } from '/@/utils/useResponse';
+import { Link } from '@element-plus/icons-vue';
+import router from '/@/router';
 
 
 const { tableOptions, handlePageChange } = usePagination(fetchList);
@@ -117,6 +119,13 @@ function parameterChange() {
     fetchList();
   }
 }
+
+function handleNavigate(item: any) {
+  router.push({
+    path: '/shop/detail',
+    query: { platformNumber: item.platformNumber }
+  });
+}
 </script>
 
 <template>
@@ -165,6 +174,14 @@ function parameterChange() {
         </el-col>
       </el-row>
     </template>
+    <template #platformNumber="{ row }">
+      <el-button link style="font-weight: 700" type="primary" @click="handleNavigate(row)">
+        <el-icon>
+          <Link />
+        </el-icon>
+        {{ row.platformNumber ? row.platformNumber : '--' }}
+      </el-button>
+    </template>
     <template #pager>
       <vxe-pager
           v-model:currentPage="gridOptions.pagerConfig.page"

+ 1 - 1
src/views/shop-information/index.vue

@@ -39,7 +39,7 @@ async function initData() {
         <el-tab-pane label="信息概览" name="first">
           <InfoCard />
         </el-tab-pane>
-        <el-tab-pane label="信息汇总" name="second" lazy>
+        <el-tab-pane label="信息汇总" name="second">
           <DataTable ref="table" />
         </el-tab-pane>
       </el-tabs>

+ 1 - 5
src/views/shop-information/useColumns.tsx

@@ -696,11 +696,7 @@ export const shopInfoColumns = [
   },
   {
     field: 'platformNumber', title: '平台编号', minWidth: 'auto', align: 'center',
-    slots: {
-      default({ row }: any) {
-        return <span class={ 'font-medium' }>{ row.platformNumber ? row.platformNumber : '--' }</span>;
-      }
-    }
+    slots: { default: 'platformNumber' }
   },
   {
     field: 'platformName', title: '平台名称', minWidth: 'auto', align: 'center',