|
@ -1,8 +1,8 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div> |
|
|
<div> |
|
|
<div class="search-list"> |
|
|
<div class="search-list"> |
|
|
<span>发榜单位:</span> <a-input style="width: 20%" v-model="getParam.companyName" /> <span>发榜项目:</span> |
|
|
<span>发榜单位:</span> <a-input style="width: 20%" v-model="getParam.companyName" /> <span>需求名称:</span> |
|
|
<a-input style="width: 20%" v-model="getParam.address" /> |
|
|
<a-input style="width: 20%" v-model="getParam.title" /> |
|
|
<span class="ml-2">截止时间:</span> <a-range-picker format="YYYY-MM-DD HH:mm:ss" @change="onChange" show-time allow-clear /> |
|
|
<span class="ml-2">截止时间:</span> <a-range-picker format="YYYY-MM-DD HH:mm:ss" @change="onChange" show-time allow-clear /> |
|
|
<a-button class="search-btn" type="primary" @click="submit">搜索</a-button> |
|
|
<a-button class="search-btn" type="primary" @click="submit">搜索</a-button> |
|
|
</div> |
|
|
</div> |
|
@ -63,7 +63,8 @@ |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
import { selResultPublicity } from 'config/api'; |
|
|
import { selResultPublicity,selTelease } from 'config/api'; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name: 'Notice', |
|
|
name: 'Notice', |
|
|
data() { |
|
|
data() { |
|
@ -93,7 +94,7 @@ export default { |
|
|
], |
|
|
], |
|
|
getParam: { |
|
|
getParam: { |
|
|
companyName: '', |
|
|
companyName: '', |
|
|
address: '', |
|
|
title: '', |
|
|
dataTitle: '', |
|
|
dataTitle: '', |
|
|
serviccs: '', |
|
|
serviccs: '', |
|
|
startTime: '', |
|
|
startTime: '', |
|
@ -162,7 +163,44 @@ export default { |
|
|
this.current = current; |
|
|
this.current = current; |
|
|
this.getData(); |
|
|
this.getData(); |
|
|
}, |
|
|
}, |
|
|
submit() {}, |
|
|
async submit() { |
|
|
|
|
|
console.log(this.getParam) |
|
|
|
|
|
try { |
|
|
|
|
|
const params = { |
|
|
|
|
|
param: { |
|
|
|
|
|
companyName: this.getParam.companyName, |
|
|
|
|
|
title: this.getParam.title, |
|
|
|
|
|
serviccs: this.getParam.serviccs, |
|
|
|
|
|
startTime: this.getParam.startTime, |
|
|
|
|
|
endTime: this.getParam.endTime, |
|
|
|
|
|
pageNum: this.current, |
|
|
|
|
|
pageSize: 8, |
|
|
|
|
|
}, |
|
|
|
|
|
}; |
|
|
|
|
|
const res = await selResultPublicity(params); |
|
|
|
|
|
const { code, msg, data } = res.data; |
|
|
|
|
|
if (code === 200) { |
|
|
|
|
|
this.lists = data.list; |
|
|
|
|
|
this.total = parseInt(data.total); |
|
|
|
|
|
} else { |
|
|
|
|
|
console.log(msg); |
|
|
|
|
|
this.$message.error(msg); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}catch { |
|
|
|
|
|
this.$message.error('查询失败'); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// |
|
|
}, |
|
|
}, |
|
|
}; |
|
|
}; |
|
|
</script> |
|
|
</script> |
|
|