123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <template>
- <view>
- <uni-mall-list :dataList="dataList" :defaultHeadList="defaultHeadList" @change="handleChange"
- type="preview"></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(this.$store.getters.organization.id, this.$store.getters.project.id).then(res => {
- if (res.code === 200) {
- this.dataList = res.data;
- }
- console.log(res);
- })
- },
- handleChange(item) {
- if (item.type === 'user') {
- }
- }
- }
- };
- </script>
- <style></style>
|