|
@@ -43,8 +43,12 @@
|
|
|
</span>
|
|
|
</el-col>
|
|
|
<el-col :span="12" class="productList" v-for="(item, index) in productList" :key="index" @click.native="productDetail(item.id)">
|
|
|
- <el-image :src="item.image[0].url"></el-image>
|
|
|
- <p class="textOver">{{ item.name }}</p>
|
|
|
+ <!-- <el-image :src="item.image[0].url"></el-image> -->
|
|
|
+ <template v-if="item.image.length > 0">
|
|
|
+ <el-image :src="item.image[0].url"></el-image>
|
|
|
+ </template>
|
|
|
+ <template v-else>暂无图片</template>
|
|
|
+ <p class="textOver">{{ item.name || '暂无' }}</p>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
<el-col :span="12" class="right">
|
|
@@ -61,7 +65,7 @@
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="tecList" v-for="(item, index) in tecList" :key="index">
|
|
|
<span></span>
|
|
|
- <span class="textOver" @click="tecDetail(item.id)">{{ item.name }}</span>
|
|
|
+ <span class="textOver" @click="tecDetail(item.id)">{{ item.name || '暂无' }}</span>
|
|
|
<span>对接</span>
|
|
|
<span>{{ item.meta | getDate }}</span>
|
|
|
</el-col>
|
|
@@ -87,11 +91,14 @@
|
|
|
<el-col :span="24" class="downLeftInfo">
|
|
|
<el-col :span="24" class="bankingList" v-for="(item, index) in serviceList" :key="index" @click.native="serviceDetail(item.id)">
|
|
|
<el-col :span="10">
|
|
|
- <el-image :src="item.image[0].url"></el-image>
|
|
|
+ <template v-if="item.image.length > 0">
|
|
|
+ <el-image :src="item.image[0].url"></el-image>
|
|
|
+ </template>
|
|
|
+ <template v-else>暂无图片</template>
|
|
|
</el-col>
|
|
|
<el-col :span="14">
|
|
|
- <span class="textOver">{{ item.name }}</span>
|
|
|
- <span>{{ item.introduction }}</span>
|
|
|
+ <span class="textOver">{{ item.name || '暂无' }}</span>
|
|
|
+ <span>{{ item.introduction || '暂无' }}</span>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
@@ -112,12 +119,12 @@
|
|
|
<el-col :span="24" class="downRightList" v-for="(item, index) in expertsList" :key="index" @click.native="zhuanjiaDetail(item.id)">
|
|
|
<el-col :span="10"><el-image :src="item.imgpath"></el-image></el-col>
|
|
|
<el-col :span="14"
|
|
|
- ><p>{{ item.name }}</p>
|
|
|
+ ><p>{{ item.name || '暂无' }}</p>
|
|
|
<p>从事领域:</p>
|
|
|
- <p>{{ item.field }}</p></el-col
|
|
|
+ <p>{{ item.field || '暂无' }}</p></el-col
|
|
|
>
|
|
|
<el-col :span="24"
|
|
|
- ><p>{{ item.job_profile }}</p></el-col
|
|
|
+ ><p>{{ item.job_profile || '暂无' }}</p></el-col
|
|
|
>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
@@ -138,11 +145,14 @@
|
|
|
<el-col :span="24" class="downLeftInfos">
|
|
|
<el-col :span="12" class="bankingLists" v-for="(item, index) in newList" :key="index" @click.native="productDetail(item.id)">
|
|
|
<el-col :span="10">
|
|
|
- <el-image :src="item.image[0].url"></el-image>
|
|
|
+ <template v-if="item.image.length > 0">
|
|
|
+ <el-image :src="item.image[0].url"></el-image>
|
|
|
+ </template>
|
|
|
+ <template v-else>暂无图片</template>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
- <span class="textOvers">{{ item.name }}</span>
|
|
|
- <span>{{ item.introduction }}</span>
|
|
|
+ <span class="textOvers">{{ item.name || '暂无' }}</span>
|
|
|
+ <span>{{ item.introduction || '暂无' }}</span>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
@@ -196,15 +206,15 @@ export default {
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
- ...product(['query']),
|
|
|
+ ...product(['newquery']),
|
|
|
...talentExperts({ expertQuery: 'query' }),
|
|
|
async search() {
|
|
|
- let res = await this.query({ skip: 0, limit: 4, totaltype: '0' });
|
|
|
+ let res = await this.newquery({ skip: 0, limit: 4, totaltype: '0' });
|
|
|
if (this.$checkRes(res)) this.$set(this, `tecList`, res.data);
|
|
|
- res = await this.query({ skip: 0, limit: 4, totaltype: '1' });
|
|
|
+ res = await this.newquery({ skip: 0, limit: 4, totaltype: '1' });
|
|
|
if (this.$checkRes(res)) this.$set(this, `productList`, res.data);
|
|
|
if (this.$checkRes(res)) this.$set(this, `newList`, res.data);
|
|
|
- res = await this.query({ skip: 0, limit: 4, totaltype: '2' });
|
|
|
+ res = await this.newquery({ skip: 0, limit: 4, totaltype: '2' });
|
|
|
if (this.$checkRes(res)) this.$set(this, `serviceList`, res.data);
|
|
|
res = await this.expertQuery({ skip: 0, limit: 4 });
|
|
|
if (this.$checkRes(res)) this.$set(this, `expertsList`, res.data);
|
|
@@ -236,8 +246,6 @@ export default {
|
|
|
this.$router.push({ path: '/personnel/rencai', query: { id: id } });
|
|
|
},
|
|
|
fabu() {
|
|
|
- console.log(this.user.role);
|
|
|
-
|
|
|
if (this.user.role == '2' || this.user.role == '3') {
|
|
|
this.$router.push({ path: '/enterprise/enterprisexuqiu' });
|
|
|
}
|