bill 1 Minggu lalu
induk
melakukan
4b9cb3eb00
3 mengubah file dengan 10 tambahan dan 6 penghapusan
  1. 1 0
      src/api/scene.ts
  2. 5 4
      src/layout/edit/scene-select.vue
  3. 4 2
      vite.config.ts

+ 1 - 0
src/api/scene.ts

@@ -79,6 +79,7 @@ export const fetchScenes = async () => {
 export const fetchScenesAll = async (params: {
   numList?: string[];
   isObj: number;
+  sceneName?: string
   pageNum: number;
   pageSize: number;
 }) => {

+ 5 - 4
src/layout/edit/scene-select.vue

@@ -124,8 +124,8 @@ const handleTableChange: TableProps["onChange"] = (pag) => {
   params.value.pageSize = pag.pageSize!;
   params.value.pageNum = pag.current!;
 };
-const meshParams = ref({ isObj: 1, pageNum: 1, pageSize: 12, total: 0 })
-const cloudParams = ref({ isObj: 0, pageNum: 1, pageSize: 12, total: 0 })
+const meshParams = ref({ isObj: 1, pageNum: 1, pageSize: 12, total: 0, sceneName: '' })
+const cloudParams = ref({ isObj: 0, pageNum: 1, pageSize: 12, total: 0, sceneName: '' })
 const meshList = ref<Scene[]>([])
 const cloudList = ref<Scene[]>([])
 const params = computed(() => type.value === 'Mesh场景' ? meshParams.value : cloudParams.value)
@@ -134,7 +134,7 @@ let loadCount = 0
 watchEffect(() => {
   const list = type.value === '点云场景' ? meshList : cloudList
   const currentCount = ++loadCount
-  fetchScenesAll(params.value).then((data) => {
+  fetchScenesAll({...params.value, sceneName: keyword.value, }).then((data) => {
     console.log('====>', currentCount, loadCount, params.value)
     if (currentCount === loadCount) {
 
@@ -151,7 +151,8 @@ const typeFilterScenes = computed(() => {
   const typeScenes: any = {};
   for (const type of types.value) {
     typeScenes[type] = origin.value
-      .filter((item) => item.name && item.num && item.name.includes(keyword.value))
+    // && item.name.includes(keyword.value)
+      .filter((item) => item.name && item.num )
       .filter((item) => item.type === type);
   }
   return typeScenes;

+ 4 - 2
vite.config.ts

@@ -5,8 +5,10 @@ import mkcert from 'vite-plugin-mkcert'
 
 import { resolve } from 'path'
 
-const oss = `https://phx.4dkankan.com/`
-const ip = `https://phx.4dkankan.com/`
+// const oss = `https://phx.4dkankan.com/`
+// const ip = `https://phx.4dkankan.com/`
+const oss = `http://192.168.0.125:1804/`
+const ip = `http://192.168.0.125:1804/`
 const proxy = {
   '/offlineData': {
     target: 'http://192.168.0.43:9000/',