diff --git a/public/data/map/0000/mapConfig.conf b/public/data/map/0000/mapConfig.txt similarity index 100% rename from public/data/map/0000/mapConfig.conf rename to public/data/map/0000/mapConfig.txt diff --git a/src/api/model/am.js b/src/api/model/am.js index a035d2db..11139fc1 100644 --- a/src/api/model/am.js +++ b/src/api/model/am.js @@ -61,6 +61,24 @@ export default { } } }, + video: { + list: { + name: "获取视频设备列表", + req: async function(){ + return await http.post( + `${config.API_URL}/third/tdevice/vchannel/`, + ); + } + }, + item:{ + name: "获取视频", + req: async function(data){ + return await http.post( + `${config.API_URL}/third/dahua/`,data + ); + } + }, + }, diff --git a/src/components/scTable/index.vue b/src/components/scTable/index.vue index 2b59c252..6fd54772 100644 --- a/src/components/scTable/index.vue +++ b/src/components/scTable/index.vue @@ -264,7 +264,6 @@ export default { }, //获取数据 async getData() { - this.loading = true; var reqData = { [config.request.page]: this.currentPage, @@ -282,18 +281,15 @@ export default { try { var res = await this.apiObj.req(reqData); if (this.hidePagination) { - if (res.length == 0) { this.emptyText = "暂无数据"; } if(this.$route.path==='/sys/dept'||this.$route.path==='/sys/perm'){ this.tableData = this.redata(res); - console.log(this.tableData) }else{ this.tableData = res || []; } - // this.tableData = res; this.loading = false; this.$refs.scTable.setScrollTop(0); this.$emit("dataChange", res, this.tableData); @@ -312,11 +308,10 @@ export default { if (this.hidePagination) { dataList = response.data || []; } else { - dataList = response.rows || []; + dataList = response.rows?response.rows:response.data.pageData?response.data.pageData:[]; } if(this.$route.path==='/sys/dept'||this.$route.path==='/ops/menu'){ this.tableData = this.redata(dataList); - console.log(this.tableData) }else{ this.tableData = dataList || []; @@ -325,8 +320,6 @@ export default { this.summary = response.summary || {}; this.loading = false; this.$refs.scTable.setScrollTop(0); - - this.$emit("dataChange", res, this.tableData); } catch (error) { this.loading = false; @@ -345,7 +338,6 @@ export default { let obj = posts.reduce((res, v) => (res[v.id] = v , res), {});//Object let arr = []; for (let item of posts) { - //debugger; if (item.parentId == null) { arr.push(item); continue @@ -354,7 +346,6 @@ export default { parent.children = parent.children ? parent.children : []; parent.children.push(item); } - console.log(arr); return arr; }, diff --git a/src/config/route.js b/src/config/route.js index 3574d6a3..12758a7a 100644 --- a/src/config/route.js +++ b/src/config/route.js @@ -279,6 +279,15 @@ const routes = [ "icon": "el-icon-menu", }, "component": "am/em1" + }, + { + "name": "monitor", + "path": "/am/monitor", + "meta": { + "title": "视频通道", + "icon": "el-icon-menu", + }, + "component": "am/monitor" }, ] }, diff --git a/src/views/am/area.vue b/src/views/am/area.vue index 0f01ca0a..8794fbd6 100644 --- a/src/views/am/area.vue +++ b/src/views/am/area.vue @@ -46,7 +46,7 @@ - +