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

分页

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