Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
device-manager-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
device-manager-ui
Commits
38900f5b
Commit
38900f5b
authored
Mar 01, 2024
by
王晓旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
98测试
parent
c6cac4dd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
31 deletions
+57
-31
src/views/analysis/Analysis.vue
src/views/analysis/Analysis.vue
+50
-31
vue.config.js
vue.config.js
+7
-0
No files found.
src/views/analysis/Analysis.vue
View file @
38900f5b
...
@@ -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
"
,
{
...
...
vue.config.js
View file @
38900f5b
...
@@ -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': ''
// }
},
},
},
},
},
};
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment