|
@@ -1,4 +1,4 @@
|
|
|
-import { computed, reactive, getCurrentInstance } from 'vue'
|
|
|
+import { computed, reactive } from 'vue'
|
|
|
import { without } from 'lodash'
|
|
|
// API 业务模型
|
|
|
import useQuickSearchModel from '@jy/data-models/modules/quick-search/model'
|
|
@@ -8,6 +8,7 @@ import { useSearchInputKeywordsModel } from './modules/filter-keywords'
|
|
|
import { useSearchListHeaderActionsModel } from './modules/list-header-actions'
|
|
|
import { useSearchTabsModel } from './modules/tabs'
|
|
|
import { saveFilterActionsModel } from './modules/save-filter-actions'
|
|
|
+import { useStore } from '@/store'
|
|
|
|
|
|
// 解构基础业务
|
|
|
const APIModel = useQuickSearchModel({
|
|
@@ -147,8 +148,12 @@ function getParams(params = {}) {
|
|
|
const result = Object.assign(
|
|
|
{
|
|
|
reqType: 'lastNews',
|
|
|
- pageNumber: listState.pageNum,
|
|
|
- pageSize: listState.pageSize
|
|
|
+ pageNum: listState.pageNum,
|
|
|
+ pageSize: listState.pageSize,
|
|
|
+ // 该接口与用户身份有关
|
|
|
+ _expand: {
|
|
|
+ type: userType.value
|
|
|
+ }
|
|
|
},
|
|
|
getFormatOfInputKeywords(),
|
|
|
getFormatOfFilter(),
|