|
@@ -3,7 +3,6 @@ import { without, throttle } from 'lodash'
|
|
|
import { useStore } from '@/store'
|
|
|
import { useRoute, useRouter } from 'vue-router/composables'
|
|
|
import { MessageBox } from 'element-ui'
|
|
|
-import { mixinVisited } from '@/utils/mixins/visited-setup.js'
|
|
|
import {
|
|
|
FilterHistoryAjaxModelRestore,
|
|
|
FilterHistoryAjaxModel2ViewModel,
|
|
@@ -78,7 +77,7 @@ export default function () {
|
|
|
|
|
|
// 是否在工作台内
|
|
|
// 本地调试,可改为工作台内isInApp = ref(true), isInWeb = ref(false) 提交记得改回!
|
|
|
- const isInApp = ref(true) || ref(InContainer.inApp)
|
|
|
+ const isInApp = ref(InContainer.inApp)
|
|
|
const isInWeb = ref(InContainer.inWeb)
|
|
|
|
|
|
// 是否是渠道商
|
|
@@ -129,14 +128,6 @@ export default function () {
|
|
|
const APIModel = useQuickSearchModel({
|
|
|
type: 'search-bid'
|
|
|
})
|
|
|
- /***
|
|
|
- * 列表单条数据是否已读
|
|
|
- */
|
|
|
- const {
|
|
|
- pathVisiting,
|
|
|
- createPathItem,
|
|
|
- pathVisited
|
|
|
- } = mixinVisited()
|
|
|
/**
|
|
|
* 列表相关model
|
|
|
*/
|
|
@@ -497,7 +488,6 @@ export default function () {
|
|
|
)
|
|
|
} catch (error) {}
|
|
|
if(isLogin.value) {
|
|
|
- checkVisited(item)
|
|
|
const prefix = isInApp.value ? '/article/content/' : '/nologin/content/'
|
|
|
const targetLink = `${prefix}${id}${aHref}`
|
|
|
|
|
@@ -507,7 +497,6 @@ export default function () {
|
|
|
newTab: true,
|
|
|
})
|
|
|
} else{//没有登录跳转新的详情
|
|
|
- checkVisited(item, 'nologin')
|
|
|
// 一切都好渠道合作页,未登录跳转需要弹出登录,重置到已登录后的详情页
|
|
|
if(cooperateCode.value) {
|
|
|
window.location.href = '/notin/page'
|
|
@@ -530,23 +519,6 @@ export default function () {
|
|
|
window.open(link)
|
|
|
}
|
|
|
}
|
|
|
- // 检测是否已经存储已读
|
|
|
- function checkVisited (item, val) {
|
|
|
- const id = item.id
|
|
|
- let visited = false
|
|
|
- if (val) {
|
|
|
- visited = pathVisited(
|
|
|
- createPathItem('/nologin/content/*.html', 'id=' + id)
|
|
|
- )
|
|
|
- } else {
|
|
|
- visited = pathVisited(
|
|
|
- createPathItem('/article/content/*.html', 'id=' + id)
|
|
|
- )
|
|
|
- }
|
|
|
-
|
|
|
- item.visited = visited
|
|
|
- }
|
|
|
-
|
|
|
// 获取 store getters
|
|
|
const userType = computed(() => {
|
|
|
return useStore().getters['user/userType']
|
|
@@ -728,11 +700,6 @@ export default function () {
|
|
|
|
|
|
}
|
|
|
list.value = list.value.map(item => {
|
|
|
- // 添加是否已读标志
|
|
|
- const visited = pathVisited(
|
|
|
- createPathItem('/article/content/*.html', `id=${item.id}`)
|
|
|
- )
|
|
|
- that.$set(item, 'visited', visited)
|
|
|
// 收藏字段显示
|
|
|
that.$set(item, 'collection', item.isCollected ? 1 : 0)
|
|
|
|
|
@@ -1204,7 +1171,7 @@ export default function () {
|
|
|
result = publishTimeText
|
|
|
}
|
|
|
} else {
|
|
|
- result = '近一年'
|
|
|
+ result = inBIPropertyIframe ? '近5年' : '近一年'
|
|
|
}
|
|
|
|
|
|
return result
|
|
@@ -1287,8 +1254,8 @@ export default function () {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ // 恢复筛选条件
|
|
|
function getLastFilter () {
|
|
|
- // 恢复筛选条件
|
|
|
if(isLogin.value) {
|
|
|
const { key, _storage } = storageConfig.filter
|
|
|
const params =_storage.getItem(key)
|