瀏覽代碼

修改是否使用

zs 9 月之前
父節點
當前提交
52500b2622

+ 2 - 5
src/views/detail/achievementDetail.vue

@@ -100,14 +100,9 @@ import icon6 from '/images/achievement/cg-detail-icon6.png'
 import icon7 from '/images/achievement/cg-detail-icon7.png'
 import icon8 from '/images/achievement/cg-detail-icon8.png'
 import icon9 from '/images/achievement/cg-detail-icon9.png'
-import { UserStore } from '@/store/user'
 // 接口
 import { AchievementStore } from '@/store/api/platform/achievement'
-import { DictDataStore } from '@/store/api/system/dictData'
 const store = AchievementStore()
-const dictDataStore = DictDataStore()
-const userStore = UserStore()
-const user = computed(() => userStore.user)
 // 加载中
 const loading = ref(false)
 // 路由
@@ -134,6 +129,8 @@ const searchAchieve = async () => {
   const data = {
     skip: 0,
     limit: 4,
+    is_use: '0',
+    status: '1',
     field: info.value.field
   }
   const res = await store.list(data)

+ 2 - 3
src/views/detail/company.vue

@@ -112,9 +112,6 @@
 // 图片引入
 import lists from '/images/company.png'
 import companyLogo from '/images/companyLogo.jpg'
-import { UserStore } from '@/store/user'
-const userStore = UserStore()
-const user = computed(() => userStore.user)
 const $checkRes = inject('$checkRes')
 import { get } from 'lodash-es'
 // 接口
@@ -187,6 +184,8 @@ const search = async (query = { skip, limit }) => {
   const info = {
     skip: query.skip,
     limit: query.limit,
+    is_use: '0',
+    status: '1',
     ...searchForm.value
   }
   const res = await store.query(info)

+ 1 - 12
src/views/detail/companyDetail.vue

@@ -43,31 +43,20 @@
 
 <script setup>
 import companyLogo from '/images/companyLogo.jpg'
-import { UserStore } from '@/store/user'
-const userStore = UserStore()
-const user = computed(() => userStore.user)
-// API 引用
-import { getCity } from '@/utils/city'
-const $checkRes = inject('$checkRes')
 import { get } from 'lodash-es'
 // 接口
 import { CompanyStore } from '@/store/api/user/company'
-import { DictDataStore } from '@/store/api/system/dictData'
 const store = CompanyStore()
-const dictDataStore = DictDataStore()
 // 加载中
 const loading = ref(false)
 // 路由
 const route = useRoute()
-const router = useRouter()
 const info = ref({})
 // 字典表
-const fieldList = ref([])
 const statusList = ref([])
 const patternList = ref([])
 const scaleList = ref([])
 const IndustryList = ref([])
-const cityList = ref([])
 // 请求
 onMounted(async () => {
   loading.value = true
@@ -76,7 +65,7 @@ onMounted(async () => {
   loading.value = false
 })
 const searchOther = async () => {
-  let result
+  // let result
   // // 技术领域
   // result = await dictDataStore.query({ code: 'field', is_use: '0' })
   // if ($checkRes(result)) fieldList.value = result.data

+ 0 - 3
src/views/detail/demandDetail.vue

@@ -76,9 +76,6 @@ import { DictDataStore } from '@/store/api/system/dictData'
 import { DemandStore } from '@/store/api/platform/demand'
 const store = DemandStore()
 const dictDataStore = DictDataStore()
-import { UserStore } from '@/store/user'
-const userStore = UserStore()
-const user = computed(() => userStore.user)
 const $checkRes = inject('$checkRes')
 // 加载中
 const loading = ref(false)

+ 2 - 0
src/views/detail/expert.vue

@@ -102,6 +102,8 @@ const search = async (query = { skip, limit }) => {
   const info = {
     skip: query.skip,
     limit: query.limit,
+    is_use: '0',
+    status: '1',
     ...searchForm.value
   }
   const res = await store.list(info)

+ 0 - 7
src/views/detail/expertDetail.vue

@@ -85,19 +85,12 @@
 
 <script setup>
 import userLogo from '/images/userLogo.png'
-import { UserStore } from '@/store/user'
-const userStore = UserStore()
-const user = computed(() => userStore.user)
-// 接口
-import { DictDataStore } from '@/store/api/system/dictData'
 import { ExpertStore } from '@/store/api/user/expert'
 const store = ExpertStore()
-const dictDataStore = DictDataStore()
 // 加载中
 const loading = ref(false)
 // 路由
 const route = useRoute()
-const router = useRouter()
 const tableData = ref([
   // { company: '中国科学院固定物理研究所', num: '45' },
   // { company: '中国汽车工程学会', num: '30' },

+ 3 - 3
src/views/detail/newsDetail.vue

@@ -129,9 +129,9 @@ const searchMatch = async () => {
 const searchOther = async () => {
   const data = {
     skip: 0,
-    limit: 3
-    // status: '1',
-    // is_use: '0'
+    limit: 3,
+    status: '1',
+    is_use: '0'
   }
   let res
   res = await projectStore.query(data)

+ 2 - 0
src/views/detail/project.vue

@@ -169,6 +169,8 @@ const search = async (query = { skip, limit }) => {
   const info = {
     skip: query.skip,
     limit: query.limit,
+    is_use: '0',
+    status: '1',
     ...searchForm.value
   }
   const res = await store.list(info)

+ 5 - 1
src/views/detail/projectDetail.vue

@@ -154,6 +154,8 @@ const searchAchieve = async () => {
   const data = {
     skip: 0,
     limit: 3,
+    is_use: '0',
+    status: '1',
     industry: info.value.industry
   }
   const res = await store.list(data)
@@ -162,7 +164,9 @@ const searchAchieve = async () => {
 const searchExpert = async () => {
   const data = {
     skip: 0,
-    limit: 3
+    limit: 3,
+    is_use: '0',
+    status: '1'
   }
   const res = await expertStore.query(data)
   if (res.errcode == '0') expertList.value = res.data

+ 1 - 1
src/views/detail/studyDetail.vue

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

+ 35 - 30
src/views/four/parts/index.vue

@@ -317,9 +317,9 @@ const search = async (active) => {
     else {
       const info = {
         skip: 0,
-        limit: 9
-        // is_use: '0',
-        // status: '1'
+        limit: 9,
+        is_use: '0',
+        status: '1'
       }
       if (active) info.industry = '汽车电子及新型汽车零部件'
       const res = await store.query(info)
@@ -334,9 +334,9 @@ const search = async (active) => {
     else {
       const info = {
         skip: 0,
-        limit: 9
-        // is_use: '0',
-        // status: '1'
+        limit: 9,
+        is_use: '0',
+        status: '1'
       }
       if (active) info.industry = '光电子及智能传感器'
       const res = await store.query(info)
@@ -351,9 +351,9 @@ const search = async (active) => {
     else {
       const info = {
         skip: 0,
-        limit: 9
-        // is_use: '0',
-        // status: '1'
+        limit: 9,
+        is_use: '0',
+        status: '1'
       }
       if (active) info.industry = '精密仪器及先进装备'
       const res = await store.query(info)
@@ -368,9 +368,9 @@ const search = async (active) => {
     else {
       const info = {
         skip: 0,
-        limit: 9
-        // is_use: '0',
-        // status: '1'
+        limit: 9,
+        is_use: '0',
+        status: '1'
       }
       if (active) info.industry = '生物医药及先进医疗器械'
       const res = await store.query(info)
@@ -385,9 +385,9 @@ const search = async (active) => {
     else {
       const info = {
         skip: 0,
-        limit: 9
-        // is_use: '0',
-        // status: '1'
+        limit: 9,
+        is_use: '0',
+        status: '1'
       }
       if (active) info.industry = '车规级芯片及功率半导体器件'
       const res = await store.query(info)
@@ -402,9 +402,9 @@ const search = async (active) => {
     else {
       const info = {
         skip: 0,
-        limit: 9
-        // is_use: '0',
-        // status: '1'
+        limit: 9,
+        is_use: '0',
+        status: '1'
       }
       if (active) info.industry = '人工智能及智能机器人'
       const res = await store.query(info)
@@ -419,9 +419,9 @@ const search = async (active) => {
     else {
       const info = {
         skip: 0,
-        limit: 9
-        // is_use: '0',
-        // status: '1'
+        limit: 9,
+        is_use: '0',
+        status: '1'
       }
       if (active) info.industry = '生物基及高性能新材料'
       const res = await store.query(info)
@@ -436,9 +436,9 @@ const search = async (active) => {
     else {
       const info = {
         skip: 0,
-        limit: 9
-        // is_use: '0',
-        // status: '1'
+        limit: 9,
+        is_use: '0',
+        status: '1'
       }
       if (active) info.industry = '新能源及动力电池'
       const res = await store.query(info)
@@ -453,9 +453,9 @@ const search = async (active) => {
     else {
       const info = {
         skip: 0,
-        limit: 9
-        // is_use: '0',
-        // status: '1'
+        limit: 9,
+        is_use: '0',
+        status: '1'
       }
       if (active) info.industry = '碳纤维及复合材料'
       const res = await store.query(info)
@@ -479,7 +479,9 @@ const searchNews = async () => {
 const searchExport = async () => {
   const info = {
     skip: 0,
-    limit: 10
+    limit: 10,
+    status: '1',
+    is_use: '0'
   }
   const res = await expertStore.query(info)
   if (res.errcode == '0') exportList.value = res.data
@@ -488,7 +490,8 @@ const searchCompany = async () => {
   const info = {
     skip: 0,
     limit: 10,
-    status: '0'
+    status: '1',
+    is_use: '0'
   }
   const res = await companyStore.query(info)
   if (res.errcode == '0') companyList.value = res.data
@@ -496,7 +499,9 @@ const searchCompany = async () => {
 const searchAchieve = async () => {
   const info = {
     skip: 20,
-    limit: 10
+    limit: 10,
+    is_use: '0',
+    status: '1'
   }
   const res = await achievementStore.list(info)
   if (res.errcode == '0') achievementList.value = res.data

+ 2 - 0
src/views/nine/index.vue

@@ -250,6 +250,8 @@ const search = async (query = { skip, limit }) => {
   const info = {
     skip: query.skip,
     limit: query.limit,
+    status: '1',
+    is_use: '0',
     ...searchForm.value
   }
   const res = await store.list(info)

+ 2 - 0
src/views/search/parts/achievement.vue

@@ -247,6 +247,8 @@ const search = async (query = { skip, limit }) => {
   const info = {
     skip: query.skip,
     limit: query.limit,
+    status: '1',
+    is_use: '0',
     ...searchForm.value
   }
   if (searchValue.value) info.tags = searchValue.value

+ 2 - 0
src/views/search/parts/company.vue

@@ -184,6 +184,8 @@ const search = async (query = { skip, limit }) => {
   const info = {
     skip: query.skip,
     limit: query.limit,
+    status: '1',
+    is_use: '0',
     ...searchForm.value
   }
   if (searchValue.value) info.tags = searchValue.value

+ 2 - 2
src/views/search/parts/demand.vue

@@ -153,8 +153,8 @@ const search = async (query = { skip, limit }) => {
   const info = {
     skip: query.skip,
     limit: query.limit,
-    // is_use: '0',
-    // status: '1',
+    is_use: '0',
+    status: '1',
     ...searchForm.value
   }
   if (searchValue.value) info.tags = searchValue.value

+ 2 - 0
src/views/search/parts/expert.vue

@@ -186,6 +186,8 @@ const search = async (query = { skip, limit }) => {
   const info = {
     skip: query.skip,
     limit: query.limit,
+    status: '1',
+    is_use: '0',
     ...searchForm.value
   }
   if (searchValue.value) info.tags = searchValue.value

+ 2 - 0
src/views/search/parts/project.vue

@@ -167,6 +167,8 @@ const search = async (query = { skip, limit }) => {
   const info = {
     skip: query.skip,
     limit: query.limit,
+    status: '1',
+    is_use: '0',
     ...searchForm.value
   }
   if (searchValue.value) info.tags = searchValue.value

+ 2 - 2
src/views/search/parts/supply.vue

@@ -178,8 +178,8 @@ const search = async (query = { skip, limit }) => {
   const info = {
     skip: query.skip,
     limit: query.limit,
-    // is_use: '0',
-    // status: '1',
+    is_use: '0',
+    status: '1',
     ...searchForm.value
   }
   if (searchValue.value) info.tags = searchValue.value

+ 1 - 1
src/views/thirteen/index.vue

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

+ 1 - 1
src/views/thirteen/list.vue

@@ -124,7 +124,7 @@ const search = async (query = { skip, limit }) => {
   if (route.query.id) {
     skip = query.skip
     limit = query.limit
-    const info = { skip: query.skip, limit: query.limit, journal: route.query.id }
+    const info = { skip: query.skip, limit: query.limit, status: '1', is_use: '0', journal: route.query.id }
     const res = await store.query(info)
     if (res.errcode == '0') {
       carouselList.value = res.data.slice(0, 3)