luobisheng
2022-11-25 9dd958f0ee99cdd36356cc4f253ec3216bdce1c6
src/views/operate/fivepack/threepack/components/updateUser/index.vue
@@ -67,7 +67,6 @@
        };
        const validateStoreType = (rule, value, callback) => {
          debugger;
          if (value) {
            callback();
          } else {
@@ -99,23 +98,25 @@
        }
    },
    async created() {
      this.$set(this, 'store', this.storeInfo);
      const result = await getVideoPoint({ current: 1, size: 1 });
      this.relationVideoList = result.records;
      if (this.storeInfo && this.isStorePage) {
        this.store.relationVideo = this.store.videoPoint.name;
      }
      if (!this.isView()) {
      if (this.storeInfo) {
        this.$set(this, 'store', this.storeInfo);
        const result = await getVideoPoint({ current: 1, size: 1 });
        this.relationVideoList = result.records;
        if (this.storeInfo && this.isStorePage) {
          this.store.relationVideo = this.store.videoPoint.name;
        }
        if (!this.isView()) {
          await this.getShopTypeList();
        }
      }
    },
    methods: {
      onSubmit() {
        this.$refs.store.validate(valid => {
          if (valid) {
            this.store.type = this.store.type[1];
            if (this.isCreated()) {
              this.store.type = this.store.type[1];
              addStoreInfo(this.store)
                  .then(() => {
                    this.$message({ type: 'success', message: '操作成功' });