zs hai 9 meses
pai
achega
310df5d6ed

+ 1 - 6
src/views/detail/news.vue

@@ -126,12 +126,7 @@ onMounted(async () => {
   loading.value = false
 })
 const searchOther = async () => {
-  const info = {
-    skip: 0,
-    limit: 6,
-    status: '1',
-    is_use: '0'
-  }
+  const info = { skip: 0, limit: 6, status: '1', is_use: '0' }
   let res
   res = await achievementStore.query(info)
   if (res.errcode == '0') achievementList.value = res.data

+ 2 - 11
src/views/detail/newsDetail.vue

@@ -128,23 +128,14 @@ onMounted(async () => {
   loading.value = false
 })
 const searchMatch = async () => {
-  const info = {
-    skip: 0,
-    limit: 1,
-    is_use: '0',
-    status: '1'
-  }
+  const info = { skip: 0, limit: 1, is_use: '0', status: '1' }
   const res = await matchStore.query(info)
   if (res.errcode == '0') {
     matchInfo.value = res.data[0]
   }
 }
 const searchOther = async () => {
-  const data = {
-    skip: 0,
-    limit: 3,
-    status: '1'
-  }
+  const data = { skip: 0, limit: 3, status: '1' }
   let res
   res = await projectStore.query({ ...data, is_use: '0' })
   if (res.errcode == '0') projectList.value = res.data

+ 1 - 6
src/views/detail/platformDetail.vue

@@ -124,12 +124,7 @@ onMounted(async () => {
   loading.value = false
 })
 const searchOther = async () => {
-  const data = {
-    skip: 0,
-    limit: 3,
-    status: '1',
-    is_use: '0'
-  }
+  const data = { skip: 0, limit: 3, status: '1', is_use: '0' }
   let res
   res = await store.query(data)
   if (res.errcode == '0') list.value = res.data

+ 1 - 7
src/views/detail/project.vue

@@ -166,13 +166,7 @@ const searchOther = async () => {
 const search = async (query = { skip, limit }) => {
   skip = query.skip
   limit = query.limit
-  const info = {
-    skip: query.skip,
-    limit: query.limit,
-    is_use: '0',
-    status: '1',
-    ...searchForm.value
-  }
+  const info = { skip: query.skip, limit: query.limit, is_use: '0', status: '1', ...searchForm.value }
   const res = await store.list(info)
   if (res.errcode == '0') {
     list.value = res.data

+ 2 - 12
src/views/detail/projectDetail.vue

@@ -190,22 +190,12 @@ const search = async () => {
   }
 }
 const searchAchieve = async () => {
-  const data = {
-    skip: 0,
-    limit: 3,
-    is_use: '0',
-    status: '1',
-    industry: info.value.industry
-  }
+  const data = { skip: 0, limit: 3, is_use: '0', status: '1', industry: info.value.industry }
   const res = await store.list(data)
   if (res.errcode == '0') projectList.value = res.data
 }
 const searchExpert = async () => {
-  const data = {
-    skip: 0,
-    limit: 3,
-    status: '1'
-  }
+  const data = { skip: 0, limit: 3, status: '1' }
   const res = await expertStore.query(data)
   if (res.errcode == '0') expertList.value = res.data
 }

+ 1 - 6
src/views/detail/serviceDetail.vue

@@ -94,12 +94,7 @@ onMounted(async () => {
   loading.value = false
 })
 const searchOther = async () => {
-  const data = {
-    skip: 0,
-    limit: 3,
-    status: '1',
-    is_use: '0'
-  }
+  const data = { skip: 0, limit: 3, status: '1', is_use: '0' }
   let res
   res = await store.query(data)
   if (res.errcode == '0') list.value = res.data