Commit a902b45b authored by 吴冠's avatar 吴冠

更新查询重置模块功能

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