Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b380bd4a
authored
May 18, 2025
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改平板配置新增编辑功能
1 parent
b021587b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
11 deletions
src/views/contentManager/packageConfig/EquityUpgrade.vue
src/views/contentManager/packageConfig/addEquity.vue
src/views/contentManager/packageConfig/EquityUpgrade.vue
View file @
b380bd4
...
...
@@ -222,7 +222,7 @@ export default {
id
:
row
.
id
,
isRelMerchant
:
res
.
isRelMerchant
,
materialInfoList
:
res
.
materialInfoList
,
brandData
:
res
.
rel
Brand
List
,
brandData
:
res
.
relList
,
storeData
:
res
.
relMerchantList
}
})
},
...
...
src/views/contentManager/packageConfig/addEquity.vue
View file @
b380bd4
...
...
@@ -63,13 +63,13 @@
label-width="120px">
<el-form-item
label=
"素材标题:"
prop=
"materialTitle"
>
<el-input
type=
"text"
v-model=
"form[`subForm$
{item.id}`].materialTitle" placeholder="请输入"
maxleng
="10" show-word-limit>
</el-input>
maxlength
="10" show-word-limit>
</el-input>
<div
v-if=
"isCheck && !form[`subForm$
{item.id}`].materialTitle" class="error-tips">请输入素材标题
</div>
<div
class=
"tips"
>
显示在素材标题栏
</div>
</el-form-item>
<el-form-item
label=
"素材简称:"
prop=
"materialName"
>
<el-input
type=
"text"
v-model=
"form[`subForm$
{item.id}`].materialName" placeholder="请输入"
maxleng
="5" show-word-limit>
</el-input>
maxlength
="5" show-word-limit>
</el-input>
<div
v-if=
"isCheck && !form[`subForm$
{item.id}`].materialName" class="error-tips">请输入素材简称
</div>
<div
class=
"tips"
>
显示在文件夹
</div>
</el-form-item>
...
...
@@ -215,7 +215,7 @@ import preview from "../components/preview"
import
brandTree
from
'./components/brandTree.vue'
import
storeDialog
from
'./components/storeDialog.vue'
import
addCarSeries
from
"./components/addCarSeries.vue"
import
{
saveOrUpdate
}
from
"@api/contentManager"
import
{
saveOrUpdate
,
getCarbrandTree
}
from
"@api/contentManager"
export
default
{
components
:
{
brandTree
,
storeDialog
,
glsxPreview
:
preview
,
carSeries
:
addCarSeries
},
data
()
{
...
...
@@ -330,7 +330,8 @@ export default {
levelId
:
1
,
formInfo
:
null
,
levelOptionMapping
:
[
1
,
2
,
3
],
seriesList
:
[]
seriesList
:
[],
brandTreeData
:
[]
}
},
mounted
()
{
...
...
@@ -338,6 +339,11 @@ export default {
this
.
getDetail
()
},
methods
:
{
// 获取品牌树
async
getCarbrandTree
()
{
const
res
=
await
getCarbrandTree
()
this
.
brandTreeData
=
res
},
// 选择品牌
openBrand
()
{
console
.
log
(
'选择品牌'
)
...
...
@@ -491,6 +497,7 @@ export default {
return
;
}
const
_obj
=
{
materialType
:
0
,
materialTitle
,
materialName
,
homeEntranceType
,
...
...
@@ -600,17 +607,34 @@ export default {
});
return
arr
;
},
getDetail
()
{
async
getDetail
()
{
if
(
this
.
$route
.
query
.
id
)
{
const
{
brandData
,
isRelMerchant
,
storeData
,
materialInfoList
}
=
this
.
$route
.
query
// 编辑
// this.formData = this.$route.query.row
this
.
brandData
=
brandData
.
map
(
item
=>
{
this
.
brandData
=
deepClone
(
brandData
)
.
map
(
item
=>
{
return
{
label
:
item
.
brandName
,
id
:
item
.
brandId
label
:
item
.
relItemName
,
id
:
item
.
relBusinessId
}
})
let
checkList
=
[]
console
.
log
(
brandData
,
'brandData'
)
this
.
brandTreeData
=
await
getCarbrandTree
()
brandData
.
forEach
(
i
=>
{
if
(
i
.
relType
==
2
)
{
const
_parent
=
this
.
brandTreeData
.
find
(
j
=>
j
.
id
==
i
.
relBusinessId
)
console
.
log
(
_parent
,
'=Z_'
)
if
(
_parent
)
checkList
.
push
(
_parent
)
if
(
_parent
.
children
)
checkList
=
checkList
.
concat
(
_parent
.
children
)
}
else
{
checkList
.
push
({
label
:
i
.
relItemName
,
id
:
i
.
relBusinessId
})
}
})
this
.
checkBrand
=
checkList
if
(
isRelMerchant
==
2
)
{
this
.
storeData
=
storeData
.
map
(
i
=>
{
return
{
...
...
@@ -643,7 +667,8 @@ export default {
picture
:
[
item
.
contentPicUrl
],
homeEntranceType
:
item
.
homeEntranceType
,
// carSeriesList: item.materialDetailList,
relative
:
!!
item
.
materialDetailList
relative
:
!!
item
.
materialDetailList
,
isForm
:
true
}
if
(
item
.
materialDetailList
)
{
_subForm
.
carSeriesList
=
item
.
materialDetailList
.
map
(
i
=>
{
...
...
@@ -657,7 +682,6 @@ export default {
this
.
$set
(
this
.
form
,
`subForm
${
obj
.
id
}
`
,
_subForm
)
}
_config
.
push
(
obj
)
console
.
log
(
item
,
obj
,
this
.
form
)
})
this
.
MaterialList
=
materialInfoList
this
.
config
=
_config
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment