| | |
| | | <!-- |
| | | * @Date: 2024-04-15 23:58:36 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-04-17 00:38:24 |
| | | * @LastEditTime: 2024-04-17 00:45:20 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/mdc/configComp/Board.vue |
| | | --> |
| | | <template> |
| | |
| | | }, |
| | | methods: { |
| | | init() { |
| | | console.log('>>>>>>normalId') |
| | | this.$HTTP.get('/api/blade-system/param-biz/detail?paramKey=mdc_chosen_groups').then(re => { |
| | | this.id = re.data.id |
| | | let chosen = [] |
| | |
| | | try { |
| | | chosen = JSON.parse(re.data.paramValue).map(v => v.groupId) |
| | | normalId = JSON.parse(re.data.paramValue).find(v => v.isDefault).groupId |
| | | console.log('>>>>>>normalId', normalId) |
| | | } catch (error) { |
| | | |
| | | } |
| | | Promise.all([ |
| | | this.$HTTP.get('/api/blade-system/dict/dictionary?code=group_tag').then(res => { |
| | | this.dicts = [] |
| | | this.dicts.push(...res.data.map(({ dictKey, dictValue }) => ({ |
| | | dictKey, dictValue |
| | | }))) |
| | |
| | | item?.children.forEach(v => { |
| | | if (groupId == v.groupId) { |
| | | v.isDefault = true |
| | | v.isSelect = true |
| | | } else { |
| | | v.isDefault = 0 |
| | | } |