Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sample-form-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
赵啸非
sample-form-platform
Commits
84b063f6
Commit
84b063f6
authored
Mar 28, 2023
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pref;修改获取事项列表接口
parent
8a675921
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
7 deletions
+24
-7
sample-form-client-ui/admin/src/App.vue
sample-form-client-ui/admin/src/App.vue
+1
-0
sample-form-client-ui/admin/src/api/index.js
sample-form-client-ui/admin/src/api/index.js
+21
-5
sample-form-client-ui/admin/src/pages/layouts/Layouts.vue
sample-form-client-ui/admin/src/pages/layouts/Layouts.vue
+2
-2
No files found.
sample-form-client-ui/admin/src/App.vue
View file @
84b063f6
...
...
@@ -60,6 +60,7 @@ export default {
homeUrl
:
"
http://192.168.0.24:8080/#/
"
,
serverUrl
:
"
http://192.168.0.98:11078/
"
,
},
devicenum
:
"
B8-13-32-86-9F-04
"
,
};
this
.
WebSocketMq
(
obj
);
}
...
...
sample-form-client-ui/admin/src/api/index.js
View file @
84b063f6
...
...
@@ -19,29 +19,45 @@ export const getHomeInfo = (data) => {
export
const
getdeptList
=
(
data
)
=>
{
let
baseUrl
=
local
.
getLocal
(
"
serverUrl
"
);
let
siteId
=
local
.
getLocal
(
"
siteId
"
);
let
device
num
=
local
.
getLocal
(
"
devicenum
"
);
let
device
Code
=
local
.
getLocal
(
"
devicenum
"
);
return
request
({
url
:
`
${
baseUrl
}
sampleform/home/depts`
,
method
:
"
post
"
,
data
:
{
siteId
,
device
num
,
device
Code
,
...
data
,
},
});
};
// 查询事项列表
// export const getWriteMatterList = (data) => {
// let baseUrl = local.getLocal("serverUrl");
// let siteId = local.getLocal("siteId");
// let devicenum = local.getLocal("devicenum");
// return request({
// url: `${baseUrl}sampleform/matter/list`,
// method: "post",
// data: {
// siteId,
// devicenum,
// ...data,
// },
// });
// };
// 查询设备关联事项列表
export
const
getWriteMatterList
=
(
data
)
=>
{
let
baseUrl
=
local
.
getLocal
(
"
serverUrl
"
);
let
siteId
=
local
.
getLocal
(
"
siteId
"
);
let
device
num
=
local
.
getLocal
(
"
devicenum
"
);
let
device
Code
=
local
.
getLocal
(
"
devicenum
"
);
return
request
({
url
:
`
${
baseUrl
}
sampleform/
matter
/list`
,
url
:
`
${
baseUrl
}
sampleform/
device/matter/datum
/list`
,
method
:
"
post
"
,
data
:
{
siteId
,
device
num
,
device
Code
,
...
data
,
},
});
...
...
sample-form-client-ui/admin/src/pages/layouts/Layouts.vue
View file @
84b063f6
...
...
@@ -17,7 +17,7 @@ export default {
startTimer
()
{
let
that
=
this
;
clearInterval
(
that
.
timeOut
);
this
.
timeOut
=
set
Interval
(
function
()
{
this
.
timeOut
=
set
Timeout
(
function
()
{
that
.
$router
.
push
({
path
:
"
/
"
});
},
1000
*
60
*
2
);
},
...
...
@@ -40,7 +40,7 @@ export default {
document
.
body
.
removeEventListener
(
"
keyup
"
,
this
.
startTimer
);
document
.
body
.
removeEventListener
(
"
click
"
,
this
.
startTimer
);
document
.
body
.
removeEventListener
(
"
touchend
"
,
this
.
startTimer
);
clear
Interval
(
this
.
timeOut
);
clear
Timeout
(
this
.
timeOut
);
},
};
</
script
>
...
...
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