|
@@ -0,0 +1,37 @@
|
|
|
|
|
+<template>
|
|
|
|
|
+ <el-input v-model="term"></el-input>
|
|
|
|
|
+ <h3>{{ term }}</h3>
|
|
|
|
|
+ <button @click="getCargoOwnerList">getCargoOwnerList</button>
|
|
|
|
|
+</template>
|
|
|
|
|
+<script>
|
|
|
|
|
+import { ref, reactive, toRefs, onMounted } from "vue";
|
|
|
|
|
+import { Notification } from "element3";
|
|
|
|
|
+import store from "../../store";
|
|
|
|
|
+import router from "../../router";
|
|
|
|
|
+
|
|
|
|
|
+import md5 from "md5";
|
|
|
|
|
+import api from "../../apis/fetch";
|
|
|
|
|
+export default {
|
|
|
|
|
+ setup() {
|
|
|
|
|
+ let currentPage = ref(1);
|
|
|
|
|
+ let term = ref();
|
|
|
|
|
+ async function getCargoOwnerList() {
|
|
|
|
|
+ let res = await api.getCargoOwnerList({
|
|
|
|
|
+ identity: 2,
|
|
|
|
|
+ currentPage: currentPage.value,
|
|
|
|
|
+ size: 10,
|
|
|
|
|
+ term: term.value,
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ onMounted(() => {
|
|
|
|
|
+ store.commit("changefirstTitle", "货主列表");
|
|
|
|
|
+ });
|
|
|
|
|
+ return {
|
|
|
|
|
+ currentPage,
|
|
|
|
|
+ term,
|
|
|
|
|
+ getCargoOwnerList,
|
|
|
|
|
+ };
|
|
|
|
|
+ },
|
|
|
|
|
+};
|
|
|
|
|
+</script>
|
|
|
|
|
+<style scoped></style>
|