Browse Source

服务器内部编号规则变更及用户编辑消息提示

lipengtao 6 years ago
parent
commit
5fea1be709

+ 3 - 3
src/views/baseInfoManage/serversConfig/index.vue

@ -49,7 +49,7 @@
49 49
          </el-col>
50 50
          <el-col :span="12">
51 51
            <el-form-item label="内部编号" prop="seq">
52
              <el-input placeholder="请输入内部编号" v-model="ruleForm2.seq" maxlength=10></el-input>
52
              <el-input placeholder="请输入内部编号" v-model="ruleForm2.seq" maxlength=20></el-input>
53 53
            </el-form-item>
54 54
          </el-col>
55 55
          <el-col :span="24" >
@ -94,7 +94,7 @@ export default {
94 94
      }, 300)
95 95
    }
96 96
    var seq = (rule, value, callback) => {
97
      const num = /^[0-9]*$/
97
      const num = /^[0-9a-zA-Z]*$/
98 98
      if (value === '') {
99 99
        callback(new Error('请输入内部编号'))
100 100
      } else {
@ -103,7 +103,7 @@ export default {
103 103
          return
104 104
        }
105 105
        if (!num.test(value)) {
106
          callback('请输入数字')
106
          callback('请输入数字或字母')
107 107
          return
108 108
        }
109 109
        if (this.edit) {

+ 1 - 1
src/views/peoplesManage/infoManage/editUser.vue

@ -206,7 +206,7 @@ export default {
206 206
            updateRegister(par).then(response => {
207 207
              if (response.success) {
208 208
                setTimeout(function() {
209
                  that.pop('已成功更新')
209
                  that.pop('已成功更新用户信息')
210 210
                }, 1000)
211 211
                this.resetForm('ruleForm2')
212 212
                this.$emit('chilF')