Commit a2a59d16 by 胡悦

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

1 parent 344b2fa4
...@@ -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 }
...@@ -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.dictValue" :label="i.dictValue || i.productName"
: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--) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!