|
|
@@ -70,7 +70,7 @@
|
|
|
class="notice"
|
|
|
v-for="item in tableData"
|
|
|
:key="item.id"
|
|
|
- @click="$router.push({ name: 'article', query: { id: item.id } })"
|
|
|
+ @click="$router.push({ name: 'article', query: { id: item.id, typeId: item.typeId } })"
|
|
|
>
|
|
|
<div class="notice_con">
|
|
|
<i></i>
|
|
|
@@ -87,7 +87,7 @@
|
|
|
class="policy"
|
|
|
v-for="item in tableData"
|
|
|
:key="item.id"
|
|
|
- @click="$router.push({ name: 'article', query: { id: item.id } })"
|
|
|
+ @click="$router.push({ name: 'policyArticle', query: { id: item.id, typeId: item.typeId } })"
|
|
|
>
|
|
|
<div class="policy_info">
|
|
|
<img :src="item.cover" />
|
|
|
@@ -102,13 +102,16 @@
|
|
|
<!--需求信息 -->
|
|
|
<div v-if="current === 2 || current === 3 || current === 4" class="content">
|
|
|
<div class="supply" v-for="(item, index) in tableData" :key="item.id" @click="needsGo(index)">
|
|
|
- <img :src="item.pic" />
|
|
|
+ <img :src="item.images" />
|
|
|
<div class="supply_info">
|
|
|
<div class="supply_tit">
|
|
|
- <i>正在对接</i><span>{{ item.name }}</span>
|
|
|
+ <!-- <i>正在对接</i><span>{{ item.name }}</span> -->
|
|
|
+ <i class="wait" v-if="item.conversationStatus === 'AWAIT'"> 等待对接 </i>
|
|
|
+ <i v-if="item.conversationStatus === 'CONDUCTED'"> 正在对接</i>
|
|
|
+ <span>{{ item.name }}</span>
|
|
|
</div>
|
|
|
<p>
|
|
|
- {{ item.needInfo }}
|
|
|
+ {{ item.description }}
|
|
|
</p>
|
|
|
<span class="supply_time">{{ item.createdAt }}</span>
|
|
|
</div>
|
|
|
@@ -117,10 +120,13 @@
|
|
|
<!-- 供应信息 -->
|
|
|
<div v-if="current === 5 || current === 6 || current === 7">
|
|
|
<div class="supply" v-for="(item, index) in tableData" :key="item.id" @click="needsGo(index)">
|
|
|
- <img :src="item.picList ? item.picList[0].url : null" />
|
|
|
+ <img :src="item.images ? item.images[0] : null" />
|
|
|
<div class="supply_info">
|
|
|
<div class="supply_tit">
|
|
|
- <i>正在对接</i><span>{{ item.name }}</span>
|
|
|
+ <!-- <i>正在对接</i><span>{{ item.name }}</span> -->
|
|
|
+ <i class="wait" v-if="item.conversationStatus === 'AWAIT'"> 等待对接 </i>
|
|
|
+ <i v-if="item.conversationStatus === 'CONDUCTED'"> 正在对接</i>
|
|
|
+ <span>{{ item.name }}</span>
|
|
|
</div>
|
|
|
<p>
|
|
|
{{ item.description }}
|
|
|
@@ -135,20 +141,18 @@
|
|
|
<span class="title">{{ item.title }}</span>
|
|
|
<span class="name">{{ item.name }}</span>
|
|
|
<span class="num"
|
|
|
- >回复 <span style="color:#939599">{{
|
|
|
- item.commentList ? item.commentList.length : 0
|
|
|
- }}</span></span
|
|
|
+ >回复 <span style="color:#939599">{{ item.commentNum }}</span></span
|
|
|
>
|
|
|
<span class="time">{{ item.createdAt }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 政民互动 -->
|
|
|
<div v-if="current === 8">
|
|
|
- <div class="interactive" v-for="(item, index) in tableData" :key="item[0]" @click="needsGo(index)">
|
|
|
- <span class="title">{{ item[1] }}</span>
|
|
|
+ <div class="interactive" v-for="(item, index) in tableData" :key="item.id" @click="needsGo(index)">
|
|
|
+ <span class="title">{{ item.title }}</span>
|
|
|
<!-- <span class="name">{{ item.name }}</span> -->
|
|
|
- <span class="num">{{ item[3] ? '已回复' : '未回复' }}</span>
|
|
|
- <span class="time">{{ item[2] }}</span>
|
|
|
+ <span class="num">{{ item.commentNum >= 0 ? '已回复' : '未回复' }}</span>
|
|
|
+ <span class="time">{{ item.createdAt }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -261,18 +265,22 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
resShow() {
|
|
|
+ this.url = '/resourceSupplyAndDemand/all';
|
|
|
if (this.resIndex === 5) {
|
|
|
- this.url = '/product/all';
|
|
|
+ // this.url = '/product/all';
|
|
|
+ this.query = { type: 'PRODUCT_SUPPLY' };
|
|
|
this.search = this.title;
|
|
|
this.pageSize = 5;
|
|
|
this.getData();
|
|
|
} else if (this.resIndex === 6) {
|
|
|
- this.url = '/artProduct/all';
|
|
|
+ // this.url = '/artProduct/all';
|
|
|
+ this.query = { type: 'TECH_SUPPLY' };
|
|
|
this.search = this.title;
|
|
|
this.pageSize = 5;
|
|
|
this.getData();
|
|
|
} else if (this.resIndex === 7) {
|
|
|
- this.url = '/tresource/all';
|
|
|
+ // this.url = '/tresource/all';
|
|
|
+ this.query = { type: 'RES_SUPPLY' };
|
|
|
this.search = this.title;
|
|
|
this.pageSize = 5;
|
|
|
this.getData();
|
|
|
@@ -280,21 +288,24 @@ export default {
|
|
|
this.current = this.resIndex;
|
|
|
},
|
|
|
needShow() {
|
|
|
+ this.url = '/resourceSupplyAndDemand/all';
|
|
|
if (this.needIndex === 2) {
|
|
|
- this.url = '/artNeed/all';
|
|
|
- this.query = {};
|
|
|
+ // this.url = '/artNeed/all';
|
|
|
+ // this.query = {};
|
|
|
+ // this.search = this.title;
|
|
|
+ // this.pageSize = 5;
|
|
|
+ // this.getData();
|
|
|
+ this.query = { type: 'TECH_DEMAND' };
|
|
|
this.search = this.title;
|
|
|
this.pageSize = 5;
|
|
|
this.getData();
|
|
|
} else if (this.needIndex === 3) {
|
|
|
- this.url = '/productNeed/all';
|
|
|
- this.query = {};
|
|
|
+ this.query = { type: 'PRODUCT_DEMAND' };
|
|
|
this.search = this.title;
|
|
|
this.pageSize = 5;
|
|
|
this.getData();
|
|
|
} else if (this.needIndex === 4) {
|
|
|
- this.url = '/financingNeeds/all';
|
|
|
- this.query = {};
|
|
|
+ this.query = { type: 'FINANCING_DEMAND' };
|
|
|
this.search = this.title;
|
|
|
this.pageSize = 5;
|
|
|
this.getData();
|
|
|
@@ -302,22 +313,20 @@ export default {
|
|
|
this.current = this.needIndex;
|
|
|
},
|
|
|
civilShow() {
|
|
|
+ this.url = '/post/allDTO';
|
|
|
if (this.civilIndex === 8) {
|
|
|
- this.url = '/question/getAll';
|
|
|
- this.query = {};
|
|
|
+ this.query = { type: 'OFFICIAL' };
|
|
|
this.search = this.title;
|
|
|
this.pageSize = 5;
|
|
|
this.getData();
|
|
|
} else if (this.civilIndex === 9) {
|
|
|
- this.url = '/topic/all';
|
|
|
- this.query = { type: 1 };
|
|
|
+ this.query = { type: 'TOPIC' };
|
|
|
this.search = this.title;
|
|
|
this.pageSize = 5;
|
|
|
this.getData();
|
|
|
} else if (this.civilIndex === 10) {
|
|
|
- this.url = '/topic/all';
|
|
|
this.search = this.title;
|
|
|
- this.query = { type: 2 };
|
|
|
+ this.query = { type: 'QA' };
|
|
|
this.pageSize = 5;
|
|
|
this.getData();
|
|
|
}
|
|
|
@@ -336,27 +345,52 @@ export default {
|
|
|
this.search = this.title;
|
|
|
this.query = { type: { keyType: 'zcfg' } };
|
|
|
this.pageSize = 10;
|
|
|
+ this.getData();
|
|
|
}
|
|
|
},
|
|
|
needsGo(index) {
|
|
|
if (this.current === 2) {
|
|
|
- this.$router.push({ name: 'resourceDetail', query: { id: this.tableData[index].id, type: 1 } });
|
|
|
+ this.$router.push({
|
|
|
+ name: 'resourceDetail',
|
|
|
+ query: { id: this.tableData[index].id, type: 'TECH_DEMAND' }
|
|
|
+ });
|
|
|
} else if (this.current === 3) {
|
|
|
- this.$router.push({ name: 'resourceDetail', query: { id: this.tableData[index].id, type: 2 } });
|
|
|
+ this.$router.push({
|
|
|
+ name: 'resourceDetail',
|
|
|
+ query: { id: this.tableData[index].id, type: 'PRODUCT_DEMAND' }
|
|
|
+ });
|
|
|
} else if (this.current === 4) {
|
|
|
- this.$router.push({ name: 'resourceFanceDetail', query: { id: this.tableData[index].id, type: 3 } });
|
|
|
+ this.$router.push({
|
|
|
+ name: 'resourceFanceDetail',
|
|
|
+ query: { id: this.tableData[index].id, type: 'FINANCING_DEMAND' }
|
|
|
+ });
|
|
|
} else if (this.current === 5) {
|
|
|
- this.$router.push({ name: 'resourceRelease', query: { id: this.tableData[index].id, type: 1 } });
|
|
|
+ this.$router.push({
|
|
|
+ name: 'resourceRelease',
|
|
|
+ query: { id: this.tableData[index].id, type: 'PRODUCT_SUPPLY' }
|
|
|
+ });
|
|
|
} else if (this.current === 6) {
|
|
|
- this.$router.push({ name: 'resourceRelease', query: { id: this.tableData[index].id, type: 2 } });
|
|
|
+ this.$router.push({
|
|
|
+ name: 'resourceRelease',
|
|
|
+ query: { id: this.tableData[index].id, type: 'TECH_SUPPLY' }
|
|
|
+ });
|
|
|
} else if (this.current === 7) {
|
|
|
- this.$router.push({ name: 'resourceRelease', query: { id: this.tableData[index].id, type: 3 } });
|
|
|
+ this.$router.push({
|
|
|
+ name: 'resourceRelease',
|
|
|
+ query: { id: this.tableData[index].id, type: 'RES_SUPPLY' }
|
|
|
+ });
|
|
|
} else if (this.current === 8) {
|
|
|
+ console.log(this.tableData[index]);
|
|
|
+ this.$router.push({
|
|
|
+ name: 'interactDetail',
|
|
|
+ query: { id: this.tableData[index].id, type: 'OFFICIAL' }
|
|
|
+ });
|
|
|
+ } else if (this.current === 9) {
|
|
|
// console.log(this.tableData[index]);
|
|
|
- this.$router.push({ name: 'interactDetail', query: { id: this.tableData[index][0] } });
|
|
|
- } else if (this.current === 9 || this.current === 10) {
|
|
|
+ this.$router.push({ name: 'interactDetail2', query: { id: this.tableData[index].id, type: 'TOPIC' } });
|
|
|
+ } else if (this.current === 10) {
|
|
|
// console.log(this.tableData[index]);
|
|
|
- this.$router.push({ name: 'interactDetail2', query: { id: this.tableData[index].id } });
|
|
|
+ this.$router.push({ name: 'interactDetail2', query: { id: this.tableData[index].id, type: 'QA' } });
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -537,9 +571,14 @@ export default {
|
|
|
padding: 5px 3px;
|
|
|
margin-right: 6px;
|
|
|
}
|
|
|
+ .wait {
|
|
|
+ background-color: #ffebe8;
|
|
|
+ color: #ff4a33;
|
|
|
+ }
|
|
|
span {
|
|
|
font-size: 14px;
|
|
|
color: #000;
|
|
|
+ font-weight: 500;
|
|
|
}
|
|
|
}
|
|
|
p {
|