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 a2a59d16
authored
Mar 29, 2021
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
场景触发条件、场景执行内容逻辑
1 parent
344b2fa4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
14 deletions
src/api/scenario.js
src/views/customer/productList/index.vue
src/views/customer/scenarioManagement/addScenario.vue
src/api/scenario.js
View file @
a2a59d1
...
@@ -16,8 +16,16 @@ function updateStatus(data, baseURl) {
...
@@ -16,8 +16,16 @@ function updateStatus(data, baseURl) {
})
})
}
}
// 获取场景指令
内容
列表
// 获取场景指令
条件
列表
function
getConditionList
(
params
)
{
function
getConditionList
(
params
)
{
return
GlAxios
.
get
(
`
${
path1
}
getConditionList`
,
{
params
})
return
GlAxios
.
get
(
`
${
path1
}
getConditionList`
,
{
params
})
}
}
export
{
getList
,
updateStatus
,
getConditionList
}
function
getContentList
(
params
)
{
return
GlAxios
.
get
(
`
${
path1
}
getContentList`
,
{
params
})
}
function
getOrderValue
(
data
)
{
return
GlAxios
.
post
(
`/smartAdmin/orderValue/getList`
,
data
)
}
export
{
getList
,
updateStatus
,
getConditionList
,
getContentList
,
getOrderValue
}
src/views/customer/productList/index.vue
View file @
a2a59d1
...
@@ -74,8 +74,8 @@
...
@@ -74,8 +74,8 @@
<el-option
<el-option
v-for=
"i in item.options"
v-for=
"i in item.options"
:key=
"i.value"
:key=
"i.value"
:label=
"i.
label || i.dictValu
e"
:label=
"i.
dictValue || i.productNam
e"
:value=
"i.
value || i.dictKey
"
:value=
"i.
dictKey || i.id
"
>
>
</el-option>
</el-option>
</el-select>
</el-select>
...
@@ -208,16 +208,7 @@ export default {
...
@@ -208,16 +208,7 @@ export default {
label
:
'产品分类:'
,
label
:
'产品分类:'
,
prop
:
'typeId'
,
prop
:
'typeId'
,
type
:
'select'
,
type
:
'select'
,
options
:
[
options
:
[]
{
label
:
'车载智能'
,
value
:
'1'
},
{
label
:
'智能家居'
,
value
:
'2'
}
]
},
},
{
{
label
:
'商城ID:'
,
label
:
'商城ID:'
,
...
@@ -249,6 +240,11 @@ export default {
...
@@ -249,6 +240,11 @@ export default {
}
}
},
},
created
()
{
created
()
{
getList
({}).
then
(
res
=>
{
for
(
let
i
=
this
.
productFormList
.
length
;
i
>
0
;
i
--
)
{
if
(
this
.
productFormList
[
i
]
&&
this
.
productFormList
[
i
].
prop
===
'typeId'
)
return
(
this
.
productFormList
[
i
].
options
=
res
.
list
)
}
})
getDict
({
dictType
:
'access_platform'
}).
then
(
res
=>
{
getDict
({
dictType
:
'access_platform'
}).
then
(
res
=>
{
this
.
platformList
=
res
this
.
platformList
=
res
for
(
let
i
=
this
.
productFormList
.
length
;
i
>
0
;
i
--
)
{
for
(
let
i
=
this
.
productFormList
.
length
;
i
>
0
;
i
--
)
{
...
...
src/views/customer/scenarioManagement/addScenario.vue
View file @
a2a59d1
This diff is collapsed.
Click to expand it.
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