|
@@ -59,9 +59,9 @@
|
|
|
v-model="term"
|
|
v-model="term"
|
|
|
clearable
|
|
clearable
|
|
|
style="width: 240px"
|
|
style="width: 240px"
|
|
|
- @keyup.enter.native="getVoyageList()"
|
|
|
|
|
|
|
+ @keyup.enter.native="getVoyageList(1)"
|
|
|
></el-input>
|
|
></el-input>
|
|
|
- <div class="search-btn" @click="getVoyageList()">查询</div>
|
|
|
|
|
|
|
+ <div class="search-btn" @click="getVoyageList(1)">查询</div>
|
|
|
</div>
|
|
</div>
|
|
|
<!-- <div class="cargo-owner-add" @click="voyageAddDialogVisible = true">
|
|
<!-- <div class="cargo-owner-add" @click="voyageAddDialogVisible = true">
|
|
|
添加航次
|
|
添加航次
|
|
@@ -404,9 +404,9 @@ let term = ref("");
|
|
|
let tableData = ref([]);
|
|
let tableData = ref([]);
|
|
|
let total = ref(0);
|
|
let total = ref(0);
|
|
|
let status = ref(0);
|
|
let status = ref(0);
|
|
|
-async function getVoyageList() {
|
|
|
|
|
|
|
+async function getVoyageList(type) {
|
|
|
tableData.value = [];
|
|
tableData.value = [];
|
|
|
-
|
|
|
|
|
|
|
+ currentPage.value = type || currentPage.value;
|
|
|
let res = await api.getVoyageList({
|
|
let res = await api.getVoyageList({
|
|
|
loginAccountId: localStorage.loginAccountId,
|
|
loginAccountId: localStorage.loginAccountId,
|
|
|
cargoOwnerId: localStorage.userId,
|
|
cargoOwnerId: localStorage.userId,
|
|
@@ -420,6 +420,8 @@ async function getVoyageList() {
|
|
|
tableData.value = res.data.result;
|
|
tableData.value = res.data.result;
|
|
|
total.value = res.data.total;
|
|
total.value = res.data.total;
|
|
|
} else {
|
|
} else {
|
|
|
|
|
+ tableData.value = [];
|
|
|
|
|
+ total.value = 0;
|
|
|
ElNotification({
|
|
ElNotification({
|
|
|
type: "error",
|
|
type: "error",
|
|
|
title: res.data.msg,
|
|
title: res.data.msg,
|