|
@@ -93,119 +93,19 @@
|
|
|
const $checkRes = inject('$checkRes')
|
|
|
import { get } from 'lodash-es'
|
|
|
// 接口
|
|
|
-import { DemandStore } from '@/store/api/platform/demand'
|
|
|
+import { CompanyStore } from '@/store/api/user/company'
|
|
|
import { DictDataStore } from '@/store/api/system/dictData'
|
|
|
-const store = DemandStore()
|
|
|
+const store = CompanyStore()
|
|
|
const dictDataStore = DictDataStore()
|
|
|
// 图片引入
|
|
|
import demand from '@/assets/innovation.png'
|
|
|
-// 图片引入
|
|
|
-import science from '@/assets/bg.png'
|
|
|
// 路由
|
|
|
const router = useRouter()
|
|
|
// 加载中
|
|
|
const loading = ref(false)
|
|
|
+const searchForm = ref({})
|
|
|
// 列表
|
|
|
-const list = ref([
|
|
|
- {
|
|
|
- name: '努比亚技术有限公司 ',
|
|
|
- url: science,
|
|
|
- tags: ['战略投资', '国家高新技术企业', '创新型中小企业', '国家级专利奖'],
|
|
|
- code: ' 914403007320587423',
|
|
|
- phone: '075************',
|
|
|
- type: '0',
|
|
|
- representative: '倪飞',
|
|
|
- email: 'xie.giang@nubia.com',
|
|
|
- person: '1万人以上',
|
|
|
- address: '深圳市南山区桃源街道福光社区留仙大道3370号南山智园崇文园区2号楼1801',
|
|
|
- create_time: '2001-09-12',
|
|
|
- status: '0'
|
|
|
- },
|
|
|
- {
|
|
|
- name: '努比亚技术有限公司 ',
|
|
|
- url: science,
|
|
|
- tags: ['战略投资', '国家高新技术企业', '创新型中小企业', '国家级专利奖'],
|
|
|
- code: ' 914403007320587423',
|
|
|
- phone: '075************',
|
|
|
- type: '0',
|
|
|
- representative: '倪飞',
|
|
|
- email: 'xie.giang@nubia.com',
|
|
|
- person: '1万人以上',
|
|
|
- address: '深圳市南山区桃源街道福光社区留仙大道3370号南山智园崇文园区2号楼1801',
|
|
|
- create_time: '2001-09-12',
|
|
|
- status: '0'
|
|
|
- },
|
|
|
- {
|
|
|
- name: '努比亚技术有限公司 ',
|
|
|
- url: science,
|
|
|
- tags: ['战略投资', '国家高新技术企业', '创新型中小企业', '国家级专利奖'],
|
|
|
- code: ' 914403007320587423',
|
|
|
- phone: '075************',
|
|
|
- type: '0',
|
|
|
- representative: '倪飞',
|
|
|
- email: 'xie.giang@nubia.com',
|
|
|
- person: '1万人以上',
|
|
|
- address: '深圳市南山区桃源街道福光社区留仙大道3370号南山智园崇文园区2号楼1801',
|
|
|
- create_time: '2001-09-12',
|
|
|
- status: '0'
|
|
|
- },
|
|
|
- {
|
|
|
- name: '努比亚技术有限公司 ',
|
|
|
- url: science,
|
|
|
- tags: ['战略投资', '国家高新技术企业', '创新型中小企业', '国家级专利奖'],
|
|
|
- code: ' 914403007320587423',
|
|
|
- phone: '075************',
|
|
|
- type: '0',
|
|
|
- representative: '倪飞',
|
|
|
- email: 'xie.giang@nubia.com',
|
|
|
- person: '1万人以上',
|
|
|
- address: '深圳市南山区桃源街道福光社区留仙大道3370号南山智园崇文园区2号楼1801',
|
|
|
- create_time: '2001-09-12',
|
|
|
- status: '0'
|
|
|
- },
|
|
|
- {
|
|
|
- name: '努比亚技术有限公司 ',
|
|
|
- url: science,
|
|
|
- tags: ['战略投资', '国家高新技术企业', '创新型中小企业', '国家级专利奖'],
|
|
|
- code: ' 914403007320587423',
|
|
|
- phone: '075************',
|
|
|
- type: '0',
|
|
|
- representative: '倪飞',
|
|
|
- email: 'xie.giang@nubia.com',
|
|
|
- person: '1万人以上',
|
|
|
- address: '深圳市南山区桃源街道福光社区留仙大道3370号南山智园崇文园区2号楼1801',
|
|
|
- create_time: '2001-09-12',
|
|
|
- status: '0'
|
|
|
- },
|
|
|
- {
|
|
|
- name: '努比亚技术有限公司 ',
|
|
|
- url: science,
|
|
|
- tags: ['战略投资', '国家高新技术企业', '创新型中小企业', '国家级专利奖'],
|
|
|
- code: ' 914403007320587423',
|
|
|
- phone: '075************',
|
|
|
- type: '0',
|
|
|
- representative: '倪飞',
|
|
|
- email: 'xie.giang@nubia.com',
|
|
|
- person: '1万人以上',
|
|
|
- address: '深圳市南山区桃源街道福光社区留仙大道3370号南山智园崇文园区2号楼1801',
|
|
|
- create_time: '2001-09-12',
|
|
|
- status: '0'
|
|
|
- },
|
|
|
- {
|
|
|
- name: '努比亚技术有限公司 ',
|
|
|
- url: science,
|
|
|
- tags: ['战略投资', '国家高新技术企业', '创新型中小企业', '国家级专利奖'],
|
|
|
- code: ' 914403007320587423',
|
|
|
- phone: '075************',
|
|
|
- type: '0',
|
|
|
- representative: '倪飞',
|
|
|
- email: 'xie.giang@nubia.com',
|
|
|
- person: '1万人以上',
|
|
|
- address: '深圳市南山区桃源街道福光社区留仙大道3370号南山智园崇文园区2号楼1801',
|
|
|
- create_time: '2001-09-12',
|
|
|
- status: '0'
|
|
|
- }
|
|
|
-])
|
|
|
+const list = ref([])
|
|
|
let skip = 0
|
|
|
let limit = inject('limit')
|
|
|
const total = ref(0)
|
|
@@ -308,18 +208,18 @@ const searchOther = async () => {
|
|
|
if ($checkRes(result)) statusList.value = result.data
|
|
|
}
|
|
|
const search = async (query = { skip: 0, limit }) => {
|
|
|
- // const info = {
|
|
|
- // skip: query.skip,
|
|
|
- // limit: query.limit,
|
|
|
- // ...searchForm.value,
|
|
|
- // is_use: '0',
|
|
|
- // status: '1'
|
|
|
- // }
|
|
|
- // const res = await store.query(info)
|
|
|
- // if (res.errcode == '0') {
|
|
|
- // list.value = res.data
|
|
|
- // total.value = res.total
|
|
|
- // }
|
|
|
+ const info = {
|
|
|
+ skip: query.skip,
|
|
|
+ limit: query.limit,
|
|
|
+ ...searchForm.value,
|
|
|
+ is_show: '0',
|
|
|
+ status: '1'
|
|
|
+ }
|
|
|
+ const res = await store.query(info)
|
|
|
+ if (res.errcode == '0') {
|
|
|
+ list.value = res.data
|
|
|
+ total.value = res.total
|
|
|
+ }
|
|
|
}
|
|
|
// 字典数据转换
|
|
|
const getDict = (data, model) => {
|