diff --git a/src/views/busAdmin/caseType/listCaseType.vue b/src/views/busAdmin/caseType/listCaseType.vue
index 4dd8fa7..4639c1e 100644
--- a/src/views/busAdmin/caseType/listCaseType.vue
+++ b/src/views/busAdmin/caseType/listCaseType.vue
@@ -2,7 +2,7 @@
-
+
事部件管理
@@ -26,36 +26,23 @@
-
-
-
-
- 删除
- 添加
-
-
-
-
-
-
-
-
-
-
- 搜索
-
-
-
- 条件过滤
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+ 删除
+ 添加
+
+
-
+
+
@@ -63,25 +50,15 @@
{{ caseTypeMap[scope.row.typeId] }}
-
+
- 编辑
-
+ 详情
+ 编辑
+
-
-
-
+
+
@@ -169,9 +146,6 @@
// this.fetchCaseTypeTree()
},
methods: {
- indexMethod(index) {
- return this.listQuery.limit * (this.listQuery.offset - 1) + index + 1
- },
initCaseTypeTree() {
this.treeLoading = true
getCaseTypeDict().then(response => {
@@ -242,14 +216,14 @@
search() {
this.fetchData(false)
},
- // 改变页容量
- handleSizeChange(val) {
- this.listQuery.limit = val
- this.fetchData()
- },
- // 改变当前页
- handleCurrentChange(val) {
- this.listQuery.offset = val
+ // 页数发生变化后的操作,可能是页码变化,可能是每页容量变化,此函数必写
+ changePage(val) {
+ if (val && val.size) {
+ this.listQuery.limit = val.size
+ }
+ if (val && val.page) {
+ this.listQuery.offset = val.page
+ }
this.fetchData()
},
add() {
@@ -330,43 +304,4 @@