diff --git a/src/config/route.js b/src/config/route.js index f71c9a10..5ce39bc1 100644 --- a/src/config/route.js +++ b/src/config/route.js @@ -2090,39 +2090,39 @@ const routes = [ // }, // ] // }, - // //报表 - // { - // "name": "bi", - // "path": "/bi", - // "meta": { - // "title": "报表", - // "icon": "el-icon-trend-charts", - // "type": "menu", - // "perms": ["bi"] - // }, - // "children": [ - // { - // "name": "dataset", - // "path": "/bi/dataset", - // "meta": { - // "title": "数据集", - // "icon": "el-icon-grid", - // "perms": ["dataset"] - // }, - // "component": "bi/dataset" - // }, - // { - // "name": "graph", - // "path": "/bi/graph", - // "meta": { - // "title": "测试图", - // "icon": "el-icon-grid", - // "perms": ["dataset"] - // }, - // "component": "bi/graph" - // } - // ] - // }, + //报表 + { + "name": "bi", + "path": "/bi", + "meta": { + "title": "报表", + "icon": "el-icon-trend-charts", + "type": "menu", + "perms": ["bi"] + }, + "children": [ + { + "name": "dataset", + "path": "/bi/dataset", + "meta": { + "title": "数据集", + "icon": "el-icon-grid", + "perms": ["dataset"] + }, + "component": "bi/dataset" + }, + { + "name": "graph", + "path": "/bi/graph", + "meta": { + "title": "测试图", + "icon": "el-icon-grid", + "perms": ["dataset"] + }, + "component": "bi/graph" + } + ] + }, // //电石渣 // { // "name": "enm_slag", diff --git a/src/views/bi/dataset.vue b/src/views/bi/dataset.vue index 9c109bcf..0de39f4d 100644 --- a/src/views/bi/dataset.vue +++ b/src/views/bi/dataset.vue @@ -8,56 +8,27 @@
- + - + @@ -65,177 +36,211 @@ -
+ +
+ + + + + + + + + + + +
{{ header }}
{{ cell }}
+
+
+
+ +
-
+
+
- + + \ No newline at end of file + + //本地更新数据 + handleSaveSuccess(data, mode) { + if (mode == "add") { + this.$refs.table.refresh(); + } else if (mode == "edit") { + this.$refs.table.refresh(); + } + }, + handleQuery() { + this.$refs.table.queryData(this.query) + }, + resetQuery() { + this.query = {}; + }, + }, +}; + \ No newline at end of file diff --git a/src/views/bi/dataset_form.vue b/src/views/bi/dataset_form.vue index b2e52700..fe0d57e6 100644 --- a/src/views/bi/dataset_form.vue +++ b/src/views/bi/dataset_form.vue @@ -1,75 +1,44 @@