Browse Source

查询

feature
dai 3 years ago
parent
commit
c71fb9d02d
  1. 57
      src/views/modules/shequ/chaxun.vue

57
src/views/modules/shequ/chaxun.vue

@ -49,7 +49,7 @@
</div> </div>
</div> </div>
<div class="m-box"> <div class="m-box" v-if="searchStatus == 'ing'">
<div <div
class="m-tb" class="m-tb"
v-if=" v-if="
@ -60,10 +60,11 @@
> >
<div class="tb"> <div class="tb">
<el-table <el-table
v-loading="searchJumin.loading"
:data="searchJumin.list" :data="searchJumin.list"
border border
style="width: 100%" style="width: 100%"
class="resi-table" class="div_table_item"
:max-height="1000" :max-height="1000"
> >
<el-table-column <el-table-column
@ -124,6 +125,7 @@
> >
<div class="tb"> <div class="tb">
<el-table <el-table
class="div_table_item"
:data="searchFangwu.list" :data="searchFangwu.list"
v-loading="searchFangwu.loading" v-loading="searchFangwu.loading"
border border
@ -201,6 +203,7 @@
> >
<div class="tb"> <div class="tb">
<el-table <el-table
class="div_table_item"
:data="searchXuqiu.list" :data="searchXuqiu.list"
v-loading="searchXuqiu.loading" v-loading="searchXuqiu.loading"
border border
@ -260,17 +263,6 @@
</div> </div>
</div> </div>
</div> </div>
<div
class="m-tb"
v-if="
searchData.type == 'xuqiu' &&
searchData.keyword != '' &&
searchStatus == 'ing'
"
>
<div class="tb"></div>
</div>
</div> </div>
<people-more <people-more
@ -322,6 +314,7 @@ import peopleMore from "@/views/modules/shequ/cpts/people-more";
import fangwuInfo from "@/views/modules/shequ/cpts/fangwu-info"; import fangwuInfo from "@/views/modules/shequ/cpts/fangwu-info";
import xuqiuInfo from "@/views/modules/shequ/cpts/xuqiu-info"; import xuqiuInfo from "@/views/modules/shequ/cpts/xuqiu-info";
import scrollNotice from "@/views/modules/shequ/cpts/scroll-notice"; import scrollNotice from "@/views/modules/shequ/cpts/scroll-notice";
import getQueryPara from "dai-js/modules/getQueryPara";
export default { export default {
components: { components: {
@ -333,6 +326,17 @@ export default {
scrollNotice, scrollNotice,
}, },
props: {
type: {
type: String,
default: "",
},
keyword: {
type: String,
default: "",
},
},
data() { data() {
return { return {
searchStatus: "ini", //ing over searchStatus: "ini", //ing over
@ -374,6 +378,7 @@ export default {
}, },
searchJumin: { searchJumin: {
loading: false,
header: [], header: [],
pageNo: 1, pageNo: 1,
pageSize: window.localStorage.getItem("pageSize") || 20, pageSize: window.localStorage.getItem("pageSize") || 20,
@ -382,6 +387,7 @@ export default {
}, },
searchFangwu: { searchFangwu: {
loading: false,
pageNo: 1, pageNo: 1,
pageSize: window.localStorage.getItem("pageSize") || 20, pageSize: window.localStorage.getItem("pageSize") || 20,
total: 1, total: 1,
@ -389,6 +395,7 @@ export default {
}, },
searchXuqiu: { searchXuqiu: {
loading: false,
header: [ header: [
{ {
label: "状态", label: "状态",
@ -577,10 +584,12 @@ export default {
}, },
mounted() { mounted() {
this.getApiData(); this.getApiData();
console.log(
"dynamicMenuRoutes----------------------------", // const { type, keyword } = query;
this.$store.state.sidebarMenuList // console.log("-------type", type, keyword);
); this.searchData.keyword = getQueryPara("keyword");
this.searchData.type = getQueryPara("type");
this.handleClickSearchBtn();
}, },
methods: { methods: {
changeCategoryCode({ code }) { changeCategoryCode({ code }) {
@ -712,11 +721,11 @@ export default {
}, },
getApiData() { getApiData() {
this.getFuncList(); // this.getFuncList();
this.getWarningList(); // this.getWarningList();
this.getWarningTb(); // this.getWarningTb();
this.getSearchJuminHeader(); this.getSearchJuminHeader();
this.getNoticeList(); // this.getNoticeList();
}, },
selectFuncItem(id) { selectFuncItem(id) {
@ -794,11 +803,13 @@ export default {
searchData: { keyword }, searchData: { keyword },
searchJumin: { pageSize, pageNo }, searchJumin: { pageSize, pageNo },
} = this; } = this;
this.searchJumin.loading = true;
const { data, code, msg } = await requestPost(url, { const { data, code, msg } = await requestPost(url, {
keyword, keyword,
pageSize, pageSize,
pageNo, pageNo,
}); });
this.searchJumin.loading = false;
if (code === 0) { if (code === 0) {
console.log("列表请求成功!!!!!!!!!!!!!!"); console.log("列表请求成功!!!!!!!!!!!!!!");
this.searchJumin.total = data.total || 0; this.searchJumin.total = data.total || 0;
@ -817,11 +828,13 @@ export default {
searchData: { keyword }, searchData: { keyword },
searchFangwu: { pageSize, pageNo }, searchFangwu: { pageSize, pageNo },
} = this; } = this;
this.searchFangwu.loading = true;
const { data, code, msg } = await requestPost(url, { const { data, code, msg } = await requestPost(url, {
keyword, keyword,
pageSize, pageSize,
pageNo, pageNo,
}); });
this.searchFangwu.loading = false;
if (code === 0) { if (code === 0) {
console.log("列表请求成功!!!!!!!!!!!!!!"); console.log("列表请求成功!!!!!!!!!!!!!!");
this.searchFangwu.total = data.total || 0; this.searchFangwu.total = data.total || 0;
@ -918,6 +931,8 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import "@/assets/scss/modules/management/list-main.scss";
.m-box { .m-box {
position: relative; position: relative;
padding: 24px 16px; padding: 24px 16px;

Loading…
Cancel
Save