大宝管理后台代码
dcc
2024-07-10 bfd4f0e5ac1c8da2b997c2fee7738e9f4bb976da
src/views/vip/components/VIPScramble-hold.vue
@@ -374,11 +374,9 @@
      })
    },
    geteditStock(val) {
      console.log(val);
      this.currentdetail = val
      this.Lockvisibledialog = true
      this.fields.forEach((v) => this.addUserform.getFieldDecorator(v))
      console.log(this.fields);
      this.addUserform.setFieldsValue(pick(val, this.fields))
    },
    getLockopen(val) {
@@ -422,7 +420,7 @@
        console.log(values);
        if (!errors) {
          if (this.currentdetail != '') {
            this.Lockvisibledialog = true
            this.Lockvisibleloading = true
            values.id = this.currentdetail.id
            // values.subscriptionTime = this.subscriptionTime
@@ -437,10 +435,10 @@
              } else {
                this.$message.error(res.msg)
              }
              this.Lockvisibledialog = false
              this.Lockvisibleloading = false
            })
          } else {
            this.addUserDialogloading = true
            this.Lockvisibleloading = true
            sitevipAdd(values).then((res) => {
              if (res.status == 0) {
                this.Lockvisibledialog = false
@@ -450,7 +448,7 @@
              } else {
                this.$message.error(res.msg)
              }
              this.addUserDialogloading = false
              this.Lockvisibleloading = false
            })
          }
        }
@@ -462,6 +460,7 @@
      form.validateFields((errors, values) => {
        if (!errors) {
          values.id = this.details.id
          this.keyvisibleloading = true
          setupdate(values).then((res) => {
              if (res.status == 0) {
                this.visibledialog = false
@@ -471,7 +470,7 @@
              } else {
                this.$message.error(res.msg)
              }
              this.visibledialog = false
              this.keyvisibleloading = false
            })
        }
      })