Commit a2a59d16 by 胡悦

场景触发条件、场景执行内容逻辑

1 parent 344b2fa4
......@@ -16,8 +16,16 @@ function updateStatus(data, baseURl) {
})
}
// 获取场景指令内容列表
// 获取场景指令条件列表
function 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 }
......@@ -74,8 +74,8 @@
<el-option
v-for="i in item.options"
:key="i.value"
:label="i.label || i.dictValue"
:value="i.value || i.dictKey"
:label="i.dictValue || i.productName"
:value="i.dictKey || i.id"
>
</el-option>
</el-select>
......@@ -208,16 +208,7 @@ export default {
label: '产品分类:',
prop: 'typeId',
type: 'select',
options: [
{
label: '车载智能',
value: '1'
},
{
label: '智能家居',
value: '2'
}
]
options: []
},
{
label: '商城ID:',
......@@ -249,6 +240,11 @@ export default {
}
},
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 => {
this.platformList = res
for (let i = this.productFormList.length; i > 0; i--) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!