Commit 400ef809 authored by 吴冠's avatar 吴冠

更新服务器

parent 7338bc82
......@@ -12,7 +12,7 @@
</el-menu>
</el-col>
</div>
<ul v-if="isList">
<ul v-show="isList">
<li v-for="item in messageList" :key="item.id" @click="urlChage">
<nuxt-link :to="`/message/news?id=${item.id}`" :messageContext="item" class="flex-between link-style">
<div class="t2">{{item.title}}</div>
......@@ -31,7 +31,7 @@
</div>
</ul>
<div v-for="item in messageList" :key="item.id" class="content" v-if="!isList">
<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>
......@@ -58,7 +58,7 @@ import {
return {
contentList:'',
isList:true,
activeName: '1',
activeName: '123',
conText:"",
activeIndex: '',
size:10,
......
......@@ -4,7 +4,7 @@
<div class="flex">
<div>
<div class="flex-item" style="margin-bottom: 0.2rem;">
<span class="t1 left">行业类</span>
<span class="t1 left">行业类</span>
<el-select v-model="getData.industryId" placeholder="请选择">
<el-option v-for="item in industryOptions" :key="item.id" :label="item.name" :value="item.id">
</el-option>
......@@ -27,7 +27,7 @@
</div>
</div>
<ul>
<ul v-if="isshow">
<li v-for="item in priceList" :key="item.id">
<nuxt-link :to="`/notice/ABORTIVEdetails?id=${item.id}`">
<div class="time">{{getTimer(item.createTime)}}</div>
......@@ -73,6 +73,7 @@ import {getErrorList} from '@/common/list.js'
},
data() {
return {
isshow:true,
total:0,
getData:{
currentPage:1,
......@@ -135,7 +136,10 @@ import {getErrorList} from '@/common/list.js'
async getErrorList(params){
const {data,total} = await getErrorList(params)
this.priceList = data
this.total = total
if(total ===null){
this.isshow = false
}
this.total = total
},
receiveP(value) {
this.getData.provinceId = value;
......
......@@ -26,7 +26,7 @@
</div>
</div>
<ul>
<ul v-if="isshow">
<li v-for="item in priceList" :key="item.id">
<nuxt-link :to='`/notice/${item.noticeType}details?id=${item.id}`'>
<div class="time">{{getTimer(item.createTime)}}</div>
......@@ -73,6 +73,7 @@ import {getAllList,getNoticeType} from '@/common/list.js'
},
data() {
return {
isshow:true,
allList:[],
total:0,
getData:{
......@@ -138,8 +139,10 @@ import {getAllList,getNoticeType} from '@/common/list.js'
async getAllList(params){
const {data,total} = await getAllList(params)
this.priceList = data
this.total = total
console.log(data,total,'--------------')
if(total ===null){
this.isshow = false
}
this.total = total
},
async getNoticeType(){
const {data} = await getNoticeType()
......
......@@ -26,7 +26,7 @@
</div>
</div>
</div>
<ul>
<ul v-if ="isshow">
<li v-for="item in priceList" :key="item.id">
<nuxt-link :to="`/notice/BIDDINGdetails?id=${item.id}`">
<div class="time">{{getTimer(item.createTime)}}</div>
......@@ -69,10 +69,10 @@ import citySelect from "@/components/citySelect.vue";
message.currentPage = 1
this.getBidingList(message)
this.industryList()
sessionStorage.setItem("noticeB",this.noticeB)
},
data() {
return {
isshow:true,
noticeB:'[招标公告]',
total:0,
getData:{
......@@ -164,20 +164,29 @@ import citySelect from "@/components/citySelect.vue";
async getBidingList(params){
const {data,total} = await getBidingList(params);
this.priceList = data;
if(total === null){
this.isshow = false
}
this.total = total;
},
handleSizeChange(val) {
let mess = {}
mess.size = val
mess.currentPage = this.getData.currentPage
this.getBidingList(mess)
console.log(mess.size)
console.log(mess.currentPage)
const {data} =this.getBidingList(mess)
console.log(data+"++++++++++++++++++++++++")
},
handleCurrentChange(val) {
handleCurrentChange(val) {
/* this.getData.currentPage = val */
let mess = {}
mess.size = this.getData.size
mess.currentPage = val
this.getBidingList(mess);
console.log(mess.size)
console.log(mess.currentPage)
const {data} =this.getBidingList(mess)
console.log(data+"++++++++++++++++++++++++")
//获取当前页
},
dealDisabledDate(time) {
......
......@@ -39,7 +39,7 @@
</div>
</div>
<ul>
<ul v-if="isshow">
<li v-for="item in priceList" :key="item.id">
<!-- 绑定中标详情页 -->
<nuxt-link :to="`/notice/WINdetails?id=${item.id}`">
......@@ -95,6 +95,7 @@ export default {
},
data() {
return {
isshow:true,
getData: {
industryId: "",
beginDate: "",
......@@ -206,6 +207,9 @@ export default {
},
async getWinList(params) {
const { data, total } = await getWinList(params)
/* if(total ===null){
this.isshow = false
} */
this.total = total;
this.priceList = data;
},
......
......@@ -4,7 +4,7 @@
<div class="flex">
<div>
<div class="flex-item" style="margin-bottom: 0.2rem;">
<span class="t1 left">行业类</span>
<span class="t1 left">行业类</span>
<el-select v-model="getData.industryId" placeholder="请选择">
<el-option v-for="item in industryOptions" :key="item.id" :label="item.name" :value="item.id">
</el-option>
......@@ -27,7 +27,7 @@
</div>
</div>
<ul>
<ul v-if="isshow">
<li v-for="item in priceList" :key="item.id">
<nuxt-link :to="`/notice/CADIDATEdetails?id=${item.id}`">
<div class="time">{{getTimer(item.createTime)}}</div>
......@@ -73,6 +73,7 @@ import {getCadidateList} from '@/common/list.js'
},
data() {
return {
isshow:true,
total:0,
getData:{
currentPage:1,
......@@ -137,6 +138,9 @@ import {getCadidateList} from '@/common/list.js'
async getCadidateList(params){
const {data,total} = await getCadidateList(params)
this.priceList = data
if(total ===null){
this.isshow = false
}
this.total = total
},
receiveP(value) {
......
......@@ -4,7 +4,7 @@
<div class="flex">
<div>
<div class="flex-item" style="margin-bottom: 0.2rem;">
<span class="t1 left">行业类</span>
<span class="t1 left">行业类</span>
<el-select v-model="getData.industryId" placeholder="请选择">
<el-option v-for="item in industryOptions" :key="item.id" :label="item.name" :value="item.id">
</el-option>
......@@ -27,7 +27,7 @@
</div>
</div>
<ul>
<ul v-if="isshow">
<li v-for="item in priceList" :key="item.id">
<nuxt-link :to="`/notice/CHANGEdetails?id=${item.id}`">
<div class="time">{{getTimer(item.createTime)}}</div>
......@@ -73,6 +73,7 @@ import {getChangeList} from '@/common/list.js'
},
data() {
return {
isshow:true,
total:0,
getData:{
currentPage:1,
......@@ -137,6 +138,9 @@ import {getChangeList} from '@/common/list.js'
async getChangeList(params){
const {data,total} = await getChangeList(params)
this.priceList = data
if(total===null){
this.isshow = false
}
this.total = total
},
receiveP(value) {
......
......@@ -4,7 +4,7 @@
<div class="flex">
<div>
<div class="flex-item" style="margin-bottom: 0.2rem;">
<span class="t1 left">行业类</span>
<span class="t1 left">行业类</span>
<el-select v-model="getData.industryId" placeholder="请选择">
<el-option v-for="item in industryOptions" :key="item.id" :label="item.name" :value="item.id">
</el-option>
......@@ -27,7 +27,7 @@
</div>
</div>
<ul>
<ul v-if="isshow">
<li v-for="item in priceList" :key="item.id">
<nuxt-link :to="`/notice/CLARIFIESdetails?id=${item.id}`">
<div class="time">{{getTimer(item.createTime)}}</div>
......@@ -73,6 +73,7 @@ import {getClerList} from '@/common/list.js'
},
data() {
return {
isshow:true,
total:0,
getData:{
currentPage:1,
......@@ -135,6 +136,9 @@ import {getClerList} from '@/common/list.js'
async getClerList(params){
const {data,total} = await getClerList(params)
this.priceList = data
if(total ===null){
this.isshow = false
}
this.total = total
},
receiveP(value) {
......
......@@ -42,7 +42,8 @@
<el-button class="reset" @click="reset">重置</el-button>
</div> -->
</div>
<ul>
<ul v-if="isshow1">
<li v-if = "!isshow1">暂无数据</li>
<li v-for="item in priceList" :key="item.id">
<nuxt-link :to="`/notice/ENQUIRYdetails?id=${item.id}`">
<div class="time">{{getTimer(item.createTime)}}</div>
......@@ -77,7 +78,7 @@
@current-change="handleCurrentChange"
:current-page="getData.currentPage"
:pageSize="getData.size"
:page-sizes="[10, 20, 30, 40]"
:page-sizes="[10, 20, 30, 40]"
layout="total, sizes,prev, pager, next, jumper"
:total="total"
></el-pagination>
......@@ -104,6 +105,7 @@ export default {
data() {
return {
noticeT:'[询价公告]',
isshow1:true,
isshow: false,
tabledata: [
{
......@@ -201,9 +203,12 @@ export default {
},
async getInquiryList(params) {
const { data, total} = await getInquiryList(params);
console.log(total+'-------------------');
console.log(data+'-------------------');
this.priceList = data;
this.total = total;
if(total===null){
this.isshow1 = false
}
this.total = total
},
receiveP(value) {
this.getData.provinceId = value;
......@@ -219,6 +224,8 @@ export default {
mess.size = val
mess.currentPage = this.getData.currentPage
this.getInquiryList(mess)
/* this.getInquiryList(val,this.getData.currentPage) */
},
handleCurrentChange(val) {
/* this.getData.currentPage = val */
......@@ -226,7 +233,7 @@ export default {
mess.size = this.getData.size
mess.currentPage = val
this.getInquiryList(mess);
//获取当前页
/* this.getInquiryList(this.getData.size,val) */
},
dealDisabledDate(time) {
// 一天的毫秒数 = 8.64e7 判断时在return处可进行加减
......
......@@ -7,7 +7,7 @@ import requestUrl from '../utils/Domain.js'
// 创建axios实例
const service = axios.create({
baseURL: 'http://192.168.200.201:8082/apis', // api的base_url
baseURL: 'http://60.205.251.80:8082/apis', // api的base_url
/* baseURL: 'http://192.168.3.35:8085/apis', */
timeout: 35000 // 请求超时时间
})
......
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