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

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

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