Bläddra i källkod

跳转游船路线

conghelong 1 år sedan
förälder
incheckning
3fcad0a163
1 ändrade filer med 23 tillägg och 10 borttagningar
  1. 23 10
      songhua-ui/src/views/system/ships/index.vue

+ 23 - 10
songhua-ui/src/views/system/ships/index.vue

@@ -48,16 +48,16 @@
           v-hasPermi="['system:ship:remove']"
         >删除</el-button>
       </el-col>
-      <el-col :span="1.5">
-        <el-button
-          type="warning"
-          plain
-          icon="el-icon-download"
-          size="mini"
-          @click="handleExport"
-          v-hasPermi="['system:ship:export']"
-        >导出</el-button>
-      </el-col>
+<!--      <el-col :span="1.5">-->
+<!--        <el-button-->
+<!--          type="warning"-->
+<!--          plain-->
+<!--          icon="el-icon-download"-->
+<!--          size="mini"-->
+<!--          @click="handleExport"-->
+<!--          v-hasPermi="['system:ship:export']"-->
+<!--        >导出</el-button>-->
+<!--      </el-col>-->
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
 
@@ -87,6 +87,12 @@
             @click="handleDelete(scope.row)"
             v-hasPermi="['system:ship:remove']"
           >删除</el-button>
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-s-promotion"
+            @click="handleJump(scope.row)"
+          >查看路线</el-button>
         </template>
       </el-table-column>
     </el-table>
@@ -162,6 +168,7 @@ export default {
       open: false,
       // 查询参数
       queryParams: {
+
         pageNum: 1,
         pageSize: 10,
         shipName: null,
@@ -218,6 +225,9 @@ export default {
       this.queryParams.pageNum = 1;
       this.getList();
     },
+    handleJump(row) {
+      this.$router.push({ path: 'shipMapping', query: { id: row.id } });
+    },
     /** 重置按钮操作 */
     resetQuery() {
       this.resetForm("queryForm");
@@ -275,6 +285,9 @@ export default {
         this.$modal.msgSuccess("删除成功");
       }).catch(() => {});
     },
+
+
+
     /** 导出按钮操作 */
     handleExport() {
       this.download('system/ship/export', {