|
@@ -82,26 +82,31 @@
|
|
<span style="width:100px;">操作</span>
|
|
<span style="width:100px;">操作</span>
|
|
</div>
|
|
</div>
|
|
<ul class="listData_ul" :style="{'padding-bottom': getShowPagination?'': '48px'}">
|
|
<ul class="listData_ul" :style="{'padding-bottom': getShowPagination?'': '48px'}">
|
|
- <li class="list_li" style="padding:24px 0 26px;display:flex;align-items: center;cursor: default;" v-for="(item, index) in getMyData.listState.list" :key="index">
|
|
|
|
|
|
+ <li
|
|
|
|
+ class="list_li"
|
|
|
|
+ style="padding:24px 0 26px;display:flex;align-items: center;cursor: default;"
|
|
|
|
+ :class="{ visited: item.visited }"
|
|
|
|
+ v-for="(item, index) in getMyData.listState.list"
|
|
|
|
+ :key="index">
|
|
<div style="padding: 0 12px;width:810px;cursor: pointer" @click="goViewEnt(item.s_entId, item)">
|
|
<div style="padding: 0 12px;width:810px;cursor: pointer" @click="goViewEnt(item.s_entId, item)">
|
|
- <div class="list_name ent_li_name">{{item.s_entname}}<span class="red_point" v-if="item.i_apppushunread == 1"></span>
|
|
|
|
|
|
+ <div class="list_name ent_li_name visited-hd">{{item.s_entname}}<span class="red_point" v-if="item.i_apppushunread == 1"></span>
|
|
</div>
|
|
</div>
|
|
<div class="list_unit">
|
|
<div class="list_unit">
|
|
<div class="pur_unit">
|
|
<div class="pur_unit">
|
|
<span class="unit_label">成立日期:</span>
|
|
<span class="unit_label">成立日期:</span>
|
|
- <span class="unit_name entname">{{item.l_establishdate?dateFormatter(item.l_establishdate*1000, 'yyyy-MM-dd'):'--'}}</span>
|
|
|
|
|
|
+ <span class="unit_name entname visited-ft">{{item.l_establishdate?dateFormatter(item.l_establishdate*1000, 'yyyy-MM-dd'):'--'}}</span>
|
|
</div>
|
|
</div>
|
|
<div class="pur_unit">
|
|
<div class="pur_unit">
|
|
<span class="unit_label">注册资本:</span>
|
|
<span class="unit_label">注册资本:</span>
|
|
- <span class="unit_name entname">{{item.f_capital?moneyUnit(item.f_capital*10000):'--'}}</span>
|
|
|
|
|
|
+ <span class="unit_name entname visited-ft">{{item.f_capital?moneyUnit(item.f_capital*10000):'--'}}</span>
|
|
</div>
|
|
</div>
|
|
<div class="pur_unit">
|
|
<div class="pur_unit">
|
|
<span class="unit_label">企业地址:</span>
|
|
<span class="unit_label">企业地址:</span>
|
|
- <span class="unit_name entname">{{item.s_area?item.s_area:'--'}}{{item.s_city?item.s_city:''}}</span>
|
|
|
|
|
|
+ <span class="unit_name entname visited-ft">{{item.s_area?item.s_area:'--'}}{{item.s_city?item.s_city:''}}</span>
|
|
</div>
|
|
</div>
|
|
<div class="pur_unit">
|
|
<div class="pur_unit">
|
|
<span class="unit_label">企业联系方式:</span>
|
|
<span class="unit_label">企业联系方式:</span>
|
|
- <span class="unit_name entname">{{item.s_phone?item.s_phone:'--'}}</span>
|
|
|
|
|
|
+ <span class="unit_name entname visited-ft">{{item.s_phone?item.s_phone:'--'}}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -266,7 +271,7 @@
|
|
<script>
|
|
<script>
|
|
import { Pagination, Progress, Message, Tooltip, Dialog, Button } from 'element-ui'
|
|
import { Pagination, Progress, Message, Tooltip, Dialog, Button } from 'element-ui'
|
|
import { mapState } from 'vuex'
|
|
import { mapState } from 'vuex'
|
|
-// import { getPushList } from '@/api/modules/'
|
|
|
|
|
|
+import { mixinVisited } from '@/utils/mixins/visited'
|
|
import Empty from '@/components/common/Empty.vue'
|
|
import Empty from '@/components/common/Empty.vue'
|
|
import GroupCard from '@/components/selector/GroupSelector.vue'
|
|
import GroupCard from '@/components/selector/GroupSelector.vue'
|
|
import { moneyUnit, dateFormatter } from '@/utils'
|
|
import { moneyUnit, dateFormatter } from '@/utils'
|
|
@@ -274,6 +279,7 @@ import { setFollowEnt, setCancelEnt, changeEntGroup } from '@/api/modules'
|
|
export default {
|
|
export default {
|
|
props: ['type', 'title', 'mydata', 'myDataObj', 'resData', 'myPolicydata', 'potenObj', 'potenResult', 'entSearch', 'entSearchRes'],
|
|
props: ['type', 'title', 'mydata', 'myDataObj', 'resData', 'myPolicydata', 'potenObj', 'potenResult', 'entSearch', 'entSearchRes'],
|
|
name: 'listData',
|
|
name: 'listData',
|
|
|
|
+ mixins: [mixinVisited],
|
|
components: {
|
|
components: {
|
|
[Pagination.name]: Pagination,
|
|
[Pagination.name]: Pagination,
|
|
[Progress.name]: Progress,
|
|
[Progress.name]: Progress,
|
|
@@ -337,7 +343,18 @@ export default {
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
'myDataObj.list' (newVal) {
|
|
'myDataObj.list' (newVal) {
|
|
- this.getMyData.listState.list = newVal
|
|
|
|
|
|
+ this.getMyData.listState.list = newVal.map(item => {
|
|
|
|
+ const visited = this.pathVisited(
|
|
|
|
+ this.createPathItem(
|
|
|
|
+ '/ent_portrait/*',
|
|
|
|
+ `id=${item.s_entId}`
|
|
|
|
+ )
|
|
|
|
+ )
|
|
|
|
+ return {
|
|
|
|
+ ...item,
|
|
|
|
+ visited
|
|
|
|
+ }
|
|
|
|
+ })
|
|
this.getEntListTips()
|
|
this.getEntListTips()
|
|
},
|
|
},
|
|
mydata (newVal, oldVal) {
|
|
mydata (newVal, oldVal) {
|
|
@@ -486,12 +503,6 @@ export default {
|
|
// 企业搜索
|
|
// 企业搜索
|
|
entSearchData (list) {
|
|
entSearchData (list) {
|
|
if (list && list.length !== 0) {
|
|
if (list && list.length !== 0) {
|
|
- // const that = this
|
|
|
|
- // list.forEach(function (item) {
|
|
|
|
- // console.log(that.getFollow(item.s_id))
|
|
|
|
- // // let isfollow = that.getFollow(item.s_id)
|
|
|
|
- // // item.isentFollow = isfollow
|
|
|
|
- // })
|
|
|
|
this.listState.list = list
|
|
this.listState.list = list
|
|
this.listState.total = list.length
|
|
this.listState.total = list.length
|
|
} else {
|
|
} else {
|
|
@@ -580,6 +591,15 @@ export default {
|
|
if (item.i_apppushunread) {
|
|
if (item.i_apppushunread) {
|
|
item.i_apppushunread = null
|
|
item.i_apppushunread = null
|
|
}
|
|
}
|
|
|
|
+ if (this.type === 'entintel') {
|
|
|
|
+ item.visited = true
|
|
|
|
+ this.pathVisiting(
|
|
|
|
+ this.createPathItem(
|
|
|
|
+ '/ent_portrait/*',
|
|
|
|
+ `id=${id}`
|
|
|
|
+ )
|
|
|
|
+ )
|
|
|
|
+ }
|
|
const routeUrl = this.$router.resolve({
|
|
const routeUrl = this.$router.resolve({
|
|
path: `/ent_portrait/${id}`
|
|
path: `/ent_portrait/${id}`
|
|
})
|
|
})
|
|
@@ -705,10 +725,10 @@ export default {
|
|
location.href = '/jylab/entSearch/index.html'
|
|
location.href = '/jylab/entSearch/index.html'
|
|
},
|
|
},
|
|
getEntListTips () {
|
|
getEntListTips () {
|
|
- if (!this.myDataObj.match && !this.myDataObj.group && this.myDataObj.initTotal === 0) {
|
|
|
|
|
|
+ if (this.myDataObj && !this.myDataObj.match && !this.myDataObj.group && this.myDataObj.initTotal === 0) {
|
|
this.tips = '暂无企业情报信息,前往企业搜索关注企业'
|
|
this.tips = '暂无企业情报信息,前往企业搜索关注企业'
|
|
this.tipimages = require('@/assets/images/empty/jy-back.png')
|
|
this.tipimages = require('@/assets/images/empty/jy-back.png')
|
|
- } else if (this.myDataObj.list.length === 0 && this.myDataObj.initTotal !== 0) {
|
|
|
|
|
|
+ } else if (this.myDataObj && this.myDataObj.list.length === 0 && this.myDataObj.initTotal !== 0) {
|
|
this.tips = '暂无匹配数据'
|
|
this.tips = '暂无匹配数据'
|
|
this.tipimages = require('@/assets/images/empty/jy-back.png')
|
|
this.tipimages = require('@/assets/images/empty/jy-back.png')
|
|
}
|
|
}
|