Commit a902b45b authored by 吴冠's avatar 吴冠

更新查询重置模块功能

parent 3064ea15
......@@ -36,6 +36,12 @@ export default {
this.getProvinceArr()
},
methods: {
//清空
clear(){
this.provinceId = ''
this.cityId = ''
this.districtId = ''
},
// 获取省列表
async getProvinceArr() {
const {
......
......@@ -9,7 +9,7 @@
</el-option>
</el-select>
<span class="t1 left">行业类别</span>
<citySelect @sendprovinceId="receiveP" @sendcityId="receiveC" @senddistrictId="receiveS"></citySelect>
<citySelect @sendprovinceId="receiveP" @sendcityId="receiveC" @senddistrictId="receiveS" ref="mychild"></citySelect>
</div>
<div class="flex-item t1">
<span class="t1 left">发布日期</span>
......@@ -111,11 +111,15 @@ import {getAllList,getNoticeType} from '@/common/list.js'
methods: {
async queryStr() {
console.log(this.getData);
const { data } = await getAllList(this.getData);
const { data,total } = await getAllList(this.getData);
this.priceList = data;
this.total = total
},
reset(){
this.getData = ''
this.getData.industryId = ''
this.interTimerPicker = ''
this.$refs.mychild.clear()
this.getData.title = ''
},
changeTime(e){
this.getData.beginDate = e[0].getTime()
......
......@@ -10,7 +10,7 @@
</el-option>
</el-select>
<span class="t1 left">所属地区</span>
<citySelect @sendprovinceId="receiveP" @sendcityId="receiveC" @senddistrictId="receiveS"></citySelect>
<citySelect @sendprovinceId="receiveP" @sendcityId="receiveC" @senddistrictId="receiveS" ref="mychild"></citySelect>
</div>
<div class="flex-item t1">
<span class="t1 left">发布日期</span>
......@@ -135,12 +135,16 @@ import citySelect from "@/components/citySelect.vue";
},
/* 重置按钮 */
reset(){
this.getData = ''
this.getData.industryId = ''
this.interTimerPicker = ''
this.$refs.mychild.clear()
this.getData.title = ''
},
async queryStr(){
console.log(this.getData)
const {data} = await getBidingList(this.getData)
const {data,total} = await getBidingList(this.getData)
this.priceList = data
this.total = total
},
receiveP(value){
this.getData.provinceId = value
......
......@@ -13,7 +13,7 @@
></el-option>
</el-select>
<span class="t1 left">所属地区</span>
<citySelect @sendprovinceId="receiveP" @sendcityId="receiveC" @senddistrictId="receiveS"></citySelect>
<citySelect @sendprovinceId="receiveP" @sendcityId="receiveC" @senddistrictId="receiveS" ref="mychild"></citySelect>
</div>
<div class="flex-item t1">
<span class="t1 left">发布日期</span>
......@@ -186,13 +186,17 @@ export default {
return Y + M + D;
},
reset(){
this.getData = ''
this.getData.industryId = ''
this.interTimerPicker = ''
this.$refs.mychild.clear()
this.getData.title = ''
},
//查询按钮getLi
async queryStr() {
console.log(this.getData);
const { data } = await getWinList(this.getData);
const { data,total } = await getWinList(this.getData);
this.priceList = data;
this.total = total
},
async industryList() {
const res = await industryList();
......
......@@ -10,7 +10,7 @@
</el-option>
</el-select>
<span class="t1 left">行业类别</span>
<citySelect @sendprovinceId="receiveP" @sendcityId="receiveC" @senddistrictId="receiveS"></citySelect>
<citySelect @sendprovinceId="receiveP" @sendcityId="receiveC" @senddistrictId="receiveS" ref="mychild"></citySelect>
</div>
<div class="flex-item t1">
<span class="t1 left">发布日期</span>
......@@ -110,11 +110,15 @@ import {getCadidateList} from '@/common/list.js'
methods: {
async queryStr() {
console.log(this.getData);
const { data } = await getCadidateList(this.getData);
const { data,total } = await getCadidateList(this.getData);
this.priceList = data;
this.total = total
},
reset(){
this.getData = ''
this.getData.industryId = ''
this.interTimerPicker = ''
this.$refs.mychild.clear()
this.getData.title = ''
},
changeTime(e){
this.getData.beginDate = e[0].getTime()
......
......@@ -10,7 +10,7 @@
</el-option>
</el-select>
<span class="t1 left">行业类别</span>
<citySelect @sendprovinceId="receiveP" @sendcityId="receiveC" @senddistrictId="receiveS"></citySelect>
<citySelect @sendprovinceId="receiveP" @sendcityId="receiveC" @senddistrictId="receiveS" ref="mychild"></citySelect>
</div>
<div class="flex-item t1">
<span class="t1 left">发布日期</span>
......@@ -110,11 +110,15 @@ import {getChangeList} from '@/common/list.js'
methods: {
async queryStr() {
console.log(this.getData);
const { data } = await getChangeList(this.getData);
const { data,total } = await getChangeList(this.getData);
this.priceList = data;
this.total = total
},
reset(){
this.getData = ''
this.getData.industryId = ''
this.interTimerPicker = ''
this.$refs.mychild.clear()
this.getData.title = ''
},
changeTime(e){
this.getData.beginDate = e[0].getTime()
......
......@@ -10,7 +10,7 @@
</el-option>
</el-select>
<span class="t1 left">行业类别</span>
<citySelect @sendprovinceId="receiveP" @sendcityId="receiveC" @senddistrictId="receiveS"></citySelect>
<citySelect @sendprovinceId="receiveP" @sendcityId="receiveC" @senddistrictId="receiveS" ref="mychild"></citySelect>
</div>
<div class="flex-item t1">
<span class="t1 left">发布日期</span>
......@@ -110,11 +110,15 @@ import {getErrorList} from '@/common/list.js'
methods: {
async queryStr() {
console.log(this.getData);
const { data } = await getErrorList(this.getData);
const { data,total } = await getErrorList(this.getData);
this.priceList = data;
this.total = total
},
reset(){
this.getData = ''
this.getData.industryId = ''
this.interTimerPicker = ''
this.$refs.mychild.clear()
this.getData.title = ''
},
changeTime(e){
this.getData.beginDate = e[0].getTime()
......
......@@ -13,7 +13,7 @@
></el-option>
</el-select>
<span class="t1 left">所在地区</span>
<citySelect @sendprovinceId="receiveP" @sendcityId="receiveC" @senddistrictId="receiveS"></citySelect>
<citySelect @sendprovinceId="receiveP" @sendcityId="receiveC" @senddistrictId="receiveS" ref = "mychild"></citySelect>
</div>
<div class="flex-item t1">
<span class="t1 left">发布日期</span>
......@@ -98,6 +98,7 @@ export default {
},
data() {
return {
citys:'',
isshow: false,
tabledata: [
{
......@@ -179,8 +180,9 @@ export default {
//查询按钮getLi
async queryStr() {
console.log(this.getData);
const { data } = await getInquiryList(this.getData);
const { data,total } = await getInquiryList(this.getData);
this.priceList = data;
this.total = total
},
async cityList() {
let a = 0
......@@ -192,7 +194,10 @@ export default {
this.industryOptions = res;
},
reset() {
this.getData = ''
this.getData.industryId = ''
this.interTimerPicker = ''
this.$refs.mychild.clear()
this.getData.title = ''
},
async getInquiryList(params) {
const { data, total} = await getInquiryList(params);
......
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