<template>
	<view>
		<uni-mall-list :dataList="dataList" :defaultHeadList="defaultHeadList" @change="handleChange"></uni-mall-list>
	</view>
</template>

<script>
	import {
		getPartList
	} from '@/request/api/organization.js'
	import uniMallList from '@/components/uni-mall-list/uni-mall-list.vue';
	export default {
		components: {
			uniMallList
		},
		data() {
			return {
				defaultHeadList: {},
				dataList: []
			};
		},
		onLoad() {
			this.defaultHeadList = {
				name: this.$store.getters.organization.name,
				id: new Date().getTime()
			}
			this.init();
		},
		methods: {
			init() {
				getPartList(38, 9).then(res => {
					if (res.code === 200) {
						this.dataList = res.data;
					}
					console.log(res);
				})
			},
			handleChange(item) {
				if (item.type === 'user') {

				}
			}
		}
	};
</script>

<style></style>