Commit d575e85b authored by 吴冠's avatar 吴冠

分页和其它

parent a902b45b
...@@ -21,7 +21,6 @@ import { ...@@ -21,7 +21,6 @@ import {
} from '~/api/common/list' } from '~/api/common/list'
// import arrAll from './area.js' // import arrAll from './area.js'
export default { export default {
data() { data() {
return { return {
provinceId: '', provinceId: '',
...@@ -32,7 +31,7 @@ export default { ...@@ -32,7 +31,7 @@ export default {
districtArr: [] districtArr: []
} }
}, },
created() { mounted() {
this.getProvinceArr() this.getProvinceArr()
}, },
methods: { methods: {
......
...@@ -63,7 +63,7 @@ import {getAllList,getNoticeType} from '@/common/list.js' ...@@ -63,7 +63,7 @@ import {getAllList,getNoticeType} from '@/common/list.js'
components:{ components:{
citySelect citySelect
}, },
created(){ mounted(){
let message = {} let message = {}
message.size = 10 message.size = 10
message.currentPage = 1 message.currentPage = 1
...@@ -161,11 +161,19 @@ import {getAllList,getNoticeType} from '@/common/list.js' ...@@ -161,11 +161,19 @@ import {getAllList,getNoticeType} from '@/common/list.js'
this.industryOptions = res this.industryOptions = res
}, },
handleSizeChange(val) { handleSizeChange(val) {
this.getCadidateList(val,this.currentPage); let mess = {}
}, mess.size = val
handleCurrentChange(val) { mess.currentPage = this.getData.currentPage
this.getCadidateList(this.size,val); this.getAllList(mess)
}, },
handleCurrentChange(val) {
/* this.getData.currentPage = val */
let mess = {}
mess.size = this.getData.size
mess.currentPage = val
this.getAllList(mess);
//获取当前页
},
dealDisabledDate(time) { dealDisabledDate(time) {
// 一天的毫秒数 = 8.64e7 判断时在return处可进行加减 // 一天的毫秒数 = 8.64e7 判断时在return处可进行加减
let curDate = (new Date()).getTime(); let curDate = (new Date()).getTime();
......
...@@ -63,7 +63,7 @@ import citySelect from "@/components/citySelect.vue"; ...@@ -63,7 +63,7 @@ import citySelect from "@/components/citySelect.vue";
components:{ components:{
citySelect, citySelect,
}, },
created(){ mounted(){
let message = {} let message = {}
message.size = 10 message.size = 10
message.currentPage = 1 message.currentPage = 1
...@@ -165,10 +165,18 @@ import citySelect from "@/components/citySelect.vue"; ...@@ -165,10 +165,18 @@ import citySelect from "@/components/citySelect.vue";
this.total = total; this.total = total;
}, },
handleSizeChange(val) { handleSizeChange(val) {
this.getBidingList(val,this.currentPage) let mess = {}
mess.size = val
mess.currentPage = this.getData.currentPage
this.getBidingList(mess)
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.getBidingList(this.size,val) /* this.getData.currentPage = val */
let mess = {}
mess.size = this.getData.size
mess.currentPage = val
this.getBidingList(mess);
//获取当前页
}, },
dealDisabledDate(time) { dealDisabledDate(time) {
// 一天的毫秒数 = 8.64e7 判断时在return处可进行加减 // 一天的毫秒数 = 8.64e7 判断时在return处可进行加减
......
...@@ -84,7 +84,7 @@ export default { ...@@ -84,7 +84,7 @@ export default {
components: { components: {
citySelect, citySelect,
}, },
created() { mounted() {
let message = {} let message = {}
message.size = 10 message.size = 10
message.currentPage = 1 message.currentPage = 1
...@@ -217,11 +217,19 @@ export default { ...@@ -217,11 +217,19 @@ export default {
this.getData.districtId = data; this.getData.districtId = data;
}, },
handleSizeChange(val) { handleSizeChange(val) {
this.getWinList(val, this.currentPage); let mess = {}
}, mess.size = val
handleCurrentChange(val) { mess.currentPage = this.getData.currentPage
this.getWinList(this.size, val); this.getWinList(mess)
}, },
handleCurrentChange(val) {
/* this.getData.currentPage = val */
let mess = {}
mess.size = this.getData.size
mess.currentPage = val
this.getWinList(mess);
//获取当前页
},
dealDisabledDate(time) { dealDisabledDate(time) {
// 一天的毫秒数 = 8.64e7 判断时在return处可进行加减 // 一天的毫秒数 = 8.64e7 判断时在return处可进行加减
let curDate = new Date().getTime(); let curDate = new Date().getTime();
......
...@@ -64,7 +64,7 @@ import {getCadidateList} from '@/common/list.js' ...@@ -64,7 +64,7 @@ import {getCadidateList} from '@/common/list.js'
components:{ components:{
citySelect citySelect
}, },
created(){ mounted(){
let message = {} let message = {}
message.size = 10 message.size = 10
message.currentPage = 1 message.currentPage = 1
...@@ -154,11 +154,19 @@ import {getCadidateList} from '@/common/list.js' ...@@ -154,11 +154,19 @@ import {getCadidateList} from '@/common/list.js'
this.industryOptions = res this.industryOptions = res
}, },
handleSizeChange(val) { handleSizeChange(val) {
this.getCadidateList(val,this.currentPage); let mess = {}
}, mess.size = val
handleCurrentChange(val) { mess.currentPage = this.getData.currentPage
this.getCadidateList(this.size,val); this.getCadidateList(mess)
}, },
handleCurrentChange(val) {
/* this.getData.currentPage = val */
let mess = {}
mess.size = this.getData.size
mess.currentPage = val
this.getCadidateList(mess);
//获取当前页
},
dealDisabledDate(time) { dealDisabledDate(time) {
// 一天的毫秒数 = 8.64e7 判断时在return处可进行加减 // 一天的毫秒数 = 8.64e7 判断时在return处可进行加减
let curDate = (new Date()).getTime(); let curDate = (new Date()).getTime();
......
...@@ -64,7 +64,7 @@ import {getChangeList} from '@/common/list.js' ...@@ -64,7 +64,7 @@ import {getChangeList} from '@/common/list.js'
components:{ components:{
citySelect citySelect
}, },
created(){ mounted(){
let message = {} let message = {}
message.size = 10 message.size = 10
message.currentPage = 1 message.currentPage = 1
...@@ -154,11 +154,19 @@ import {getChangeList} from '@/common/list.js' ...@@ -154,11 +154,19 @@ import {getChangeList} from '@/common/list.js'
this.industryOptions = res this.industryOptions = res
}, },
handleSizeChange(val) { handleSizeChange(val) {
this.getCadidateList(val,this.currentPage); let mess = {}
}, mess.size = val
handleCurrentChange(val) { mess.currentPage = this.getData.currentPage
this.getCadidateList(this.size,val); this.getChangeList(mess)
}, },
handleCurrentChange(val) {
/* this.getData.currentPage = val */
let mess = {}
mess.size = this.getData.size
mess.currentPage = val
this.getChangeList(mess);
//获取当前页
},
dealDisabledDate(time) { dealDisabledDate(time) {
// 一天的毫秒数 = 8.64e7 判断时在return处可进行加减 // 一天的毫秒数 = 8.64e7 判断时在return处可进行加减
let curDate = (new Date()).getTime(); let curDate = (new Date()).getTime();
......
...@@ -64,12 +64,12 @@ import {getErrorList} from '@/common/list.js' ...@@ -64,12 +64,12 @@ import {getErrorList} from '@/common/list.js'
components:{ components:{
citySelect citySelect
}, },
created(){ mounted(){
let message = {} let message = {}
message.size = 10 message.size = 10
message.currentPage = 1 message.currentPage = 1
this.industryList() this.industryList()
this.getErrorList(message) this.getErrorList(message)
}, },
data() { data() {
return { return {
...@@ -96,8 +96,6 @@ import {getErrorList} from '@/common/list.js' ...@@ -96,8 +96,6 @@ import {getErrorList} from '@/common/list.js'
}, },
], ],
interTimerPicker: "", interTimerPicker: "",
value2: "",
value1: "",
pickerOptions: { pickerOptions: {
disabledDate: (time) => { disabledDate: (time) => {
return this.dealDisabledDate(time) return this.dealDisabledDate(time)
...@@ -154,11 +152,19 @@ import {getErrorList} from '@/common/list.js' ...@@ -154,11 +152,19 @@ import {getErrorList} from '@/common/list.js'
this.industryOptions = res this.industryOptions = res
}, },
handleSizeChange(val) { handleSizeChange(val) {
this.getCadidateList(val,this.currentPage); let mess = {}
}, mess.size = val
handleCurrentChange(val) { mess.currentPage = this.getData.currentPage
this.getCadidateList(this.size,val); this.getErrorList(mess)
}, },
handleCurrentChange(val) {
/* this.getData.currentPage = val */
let mess = {}
mess.size = this.getData.size
mess.currentPage = val
this.getErrorList(mess);
//获取当前页
},
dealDisabledDate(time) { dealDisabledDate(time) {
// 一天的毫秒数 = 8.64e7 判断时在return处可进行加减 // 一天的毫秒数 = 8.64e7 判断时在return处可进行加减
let curDate = (new Date()).getTime(); let curDate = (new Date()).getTime();
......
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
</ul> </ul>
<div v-show="isshow"> <div v-show="isshow">
<h2>参与报价供应商情况</h2> <h2>参与报价供应商情况</h2>
<dataTable :table-data="tabledata" :columns="columns" ispageobj="false"></dataTable> <dataTable :table-data="tabledata" :columns="columns" :isPageobj="false"></dataTable>
</div> </div>
<div class="pagination flex-center"> <div class="pagination flex-center">
<el-pagination <el-pagination
...@@ -81,24 +81,23 @@ ...@@ -81,24 +81,23 @@
<script> <script>
import dataTable from "@/components/dataTable.vue"; import dataTable from "@/components/dataTable.vue";
import { getInquiryList,getCityList,getenquirySearch} from "@/common/list.js"; import { getInquiryList} from "@/common/list.js";
import { industryList,cityList } from "@/api/common/list.js"; import { industryList} from "@/api/common/list.js";
import citySelect from "@/components/citySelect.vue" import citySelect from "@/components/citySelect.vue"
export default { export default {
components: { components: {
citySelect, citySelect,
dataTable dataTable
}, },
created() { mounted(){
let message={}; let message={};
message.size=10; message.size=10
message.currentPage=1 message.currentPage=1
this.getInquiryList(message); this.getInquiryList(message);
this.industryList(); this.industryList();
}, },
data() { data() {
return { return {
citys:'',
isshow: false, isshow: false,
tabledata: [ tabledata: [
{ {
...@@ -184,11 +183,6 @@ export default { ...@@ -184,11 +183,6 @@ export default {
this.priceList = data; this.priceList = data;
this.total = total this.total = total
}, },
async cityList() {
let a = 0
const {data} = await cityList(a)
console.log(data[0].name)
},
async industryList() { async industryList() {
const res = await industryList(); const res = await industryList();
this.industryOptions = res; this.industryOptions = res;
...@@ -215,10 +209,18 @@ export default { ...@@ -215,10 +209,18 @@ export default {
this.getData.districtId = value; this.getData.districtId = value;
}, },
handleSizeChange(val) { handleSizeChange(val) {
this.getInquiryList(val, this.currentPage); let mess = {}
mess.size = val
mess.currentPage = this.getData.currentPage
this.getInquiryList(mess)
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.getInquiryList(this.size, val); /* this.getData.currentPage = val */
let mess = {}
mess.size = this.getData.size
mess.currentPage = val
this.getInquiryList(mess);
//获取当前页
}, },
dealDisabledDate(time) { dealDisabledDate(time) {
// 一天的毫秒数 = 8.64e7 判断时在return处可进行加减 // 一天的毫秒数 = 8.64e7 判断时在return处可进行加减
......
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