新版交易所前段管理后台
1
PC-20250623MANY\Administrator
2025-10-21 7bbf9b23bcd3f2bbf54aa62476cd2c4e7ea88aaa
src/views/modules/user/mange-add-or-update.vue
@@ -9,6 +9,9 @@
      <el-form-item label="用户名" label-width="100px" prop="username">
        <el-input v-model="dataForm.username" :disabled="id?true:false" placeholder="登录帐号"></el-input>
      </el-form-item>
     <el-form-item label="信用分" v-if="id" label-width="100px" prop="creditScore">
       <el-input v-model="dataForm.creditScore" placeholder="信用分"></el-input>
     </el-form-item>
      <el-form-item v-if="!id" label="登录密码" label-width="100px" prop="password">
        <el-input v-model="dataForm.password" type="password" placeholder="密码"></el-input>
      </el-form-item>
@@ -96,6 +99,7 @@
          parentsUseCode:'',
          remarks:'',
          username: '',
        creditScore:'',
          password: '',
          email: '',
          mobile: '',
@@ -158,6 +162,7 @@
        this.id = id || ''
        if(row){
          this.dataForm.username =row.userName
        this.dataForm.creditScore = row.creditScore
          this.options.value1 = row.loginAuthority
          this.optionsTwo.value2 = row.enabled
          this.optionsThree.value3 = row.withdrawAuthority
@@ -176,6 +181,7 @@
          parentsUseCode:'',
          remarks:'',
          username: '',
        creditScore:'',
          password: '',
          email: '',
          mobile: '',
@@ -199,7 +205,9 @@
              url: this.$http.adornUrl(`/userData/update`), //修改
              method: 'post',
              data: this.$http.adornData({
                'enabled': this.optionsTwo.value2,
                // 'enabled': this.dataForm.value2,
            'enabled': this.optionsTwo.value2,
            'creditScore':this.dataForm.creditScore,
                'loginAuthority': this.options.value1,
                'withdrawAuthority': this.optionsThree.value3,
                'userId': this.roleList.userId,
@@ -231,6 +239,7 @@
              method: 'post',
              data: this.$http.adornData({
                'username': this.dataForm.username,
            'creditScore':this.dataForm.creditScore,
                'enabled': this.optionsTwo.value2,
                'loginAuthority': this.options.value1,
                'parentsUseCode': this.dataForm.parentsUseCode,