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
f221646c
Commit
f221646c
authored
Apr 07, 2023
by
张子雨
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat/constructionOne' into feature/20230327_public_takeaway
* feat/constructionOne: feat: 优化 feat: 修改图片删除问题
parents
e294bd8b
b6432a74
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
data.js
src/pages/businessManage/info/data.js
+11
-2
No files found.
src/pages/businessManage/info/data.js
View file @
f221646c
...
@@ -53,7 +53,7 @@ export async function getInfo() {
...
@@ -53,7 +53,7 @@ export async function getInfo() {
res
.
customList
=
res
.
facilities
.
customList
||
[];
res
.
customList
=
res
.
facilities
.
customList
||
[];
res
.
selfList
=
res
.
facilities
.
selfList
||
[];
res
.
selfList
=
res
.
facilities
.
selfList
||
[];
}
}
res
.
signDateType
=
[
res
.
signDateType
]
||
[];
res
.
signDateType
=
res
.
signDateType
?
[
res
.
signDateType
]
:
[];
res
.
accountOpenPermitImage
=
res
.
accountOpenPermitImage
res
.
accountOpenPermitImage
=
res
.
accountOpenPermitImage
?
[{
uid
:
0
,
url
:
res
.
accountOpenPermitImage
}]
?
[{
uid
:
0
,
url
:
res
.
accountOpenPermitImage
}]
:
[];
:
[];
...
@@ -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