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
382e26fc
Commit
382e26fc
authored
Apr 26, 2024
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf:修改
parent
61961b91
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
29 deletions
+11
-29
sample-form-client-ui/admin/src/api/index.js
sample-form-client-ui/admin/src/api/index.js
+11
-29
No files found.
sample-form-client-ui/admin/src/api/index.js
View file @
382e26fc
...
@@ -7,11 +7,13 @@ let PHP_URL = process.env.VUE_APP_API_PHP_URL;
...
@@ -7,11 +7,13 @@ let PHP_URL = process.env.VUE_APP_API_PHP_URL;
export
const
getHomeInfo
=
(
data
)
=>
{
export
const
getHomeInfo
=
(
data
)
=>
{
let
baseUrl
=
local
.
getLocal
(
"
serverUrl
"
);
let
baseUrl
=
local
.
getLocal
(
"
serverUrl
"
);
let
siteId
=
local
.
getLocal
(
"
siteId
"
);
let
siteId
=
local
.
getLocal
(
"
siteId
"
);
let
deviceCode
=
local
.
getLocal
(
"
devicenum
"
);
return
request
({
return
request
({
url
:
`
${
baseUrl
}
sampleform/home/info`
,
url
:
`
${
baseUrl
}
basics_api/
sampleform/home/info`
,
method
:
"
post
"
,
method
:
"
post
"
,
data
:
{
data
:
{
siteId
,
siteId
,
deviceCode
,
...
data
,
...
data
,
},
},
});
});
...
@@ -23,7 +25,7 @@ export const getdeptList = (data) => {
...
@@ -23,7 +25,7 @@ export const getdeptList = (data) => {
let
siteId
=
local
.
getLocal
(
"
siteId
"
);
let
siteId
=
local
.
getLocal
(
"
siteId
"
);
// let deviceCode = local.getLocal("devicenum");
// let deviceCode = local.getLocal("devicenum");
return
request
({
return
request
({
url
:
`
${
baseUrl
}
sampleform/home/depts`
,
url
:
`
${
baseUrl
}
basics_api/
sampleform/home/depts`
,
method
:
"
post
"
,
method
:
"
post
"
,
data
:
{
data
:
{
siteId
,
siteId
,
...
@@ -38,7 +40,7 @@ export const getSampleformMatterList = (data) => {
...
@@ -38,7 +40,7 @@ export const getSampleformMatterList = (data) => {
let
baseUrl
=
local
.
getLocal
(
"
serverUrl
"
);
let
baseUrl
=
local
.
getLocal
(
"
serverUrl
"
);
let
siteId
=
local
.
getLocal
(
"
siteId
"
);
let
siteId
=
local
.
getLocal
(
"
siteId
"
);
return
request
({
return
request
({
url
:
`
${
baseUrl
}
sampleform/matter/interlist`
,
url
:
`
${
baseUrl
}
basics_api/
sampleform/matter/interlist`
,
method
:
"
post
"
,
method
:
"
post
"
,
data
:
{
data
:
{
siteId
,
siteId
,
...
@@ -47,23 +49,13 @@ export const getSampleformMatterList = (data) => {
...
@@ -47,23 +49,13 @@ export const getSampleformMatterList = (data) => {
});
});
};
};
// 查询事项详情
export
const
getSampleformMatterInfo
=
(
params
)
=>
{
let
baseUrl
=
local
.
getLocal
(
"
serverUrl
"
);
return
request
({
url
:
`
${
baseUrl
}
sampleform/matter/interinfo`
,
method
:
"
get
"
,
params
,
});
};
// 查询设备关联事项列表
// 查询设备关联事项列表
export
const
getDeviceMatterList
=
(
data
)
=>
{
export
const
getDeviceMatterList
=
(
data
)
=>
{
let
baseUrl
=
local
.
getLocal
(
"
serverUrl
"
);
let
baseUrl
=
local
.
getLocal
(
"
serverUrl
"
);
let
siteId
=
local
.
getLocal
(
"
siteId
"
);
let
siteId
=
local
.
getLocal
(
"
siteId
"
);
// let deviceCode = local.getLocal("devicenum");
// let deviceCode = local.getLocal("devicenum");
return
request
({
return
request
({
url
:
`
${
baseUrl
}
sampleform/device/matter/datum/interlist`
,
url
:
`
${
baseUrl
}
basics_api/
sampleform/device/matter/datum/interlist`
,
method
:
"
post
"
,
method
:
"
post
"
,
data
:
{
data
:
{
siteId
,
siteId
,
...
@@ -78,7 +70,7 @@ export const getMaterialsList = (data) => {
...
@@ -78,7 +70,7 @@ export const getMaterialsList = (data) => {
let
baseUrl
=
local
.
getLocal
(
"
serverUrl
"
);
let
baseUrl
=
local
.
getLocal
(
"
serverUrl
"
);
let
siteId
=
local
.
getLocal
(
"
siteId
"
);
let
siteId
=
local
.
getLocal
(
"
siteId
"
);
return
request
({
return
request
({
url
:
`
${
baseUrl
}
sampleform/matter/datum/interlist`
,
url
:
`
${
baseUrl
}
basics_api/
sampleform/matter/datum/interlist`
,
method
:
"
post
"
,
method
:
"
post
"
,
data
:
{
data
:
{
siteId
,
siteId
,
...
@@ -87,22 +79,12 @@ export const getMaterialsList = (data) => {
...
@@ -87,22 +79,12 @@ export const getMaterialsList = (data) => {
});
});
};
};
// 获取事项文件夹(分类)列表
export
const
getMatterFolderList
=
(
data
)
=>
{
let
baseUrl
=
local
.
getLocal
(
"
serverUrl
"
);
return
request
({
url
:
`
${
baseUrl
}
sampleform/matter/category/list`
,
method
:
"
post
"
,
data
,
});
};
// 表单合成
// 表单合成
export
const
mergeFormToDocx
=
(
data
)
=>
{
export
const
mergeFormToDocx
=
(
data
)
=>
{
let
baseUrl
=
local
.
getLocal
(
"
serverUrl
"
);
let
baseUrl
=
local
.
getLocal
(
"
serverUrl
"
);
let
siteId
=
local
.
getLocal
(
"
siteId
"
);
let
siteId
=
local
.
getLocal
(
"
siteId
"
);
return
request
({
return
request
({
url
:
`
${
baseUrl
}
sampleform/home/mergeFormToDocx`
,
url
:
`
${
baseUrl
}
basics_api/
sampleform/home/mergeFormToDocx`
,
method
:
"
post
"
,
method
:
"
post
"
,
data
:
{
data
:
{
siteId
,
siteId
,
...
@@ -116,7 +98,7 @@ export const checkMaterials = (data) => {
...
@@ -116,7 +98,7 @@ export const checkMaterials = (data) => {
let
siteId
=
local
.
getLocal
(
"
siteId
"
);
let
siteId
=
local
.
getLocal
(
"
siteId
"
);
let
deviceCode
=
local
.
getLocal
(
"
devicenum
"
);
let
deviceCode
=
local
.
getLocal
(
"
devicenum
"
);
return
request
({
return
request
({
url
:
`
${
baseUrl
}
sampleform/sample/bill/save`
,
url
:
`
${
baseUrl
}
basics_api/
sampleform/sample/bill/save`
,
method
:
"
post
"
,
method
:
"
post
"
,
data
:
{
data
:
{
siteId
,
siteId
,
...
@@ -130,7 +112,7 @@ export const getSkinList = (data) => {
...
@@ -130,7 +112,7 @@ export const getSkinList = (data) => {
let
baseUrl
=
local
.
getLocal
(
"
serverUrl
"
);
let
baseUrl
=
local
.
getLocal
(
"
serverUrl
"
);
// let siteId = local.getLocal("siteId");
// let siteId = local.getLocal("siteId");
return
request
({
return
request
({
url
:
`
${
baseUrl
}
sampleform/skin/interlist`
,
url
:
`
${
baseUrl
}
basics_api/
sampleform/skin/interlist`
,
method
:
"
post
"
,
method
:
"
post
"
,
data
,
data
,
});
});
...
@@ -149,7 +131,7 @@ export const getDeviceInfo = (data) => {
...
@@ -149,7 +131,7 @@ export const getDeviceInfo = (data) => {
let
baseUrl
=
local
.
getLocal
(
"
serverUrl
"
);
let
baseUrl
=
local
.
getLocal
(
"
serverUrl
"
);
let
deviceCode
=
local
.
getLocal
(
"
devicenum
"
);
let
deviceCode
=
local
.
getLocal
(
"
devicenum
"
);
return
request
({
return
request
({
url
:
`
${
baseUrl
}
sampleform/device/check`
,
url
:
`
${
baseUrl
}
basics_api/
sampleform/device/check`
,
method
:
"
post
"
,
method
:
"
post
"
,
data
:
{
data
:
{
deviceCode
,
deviceCode
,
...
...
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