luyanan 6 年之前
父节点
当前提交
19648376d9
共有 2 个文件被更改,包括 7 次插入5 次删除
  1. 3 0
      src/main.js
  2. 4 5
      src/views/sysSetting/adminUser.vue

+ 3 - 0
src/main.js

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

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

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