Commit 7be65abb authored by 罗新东's avatar 罗新东

去掉接口没有加搜索条件的列表页面

parent c8394bd0
Pipeline #7273 passed with stage
in 12 seconds
<template>
<div>
<LHeader :text="text"></LHeader>
<van-sticky offset-top="1.5rem">
<!-- <van-sticky offset-top="1.5rem">
<van-search
v-model="searchValue"
show-action
......@@ -12,7 +12,7 @@
<div @click="onSearch">搜索</div>
</template>
</van-search>
</van-sticky>
</van-sticky> -->
<!-- 内容列表 -->
<!-- 接口对接4 START -->
<div class="con-list" @touchmove="showIndex = null">
......@@ -73,7 +73,7 @@
<script>
import tabBar from "@/components/TabBar";
import LHeader from "@/components/header.vue";
import {getFun,postFun} from "@/service/table.js";
import { getFun, postFun } from "@/service/table.js";
import { superviseList } from "@/service/danger";
/*接口对接2 START*/
......@@ -110,7 +110,7 @@ export default {
this.getList();
},
methods: {
getList(select='') {
getList(select = "") {
/*接口对接3 START*/
// 例子:
this.$toast.loading({
......@@ -119,9 +119,9 @@ export default {
loadingType: "spinner",
duration: 0,
});
let formdata=new FormData();
formdata.append('select',select);
superviseList("/supervise/list",formdata)
let formdata = new FormData();
formdata.append("select", select);
superviseList("/supervise/list", formdata)
.then((res) => {
this.$toast.clear();
this.messageList = res.data;
......@@ -137,7 +137,7 @@ export default {
/*接口对接3 END*/
},
onSearch(val) {
this.getList(this.searchValue)
this.getList(this.searchValue);
},
touchstart(index, item) {
......
......@@ -3,7 +3,7 @@
<van-sticky>
<LHeader :text="text"></LHeader>
</van-sticky>
<van-sticky offset-top="1.5rem">
<!-- <van-sticky offset-top="1.5rem">
<van-search
v-model="searchValue"
show-action
......@@ -14,11 +14,11 @@
<div @click="onSearch">搜索</div>
</template>
</van-search>
</van-sticky>
</van-sticky> -->
<!-- tab标签 -->
<van-tabs v-model="active" @change="postList" color="#2980f7" animated
:sticky="true"
offset-top="3rem">
offset-top="1.5rem">
<van-tab v-for="(item, key) in tabs" :key="key" :title="item.title">
<div v-show="key == active">
<div class="con-list" @touchmove="showIndex = null">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment