-
+
@@ -14,16 +19,15 @@
>
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
@@ -37,6 +41,8 @@ import CRUD, { crud, header, presenter } from '@crud/crud'
import crudOperation from '@crud/CRUD.operation'
import pagination from '@crud/Pagination'
import { delAll } from '@/api/acs/lucene/log'
+import crudDevice from '@/api/acs/device/device'
+import crudLucene from './api/lucene'
export default {
name: 'LuceneLog',
@@ -44,7 +50,7 @@ export default {
mixins: [presenter(), header(), crud()],
cruds: function() {
return CRUD({
- title: '系统参数', url: 'api/lucene/getAll', idField: 'id', sort: 'id,desc',
+ title: '设备日志', url: 'api/lucene/getAll', idField: 'id', sort: 'id,desc',
queryOnPresenterCreated: true,
optShow: {
add: false,
@@ -58,7 +64,8 @@ export default {
page: 0
},
query: {
- createTime: [new Date(new Date().setTime(new Date().getTime() - 3600 * 1000)), new Date(new Date().setTime(new Date().getTime() + 3600 * 1000))]
+ createTime: [new Date(new Date().setTime(new Date().getTime() - 3600 * 1000)), new Date(new Date().setTime(new Date().getTime() + 3600 * 1000))],
+ logType: '设备日志'
}
})
},
@@ -70,17 +77,38 @@ export default {
edit: ['admin', 'param:edit'],
del: ['admin', 'param:del']
},
-
- rules: {}
+ deviceList: [],
+ deviceLogTypes: [],
+ logTypes: [],
+ rules: {},
+ logType: ''
}
},
created() {
+ this.getLogTypes()
+ this.getDeviceList()
+ this.getDeviceLogTypes()
},
methods: {
// 钩子:在获取表格数据之前执行,false 则代表不获取数据
[CRUD.HOOK.beforeRefresh]() {
return true
},
+ getLogTypes() {
+ crudLucene.getLogTypes().then(res => {
+ this.logTypes = res
+ })
+ },
+ getDeviceLogTypes() {
+ crudLucene.getDeviceLogType().then(res => {
+ this.deviceLogTypes = res
+ })
+ },
+ getDeviceList() {
+ crudDevice.selectDeviceList().then(res => {
+ this.deviceList = res
+ })
+ },
confirmDelAll() {
this.$confirm(`确认清空所有操作日志吗?`, '提示', {
confirmButtonText: '确定',
@@ -99,6 +127,11 @@ export default {
})
}).catch(() => {
})
+ },
+ performSearch(value) {
+ console.log('Search with:' + value)
+ this.logType = value
+ this.crud.toQuery()
}
}
}
diff --git a/acs/nladmin-ui/src/views/monitor/lucene/search.vue b/acs/nladmin-ui/src/views/monitor/lucene/search.vue
index 4418988..aa64760 100644
--- a/acs/nladmin-ui/src/views/monitor/lucene/search.vue
+++ b/acs/nladmin-ui/src/views/monitor/lucene/search.vue
@@ -1,113 +1,86 @@
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
-
-