Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
rongtong-pc
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
融通安全管理系统
rongtong-pc
Commits
1064ba1a
Commit
1064ba1a
authored
Apr 08, 2024
by
kaitly205422@163.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
四色图修改
parent
4e3aabb3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
20 deletions
+29
-20
src/assets/map/low.png
src/assets/map/low.png
+0
-0
src/views/risk/drawCanvas/index.vue
src/views/risk/drawCanvas/index.vue
+27
-18
vue.config.js
vue.config.js
+2
-2
No files found.
src/assets/map/low.png
0 → 100644
View file @
1064ba1a
5.61 KB
src/views/risk/drawCanvas/index.vue
View file @
1064ba1a
...
...
@@ -20,24 +20,27 @@
</el-row>
<!--
<el-button
@
click=
"editItem"
type=
"default"
v-if=
"!isViews"
>
修改
</el-button>
-->
<div
id=
"printDiv"
:style=
"
{ minHeight: layoutHeight + 'px', padding: '20px' }" class="vue-grid-layout">
<div
id=
"printDiv"
:style=
"
{ minHeight: layoutHeight + 'px', padding: '20px' }"
:class="{ 'roomContainerBorder': isViews }" class="vue-grid-layout">
<div
class=
"north"
style=
"margin-right: 20px"
>
<img
src=
"../../../assets/images/north.png"
alt=
""
/>
</div>
<vue-draggable-resizable
parent
ref=
"dragResizable"
v-for=
"item in layout"
:x=
"(W / 12) * item.x"
:y=
"item.y * 30"
:w=
"(W / 12) * item.w"
:h=
"item.h * 30"
:i=
"item.i"
:key=
"item.i"
:z=
"item.zIndex"
<vue-draggable-resizable
parent
ref=
"dragResizable"
v-for=
"item in layout"
:x=
"(W / 12) * item.x"
:
y=
"item.y * 30"
:
w=
"(W / 12) * item.w"
:h=
"item.h * 30"
:i=
"item.i"
:key=
"item.i"
:z=
"item.zIndex"
:draggable=
"item.isDraggable && !isViews"
:resizable=
"item.isResizable && !isViews"
@
resizestop=
"(x, y, w, h) => resizedEvent(item, x, y, w, h)"
@
dragging=
"(x, y) => onDrag(item, x, y)"
@
dragstop=
"(x, y) =>
{
movedEvent(item, x, y);
}
" @resizing="(x, y, w, h) => onResize(item, x, y, w, h)" @activated="onActivated(item)"
@
resizestop=
"(x, y, w, h) => resizedEvent(item, x, y, w, h)"
@
dragging=
"(x, y) => onDrag(item, x, y)"
@
dragstop=
"(x, y) =>
{
movedEvent(item, x, y);
}
" @resizing="(x, y, w, h) => onResize(item, x, y, w, h)" @activated="onActivated(item)"
@click.native="dbClickEvent($event, item)" :style="{
backgroundColor: item.c,
border: item.type == 'thorough' ? 'none !important' : '',
}">
<span
class=
"text"
:class=
"item.w > item.h * 5 ? '' : 'rowText'"
>
{{
item
.
name
}}
</span>
backgroundColor: item.c,
border: item.type == 'thorough' ? 'none !important' : '',
}">
<span
class=
"text"
:class=
"item.w > item.h * 5 ? '' : 'rowText'"
:style=
"
{ fontSize: Math.min(28, Math.max(item.w * item.h, 14)) + 'px' }">
{{
item
.
name
}}
</span>
<span
class=
"remove"
@
click.stop=
"removeItem(item.i)"
v-if=
"!isViews"
>
x
</span>
</vue-draggable-resizable>
</div>
...
...
@@ -75,13 +78,14 @@
</el-select>
-->
<!-- v-model="copyRoom.floor.name" -->
<el-cascader
:options=
"copyRoom.floorData"
:props=
"
{
label: 'name',
value: 'id',
}" @change="handleChange">
</el-cascader>
label: 'name',
value: 'id',
}" @change="handleChange">
</el-cascader>
</el-form-item>
<el-form-item
label=
"房间"
prop=
"copyRoomName"
>
<el-select
v-model=
"copyRoom.room.id"
@
visible-change=
"seletRoom"
placeholder=
"选择房间"
>
<el-option
v-for=
"item in copyRoom.roomData"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
></el-option>
<el-option
v-for=
"item in copyRoom.roomData"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"房间名称"
>
...
...
@@ -821,13 +825,18 @@ export default {
</
script
>
<
style
scoped
>
.roomContainerBorder
{
border
:
2px
solid
rgb
(
160
,
160
,
160
);
margin
:
10px
;
}
.router-view
{
padding-bottom
:
0px
!important
;
}
.wrap
{
/* height: 100vh; */
width
:
105%
;
/* width: 105%; ?? */
position
:
relative
;
}
...
...
vue.config.js
View file @
1064ba1a
...
...
@@ -37,8 +37,8 @@ module.exports = {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[
process
.
env
.
VUE_APP_BASE_API
]:
{
// target: "http://192.168.10.137:8080/",
//
target: `http://192.168.4.232:8080`, //服务器地址
target
:
`http://192.168.15.230:8080`
,
//晓晋本地地址
target
:
`http://192.168.4.232:8080`
,
//服务器地址
//
target: `http://192.168.15.230:8080`, //晓晋本地地址
// target: `http://192.168.15.152:8081`, //鲍德本地地址
// target: `http://127.0.0.1:8080`, //本地地址
changeOrigin
:
true
,
...
...
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