Commit 2c6d4495 by zhangxw

遗留小问题修改

1 parent 74282da9
...@@ -186,7 +186,7 @@ export default { ...@@ -186,7 +186,7 @@ export default {
name: 'goodsType', name: 'goodsType',
type: 'select', type: 'select',
optionList: [], optionList: [],
optionId: 'id', optionId: 'categoryType',
optionLabel: 'categoryName', optionLabel: 'categoryName',
optionsName: 'productTypeList' optionsName: 'productTypeList'
}, { }, {
...@@ -416,7 +416,11 @@ export default { ...@@ -416,7 +416,11 @@ export default {
this.baseData.reviewStatusList.unshift(allOpt) this.baseData.reviewStatusList.unshift(allOpt)
this.baseData.scenCodeList = deepClone(scenCodeList) this.baseData.scenCodeList = deepClone(scenCodeList)
this.baseData.scenCodeList.unshift(allOpt) this.baseData.scenCodeList.unshift(allOpt)
// 获取全部类目
getProductTypeBySceneId({ sceneType: '' }).then(res => {
this.baseData.productTypeList = res
this.getBaseData() this.getBaseData()
})
if (this.userInfo.beSuper) { if (this.userInfo.beSuper) {
// 获取园区店 // 获取园区店
getParkStore({}).then(res => { getParkStore({}).then(res => {
...@@ -698,6 +702,7 @@ export default { ...@@ -698,6 +702,7 @@ export default {
return return
} }
getProductTypeBySceneId({ sceneType: value }).then(res => { getProductTypeBySceneId({ sceneType: value }).then(res => {
this.searchForm.goodsType = ''
this.baseData.productTypeList = res this.baseData.productTypeList = res
this.getBaseData() this.getBaseData()
}) })
......
...@@ -217,6 +217,7 @@ export default { ...@@ -217,6 +217,7 @@ export default {
this.baseData.scenCodeList.unshift(allOpt) this.baseData.scenCodeList.unshift(allOpt)
// 获取全部类目 // 获取全部类目
getProductTypeBySceneId({ sceneType: '' }).then(res => { getProductTypeBySceneId({ sceneType: '' }).then(res => {
this.searchForm.goodsType = ''
this.baseData.productTypeList = res this.baseData.productTypeList = res
this.getBaseData() this.getBaseData()
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!