|
@ -75,7 +75,7 @@ |
|
|
</template> |
|
|
</template> |
|
|
<script> |
|
|
<script> |
|
|
import AddModel from './components/AddModel.vue'; |
|
|
import AddModel from './components/AddModel.vue'; |
|
|
|
|
|
import { searchPlaceFront } from 'config/api'; |
|
|
export default { |
|
|
export default { |
|
|
name: 'Space', |
|
|
name: 'Space', |
|
|
components: { AddModel }, |
|
|
components: { AddModel }, |
|
@ -114,6 +114,9 @@ export default { |
|
|
colorList: ['rgba(19, 172, 196, 0.3)', 'rgba(19,96,196,0.3)', 'rgba(162,19,196,0.3)', 'rgba(19,196,72,0.3)'], |
|
|
colorList: ['rgba(19, 172, 196, 0.3)', 'rgba(19,96,196,0.3)', 'rgba(162,19,196,0.3)', 'rgba(19,196,72,0.3)'], |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
|
|
|
created() { |
|
|
|
|
|
this.getData(); |
|
|
|
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
jumpUrl(index) { |
|
|
jumpUrl(index) { |
|
|
if (index === 0) { |
|
|
if (index === 0) { |
|
@ -122,6 +125,27 @@ export default { |
|
|
this.$router.push('/Hatch/Fictitious'); |
|
|
this.$router.push('/Hatch/Fictitious'); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
async getData() { |
|
|
|
|
|
try { |
|
|
|
|
|
const params = { |
|
|
|
|
|
param: { |
|
|
|
|
|
placeType: 2, |
|
|
|
|
|
pageNum: 1, |
|
|
|
|
|
pageSize: 10, |
|
|
|
|
|
}, |
|
|
|
|
|
}; |
|
|
|
|
|
const res = await searchPlaceFront(params); |
|
|
|
|
|
const { data, msg, code } = res.data; |
|
|
|
|
|
if (code === 200) { |
|
|
|
|
|
console.log(data) |
|
|
|
|
|
// this.lists = data.list; |
|
|
|
|
|
// this.total = parseInt(data.total); |
|
|
|
|
|
} |
|
|
|
|
|
} catch (error) { |
|
|
|
|
|
console.log(error); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
}; |
|
|
}; |
|
|
</script> |
|
|
</script> |
|
|