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
03910b1a
authored
2023-06-21 16:35:38 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:图片上传
1 parent
dafd2826
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
src/views/components/imagePreview.vue
src/views/workflow/components/clxx/clxxUnify.vue
src/views/components/imagePreview.vue
View file @
03910b1
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-06-21 1
5:35:29
* @LastEditTime: 2023-06-21 1
6:35:04
-->
<
template
>
<div
class=
"rlPopup"
>
...
...
@@ -248,9 +248,11 @@
type
:
'warning'
}).
then
(
async
()
=>
{
let
bsmClmx
=
this
.
previewImg
.
imgList
[
this
.
previewImg
.
index
].
bsmClmx
let
bsmSj
=
this
.
previewImg
.
imgList
[
this
.
previewImg
.
index
].
bsmSj
this
.
previewImg
.
imgList
=
this
.
previewImg
.
imgList
.
filter
(
item
=>
item
.
bsmClmx
!=
bsmClmx
)
deleteClmx
(
bsmClmx
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
that
.
$emit
(
'updateList'
,
res
.
result
)
that
.
$emit
(
'updateList'
,
{
children
:
this
.
previewImg
.
imgList
,
bsmSj
:
bsmSj
}
)
that
.
$message
({
message
:
'删除成功!'
,
type
:
'success'
...
...
src/views/workflow/components/clxx/clxxUnify.vue
View file @
03910b1
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-06-21 1
5:30:43
* @LastEditTime: 2023-06-21 1
6:29:37
-->
<
template
>
<div
class=
"clxx"
>
...
...
@@ -120,8 +120,9 @@
this
.
previewImg
.
bsmSj
=
item
.
bsmSj
;
},
updateList
(
val
)
{
console
.
log
(
val
,
'valvalvalval'
);
let
that
=
this
if
(
val
!=
null
)
{
//删除最后一张图片时 val=null
if
(
val
.
children
.
length
!=
[]
)
{
//删除最后一张图片时 val=null
this
.
tableData
.
forEach
(
item
=>
{
if
(
item
.
bsmSj
===
val
.
bsmSj
)
{
item
.
children
=
val
.
children
...
...
@@ -140,7 +141,6 @@
}
})
}
},
// 添加材料目录
handleAdd
()
{
...
...
@@ -173,7 +173,7 @@
this
.
previewImg
.
index
=
0
this
.
treeCheckId
=
item
?.
bsmSj
this
.
treeCheckIndex
=
index
this
.
previewImg
.
imgList
=
item
.
children
?
item
.
children
:
[]
this
.
previewImg
.
imgList
=
item
.
children
?
item
.
children
:
[]
this
.
previewImg
.
bsmSj
=
item
?.
bsmSj
},
// 小图片点击
...
...
Please
register
or
sign in
to post a comment