大宝管理后台代码
jhzh
2024-04-07 8477322adb238a81c46ffdc1fbf83628713aa389
src/views/userlist/components/audituserdialog.vue
@@ -15,18 +15,18 @@
              currentDetails.isActive == 0 || currentDetails.isActive == 1
                ? 'blue'
                : currentDetails.isActive == 2
                ? 'green'
                : 'red'
                  ? 'green'
                  : 'red'
            "
          >
            {{
              currentDetails.isActive == 0
                ? '待认证'
                : currentDetails.isActive == 1
                ? '待审核'
                : currentDetails.isActive == 2
                ? '认证成功'
                : '驳回'
                  ? '待审核'
                  : currentDetails.isActive == 2
                    ? '认证成功'
                    : '驳回'
            }}
          </a-tag>
        </a-descriptions-item>
@@ -96,23 +96,23 @@
  components: {},
  props: {
    currentDetails: {
      type: Object,
      type: Object
    },
    getinit: {
      type: Function,
      default: function () {},
    },
      default: function () {}
    }
  },
  data() {
  data () {
    return {
      userDialog: false,
      bohuidialog: false,
      bohuidialogloading: false,
      bohuiform: this.$form.createForm(this),
      bohuiform: this.$form.createForm(this)
    }
  },
  methods: {
    Okbohuidialog() {
    Okbohuidialog () {
      const form = this.$refs.bohuiform.form
      form.validateFields((errors, values) => {
        if (!errors) {
@@ -133,15 +133,15 @@
        }
      })
    },
    Cancelbohuidialog() {
    Cancelbohuidialog () {
      this.bohuidialog = false
      const form = this.$refs.bohuiform.form
      form.resetFields()
    },
    gettongguo(val) {
    gettongguo (val) {
      var data = {
        userId: this.currentDetails.id,
        state: val,
        state: val
      }
      userauthByAdmin(data).then((res) => {
        if (res.status == 0) {
@@ -152,7 +152,7 @@
        }
        this.userDialog = false
      })
    },
  },
    }
  }
}
</script>