Commit 343ad694 authored by 吴冠's avatar 吴冠

分页

parent 9a4b6e07
<template>
<div class="message " >
<div class="message" >
<div class='sidebar'>
<div class="sidebar-title">信息公告</div>
<el-col :span="12">
......@@ -33,13 +33,13 @@
<div v-for="item in messageList" :key="item.id" class="content" v-show="!isList">
<h1>{{item.title}}</h1>
<div class="flex">
<span>发布时间:{{item.createTime}}</span>
<div class="flex-center pos">
<span style="margin-right:20px">发布时间:{{item.createTime}}</span>
<span>作者:{{item.author}}</span>
</div>
<div>{{item.content}}</div>
<div class="flex-center">
<el-button type="primary" @click="returnPrev">返回</el-button>
<div v-html="item.content" style="width:600px;margin:0 auto"></div>
<div class="flex-center" style="margin-buttom:40px">
<el-button type="primary" @click="returnPrev" style="margin-top:50px">返回</el-button>
</div>
</div>
</div>
......@@ -180,6 +180,15 @@ import {
.content{
width:9.2rem
}
h1{
display: flex;
justify-content: center;
margin-top: 20px;
margin-bottom: 20px;
}
.pos{
margin-bottom: 50px;
}
</style>
......@@ -136,7 +136,7 @@ import {getErrorList} from '@/common/list.js'
async getErrorList(params){
const {data,total} = await getErrorList(params)
this.priceList = data
if(total ===null){
if(total ===null||0){
this.isshow = false
}
this.total = total
......
......@@ -139,7 +139,7 @@ import {getAllList,getNoticeType} from '@/common/list.js'
async getAllList(params){
const {data,total} = await getAllList(params)
this.priceList = data
if(total ===null){
if(total ===null||0){
this.isshow = false
}
this.total = total
......
......@@ -164,7 +164,7 @@ import citySelect from "@/components/citySelect.vue";
async getBidingList(params){
const {data,total} = await getBidingList(params);
this.priceList = data;
if(total === null){
if(total === null||0){
this.isshow = false
}
this.total = total;
......
......@@ -207,9 +207,9 @@ export default {
},
async getWinList(params) {
const { data, total } = await getWinList(params)
/* if(total ===null){
if(total ===null||0){
this.isshow = false
} */
}
this.total = total;
this.priceList = data;
},
......
......@@ -138,7 +138,7 @@ import {getCadidateList} from '@/common/list.js'
async getCadidateList(params){
const {data,total} = await getCadidateList(params)
this.priceList = data
if(total ===null){
if(total ===null||0){
this.isshow = false
}
this.total = total
......
......@@ -138,7 +138,7 @@ import {getChangeList} from '@/common/list.js'
async getChangeList(params){
const {data,total} = await getChangeList(params)
this.priceList = data
if(total===null){
if(total===null||0){
this.isshow = false
}
this.total = total
......
......@@ -136,7 +136,7 @@ import {getClerList} from '@/common/list.js'
async getClerList(params){
const {data,total} = await getClerList(params)
this.priceList = data
if(total ===null){
if(total ===null||0){
this.isshow = false
}
this.total = total
......
......@@ -205,7 +205,7 @@ export default {
const { data, total} = await getInquiryList(params);
console.log(data+'-------------------');
this.priceList = data;
if(total===null){
if(total===null||0){
this.isshow1 = false
}
this.total = total
......
......@@ -903,9 +903,13 @@ export default {
phonenumber: [
{
required: true,
validator: checkPhone,
message:"请输入正确的验证码",
trigger: "blur",
},
{
pattern: /^1[0-9]{10}$/,
message: "你的输入有误,请重新输入!",
}
],
code: [
{
......@@ -928,8 +932,9 @@ export default {
trigger: "blur",
},
{
validator: checkPhone,
},
pattern: /^1[0-9]{10}$/,
message: "你的输入有误,请重新输入!",
}
],
legalPersonName: [
......
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