Explorar o código

feat:首页增加跳转链接

liujt hai 1 semana
pai
achega
e751c20fa8
Modificáronse 1 ficheiros con 5 adicións e 2 borrados
  1. 5 2
      src/views/home/index.vue

+ 5 - 2
src/views/home/index.vue

@@ -13,7 +13,7 @@
       <el-col :span="11" style="height: 50%">
         <el-card class="box-card">
           <div slot="header" class="clearfix">
-            <span>销售订单进度情况</span>
+            <span style="cursor: pointer;" @click="handelRouterTo('/page-eos/saleManage/saleOrder')">销售订单进度情况</span>
           </div>
           <ele-pro-table
             ref="table"
@@ -30,7 +30,7 @@
       <el-col :span="11" style="height: 50%; margin-top: 5px">
         <el-card class="box-card">
           <div slot="header" class="clearfix">
-            <span>采购订单进度情况</span>
+            <span style="cursor: pointer;" @click="handelRouterTo('/page-eos/purchaseOrder')">采购订单进度情况</span>
           </div>
           <ele-pro-table
             ref="table"
@@ -104,6 +104,9 @@
       clearInterval(this.timer);
     },
     methods: {
+      handelRouterTo(path) {
+        window.history.pushState(null, '', path);
+      },
       init() {
         indexGroup().then((res) => {
           console.log(res, 'res');