| | |
| | | <!-- |
| | | * @Date: 2024-01-05 22:26:22 |
| | | * @LastEditors: Sneed |
| | | * @LastEditTime: 2024-01-31 21:47:40 |
| | | * @LastEditTime: 2024-02-02 23:32:35 |
| | | * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/src/container/preview/index.vue |
| | | --> |
| | | <template> |
| | |
| | | getMapList() { |
| | | try { |
| | | this.mapList = this.workshopList.filter (v => v.gridSetting && v.gridSetting!='{}') |
| | | if (this.mapList.length === 0) { |
| | | this.status = 2 |
| | | } |
| | | this.id =this.mapList[0].id |
| | | } catch (error) { |
| | | console.error(error) |
| | |
| | | }, |
| | | }, |
| | | mounted () { |
| | | this.getMapList() |
| | | this.$store.dispatch('GetPlanList', {}).then(res => { |
| | | this.getMapList() |
| | | }) |
| | | } |
| | | } |
| | | </script> |