Browse Source

修正bug

lipengtao 6 years ago
parent
commit
7ea0b09f86

+ 2 - 5
src/views/baseInfoManage/sensorsConfig/index.vue

125
    var device = (rule, value, callback) => {
125
    var device = (rule, value, callback) => {
126
      const that = this
126
      const that = this
127
      setTimeout(function() {
127
      setTimeout(function() {
128
        if (value === '' || that.ruleForm2.deviceId === '') {
128
        if (that.ruleForm2.device === '' || that.ruleForm2.deviceId === '') {
129
          callback(new Error('请选择采集盒编号'))
129
          callback(new Error('请选择采集盒编号'))
130
        } else {
130
        } else {
131
          callback()
131
          callback()
392
      this.dialogTableVisible = true
392
      this.dialogTableVisible = true
393
    },
393
    },
394
    querySearchAsync(queryString, cb) {
394
    querySearchAsync(queryString, cb) {
395
      if (queryString === '') {
396
        cb([])
397
        return
398
      }
399
      this.ruleForm2.deviceId = ''
395
      this.ruleForm2.deviceId = ''
400
      clearTimeout(this.timeout)
396
      clearTimeout(this.timeout)
401
      this.timeout = setTimeout(() => {
397
      this.timeout = setTimeout(() => {
419
    },
415
    },
420
    handleSelect(item) {
416
    handleSelect(item) {
421
      this.ruleForm2.deviceId = item.id
417
      this.ruleForm2.deviceId = item.id
418
      this.ruleForm2.device = item.value
422
    }
419
    }
423
  }
420
  }
424
}
421
}

+ 2 - 6
src/views/baseInfoManage/serversConfig/index.vue

100
    var bridge = (rule, value, callback) => {
100
    var bridge = (rule, value, callback) => {
101
      const that = this
101
      const that = this
102
      setTimeout(function() {
102
      setTimeout(function() {
103
        if (value === '' || that.ruleForm2.bridgeId === '') {
103
        if (that.ruleForm2.bridge === '' || that.ruleForm2.bridgeId === '') {
104
          callback(new Error('请选择所属桥梁'))
104
          callback(new Error('请选择所属桥梁'))
105
        } else {
105
        } else {
106
          callback()
106
          callback()
112
        callback(new Error('请输入内部编号'))
112
        callback(new Error('请输入内部编号'))
113
      } else {
113
      } else {
114
        if (!this.ruleForm2.bridgeId) {
114
        if (!this.ruleForm2.bridgeId) {
115
          callback('请先选择服务器编号')
115
          callback('请先选择所属桥梁')
116
          return
116
          return
117
        }
117
        }
118
        if (this.edit) {
118
        if (this.edit) {
337
      this.dialogTableVisible = true
337
      this.dialogTableVisible = true
338
    },
338
    },
339
    querySearchAsync(queryString, cb) {
339
    querySearchAsync(queryString, cb) {
340
      if (queryString === '') {
341
        cb([])
342
        return
343
      }
344
      this.ruleForm2.bridgeId = ''
340
      this.ruleForm2.bridgeId = ''
345
      clearTimeout(this.timeout)
341
      clearTimeout(this.timeout)
346
      this.timeout = setTimeout(() => {
342
      this.timeout = setTimeout(() => {

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

277
  .el-col{
277
  .el-col{
278
    margin-bottom: 15px
278
    margin-bottom: 15px
279
  }
279
  }
280
  .el-form-item__label{
281
    padding: 0px
280
  .el-form--label-top .el-form-item__label {
281
    padding: 0
282
  }
282
  }
283
</style>
283
</style>