luyanan %!s(int64=6) %!d(string=hace) años
padre
commit
19648376d9
Se han modificado 2 ficheros con 7 adiciones y 5 borrados
  1. 3 0
      src/main.js
  2. 4 5
      src/views/sysSetting/adminUser.vue

+ 3 - 0
src/main.js

21
import '../static/ueditor/lang/zh-cn/zh-cn.js'
21
import '../static/ueditor/lang/zh-cn/zh-cn.js'
22
import '../static/ueditor/ueditor.parse.js'
22
import '../static/ueditor/ueditor.parse.js'
23
23
24
import request from './utils/request'
25
Vue.prototype.$http = request
26
24
Vue.use(ElementUI)
27
Vue.use(ElementUI)
25
28
26
Vue.config.productionTip = false
29
Vue.config.productionTip = false

+ 4 - 5
src/views/sysSetting/adminUser.vue

76
</template>
76
</template>
77
77
78
<script>
78
<script>
79
  import request from '@/utils/request'
80
  import { parseTime } from '@/utils'
79
  import { parseTime } from '@/utils'
81
  import comTable from '@/utils/comTable'
80
  import comTable from '@/utils/comTable'
82
  import {
81
  import {
152
    methods: {
151
    methods: {
153
      pageQueryUser() {
152
      pageQueryUser() {
154
        var that = this
153
        var that = this
155
        request.get(pageQueryUser, {
154
        this.$http.get(pageQueryUser, {
156
          active: that.selectMode,
155
          active: that.selectMode,
157
          pageSize: that.pageSize,
156
          pageSize: that.pageSize,
158
          pageNo: that.pageNo
157
          pageNo: that.pageNo
184
      },
183
      },
185
      handleEdit(row) {
184
      handleEdit(row) {
186
        var that = this
185
        var that = this
187
        request.get(resetPw, {
186
        this.$http.get(resetPw, {
188
          id: row.id
187
          id: row.id
189
        }, function(res) {
188
        }, function(res) {
190
          that.$message({
189
          that.$message({
201
          type: 'warning',
200
          type: 'warning',
202
          center: true
201
          center: true
203
        }).then(() => {
202
        }).then(() => {
204
          request.get(resetPw, {
203
          this.$http.get(resetPw, {
205
            id: row.id
204
            id: row.id
206
          }, function(res) {
205
          }, function(res) {
207
            that.$message({
206
            that.$message({
213
      },
212
      },
214
      handleRight(row) {
213
      handleRight(row) {
215
        // var that = this
214
        // var that = this
216
        // request.get(updatePermission + row.id, {
215
        // this.$http.get(updatePermission + row.id, {
217
        // }, function(res) {
216
        // }, function(res) {
218
        //   that.$message({
217
        //   that.$message({
219
        //     type: 'success',
218
        //     type: 'success',