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

98测试

parent c6cac4dd
......@@ -181,36 +181,40 @@
</template>
<script>
const floorArr = [
{
id: 4,
building: 1,
lv: 1,
picture: "",
phonepicture: "",
mtl_url: "/uploads/floor/yibin2/L1.mtl",
obj_url: "/glft/sbglL1.gltf",
siteid: 1,
type: 1,
create_time: "2023-03-13 11:32:38",
update_time: "2023-04-08 11:40:07",
zip_url: "/uploads/floor/L1-1/L1-1.zip",
},
{
id: 5,
building: 1,
lv: 2,
picture: "",
phonepicture: "",
mtl_url: "/uploads/floor/yibin/L2.mtl",
obj_url: "/glft/sbglL2.gltf",
siteid: 1,
type: 1,
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 floorArr = [
// {
// id: 4,
// building: 1,
// lv: 1,
// picture: "",
// phonepicture: "",
// mtl_url: "/uploads/floor/yibin2/L1.mtl",
// // obj_url: "/glft/sbglL1.gltf",
// obj_url: "/module/L1.gltf",
// siteid: 1,
// type: 1,
// create_time: "2023-03-13 11:32:38",
// update_time: "2023-04-08 11:40:07",
// zip_url: "/uploads/floor/L1-1/L1-1.zip",
// },
// {
// id: 5,
// building: 1,
// lv: 2,
// picture: "",
// phonepicture: "",
// mtl_url: "/uploads/floor/yibin/L2.mtl",
// // obj_url: "/glft/sbglL2.gltf",
// obj_url: "/module/L2.gltf",
// siteid: 1,
// type: 1,
// 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 TitleItem from "./components/TitleItem.vue";
......@@ -264,11 +268,26 @@ export default {
this.getDevAlarm();
this.getData();
setTimeout(() => {
this.floorArr = floorArr;
// this.floorArr = floorArr;
this.getLCData()
}, 500);
this.centerDeviceType();
},
methods: {
// 获取楼层数据
getLCData(){
axios({
method: 'get',
url: "/module/3Ddt/lc.json",
headers: {
'Content-Type': 'application/json'
},
}).then(
(res)=>{
this.floorArr = res.floorArr
}
)
},
// 中间设备状态
centerDeviceType() {
this.$post("/device/stat/list", {
......
......@@ -27,6 +27,13 @@ module.exports = {
//target: 'http://127.0.0.1:18222',
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