Przeglądaj źródła

修改页面 地址统一

bzd_lxf 3 tygodni temu
rodzic
commit
bc25fe4220

+ 2 - 1
pm_ui/.env.development

@@ -11,4 +11,5 @@ VITE_APP_BASE_API = '/dev-api'
 VITE_WS_URL=182.43.195.17
 
 # 接口路径和端口
-VITE_API_URL=10.1.1.165:8000
+# VITE_API_URL=http://10.1.1.165:8000
+VITE_API_URL=http://182.43.247.65:8081

+ 2 - 1
pm_ui/.env.production

@@ -14,4 +14,5 @@ VITE_BUILD_COMPRESS = gzip
 VITE_WS_URL=182.43.195.17
 
 # 接口路径和端口
-VITE_API_URL=http://10.1.1.165:8000
+# VITE_API_URL=http://10.1.1.165:8000
+VITE_API_URL=http://182.43.247.65:8081

+ 1 - 1
pm_ui/src/views/accessControl/index.vue

@@ -563,7 +563,7 @@ const getList = async () => {
       devTypeDesc: queryParams.devTypeDesc
     };
 
-    const response = await axios.get(`http://${__LOCAL_API__}/Hikvision/getAcsDeviceSearch`, { params });
+    const response = await axios.get(`${__LOCAL_API__}/Hikvision/getAcsDeviceSearch`, { params });
 
     if (response.data.code === 200) {
       doorDevices.value = response.data.data.list || [];

+ 2 - 2
pm_ui/src/views/accessControl/index2.vue

@@ -391,7 +391,7 @@ const getList = async () => {
       name: queryParams.name || undefined
     };
 
-    const response = await axios.get(`http://${__LOCAL_API__}/Hikvision/getDoorSearch`, { params });
+    const response = await axios.get(`${__LOCAL_API__}/Hikvision/getDoorSearch`, { params });
 
     if (response.data.code === 200) {
       deviceList.value = response.data.data.list || [];
@@ -542,7 +542,7 @@ const executeControl = async (doorIndexCodes, controlType) => {
       controlType: parseInt(controlType)
     };
 
-    const response = await axios.get(`http://${__LOCAL_API__}/Hikvision/getDoorDoControl`, {
+    const response = await axios.get(`${__LOCAL_API__}/Hikvision/getDoorDoControl`, {
       params
     });
 

+ 1 - 1
pm_ui/src/views/meeting/index.vue

@@ -155,7 +155,7 @@ const getList = async () => {
       page_size: queryParams.value.pageSize
     };
 
-    const response = await axios.post('http://182.43.247.65:8000/Conference/getRoomsByLocation', requestData, {
+    const response = await axios.post(`${__LOCAL_API__}/Conference/getRoomsByLocation`, requestData, {
       headers: {
         'Content-Type': 'application/json'
       }

+ 1 - 1
pm_ui/src/views/meeting/index3.vue

@@ -122,7 +122,7 @@ const getList = async () => {
     }
 
     // 发送请求
-    const response = await axios.get('http://182.43.247.65:8000/Conference/meeting', {
+    const response = await axios.get(`${__LOCAL_API__}/Conference/meeting`, {
       params: params
     });
 

+ 2 - 2
pm_ui/src/views/spafjkxt/index.vue

@@ -412,7 +412,7 @@ function getCameraList() {
     params.cameraType = searchForm.cameraType
   }
 
-  axios.get(`http://${__LOCAL_API__}/Hikvision/getCameraSearch`, {
+  axios.get(`${__LOCAL_API__}/Hikvision/getCameraSearch`, {
     params: params
   }).then(response => {
     if (response.data.code === 200) {
@@ -445,7 +445,7 @@ function handleVideoPreview(row) {
   currentCamera.value = row
   videoVisible.value = true
   // 使用indexCode作为摄像机标识
-  currentVideoUrl.value = `http://${__LOCAL_API__}/Hikvision/getMonitoring?cameraIndexCode=${row.indexCode}`
+  currentVideoUrl.value = `${__LOCAL_API__}/Hikvision/getMonitoring?cameraIndexCode=${row.indexCode}`
 }
 
 // 查看摄像机详情