数据定价更新
Showing
2 changed files
with
7 additions
and
3 deletions
| ... | @@ -80,7 +80,7 @@ const baseConfigFormItems: any = ref([ | ... | @@ -80,7 +80,7 @@ const baseConfigFormItems: any = ref([ |
| 80 | options: [], | 80 | options: [], |
| 81 | props: { | 81 | props: { |
| 82 | label: "damName", | 82 | label: "damName", |
| 83 | value: "damGuid", | 83 | value: "guid", |
| 84 | }, | 84 | }, |
| 85 | clearable: true, | 85 | clearable: true, |
| 86 | filterable: true, | 86 | filterable: true, | ... | ... |
| ... | @@ -293,10 +293,11 @@ const formItems: any = ref([ | ... | @@ -293,10 +293,11 @@ const formItems: any = ref([ |
| 293 | placeholder: '请选择', | 293 | placeholder: '请选择', |
| 294 | options: productList.value, | 294 | options: productList.value, |
| 295 | props: { | 295 | props: { |
| 296 | value: 'damGuid', | 296 | value: 'guid', |
| 297 | label: 'damName' | 297 | label: 'damName' |
| 298 | }, | 298 | }, |
| 299 | clearable: true, | 299 | clearable: true, |
| 300 | filterable: true | ||
| 300 | }, | 301 | }, |
| 301 | { | 302 | { |
| 302 | label: '描述', | 303 | label: '描述', |
| ... | @@ -666,6 +667,9 @@ const clickCreateGroup = () => { | ... | @@ -666,6 +667,9 @@ const clickCreateGroup = () => { |
| 666 | formItems.value.map(item => { | 667 | formItems.value.map(item => { |
| 667 | if (item.field === 'orderNum') { | 668 | if (item.field === 'orderNum') { |
| 668 | item.default = null; | 669 | item.default = null; |
| 670 | } else if(item.field === 'damGuid'){ | ||
| 671 | item.options = productList.value; | ||
| 672 | item.default = ''; | ||
| 669 | } else { | 673 | } else { |
| 670 | item.default = ""; | 674 | item.default = ""; |
| 671 | } | 675 | } |
| ... | @@ -950,7 +954,7 @@ onActivated(async () => { | ... | @@ -950,7 +954,7 @@ onActivated(async () => { |
| 950 | const getProducts = () => { | 954 | const getProducts = () => { |
| 951 | getDamCatalogList({ dataType: userData.superTubeFlag == 'Y' ? "P" : "D", sceneType: "Z" }).then((res: any) => { | 955 | getDamCatalogList({ dataType: userData.superTubeFlag == 'Y' ? "P" : "D", sceneType: "Z" }).then((res: any) => { |
| 952 | if (res.code == proxy.$passCode) { | 956 | if (res.code == proxy.$passCode) { |
| 953 | const data = res.data.records || []; | 957 | const data = res.data || []; |
| 954 | productList.value = data; | 958 | productList.value = data; |
| 955 | } | 959 | } |
| 956 | }) | 960 | }) | ... | ... |
-
Please register or sign in to post a comment