| | |
| | | onSubmit() { |
| | | this.$refs.store.validate((valid) => { |
| | | if (valid) { |
| | | debugger; |
| | | this.store.type = this.store.type[1]; |
| | | if (this.isCreated()) { |
| | | addStoreInfo(this.store) |
| | |
| | | } |
| | | }); |
| | | }, |
| | | |
| | | async created() { |
| | | if (this.storeInfo) { |
| | | this.$set(this, 'store', this.storeInfo); |
| | | const result = await getVideoPoint({ current: 1, size: 100 }); |
| | | this.relationVideoList = result.records; |
| | | if (this.storeInfo && this.isStorePage) { |
| | | this.store.relationVideo = this.store.videoPoint.name; |
| | | } |
| | | if (!this.isView()) { |
| | | await this.getShopTypeList(); |
| | | } |
| | | } |
| | | }, |
| | | |
| | | isView() { |
| | | return this.dialogType === "view"; |