Commit 18664d50 authored by 赵啸非's avatar 赵啸非

添加设备上线下线通知

parent 2a88ff8e
...@@ -14,6 +14,9 @@ export default { ...@@ -14,6 +14,9 @@ export default {
}, },
watch: { watch: {
'$route'(route) { '$route'(route) {
if(route.path=='/device/electron/list'||route.path=='/device/meet/list'){
this.changePath("device")
}
this.query = Object.assign({}, this.query, route.query); this.query = Object.assign({}, this.query, route.query);
this.getData(); this.getData();
} }
......
...@@ -28,7 +28,6 @@ export default { ...@@ -28,7 +28,6 @@ export default {
}, },
watch: { watch: {
'$route'(route) { '$route'(route) {
this.initPage(route.query); this.initPage(route.query);
} }
}, },
...@@ -42,7 +41,13 @@ export default { ...@@ -42,7 +41,13 @@ export default {
this.currSize = parseInt(query['size']) || this.prePageResult; this.currSize = parseInt(query['size']) || this.prePageResult;
}, },
changeHash(key, val) { changeHash(key, val) {
console.log("$route:",this.$route)
let {path, query} = this.$route; let {path, query} = this.$route;
console.log("path",path)
// if(path=="/device/meet/list"||path=="/device/electron/list"){
// path="/device/list"
// }
this.$router.push({ this.$router.push({
path: path, path: path,
query: Object.assign({}, query, {[`${key}`]: val}) query: Object.assign({}, query, {[`${key}`]: val})
......
...@@ -77,6 +77,7 @@ ...@@ -77,6 +77,7 @@
created() { created() {
console.log("route",this.$route) console.log("route",this.$route)
this.changePath("/device") this.changePath("/device")
console.log("this.pageInfo.list000",this.pageInfo.list)
this.query = Object.assign({}, this.query, {productCode:"dzmp"}); this.query = Object.assign({}, this.query, {productCode:"dzmp"});
}, },
methods: { methods: {
......
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
}, },
mixins: [table], mixins: [table],
created() { created() {
console.log("route",this.$route) console.log("route111",this.$route)
this.changePath("/device") this.changePath("/device")
this.query = Object.assign({}, this.query, {productCode:"hysdzmp"}); this.query = Object.assign({}, this.query, {productCode:"hysdzmp"});
}, },
......
...@@ -89,13 +89,14 @@ public class OperLogServiceImpl extends AbstractCRUDServiceImpl<OperLogDao,OperL ...@@ -89,13 +89,14 @@ public class OperLogServiceImpl extends AbstractCRUDServiceImpl<OperLogDao,OperL
break; break;
case DELETE: case DELETE:
formatterLogContent(operLogEntity, content, id, operType); formatterLogContent(operLogEntity, content, id, operType);
case SEARCH:
formatterLogContent(operLogEntity, content, id, operType);
break; break;
default: default:
operLogEntity.setOperType(OperTypeEnum.UPDATE.getValue()); operLogEntity.setOperType(OperTypeEnum.UPDATE.getValue());
operLogEntity.setContent(StringUtils.isBlank(id) ? content : content + "id:" + id); operLogEntity.setContent(StringUtils.isBlank(id) ? content : content + "id:" + id);
break; break;
} }
super.save(operLogEntity, null); super.save(operLogEntity, null);
} }
......
...@@ -11,6 +11,7 @@ public enum OperTypeEnum { ...@@ -11,6 +11,7 @@ public enum OperTypeEnum {
SAVE(0,"添加"), SAVE(0,"添加"),
UPDATE(1,"更新"), UPDATE(1,"更新"),
DELETE(2,"删除"), DELETE(2,"删除"),
SEARCH(3,"查询"),
OTHER(-1,"其它"); OTHER(-1,"其它");
private int value; private int value;
......
...@@ -64,13 +64,11 @@ client.global.set("Device_id", JSON.parse(response.body).data.id); ...@@ -64,13 +64,11 @@ client.global.set("Device_id", JSON.parse(response.body).data.id);
%} %}
###设备管理查看 ###设备管理查看
GET {{baseUrl}}/device/info?id={{Device_id}} GET {{baseUrl}}/device/info?id=17
Authorization: {{authToken}}
Accept: application/json Accept: application/json
###设备管理编辑 ###设备管理编辑
GET {{baseUrl}}/device/edit?id={{Device_id}} GET {{baseUrl}}/device/edit?id=17
Authorization: {{authToken}}
Accept: application/json Accept: application/json
......
...@@ -19,8 +19,7 @@ Content-Type: application/json ...@@ -19,8 +19,7 @@ Content-Type: application/json
{ {
"page":1, "page":1,
"size":-1, "size":-1
"deviceCode":"11-22-33-44"
} }
...@@ -30,16 +29,16 @@ Authorization: {{authToken}} ...@@ -30,16 +29,16 @@ Authorization: {{authToken}}
Content-Type: application/json Content-Type: application/json
{ {
"meetName":"he54lk", "meetName":"he54lk1",
"meetDate":"1684684800000", "meetDate":"2023-06-02 15:30:00",
"meetTimeStart":"1684684800000", "meetTimeStart":"2023-06-02 15:30:00",
"meetTimeEnd":"1684684800000", "meetTimeEnd":"2023-06-02 15:30:00",
"roomId":101, "roomId":101,
"roomName":"7o0iut", "roomName":"7o0iut",
"meetDeptName":"k6be71", "meetDeptName":"k6be71",
"meetStatus":0, "meetStatus":0,
"finishMethod":0, "finishMethod":0,
"remark":"lk9hlk", "remark":"lk9hlk"
} }
> {% > {%
...@@ -47,9 +46,7 @@ client.global.set("MettingRecord_id", JSON.parse(response.body).data.id); ...@@ -47,9 +46,7 @@ client.global.set("MettingRecord_id", JSON.parse(response.body).data.id);
%} %}
###会议记录查看 ###会议记录查看
GET {{baseUrl}}/metting/record/info?id={{MettingRecord_id}} GET {{baseUrl}}/metting/record/info?id=12
Authorization: {{authToken}}
Accept: application/json
###会议记录编辑 ###会议记录编辑
GET {{baseUrl}}/metting/record/edit?id={{MettingRecord_id}} GET {{baseUrl}}/metting/record/edit?id={{MettingRecord_id}}
...@@ -58,7 +55,7 @@ Accept: application/json ...@@ -58,7 +55,7 @@ Accept: application/json
###会议记录删除 ###会议记录删除
GET {{baseUrl}}/metting/record/delete?id={{MettingRecord_id}} GET {{baseUrl}}/metting/record/delete?id=12
Authorization: {{authToken}} Authorization: {{authToken}}
Accept: application/json Accept: application/json
......
POST http://192.168.0.252:18001/sm/file/commonupload
Content-Type: multipart/form-data; boundary=WebAppBoundary
--WebAppBoundary
Content-Disposition: form-data; name="file"; filename="file.txt"
< F://user.xlsx
--WebAppBoundary--
###
###登录 ###登录
POST {{baseUrl}}/login/login POST {{baseUrl}}/login/login
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment