Commit 38900f5b authored by 王晓旭's avatar 王晓旭

98测试

parent c6cac4dd
...@@ -181,36 +181,40 @@ ...@@ -181,36 +181,40 @@
</template> </template>
<script> <script>
const floorArr = [ // const floorArr = [
{ // {
id: 4, // id: 4,
building: 1, // building: 1,
lv: 1, // lv: 1,
picture: "", // picture: "",
phonepicture: "", // phonepicture: "",
mtl_url: "/uploads/floor/yibin2/L1.mtl", // mtl_url: "/uploads/floor/yibin2/L1.mtl",
obj_url: "/glft/sbglL1.gltf", // // obj_url: "/glft/sbglL1.gltf",
siteid: 1, // obj_url: "/module/L1.gltf",
type: 1, // siteid: 1,
create_time: "2023-03-13 11:32:38", // type: 1,
update_time: "2023-04-08 11:40:07", // create_time: "2023-03-13 11:32:38",
zip_url: "/uploads/floor/L1-1/L1-1.zip", // update_time: "2023-04-08 11:40:07",
}, // zip_url: "/uploads/floor/L1-1/L1-1.zip",
{ // },
id: 5, // {
building: 1, // id: 5,
lv: 2, // building: 1,
picture: "", // lv: 2,
phonepicture: "", // picture: "",
mtl_url: "/uploads/floor/yibin/L2.mtl", // phonepicture: "",
obj_url: "/glft/sbglL2.gltf", // mtl_url: "/uploads/floor/yibin/L2.mtl",
siteid: 1, // // obj_url: "/glft/sbglL2.gltf",
type: 1, // obj_url: "/module/L2.gltf",
create_time: "2023-03-13 16:54:14", // siteid: 1,
update_time: "2023-04-08 11:40:21", // type: 1,
zip_url: "/uploads/floor/L2-1/L2-1.zip", // create_time: "2023-03-13 16:54:14",
}, // update_time: "2023-04-08 11:40:21",
]; // zip_url: "/uploads/floor/L2-1/L2-1.zip",
// },
// ];
const axios = require('axios').default;
import HeaderSite from "./components/HeaderSite.vue"; import HeaderSite from "./components/HeaderSite.vue";
import TitleItem from "./components/TitleItem.vue"; import TitleItem from "./components/TitleItem.vue";
...@@ -264,11 +268,26 @@ export default { ...@@ -264,11 +268,26 @@ export default {
this.getDevAlarm(); this.getDevAlarm();
this.getData(); this.getData();
setTimeout(() => { setTimeout(() => {
this.floorArr = floorArr; // this.floorArr = floorArr;
this.getLCData()
}, 500); }, 500);
this.centerDeviceType(); this.centerDeviceType();
}, },
methods: { methods: {
// 获取楼层数据
getLCData(){
axios({
method: 'get',
url: "/module/3Ddt/lc.json",
headers: {
'Content-Type': 'application/json'
},
}).then(
(res)=>{
this.floorArr = res.floorArr
}
)
},
// 中间设备状态 // 中间设备状态
centerDeviceType() { centerDeviceType() {
this.$post("/device/stat/list", { this.$post("/device/stat/list", {
......
...@@ -27,6 +27,13 @@ module.exports = { ...@@ -27,6 +27,13 @@ module.exports = {
//target: 'http://127.0.0.1:18222', //target: 'http://127.0.0.1:18222',
changeOrigin: true, changeOrigin: true,
}, },
"/module": {
target: "http://192.168.0.98:11091",
changeOrigin: true,
// pathRewrite:{
// '^/dd': ''
// }
},
}, },
}, },
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment