lyn7568 6 years ago
parent
commit
cffbacb842
2 changed files with 9 additions and 6 deletions
  1. 1 0
      src/components/CityPicker/index.vue
  2. 8 6
      src/views/sysSetting/platUser/editUser.vue

+ 1 - 0
src/components/CityPicker/index.vue

@ -123,6 +123,7 @@ export default {
123 123
      const si = this.addrCode.substring(0, 4) + '00'
124 124
      if (this.citydata) {
125 125
        var p = this.citydata[s]
126
        this.cityArr = p.children
126 127
        this.sheng = p.value
127 128
        this.shi = p.children[si].value
128 129
      }

+ 8 - 6
src/views/sysSetting/platUser/editUser.vue

@ -53,7 +53,6 @@
53 53
54 54
<script>
55 55
  import { parseTime } from '@/utils'
56
  import queryBase from '@/utils/queryBase'
57 56
  import {
58 57
    requiredTip,
59 58
    limitNumTip,
@ -63,7 +62,8 @@
63 62
    existUser,
64 63
    addUser,
65 64
    updateUser,
66
    updatePermission
65
    updatePermission,
66
    queryUserOne
67 67
  } from '@/api/sysSetting'
68 68
69 69
  export default {
@ -179,13 +179,15 @@
179 179
        var that = this
180 180
        that.userId = id
181 181
        if (that.userId) {
182
          queryBase.getAdminUser(that.userId, function(sc, value) {
183
            if (sc) {
184
              const opeRow = value
185
              that.actived = opeRow.actived
182
          that.$http.get(queryUserOne, {
183
            id: that.userId
184
          }, function(res) {
185
            if (res.success) {
186
              const opeRow = res.data
186 187
              if (opeRow.createTime) {
187 188
                that.createTime = parseTime(opeRow.createTime)
188 189
              }
190
              that.actived = opeRow.actived
189 191
              that.oldAccount = opeRow.account
190 192
              that.userForm = {
191 193
                account: opeRow.account,