+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 筛选
+
+
+
+
+ 新增
+
+
+
+
-
+
- {{ scope.$index }}
+ {{ scope.row.userId }}
-
+
- {{ scope.row.title }}
+ {{ scope.row.username }}
-
+
- {{ scope.row.author }}
+ {{ scope.row.classId }}
-
+
- {{ scope.row.pageviews }}
+ {{ scope.row.gender }}
-
+
- {{ scope.row.status }}
+ {{ scope.row.birthday }}
-
+
-
- {{ scope.row.display_time }}
+ {{ scope.row.phone }}
+
+
+
+
+ {{ scope.row.college }}
@@ -60,7 +89,11 @@ export default {
data() {
return {
list: null,
- listLoading: true
+ listLoading: true,
+ filter: {
+ uid: '',
+ classId: ''
+ }
}
},
created() {
@@ -70,10 +103,38 @@ export default {
fetchData() {
this.listLoading = true
getList().then(response => {
- this.list = response.data.items
+ this.list = response.result
+ this.listLoading = false
+ }).catch(() => {
+ this.listLoading = false
+ })
+ },
+ handleAdd() {
+ this.$router.push('/form/index')
+ },
+ onFilter() {
+ this.listLoading = true
+ getList(this.filter).then(response => {
+ this.list = response.result
+ this.listLoading = false
+ }).catch(() => {
this.listLoading = false
})
}
}
}
+
+