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
35ce7617
Commit
35ce7617
authored
Feb 16, 2023
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pref:修改接口获取
parent
098b7576
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
12 deletions
+19
-12
sample-form-client-ui/admin/src/App.vue
sample-form-client-ui/admin/src/App.vue
+1
-2
sample-form-client-ui/admin/src/api/index.js
sample-form-client-ui/admin/src/api/index.js
+16
-8
sample-form-client-ui/admin/src/pages/showpage/ShowMaterials.vue
...form-client-ui/admin/src/pages/showpage/ShowMaterials.vue
+1
-1
sample-form-client-ui/admin/vue.config.js
sample-form-client-ui/admin/vue.config.js
+1
-1
No files found.
sample-form-client-ui/admin/src/App.vue
View file @
35ce7617
...
...
@@ -45,7 +45,7 @@ export default {
},
serviceInfo
:
{
homeUrl
:
"
http://192.168.0.24:8080/#/
"
,
serverUrl
:
"
http://192.168.0.98:11078
"
,
serverUrl
:
"
http://192.168.0.98:11078
/
"
,
},
};
this
.
WebSocketMq
(
obj
);
...
...
@@ -120,7 +120,6 @@ export default {
width: 100%;
height: 100%;
background-color: #f5f5f5;
font-family: Source Han Sans CN;
// display: flex;
// overflow: auto;
// &::-webkit-scrollbar {
...
...
sample-form-client-ui/admin/src/api/index.js
View file @
35ce7617
// 事项api
import
local
from
"
@/utils/local
"
;
import
request
from
"
@/utils/request
"
;
let
baseUrl
=
local
.
getLocal
(
"
serverUrl
"
);
let
siteId
=
local
.
getLocal
(
"
siteId
"
);
let
devicenum
=
local
.
getLocal
(
"
devicenum
"
);
// 首页数据展示
export
const
getHomeInfo
=
(
data
)
=>
{
let
baseUrl
=
local
.
getLocal
(
"
serverUrl
"
);
let
siteId
=
local
.
getLocal
(
"
siteId
"
);
let
devicenum
=
local
.
getLocal
(
"
devicenum
"
);
return
request
({
url
:
`
${
baseUrl
}
/
sampleform/home/info`
,
url
:
`
${
baseUrl
}
sampleform/home/info`
,
method
:
"
post
"
,
data
:
{
siteId
,
...
...
@@ -19,8 +19,10 @@ export const getHomeInfo = (data) => {
// 获取部门列表
export
const
getdeptList
=
(
data
)
=>
{
let
baseUrl
=
local
.
getLocal
(
"
serverUrl
"
);
let
siteId
=
local
.
getLocal
(
"
siteId
"
);
return
request
({
url
:
`
${
baseUrl
}
/
sampleform/home/depts`
,
url
:
`
${
baseUrl
}
sampleform/home/depts`
,
method
:
"
post
"
,
data
:
{
siteId
,
...
...
@@ -31,8 +33,10 @@ export const getdeptList = (data) => {
// 查询事项列表
export
const
getWriteMatterList
=
(
data
)
=>
{
let
baseUrl
=
local
.
getLocal
(
"
serverUrl
"
);
let
siteId
=
local
.
getLocal
(
"
siteId
"
);
return
request
({
url
:
`
${
baseUrl
}
/
sampleform/matter/list`
,
url
:
`
${
baseUrl
}
sampleform/matter/list`
,
method
:
"
post
"
,
data
:
{
siteId
,
...
...
@@ -43,8 +47,10 @@ export const getWriteMatterList = (data) => {
// 查询材料列表
export
const
getMaterialsList
=
(
data
)
=>
{
let
baseUrl
=
local
.
getLocal
(
"
serverUrl
"
);
let
siteId
=
local
.
getLocal
(
"
siteId
"
);
return
request
({
url
:
`
${
baseUrl
}
/
sampleform/matter/datum/list`
,
url
:
`
${
baseUrl
}
sampleform/matter/datum/list`
,
method
:
"
post
"
,
data
:
{
siteId
,
...
...
@@ -55,8 +61,10 @@ export const getMaterialsList = (data) => {
// 表单合成
export
const
mergeFormToDocx
=
(
data
)
=>
{
let
baseUrl
=
local
.
getLocal
(
"
serverUrl
"
);
let
siteId
=
local
.
getLocal
(
"
siteId
"
);
return
request
({
url
:
`
${
baseUrl
}
/
sampleform/home/mergeFormToDocx`
,
url
:
`
${
baseUrl
}
sampleform/home/mergeFormToDocx`
,
method
:
"
post
"
,
data
:
{
siteId
,
...
...
sample-form-client-ui/admin/src/pages/showpage/ShowMaterials.vue
View file @
35ce7617
...
...
@@ -109,7 +109,7 @@ export default {
},
data
()
{
return
{
api
:
local
.
getLocal
(
"
serverUrl
"
),
api
:
local
.
getLocal
(
"
serverUrl
"
)
+
"
/
"
,
matterInfo
:
this
.
$route
.
query
,
materailsList
:
[],
active
:
0
,
...
...
sample-form-client-ui/admin/vue.config.js
View file @
35ce7617
...
...
@@ -8,7 +8,7 @@ if (!isDev) {
new
FileManagerPlugin
({
events
:
{
onEnd
:
{
mkdir
:
[
"
./dist
"
],
//
mkdir: ["./dist"],
delete
:
[
"
./样表终端系统.zip
"
],
archive
:
[{
source
:
"
./dist
"
,
destination
:
"
./样表终端系统.zip
"
}],
},
...
...
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