Ver Fonte

公司名称可以点击

bding há 1 ano atrás
pai
commit
dc71faaca1
1 ficheiros alterados com 15 adições e 1 exclusões
  1. 15 1
      src/views/dataReport_manage/equityPackageStatistics.vue

+ 15 - 1
src/views/dataReport_manage/equityPackageStatistics.vue

@@ -65,7 +65,11 @@
         </span>
       </div>
       <el-table :data="tableData" border style="margin-top: 20px; min-height: 400px" v-loading="isShowloadding" element-loading-text="数据加载中...">
-        <el-table-column label="公司名称" prop="CompanyName" align="center"> </el-table-column>
+        <el-table-column label="公司名称" prop="CompanyName" align="center">
+          <template slot-scope="{ row }">
+            <span class="editsty" @click="goCompanyHandle(row)">{{ row.CompanyName }}</span>
+          </template>
+        </el-table-column>
         <el-table-column width="100" label="所属销售" prop="SellerName" align="center"> </el-table-column>
         <el-table-column label="合同金额" prop="Money" align="center"> </el-table-column>
         <el-table-column label="合同期限" prop="StartDate" align="center">
@@ -338,6 +342,16 @@ export default {
       this.tabsPitchon = item.PermissionName;
       this.changeFilter();
     },
+    // 去往公司详情
+    goCompanyHandle(row) {
+      let { href } = this.$router.resolve({
+        path: "/customDetail",
+        query: {
+          id: row.CompanyId,
+        },
+      });
+      window.open(href, "_blank");
+    },
   },
   created() {},
   mounted() {