Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
a7a76a57
authored
2023-09-14 16:25:51 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:材料信息
1 parent
49097911
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
12 deletions
src/components/publicPicture/index.vue
src/views/components/imagePreview.vue
src/views/workflow/components/zdt.vue
src/views/xxba/components/clxx/dialog/imagePreview.vue
src/components/publicPicture/index.vue
View file @
a7a76a5
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-1
1 10:01:32
* @LastEditTime: 2023-09-1
4 16:21:51
-->
<
template
>
<el-image-viewer
:on-close=
"closeViewer"
:url-list=
"urlList"
>
<el-image-viewer
:on-close=
"closeViewer"
:url-list=
"urlList"
:initial-index=
"initialIndex"
>
</el-image-viewer>
</
template
>
<
script
>
...
...
@@ -19,6 +19,10 @@
default
:
function
()
{
return
[]
}
},
initialIndex
:
{
type
:
Number
,
default
:
0
}
},
data
()
{
...
...
src/views/components/imagePreview.vue
View file @
a7a76a5
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-1
3 15:36:42
* @LastEditTime: 2023-09-1
4 16:16:57
-->
<
template
>
<div
class=
"rlPopup"
>
...
...
@@ -148,6 +148,7 @@
}
else
{
this
.
previewImg
.
index
=
this
.
previewImg
.
index
+
1
}
this
.
initialIndex
=
this
.
previewImg
.
index
this
.
$emit
(
'updateList'
,
{
children
:
res
.
result
,
bsmSj
:
this
.
previewImg
.
bsmSj
})
this
.
$message
({
message
:
'移动成功!'
,
...
...
@@ -234,6 +235,7 @@
*/
showCurrent
(
index
)
{
this
.
previewImg
.
index
=
index
this
.
initialIndex
=
index
},
/**
* @description: closeViewer
...
...
src/views/workflow/components/zdt.vue
View file @
a7a76a5
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-1
3 16:16:08
* @LastEditTime: 2023-09-1
4 16:06:51
-->
<
template
>
<div>
<canvas
id=
"mxcad"
style=
"width:
100%;height:100%
"
>
<div
style=
"width:90%;height:100%;"
>
<canvas
id=
"mxcad"
style=
"width:
90%;height:80%; position: relative;top:0
"
>
</canvas>
</div>
</
template
>
...
...
@@ -20,20 +20,17 @@
Mx
.
MxFun
.
createMxObject
({
canvasId
:
"mxcad"
,
// canvas元素的id
cadFile
:
"buf/hhhh.dwg"
,
// http方式(预览): 加载public/demo文件夹下转换后的图纸
// cadFile: "test2.dwg", // socket通信方式请直接提供图纸名称 如:text.dwg
callback
:
(
mxDraw
,
{
canvas
,
canvasParent
})
=>
{
// 可以拿到canvas元素和它的父级元素
console
.
log
(
canvas
,
canvasParent
)
console
.
log
(
mxDraw
)
// 拿到图层数据
mxDraw
.
addEvent
(
'uiSetLayerData'
,
(
listLayer
)
=>
{
console
.
log
(
listLayer
)
})
},
isNewFile
:
fals
e
// 是否新建文件
isNewFile
:
tru
e
// 是否新建文件
})
})
}
...
...
src/views/xxba/components/clxx/dialog/imagePreview.vue
View file @
a7a76a5
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-1
2 13:46:29
* @LastEditTime: 2023-09-1
4 16:24:07
-->
<
template
>
<div
class=
"rlPopup"
>
...
...
@@ -86,7 +86,7 @@
// 缩略图
thumbnailImages
:
[],
showViewer
:
false
,
initialIndex
:
undefined
,
initialIndex
:
0
,
allLi
:
[],
}
},
...
...
@@ -152,6 +152,7 @@
}
else
{
this
.
previewImg
.
index
=
this
.
previewImg
.
index
+
1
}
this
.
initialIndex
=
this
.
previewImg
.
index
this
.
$emit
(
'updateList'
,
{
children
:
res
.
result
,
bsmMaterial
:
this
.
previewImg
.
bsmMaterial
})
this
.
$message
({
message
:
'移动成功!'
,
...
...
@@ -238,6 +239,7 @@
*/
showCurrent
(
index
)
{
this
.
previewImg
.
index
=
index
this
.
initialIndex
=
index
},
/**
* @description: closeViewer
...
...
Please
register
or
sign in
to post a comment