Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-carowner
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 dafd42e6
authored
May 03, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
场景新增添加常驻首页
1 parent
8d58a95e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
src/views/customer/scenarioManagement/addScenario.vue
src/views/customer/scenarioManagement/index.vue
src/views/customer/scenarioManagement/addScenario.vue
View file @
dafd42e
...
...
@@ -56,6 +56,15 @@
</el-select>
</el-form-item>
<el-form-item
label=
"常驻首页"
prop=
"isTop"
>
<el-radio-group
v-model=
"params.basicForm.isTop"
>
<el-radio
:label=
"0"
>
否
</el-radio>
<el-radio
:label=
"1"
>
是
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
label=
"场景图标"
prop=
"icon"
>
...
...
@@ -538,6 +547,7 @@ export default {
basicRules
:
{
sceneName
:
[{
required
:
true
,
message
:
'请输入场景名称'
,
trigger
:
'blur'
}],
typeKey
:
[{
required
:
true
,
message
:
'请选择场景类型'
,
trigger
:
'blur'
}],
isTop
:
[{
required
:
true
,
message
:
'请选择常驻首页'
,
trigger
:
'change'
}],
icon
:
[{
required
:
true
,
message
:
'请选择场景图标'
,
trigger
:
'blur'
}],
pagePic
:
[{
required
:
true
,
message
:
'请上传场景缩略图'
,
trigger
:
'change'
}],
backPic
:
[{
required
:
true
,
message
:
'请上传场景背景图'
,
trigger
:
'change'
}]
...
...
@@ -824,8 +834,15 @@ export default {
if
(
obj
.
orderType
==
2
)
{
getOrderValue
({
orderId
:
id
}).
then
(
res
=>
{
const
val
=
res
.
length
===
0
?
null
:
res
paramValue
.
lastList
=
val
this
.
key
=
new
Date
().
getTime
()
// paramValue.lastList = val
// this.$nextTick(() => {
// this.$set(this.params.contentList[index].paramValue, 'lastList', val)
// console.log(paramValue.lastList)
// })
this
.
params
.
contentList
[
index
].
paramValue
=
Object
.
assign
({},
paramValue
,
{
lastList
:
val
})
// this.params.contentList[index].paramValue.lastList = []
// this.$set(this.params.contentList[index].paramValue, 'lastList', val)
// this.key = new Date().getTime()
})
}
}
...
...
src/views/customer/scenarioManagement/index.vue
View file @
dafd42e
...
...
@@ -105,6 +105,7 @@ export default {
defalutScenarioParams
:
{
basicForm
:
{
id
:
''
,
isTop
:
''
,
backPic
:
''
,
backPicUrl
:
''
,
pagePic
:
''
,
...
...
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