瀏覽代碼

报名列表

李志伟 3 年之前
父節點
當前提交
509afe7a83
共有 1 個檔案被更改,包括 6 行新增6 行删除
  1. 6
    6
      src/views/register/list.vue

+ 6
- 6
src/views/register/list.vue 查看文件

75
   mounted() {
75
   mounted() {
76
     this.onSearch()
76
     this.onSearch()
77
     getCityList(1).then((res) => {
77
     getCityList(1).then((res) => {
78
-      var list = res.data
78
+      var list = res
79
       list.map(item => {
79
       list.map(item => {
80
         this.options.push({ value: item.id, label: item.shortname, children: [] })
80
         this.options.push({ value: item.id, label: item.shortname, children: [] })
81
       })
81
       })
86
     changeExpand(val) {
86
     changeExpand(val) {
87
       if (val.length === 1) {
87
       if (val.length === 1) {
88
         getCityList(2, val[0]).then((res) => {
88
         getCityList(2, val[0]).then((res) => {
89
-          var list = res.data
89
+          var list = res
90
           // 当前市在数组中的位置
90
           // 当前市在数组中的位置
91
           var cityIndex = 0
91
           var cityIndex = 0
92
           this.options.map((item, index) => {
92
           this.options.map((item, index) => {
101
         })
101
         })
102
       } else {
102
       } else {
103
         getCityList(3, val[1]).then((res) => {
103
         getCityList(3, val[1]).then((res) => {
104
-          var list = res.data
104
+          var list = res
105
           // 当前市在数组中的位置
105
           // 当前市在数组中的位置
106
           var cityIndex = 0
106
           var cityIndex = 0
107
           this.options.map((item, index) => {
107
           this.options.map((item, index) => {
162
         pageNum: this.currentPage,
162
         pageNum: this.currentPage,
163
         pageSize: this.pageSize
163
         pageSize: this.pageSize
164
       }).then((res) => {
164
       }).then((res) => {
165
-        this.tableData = res.data.records
165
+        this.tableData = res.records
166
       })
166
       })
167
     },
167
     },
168
     onSearch() {
168
     onSearch() {
175
         pageNum: this.currentPage,
175
         pageNum: this.currentPage,
176
         pageSize: this.pageSize
176
         pageSize: this.pageSize
177
       }).then((res) => {
177
       }).then((res) => {
178
-        this.tableData = res.data.records
179
-        this.Total = res.data.total
178
+        this.tableData = res.records
179
+        this.Total = res.total
180
       })
180
       })
181
     },
181
     },
182
     onReset() {
182
     onReset() {