From 92a0e18abf0298970a716f2d6882b322eeb8b2b9 Mon Sep 17 00:00:00 2001 From: zhl Date: Sat, 8 May 2021 16:28:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=96=B0=E5=BB=BA=E6=B4=BB?= =?UTF-8?q?=E5=8A=A8=E6=97=B6,=20=E6=B2=A1=E6=9C=89=E5=B0=86=E5=BA=97?= =?UTF-8?q?=E9=93=BA=E6=89=80=E9=80=89=E5=88=86=E7=B1=BB=E5=B8=A6=E8=BF=87?= =?UTF-8?q?=E6=9D=A5=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/activity/edit.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/views/activity/edit.vue b/src/views/activity/edit.vue index 0fb64a6..223106e 100644 --- a/src/views/activity/edit.vue +++ b/src/views/activity/edit.vue @@ -368,7 +368,7 @@ import Sticky from '@/components/Sticky/index.vue' import UploadImage from '@/components/UploadImage/index.vue' import RegionPicker from '@/components/RegionPicker/index.vue' import Tinymce from '@/components/Tinymce/index.vue' -import { getShops } from '@/api/shop' +import { getMyShop, getShops } from '@/api/shop' import { defaultActivityData, defaultRewardData, @@ -490,6 +490,7 @@ export default class extends Vue { await this.getRemoteDeptList() } else { this.postForm.shop = UserModule.department + await this.fetchMyShop() } this.tempTagView = Object.assign({}, this.$route) @@ -593,6 +594,13 @@ export default class extends Vue { this.allDepts = data.records } + private async fetchMyShop() { + const { data } = await getMyShop() + this.typeSelected = data.qtypes + console.log(this.typeSelected) + this.$refs.typeTree.setCheckedKeys(this.typeSelected) + } + private dataChange(_: any) { console.log(this.selectDate) }