Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rs-cloud-platform-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
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
周健威
rs-cloud-platform-ui
Commits
0f03876f
Commit
0f03876f
authored
Dec 24, 2020
by
Xiaxuxia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决banner编辑时无连接参数不显示,影像图库修改源文件无反应问题
parent
879e070b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
index.vue
src/views/webSiteManagement/bannerSetting/index.vue
+3
-1
edit.vue
src/views/webSiteManagement/imageLibrary/edit.vue
+2
-1
list.vue
src/views/webSiteManagement/imageLibrary/list.vue
+5
-2
No files found.
src/views/webSiteManagement/bannerSetting/index.vue
View file @
0f03876f
...
...
@@ -234,7 +234,9 @@ export default {
filterParams
(
row
)
{
let
a
=
{};
for
(
let
i
in
this
.
formObject
.
formVal
)
{
a
[
i
]
=
row
[
i
]
||
null
if
(
row
[
i
]
!==
''
)
{
a
[
i
]
=
row
[
i
]
}
}
return
a
},
...
...
src/views/webSiteManagement/imageLibrary/edit.vue
View file @
0f03876f
...
...
@@ -290,7 +290,8 @@ export default {
let
data
=
JSON
.
parse
(
JSON
.
stringify
(
afterFormat
));
// data.paramJson = JSON.parse(data.paramJson);
data
.
imageInfoRelationList
=
data
.
imageInfoRelationList
[
0
];
//注意:imageInfoRelationListParse为imageInfoRelationList参数的最后一项,赋值显示
data
.
imageInfoRelationList
=
data
.
imageInfoRelationListParse
[
0
];
data
.
coverImg
=
data
.
coverImg
||
''
;
this
.
ruleForm
=
data
;
this
.
images
.
selects
=
this
.
ruleForm
.
relatedIds
.
split
(
','
)
//相似图片转为数组格式
...
...
src/views/webSiteManagement/imageLibrary/list.vue
View file @
0f03876f
...
...
@@ -30,8 +30,8 @@
<el-table-column
align=
"center"
label=
"序号"
prop=
"index"
width=
"65"
></el-table-column>
<el-table-column
align=
"center"
label=
"产品名称"
prop=
"name"
></el-table-column>
<el-table-column
align=
"center"
label=
"产品类型"
prop=
"paramJson.productType"
></el-table-column>
<el-table-column
align=
"center"
label=
"尺寸"
prop=
"imageInfoRelationList[0].fileWidth"
></el-table-column>
<el-table-column
align=
"center"
label=
"价格"
prop=
"imageInfoRelationList[0].price"
></el-table-column>
<el-table-column
align=
"center"
label=
"尺寸"
prop=
"imageInfoRelationList
Parse
[0].fileWidth"
></el-table-column>
<el-table-column
align=
"center"
label=
"价格"
prop=
"imageInfoRelationList
Parse
[0].price"
></el-table-column>
<el-table-column
align=
"center"
label=
"状态"
>
<template
slot-scope=
"scope"
>
{{
getStatus
(
scope
.
row
.
status
)
}}
...
...
@@ -231,6 +231,9 @@ export default {
element
.
index
=
((
this
.
listQuery
.
page
-
1
)
*
this
.
listQuery
.
limit
)
+
(
index
+
1
)
});
this
.
list
=
this
.
list
.
map
(
v
=>
{
let
len
=
v
.
imageInfoRelationList
.
length
;
//注意:imageInfoRelationList参数后端返回的是数组,编辑后的源文件图片被放在最后一项。所以取数组的最后一项
v
.
imageInfoRelationListParse
=
len
>
0
?
[
v
.
imageInfoRelationList
[
v
.
imageInfoRelationList
.
length
-
1
]]
:
[]
v
.
paramJson
=
JSON
.
parse
(
v
.
paramJson
)
return
v
})
...
...
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