Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
merchant-manage-ui
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
ui
merchant-manage-ui
Commits
5535a7b3
Commit
5535a7b3
authored
Apr 07, 2023
by
张子雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修改图片删除问题
parent
f8ea63e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
data.js
src/pages/businessManage/info/data.js
+10
-1
No files found.
src/pages/businessManage/info/data.js
View file @
5535a7b3
...
@@ -129,7 +129,15 @@ export async function getInfo() {
...
@@ -129,7 +129,15 @@ export async function getInfo() {
// 删除图片
// 删除图片
function
delImg
(
keyName
,
e
)
{
function
delImg
(
keyName
,
e
)
{
this
.
setState
(
state
=>
{
this
.
setState
(
state
=>
{
state
.
businessInfo
[
keyName
].
splice
(
e
.
uid
,
1
);
if
(
keyName
===
'
categoryQualificateImage
'
)
{
state
.
businessInfo
.
categoryQualificateImage
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
uid
===
e
.
uid
)
{
state
.
businessInfo
.
categoryQualificateImage
.
splice
(
index
,
1
);
}
});
}
else
{
state
.
businessInfo
[
keyName
].
splice
(
e
.
uid
,
1
);
}
return
{
return
{
businessInfo
:
state
.
businessInfo
,
businessInfo
:
state
.
businessInfo
,
};
};
...
@@ -171,6 +179,7 @@ export function uploadPropsFn(
...
@@ -171,6 +179,7 @@ export function uploadPropsFn(
};
};
imgList
.
push
(
attachment
);
imgList
.
push
(
attachment
);
if
(
imgList
.
length
<=
limit
)
{
if
(
imgList
.
length
<=
limit
)
{
console
.
log
(
imgList
);
state
.
businessInfo
[
keyName
]
=
imgList
;
state
.
businessInfo
[
keyName
]
=
imgList
;
}
else
{
}
else
{
notification
.
error
({
message
:
`最多只能上传
${
limit
}
个文件!`
});
notification
.
error
({
message
:
`最多只能上传
${
limit
}
个文件!`
});
...
...
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