Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart-office-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart-office-platform
Commits
18664d50
Commit
18664d50
authored
Jun 13, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加设备上线下线通知
parent
2a88ff8e
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
35 additions
and
19 deletions
+35
-19
smart-office-manager-ui/admin/src/assets/mixins/table.js
smart-office-manager-ui/admin/src/assets/mixins/table.js
+3
-0
smart-office-manager-ui/admin/src/components/Pagination.vue
smart-office-manager-ui/admin/src/components/Pagination.vue
+7
-2
smart-office-manager-ui/admin/src/views/device/electron/list.vue
...ffice-manager-ui/admin/src/views/device/electron/list.vue
+1
-0
smart-office-manager-ui/admin/src/views/device/meet/list.vue
smart-office-manager-ui/admin/src/views/device/meet/list.vue
+1
-1
smart-office-manager/src/main/java/com/mortals/xhx/base/system/oper/service/impl/OperLogServiceImpl.java
...xhx/base/system/oper/service/impl/OperLogServiceImpl.java
+2
-1
smart-office-manager/src/main/java/com/mortals/xhx/common/code/OperTypeEnum.java
...c/main/java/com/mortals/xhx/common/code/OperTypeEnum.java
+1
-0
smart-office-manager/src/test/java/com/mortals/httpclient/device/DeviceController.http
.../java/com/mortals/httpclient/device/DeviceController.http
+2
-4
smart-office-manager/src/test/java/com/mortals/httpclient/metting/MettingRecordController.http
...m/mortals/httpclient/metting/MettingRecordController.http
+8
-11
smart-office-manager/src/test/java/com/mortals/httpclient/system.http
...-manager/src/test/java/com/mortals/httpclient/system.http
+10
-0
No files found.
smart-office-manager-ui/admin/src/assets/mixins/table.js
View file @
18664d50
...
@@ -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
();
}
}
...
...
smart-office-manager-ui/admin/src/components/Pagination.vue
View file @
18664d50
// 列表-分页
// 列表-分页
<
template
>
<
template
>
<div
class=
"pagination-wapper flex"
>
<div
class=
"pagination-wapper flex"
>
...
@@ -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
})
...
...
smart-office-manager-ui/admin/src/views/device/electron/list.vue
View file @
18664d50
...
@@ -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
:
{
...
...
smart-office-manager-ui/admin/src/views/device/meet/list.vue
View file @
18664d50
...
@@ -75,7 +75,7 @@
...
@@ -75,7 +75,7 @@
},
},
mixins
:
[
table
],
mixins
:
[
table
],
created
()
{
created
()
{
console
.
log
(
"
route
"
,
this
.
$route
)
console
.
log
(
"
route
111
"
,
this
.
$route
)
this
.
changePath
(
"
/device
"
)
this
.
changePath
(
"
/device
"
)
this
.
query
=
Object
.
assign
({},
this
.
query
,
{
productCode
:
"
hysdzmp
"
});
this
.
query
=
Object
.
assign
({},
this
.
query
,
{
productCode
:
"
hysdzmp
"
});
},
},
...
...
smart-office-manager/src/main/java/com/mortals/xhx/base/system/oper/service/impl/OperLogServiceImpl.java
View file @
18664d50
...
@@ -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
);
}
}
...
...
smart-office-manager/src/main/java/com/mortals/xhx/common/code/OperTypeEnum.java
View file @
18664d50
...
@@ -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
;
...
...
smart-office-manager/src/test/java/com/mortals/httpclient/device/DeviceController.http
View file @
18664d50
...
@@ -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
...
...
smart-office-manager/src/test/java/com/mortals/httpclient/metting/MettingRecordController.http
View file @
18664d50
...
@@ -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":"he54lk
1
",
"meetDate":"
16846848000
00",
"meetDate":"
2023-06-02 15:30:
00",
"meetTimeStart":"
16846848000
00",
"meetTimeStart":"
2023-06-02 15:30:
00",
"meetTimeEnd":"
16846848000
00",
"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
...
...
smart-office-manager/src/test/java/com/mortals/httpclient/system.http
View file @
18664d50
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment