@@ -14,27 +29,141 @@
diff --git a/front/public/index.html b/front/public/index.html
index 5a8fe4fe..afc695e8 100644
--- a/front/public/index.html
+++ b/front/public/index.html
@@ -1,8 +1,8 @@
@@ -47,7 +47,8 @@
window.SITE_CONFIG['backUrl'] = 'http://15.2.21.238:9797';
window.SITE_CONFIG['previewUrl'] = 'http://15.2.21.238:9796';
window.SITE_CONFIG['frontUrl'] = 'http://15.2.21.238:9796/document/#/devModelFile/';
- window.SITE_CONFIG['apiURL'] = 'http://15.2.21.238:8888/renren-admin';
+ window.SITE_CONFIG['apiURL'] = 'http://15.2.21.239:8888/renren-admin';
+ window.SITE_CONFIG['POI_URL'] = 'http://15.2.21.238:8090/iserver/services/addressmatch-qingdaoPOI181015/restjsr/v1/address';
// 穿透版本
// window.SITE_CONFIG['backUrl'] = 'http://124.222.94.39:9797';
// window.SITE_CONFIG['previewUrl'] = 'http://124.222.94.39:9796/';
diff --git a/front/src/api/personalCenter.js b/front/src/api/personalCenter.js
index 8e825bd7..83566908 100644
--- a/front/src/api/personalCenter.js
+++ b/front/src/api/personalCenter.js
@@ -189,3 +189,19 @@ export function getCategoryTreePage(params) {
params,
})
}
+// 申购车根据部门分类
+export function selectResourceCarGroupByDept(params) {
+ return request({
+ url: '/resourcecar/selectResourceCarGroupByDept',
+ method: 'get',
+ params,
+ })
+}
+// 申购车根据部门查询
+export function selectResourceListByDept(params) {
+ return request({
+ url: '/resourcecar/selectResourceListByDept',
+ method: 'get',
+ params,
+ })
+}
diff --git a/front/src/supermap/advance-init.js b/front/src/supermap/advance-init.js
index dc4320e3..9671313f 100644
--- a/front/src/supermap/advance-init.js
+++ b/front/src/supermap/advance-init.js
@@ -1681,6 +1681,7 @@ export function MapFun(mapObj) {
// })
// }
+ _removeLayerByLayerName(layerName)
let layers = null
// 判断是否是聚合图层
layers = createMarkerClusterLayer()
@@ -1691,12 +1692,7 @@ export function MapFun(mapObj) {
features.map((feature) => {
var bounds = map.getBounds()
// console.log("看看有没有坐标",feature.latLng);
- if (
- layerName == '全部'
- ? feature.hasOwnProperty('latLng') &&
- bounds.contains(L.latLng(feature.latLng.lat, feature.latLng.lng))
- : feature.hasOwnProperty('latLng')
- ) {
+ if ( feature.hasOwnProperty('latLng')) {
const marker = L.marker(feature.latLng, { icon })
if (createPopupFun !== null) {
marker.uuid = feature.uuid || ''
@@ -1735,38 +1731,6 @@ export function MapFun(mapObj) {
})
featureGroup.addLayer(layers)
layerGroup.set(layerName, layers)
- // map.on('zoom', () => {
- // _removeLayerByLayerName(layerName)
- // let layers = null
- // // 判断是否是聚合图层
- // layers = createMarkerClusterLayer()
- // features.map(feature => {
- // var bounds = map.getBounds()
- // // console.log("看看有没有坐标",feature.latLng);
- // if (feature.hasOwnProperty('latLng') && bounds.contains(L.latLng(feature.latLng.lat, feature.latLng.lng))) {
- // const marker = L.marker(feature.latLng, { icon })
- // if (createPopupFun !== null) {
- // marker.uuid = feature.uuid || ''
- // marker.resId = feature.resId || ''
- // marker.on('click', async e => {
- // if (feature.resourceName === 'video') {
- // const params = [feature.indexCode]
- // DS.openVideo(params)
- // } else {
- // const elementHtml = createPopupFun(feature)
- // if (elementHtml) {
- // console.log('L._addReMapWithter===============>', feature.latLng, elementHtml, map)
- // L.popup({ className: 'detail-dialog' }).setLatLng(feature.latLng).setContent(elementHtml).openOn(map)
- // }
- // }
- // })
- // }
- // layers.addLayer(marker)
- // }
- // })
- // featureGroup.addLayer(layers)
- // layerGroup.set(layerName, layers)
- // })
}
/**
* 点击展示弹窗
diff --git a/front/src/utils/request.js b/front/src/utils/request.js
index 0ab87260..021c203b 100644
--- a/front/src/utils/request.js
+++ b/front/src/utils/request.js
@@ -87,9 +87,9 @@ instance.interceptors.request.use(
*/
instance.interceptors.response.use(
(response) => {
- console.log('接口返回', response)
- console.log('接口返回headers', response.headers)
- console.log('接口返回REDIRECT', response.headers.redirect)
+ // console.log('接口返回', response)
+ // console.log('接口返回headers', response.headers)
+ // console.log('接口返回REDIRECT', response.headers.redirect)
if (response.headers.redirect === '/#/login') {
var keys = document.cookie.match(/[^ =;]+(?=\=)/g)
@@ -109,7 +109,7 @@ instance.interceptors.response.use(
new Date(0).toUTCString() //清除一级域名下的或指定的,例如 .kevis.com
}
}
- console.log('已清除')
+ // console.log('已清除')
setTimeout(() => {
location.reload()
}, 1000)
@@ -147,13 +147,13 @@ instance.interceptors.response.use(
// }
},
(error) => {
- console.log('接口error', error)
+ // console.log('接口error', error)
if (loadingInstance) loadingInstance.close()
const { response, message } = error
if (error.response && error.response.data) {
- console.log('接口返回', response)
- console.log('接口返回headers', response.headers)
- console.log('接口返回REDIRECT1111', response.headers.redirect)
+ // console.log('接口返回', response)
+ // console.log('接口返回headers', response.headers)
+ // console.log('接口返回REDIRECT1111', response.headers.redirect)
if (response.headers.redirect === '/#/login') {
var keys = document.cookie.match(/[^ =;]+(?=\=)/g)
if (keys) {
@@ -172,7 +172,7 @@ instance.interceptors.response.use(
new Date(0).toUTCString() //清除一级域名下的或指定的,例如 .kevis.com
}
}
- console.log('已清除')
+ // console.log('已清除')
setTimeout(() => {
location.reload()
}, 1000)
diff --git a/front/src/vab/plugins/permissions.js b/front/src/vab/plugins/permissions.js
index 45489e96..f417ba89 100644
--- a/front/src/vab/plugins/permissions.js
+++ b/front/src/vab/plugins/permissions.js
@@ -1,8 +1,8 @@
/*
* @Author: hisense.wuhongjian
* @Date: 2022-04-01 17:23:11
- * @LastEditors: hisense.wuhongjian
- * @LastEditTime: 2022-06-04 16:32:38
+ * @LastEditors: hisense.liangjunhua
+ * @LastEditTime: 2022-06-29 09:54:19
* @Description: 告诉大家这是什么
*/
/**
@@ -26,11 +26,11 @@ router.beforeEach(async (to, from, next) => {
// setAccessToken(SSOTOKEN)
// }
const token = getAccessToken()
- console.log('token', token)
+ // console.log('token', token)
let hasToken = token || store.getters['user/accessToken']
// debugger
if (!loginInterception) hasToken = true
- console.log('hasToken存在巨大问题', hasToken)
+ // console.log('hasToken存在巨大问题', hasToken)
if (hasToken) {
setAccessToken(hasToken)
await store.dispatch('user/getUserInfo')
diff --git a/front/src/views/capabilityCloud/components/ComponentServices.vue b/front/src/views/capabilityCloud/components/ComponentServices.vue
index 7fe4d749..32fdaf2e 100644
--- a/front/src/views/capabilityCloud/components/ComponentServices.vue
+++ b/front/src/views/capabilityCloud/components/ComponentServices.vue
@@ -93,7 +93,8 @@
TOP
名称
- 应用数
+ 应用数
+ 分数
{{ index + 1 }}
@@ -126,7 +127,12 @@
let dataclick = ref('total')
let dataList = ref([])
let timeSwitchindex = ref('周')
- let servicesSnum = ref([])
+ let servicesSnum = ref([
+ { amount: '', type: '智能算法' },
+ { amount: '', type: '图层服务' },
+ { amount: '', type: '开发组件' },
+ { amount: '', type: '业务组件' },
+ ])
let callTheTrendData = ref({ time: [], snum: [] })
//年月切换
const timeSwitch = (name) => {
@@ -162,6 +168,19 @@
let myChart = echarts.init(chartDom)
let option
option = {
+ tooltip: {
+ backgroundColor: 'rgba(17,61,116,0.8)',
+ borderWidth: 0,
+ trigger: 'axis',
+ formatter: function (val) {
+ console.log(val)
+ let res = `
+
日期 : ${val[0].name}
+
调用次数 : ${val[0].value}
+
`
+ return res
+ },
+ },
grid: {
top: '10%',
left: '0%',
@@ -288,7 +307,11 @@
snum.value[0].num = res.data.data[0].amount
res.data.data.map((item, index) => {
if (index != 0) {
- servicesSnum.value.push(item)
+ servicesSnum.value.map((servicesSnumitem, servicesSnumindex) => {
+ if (servicesSnumitem.type == item.type) {
+ servicesSnum.value[servicesSnumindex].amount = item.amount
+ }
+ })
}
})
})
diff --git a/front/src/views/demandCenter/demandDetails.vue b/front/src/views/demandCenter/demandDetails.vue
index cbf6ca70..40b0669f 100644
--- a/front/src/views/demandCenter/demandDetails.vue
+++ b/front/src/views/demandCenter/demandDetails.vue
@@ -231,6 +231,7 @@
size="small"
pageSize="8"
:total="total"
+ v-model:current="page"
@change="handleCurrentChange"
/>
@@ -248,7 +249,7 @@
import {
demandComment,
demandCommentPage,
- demandCommentDelete,
+ // demandCommentDelete,
demandCommentApply,
} from '@/api/demandCenter'
import { getUser, getUserInfo } from '@/api/home'
@@ -264,15 +265,15 @@
})
})
//删除提示框
- const confirm = (item) => {
- console.log(item)
- evaluateDelete(item)
- }
+ // const confirm = (item) => {
+ // console.log(item)
+ // evaluateDelete(item)
+ // }
- const cancel = (e) => {
- console.log(e)
- message.error('已取消删除')
- }
+ // const cancel = (e) => {
+ // console.log(e)
+ // message.error('已取消删除')
+ // }
// const store = useStore()
const router = useRouter()
@@ -322,14 +323,14 @@
// })
// }
- const evaluateDelete = (item) => {
- demandCommentDelete([item.id]).then((res) => {
- if (res.data.code == 0) {
- message.success('删除评论成功!')
- }
- evaluateList()
- })
- }
+ // const evaluateDelete = (item) => {
+ // demandCommentDelete([item.id]).then((res) => {
+ // if (res.data.code == 0) {
+ // message.success('删除评论成功!')
+ // }
+ // evaluateList()
+ // })
+ // }
const evaluateList = () => {
const params = {
page: page.value,
@@ -339,6 +340,7 @@
demandCommentPage(params).then((res) => {
evaluateData.value = res.data.data.list
total.value = res.data.data.total
+ console.log(evaluateData, 'evaluateData')
})
}
@@ -382,6 +384,7 @@
// formName.value = formData.value
const id = router.currentRoute.value.query.id
getDemandForm(id).then((res) => {
+ console.log(res, 'res')
const { data } = res.data
formName.value.applyUserName = data.applyUserName
formName.value.applyUserPhone = data.applyUserPhone
diff --git a/front/src/views/detailsAll/components/Developer/DeveloperTrial.vue b/front/src/views/detailsAll/components/Developer/DeveloperTrial.vue
index 464a42d3..c436c734 100644
--- a/front/src/views/detailsAll/components/Developer/DeveloperTrial.vue
+++ b/front/src/views/detailsAll/components/Developer/DeveloperTrial.vue
@@ -11,7 +11,9 @@
{{ dataFrom.linkName }}
-
{{ dataFrom.link }}
+
+ {{ dataFrom.link }}
+
{{ dataFrom.numberName }}
@@ -63,6 +65,10 @@
})
}
}
+ const clickLink = (link) => {
+ debugger
+ window.open(link)
+ }
//复制方法
const copyFunction = (data, name) => {
let url = data
diff --git a/front/src/views/detailsAll/components/LayerService/LayerServiceInformation.vue b/front/src/views/detailsAll/components/LayerService/LayerServiceInformation.vue
index 4be1bfff..5887693d 100644
--- a/front/src/views/detailsAll/components/LayerService/LayerServiceInformation.vue
+++ b/front/src/views/detailsAll/components/LayerService/LayerServiceInformation.vue
@@ -93,7 +93,16 @@
const flag = ref(true)
if (props.dataList.infoList) {
let obj = props.dataList.infoList.filter(
- (item) => item.attrType === '技术文档'
+ (item) =>
+ item.attrType === '服务类型' ||
+ item.attrType === '覆盖区域' ||
+ item.attrType === '切片策略' ||
+ item.attrType === '坐标系' ||
+ item.attrType === '切片尺寸' ||
+ item.attrType === '最小级别' ||
+ item.attrType === '数据范围' ||
+ item.attrType === '图层类型' ||
+ item.attrType === '最大级别'
)[0]
if (!obj) {
flag.value = false
@@ -128,7 +137,18 @@
() => props.dataList,
(val) => {
if (val) {
- let obj = val.infoList.filter((item) => item.attrType === '技术文档')[0]
+ let obj = val.infoList.filter(
+ (item) =>
+ item.attrType === '服务类型' ||
+ item.attrType === '覆盖区域' ||
+ item.attrType === '切片策略' ||
+ item.attrType === '坐标系' ||
+ item.attrType === '切片尺寸' ||
+ item.attrType === '最小级别' ||
+ item.attrType === '数据范围' ||
+ item.attrType === '图层类型' ||
+ item.attrType === '最大级别'
+ )[0]
if (!obj) {
flag.value = false
} else {
@@ -211,7 +231,7 @@
font-size: 0.2rem;
color: #666666;
display: block;
- margin-right: 0.8rem;
+ margin-right: 0.5rem;
width: 120px;
}
p {
diff --git a/front/src/views/detailsAll/components/LayerService/LayerServiceNavigation.vue b/front/src/views/detailsAll/components/LayerService/LayerServiceNavigation.vue
index 9e120f43..b6c96318 100644
--- a/front/src/views/detailsAll/components/LayerService/LayerServiceNavigation.vue
+++ b/front/src/views/detailsAll/components/LayerService/LayerServiceNavigation.vue
@@ -89,15 +89,35 @@
list.value.push(item.attrType)
} else if (item.attrType === '图层缩略图') {
list.value.push('图层展示')
- } else if (item.attrType === '坐标系') {
- list.value.push('图层信息')
} else if (item.attrType === '是否可预览') {
if (item.attrValue === '是') {
list.value.push('图层预览')
}
+ } else if (
+ item.attrType === '服务类型' ||
+ item.attrType === '覆盖区域' ||
+ item.attrType === '切片策略' ||
+ item.attrType === '坐标系' ||
+ item.attrType === '切片尺寸' ||
+ item.attrType === '最小级别' ||
+ item.attrType === '数据范围' ||
+ item.attrType === '图层类型' ||
+ item.attrType === '最大级别'
+ ) {
+ list.value.push('图层信息')
+ } else if (
+ item.attrType === '技术文档' ||
+ item.attrType === '服务商' ||
+ item.attrType === '服务商联系人' ||
+ item.attrType === '使用手册' ||
+ item.attrType === '服务地址' ||
+ item.attrType === '样式服务地址' ||
+ item.attrType === '服务商联系电话'
+ ) {
+ list.value.push('使用方式')
}
})
- list.value.push('使用方式')
+
navList.value.forEach((item) => {
console.log(item)
if (list.value.indexOf(item.name) > -1) {
@@ -144,14 +164,35 @@
list.value.push(item.attrType)
} else if (item.attrType === '图层缩略图') {
list.value.push('图层展示')
- } else if (item.attrType === '坐标系') {
- list.value.push('图层信息')
} else if (item.attrType === '是否可预览') {
if (item.attrValue === '是') {
list.value.push('图层预览')
}
+ } else if (
+ item.attrType === '服务类型' ||
+ item.attrType === '覆盖区域' ||
+ item.attrType === '切片策略' ||
+ item.attrType === '坐标系' ||
+ item.attrType === '切片尺寸' ||
+ item.attrType === '最小级别' ||
+ item.attrType === '数据范围' ||
+ item.attrType === '图层类型' ||
+ item.attrType === '最大级别'
+ ) {
+ list.value.push('图层信息')
+ } else if (
+ item.attrType === '技术文档' ||
+ item.attrType === '服务商' ||
+ item.attrType === '服务商联系人' ||
+ item.attrType === '使用手册' ||
+ item.attrType === '服务地址' ||
+ item.attrType === '样式服务地址' ||
+ item.attrType === '服务商联系电话'
+ ) {
+ list.value.push('使用方式')
}
})
+ list.value.push('图层信息')
list.value.push('使用方式')
navList.value.forEach((item) => {
console.log(item)
diff --git a/front/src/views/detailsAll/components/LayerService/LayerServicePreview.vue b/front/src/views/detailsAll/components/LayerService/LayerServicePreview.vue
index c0f50a4d..8611e43d 100644
--- a/front/src/views/detailsAll/components/LayerService/LayerServicePreview.vue
+++ b/front/src/views/detailsAll/components/LayerService/LayerServicePreview.vue
@@ -8,7 +8,7 @@
-
{{ item.contact }}
+
+ {{ item.contact }}:{{ item.facilitator.values }}
+
{{ item.people.name }}
@@ -54,6 +56,7 @@
import { pinyin } from 'pinyin-pro'
import { ref, defineProps, watch } from 'vue'
let dataFrom = ref({
+ link: '',
title: '使用方式',
englishTitle: 'USAGE',
content: [
@@ -81,25 +84,35 @@
const flag = ref(true)
if (props.dataList.infoList) {
let obj = props.dataList.infoList.filter(
- (item) => item.attrType === '技术文档'
+ (item) =>
+ item.attrType === '技术文档' ||
+ item.attrType === '服务商' ||
+ item.attrType === '服务商联系人' ||
+ item.attrType === '使用手册' ||
+ item.attrType === '服务地址' ||
+ item.attrType === '样式服务地址' ||
+ item.attrType === '服务商联系电话'
)[0]
if (!obj) {
flag.value = false
} else {
// eslint-disable-next-line vue/no-setup-props-destructure
- dataFrom.value.content[0].link.value = props.dataList.apiUrl
- dataFrom.value.content[0].facilitator.values = props.dataList.deptContacts
+ // dataFrom.value.content[0].link.value = props.dataList.apiUrl
+ dataFrom.value.content[0].facilitator.values = props.dataList.deptName
+ dataFrom.value.content[0].people.value = props.dataList.deptContacts
+ dataFrom.value.content[0].phone.value = props.dataList.deptPhone
console.log('dataList', props.dataList)
props.dataList.infoList.map((item) => {
- if (item.attrType === '组件地址') {
+ if (item.attrType === '使用手册') {
+ dataFrom.value.link = item.attrValue || '--'
+ } else if (item.attrType === '服务地址') {
dataFrom.value.content[0].linkValue = item.attrValue || '--'
- } else if (item.attrType === '服务商') {
- dataFrom.value.content[0].facilitator.value = item.attrValue || '--'
- } else if (item.attrType === '服务商联系人') {
- dataFrom.value.content[0].people.value = item.attrValue || '--'
- } else if (item.attrType === '服务商联系电话') {
- dataFrom.value.content[0].phone.value = item.attrValue || '--'
+ } else if (item.attrType === '样式服务地址') {
+ dataFrom.value.content[0].csslnkValue = item.attrValue || '--'
}
+ // else if (item.attrType === '服务商联系电话') {
+ // dataFrom.value.content[0].phone.value = item.deptPhone || '--'
+ // }
})
}
}
@@ -107,24 +120,40 @@
() => props.dataList,
(val) => {
if (val) {
- let obj = val.infoList.filter((item) => item.attrType === '技术文档')[0]
+ let obj = val.infoList.filter(
+ (item) =>
+ item.attrType === '技术文档' ||
+ item.attrType === '服务商' ||
+ item.attrType === '服务商联系人' ||
+ item.attrType === '使用手册' ||
+ item.attrType === '服务地址' ||
+ item.attrType === '样式服务地址' ||
+ item.attrType === '服务商联系电话'
+ )[0]
if (!obj) {
flag.value = false
} else {
- dataFrom.value.content[0].link.value = val.apiUrl
- dataFrom.value.content[0].facilitator.value = val.deptContacts
+ // dataFrom.value.content[0].link.value = val.apiUrl
+ dataFrom.value.content[0].facilitator.values = val.deptName
+ dataFrom.value.content[0].people.value = val.deptContacts
+ dataFrom.value.content[0].phone.value = val.deptPhone
console.log('dataList', val)
val.infoList.map((item) => {
- if (item.attrType === '组件地址') {
+ if (item.attrType === '使用手册') {
+ dataFrom.value.link = item.attrValue || '--'
+ } else if (item.attrType === '服务地址') {
dataFrom.value.content[0].linkValue = item.attrValue || '--'
- } else if (item.attrType === '服务商') {
- dataFrom.value.content[0].facilitator.value =
- item.attrValue || '--'
- } else if (item.attrType === '服务商联系人') {
- dataFrom.value.content[0].people.value = item.attrValue || '--'
- } else if (item.attrType === '服务商联系电话') {
- dataFrom.value.content[0].phone.value = item.attrValue || '--'
+ } else if (item.attrType === '样式服务地址') {
+ dataFrom.value.content[0].csslnkValue = item.attrValue || '--'
}
+ // else if (item.attrType === '服务商') {
+ // dataFrom.value.content[0].facilitator.value =
+ // item.attrValue || '--'
+ // } else if (item.attrType === '服务商联系人') {
+ // dataFrom.value.content[0].people.value = item.attrValue || '--'
+ // } else if (item.attrType === '服务商联系电话') {
+ // dataFrom.value.content[0].phone.value = item.attrValue || '--'
+ // }
})
}
}
diff --git a/front/src/views/home/AbilityToApplyFor.vue b/front/src/views/home/AbilityToApplyFor.vue
index 8f2e607b..36d26a83 100644
--- a/front/src/views/home/AbilityToApplyFor.vue
+++ b/front/src/views/home/AbilityToApplyFor.vue
@@ -10,12 +10,16 @@
{{ item.deptName }}
-
- {{ item.name }}
- {{ item.type }}
-
-
{{ item.description }}
-
+
+
+
+ {{ val.resourceName }}
+ {{ val.type }}
+
+
{{ val.description || '--' }}
+
+
+
@@ -28,6 +32,7 @@
dataList: { type: Array, default: null },
})
let dataForm = ref([])
+ // eslint-disable-next-line vue/no-setup-props-destructure
dataForm.value = props.dataList
const router = useRouter()
const arr =
@@ -42,17 +47,12 @@
})
//移除方法
const removeFunction = (data) => {
- props.dataList.map((item, index) => {
- if (item.name == data.name) {
- arr.splice(arr.indexOf(data.name), 1)
- dataResourceId.splice(dataResourceId.indexOf(data.id), 1)
- depList.value.depID = dataResourceId
- depList.value.Name = arr
- dataForm.value.splice(index, 1)
- mybus.emit('reomveOldData', depList.value)
- console.log('depList.value', depList.value)
- }
+ dataForm.value.map((val) => {
+ val.children = val.children.filter(
+ (item) => item.resourceId !== data.resourceId
+ )
})
+ dataForm.value = dataForm.value.filter((val) => val.children.length !== 0)
}
@@ -66,9 +66,9 @@
margin-bottom: 0.2rem;
}
.ability-to-apply-for-content {
- margin-bottom: 0.3rem;
- border-bottom: 0.01rem #dddee1 solid;
- padding-bottom: 0.3rem;
+ // margin-bottom: 0.3rem;
+ // border-bottom: 0.01rem #dddee1 solid;
+ // padding-bottom: 0.3rem;
padding-right: 0.5rem;
position: relative;
.dep-name {
@@ -87,6 +87,12 @@
margin-right: 0.05rem;
}
}
+ .item {
+ padding-bottom: 0.1rem;
+ margin-bottom: 0.1rem;
+ border-bottom: 1px solid #dddee1;
+ position: relative;
+ }
.name {
margin-bottom: 0.2rem;
span:first-child {
@@ -103,6 +109,7 @@
}
}
.description {
+ width: 10rem;
color: rgba(0, 0, 0, 0.45);
}
.remove {
diff --git a/front/src/views/home/DetailsPageconetent.vue b/front/src/views/home/DetailsPageconetent.vue
index 17616056..931abc69 100644
--- a/front/src/views/home/DetailsPageconetent.vue
+++ b/front/src/views/home/DetailsPageconetent.vue
@@ -1038,7 +1038,8 @@
const resourceList = reactive({ data: [] })
const videoList = reactive({ data: [] })
const resourceTotal = ref('')
- const getAppResources = () => {
+ const getAppResources = (switchIndex) => {
+ //switchIndex这个参数是下面的分页传过来的参数
paramsGetResources.name = searchValue.value
paramsGetResources.type = Cardsname.value
console.log(
@@ -1049,7 +1050,10 @@
!whoShow1.value.itShowBaoTou &&
paramsGetResources.type === '数据资源'
) {
- getDataResource({
+ if (switchIndex != '分页查询') {
+ paramsGetResources.pageNum = 1
+ }
+ let dataResourceParams = {
serviceName: paramsGetResources.name, //资源名称
orderField: whoShow1.value.itShowQingDao
? paramsGetResources.orderField == 'applyCount'
@@ -1061,7 +1065,8 @@
orderType: paramsGetResources.orderType.toLowerCase(), //排序方式:desc,asc
pageNum: paramsGetResources.pageNum, //页码
pageSize: paramsGetResources.pageSize, //分页大小
- }).then((res) => {
+ }
+ getDataResource(dataResourceParams).then((res) => {
console.log('数据资源==================>', res.data.data)
if (whoShow1.value.itShowQingDao) {
res.data.data.data.forEach((val) => {
@@ -1091,6 +1096,10 @@
}
})
} else if (paramsGetResources.type !== '数据资源') {
+ if (switchIndex != '分页查询') {
+ paramsGetResources.pageNum = 1
+ }
+ debugger
pageWithAttrs(paramsGetResources).then((res) => {
console.log('查询列表============>', resourceList, res.data.data)
resourceList.data = []
@@ -1182,7 +1191,9 @@
loading.value = true
currentPage.value = val
paramsGetResources.pageNum = val
- getAppResources()
+ let params = '分页查询' //判断是否是点击下面的分页的调用模糊查询方法还是点击搜索调用模糊查询方法
+ getAppResources(params)
+ debugger
}
// const findZywMessage = () => {
// zywMessage().then((res) => {
diff --git a/front/src/views/home/apply.vue b/front/src/views/home/apply.vue
index bc20876b..5bf6df4d 100644
--- a/front/src/views/home/apply.vue
+++ b/front/src/views/home/apply.vue
@@ -7,7 +7,7 @@
-->
-->
-
-
-
-
-
-
-
- {{ item.name }}
-
-
- {{ item.type }}
-
-
-
-
-
-
-
-
-
-
-
+