Răsfoiți Sursa

fix:支撑管理-竞争对手

liqh 6 luni în urmă
părinte
comite
9b1106e0c9

+ 8 - 11
src/views/support-manage/bidding/performance/index.vue

@@ -25,11 +25,6 @@
             title: '项目名称',
             width: 150,
           },
-          {
-            field: '',
-            title: '项目ID',
-            width: 150,
-          },
           {
             field: '',
             title: '项目状态',
@@ -174,14 +169,16 @@
       },
     },
   });
+
+  const router = useRouter();
   const goDetailPage = (record) => {
     console.log(record.id);
-    // router.push({
-    //   path: '/support-manage/bidding/performance/performance-detail',
-    //   query: {
-    //     id: record.id,
-    //   },
-    // });
+    router.push({
+      path: '/support-manage/bidding/performance/performance-detail/',
+      query: {
+        id: record.id,
+      },
+    });
   };
 </script>
 

+ 4 - 4
src/views/support-manage/bidding/performance/performance-detail/index.vue

@@ -95,15 +95,15 @@
     },
     {
       title: '业绩信息',
-      key: 'InfoMaterial',
-      slotName: 'InfoMaterial',
+      key: 'EditReport',
+      slotName: 'EditReport',
       selectedIcon: getImgUrl('icon-xinxiziliao-all'),
       unSelectedIcon: getImgUrl('icon-xinxiziliao'),
     },
     {
       title: '资料奖项',
-      key: 'EditReport',
-      slotName: 'EditReport',
+      key: 'InfoMaterial',
+      slotName: 'InfoMaterial',
       selectedIcon: getImgUrl('icon-bianjijilu-all'),
       unSelectedIcon: getImgUrl('icon-bianjijilu'),
     },

+ 55 - 3
src/views/support-manage/competition/opponent/index.vue

@@ -8,6 +8,18 @@
           </a-button>
         </div>
       </template>
+      <template #slotVue_default="{}">
+        <a-dropdown>
+          <a class="ant-dropdown-link" @click.prevent> 累计资质管理 </a>
+          <template #overlay>
+            <a-menu>
+              <a-menu-item>
+                <a-table :dataSource="dataSource" :columns="columns" :pagination="false"/>
+              </a-menu-item>
+            </a-menu>
+          </template>
+        </a-dropdown>
+      </template>
     </bs-table>
   </div>
 </template>
@@ -19,15 +31,49 @@
   import { DISPLAY_STATE } from '/@/components/BsUi/constant.js';
 
   const router = useRouter();
+  const dataSource = ref([
+    {
+      key: '1',
+      name: '胡彦斌',
+      age: 32,
+      address: '西湖区湖底公园1号',
+    },
+    {
+      key: '2',
+      name: '胡彦祖',
+      age: 42,
+      address: '西湖区湖底公园1号',
+    },
+  ]);
+  const columns = ref([
+    {
+      title: '姓名',
+      dataIndex: 'name',
+      key: 'name',
+      align: 'center',
+    },
+    {
+      title: '年龄',
+      dataIndex: 'age',
+      key: 'age',
+      align: 'center',
+    },
+    {
+      title: '住址',
+      dataIndex: 'address',
+      key: 'address',
+      align: 'center',
+    },
+  ]);
 
   onMounted(() => {
     refreshTable();
   });
+
   const { tableOptions, setTablePropsValue, getTablePropsValue, refreshTable } = useBsTable({
     tableOptions: {
       url: '/supports/project/queryPage',
       gridOptions: {
-        // data:[],
         loading: false,
         columns: [
           {
@@ -71,9 +117,13 @@
             width: 150,
           },
           {
-            field: '',
+            field: 'slotVue',
             title: '累计资质管理',
+            align: 'center',
             width: 150,
+            slots: {
+              default: 'slotVue_default',
+            },
           },
           {
             field: '',
@@ -103,7 +153,6 @@
             align: 'center',
           },
           {
-            // fixed: 'right',
             cellRender: {
               name: 'CellOption',
               extraProps: {
@@ -156,6 +205,7 @@
         ],
       },
       pagerConfig: {
+        isFixed: true,
         enabled: true,
         pageSize: 10,
         pageNum: 1,
@@ -163,6 +213,7 @@
       },
     },
   });
+
   const goDetailPage = (record) => {
     console.log(record.id);
     router.push({
@@ -172,6 +223,7 @@
       },
     });
   };
+
   const handleOpponentRegistration = () => {
     router.push('/support-manage/competition/opponent/create-opponent');
   };

+ 8 - 3
src/views/support-manage/competition/opponent/opponent-detail/components/ProjectInfo/index.vue

@@ -1,9 +1,9 @@
 <template>
   <div class="table-demo">
     <bs-table v-bind="tableOptions">
-      <template #toolbarLeft>
+       <template #toolbarTop>
         <a-space>
-          <a-button type="primary" @click="goHistroyProjectPage">
+         <a-button type="primary" @click="goHistroyProjectPage">
             <template #icon>
               <PlusOutlined />
             </template>
@@ -11,6 +11,11 @@
           </a-button>
         </a-space>
       </template>
+      <template #toolbarLeft>
+        <a-space>
+          <span>润扬项目概算金额(元):1,348,223.89</span>
+        </a-space>
+      </template>
     </bs-table>
     <HistoryProjDetail ref="HistoryProjDetailRef" @refreshTable="refreshTable()"></HistoryProjDetail>
     <ProjectQuotation ref="ProjectQuotationRef" @refreshTable="refreshTable()"></ProjectQuotation>
@@ -19,7 +24,7 @@
 
 <script setup lang="jsx">
   import BsTable, { useBsTable } from '/@/components/BsUi/Table/index.js';
-  import { onMounted, ref, watch } from 'vue';
+  import { onMounted, h,ref, watch } from 'vue';
   import { useRouter } from 'vue-router';
   import { DISPLAY_STATE } from '/@/components/BsUi/constant.js';