lyn7568 6 years ago
parent
commit
cffbacb842

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

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

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

53
53
54
<script>
54
<script>
55
  import { parseTime } from '@/utils'
55
  import { parseTime } from '@/utils'
56
  import queryBase from '@/utils/queryBase'
57
  import {
56
  import {
58
    requiredTip,
57
    requiredTip,
59
    limitNumTip,
58
    limitNumTip,
63
    existUser,
62
    existUser,
64
    addUser,
63
    addUser,
65
    updateUser,
64
    updateUser,
66
    updatePermission
65
    updatePermission,
66
    queryUserOne
67
  } from '@/api/sysSetting'
67
  } from '@/api/sysSetting'
68
68
69
  export default {
69
  export default {
179
        var that = this
179
        var that = this
180
        that.userId = id
180
        that.userId = id
181
        if (that.userId) {
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
              if (opeRow.createTime) {
187
              if (opeRow.createTime) {
187
                that.createTime = parseTime(opeRow.createTime)
188
                that.createTime = parseTime(opeRow.createTime)
188
              }
189
              }
190
              that.actived = opeRow.actived
189
              that.oldAccount = opeRow.account
191
              that.oldAccount = opeRow.account
190
              that.userForm = {
192
              that.userForm = {
191
                account: opeRow.account,
193
                account: opeRow.account,