|
@@ -26,12 +26,12 @@
|
|
</div>
|
|
</div>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="24" class="two">
|
|
<el-col :span="24" class="two">
|
|
- <company ref="companyRef" v-if="activeKey == '1'"></company>
|
|
|
|
- <expert ref="expertRef" v-if="activeKey == '2'"></expert>
|
|
|
|
- <project ref="projectRef" v-if="activeKey == '3'"></project>
|
|
|
|
- <demand ref="demandRef" v-if="activeKey == '4'"></demand>
|
|
|
|
- <supply ref="supplyRef" v-if="activeKey == '5'"></supply>
|
|
|
|
- <achievement ref="achievementRef" v-if="activeKey == '6'"></achievement>
|
|
|
|
|
|
+ <company ref="companyRef" v-if="activeKey == '1'"></company>
|
|
|
|
+ <expert ref="expertRef" v-if="activeKey == '2'"></expert>
|
|
|
|
+ <project ref="projectRef" v-if="activeKey == '3'"></project>
|
|
|
|
+ <demand ref="demandRef" v-if="activeKey == '4'"></demand>
|
|
|
|
+ <supply ref="supplyRef" v-if="activeKey == '5'"></supply>
|
|
|
|
+ <achievement ref="achievementRef" v-if="activeKey == '6'"></achievement>
|
|
</el-col>
|
|
</el-col>
|
|
</custom-layout>
|
|
</custom-layout>
|
|
</template>
|
|
</template>
|
|
@@ -60,12 +60,12 @@ const searchLoading = ref(false)
|
|
const list = ref([])
|
|
const list = ref([])
|
|
const tagsList = ref([])
|
|
const tagsList = ref([])
|
|
|
|
|
|
-const companyRef = ref(null);
|
|
|
|
-const achievementRef = ref(null);
|
|
|
|
-const supplyRef = ref(null);
|
|
|
|
-const projectRef = ref(null);
|
|
|
|
-const expertRef = ref(null);
|
|
|
|
-const demandRef = ref(null);
|
|
|
|
|
|
+const companyRef = ref(null)
|
|
|
|
+const achievementRef = ref(null)
|
|
|
|
+const supplyRef = ref(null)
|
|
|
|
+const projectRef = ref(null)
|
|
|
|
+const expertRef = ref(null)
|
|
|
|
+const demandRef = ref(null)
|
|
// 请求
|
|
// 请求
|
|
onMounted(async () => {
|
|
onMounted(async () => {
|
|
loading.value = true
|
|
loading.value = true
|
|
@@ -88,9 +88,12 @@ const toSelect = (item) => {
|
|
searchValue.value = item.title
|
|
searchValue.value = item.title
|
|
}
|
|
}
|
|
const onSearch = () => {
|
|
const onSearch = () => {
|
|
- if (activeKey.value== '1') {
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
|
|
+ if (activeKey.value == '1') companyRef.value.search()
|
|
|
|
+ else if (activeKey.value == '2') expertRef.value.search()
|
|
|
|
+ else if (activeKey.value == '3') projectRef.value.search()
|
|
|
|
+ else if (activeKey.value == '4') demandRef.value.search()
|
|
|
|
+ else if (activeKey.value == '5') supplyRef.value.search()
|
|
|
|
+ else achievementRef.value.search()
|
|
}
|
|
}
|
|
const remoteMethod = (query) => {
|
|
const remoteMethod = (query) => {
|
|
if (query) {
|
|
if (query) {
|