ZBQ преди 4 години
родител
ревизия
9112cd21ae
променени са 1 файла, в които са добавени 10 реда и са изтрити 1 реда
  1. 10 1
      src/page/baseInfo/supply.vue

+ 10 - 1
src/page/baseInfo/supply.vue

@@ -76,6 +76,7 @@
         :data="tableData"
         :height="resizeHeight - 65"
         :loading="tableLoading"
+        @on-row-dblclick="goDetail"
       >
         <template slot-scope="{ row, index }" slot="gpEnabledState">
           <span>{{ row.gpEnabledState == "1" ? "未启用" : "启用"}}</span>
@@ -248,6 +249,14 @@ export default {
     });
   },
   methods: {
+    goDetail(row, index) {
+      this.editRow(row.gpId, row.gpInfoType)
+      //参考跳转
+      // window.open(
+      //   `https://test.hajwy.com/purchase-web/#/viewPurchaseApply?id=${row.id}`
+      // );
+      // window.open(`/#/viewPurchaseApply?id=${row.id}`);
+    },
     resizePage() {
       this.resizeHeight = window.innerHeight - 282;
       this.resizeWidth = window.innerWidth;
@@ -372,4 +381,4 @@ ivu-card-head-inner,
   white-space: nowrap;
   font-weight: normal;
 }
-</style>
+</style>