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
109d41a5
Commit
109d41a5
authored
Jul 13, 2023
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:添加排队编号搜索事项
parent
6e385428
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
8 deletions
+40
-8
sample-form-client-ui/admin/.env.development
sample-form-client-ui/admin/.env.development
+1
-0
sample-form-client-ui/admin/.env.production
sample-form-client-ui/admin/.env.production
+1
-1
sample-form-client-ui/admin/src/api/index.js
sample-form-client-ui/admin/src/api/index.js
+9
-0
sample-form-client-ui/admin/src/pages/searchpage/SearchPage.vue
...-form-client-ui/admin/src/pages/searchpage/SearchPage.vue
+29
-7
No files found.
sample-form-client-ui/admin/.env.development
View file @
109d41a5
#开发环境
NODE_ENV = "development"
VUE_APP_API_BASE_URL=http://192.168.0.98:8090
VUE_APP_API_PHP_URL=http://192.168.0.98:8090
#VUE_APP_API_BASE_URL=http://192.168.0.98:11071/zwfw
#VUE_APP_API_BASE_URL=http://192.168.0.98:11023
#VUE_APP_API_BASE_URL=http://192.168.0.217:17311
\ No newline at end of file
sample-form-client-ui/admin/.env.production
View file @
109d41a5
#生产环境
NODE_ENV = "production"
VUE_APP_API_
BASE
_URL=/basics_api
VUE_APP_API_
PHP
_URL=/basics_api
sample-form-client-ui/admin/src/api/index.js
View file @
109d41a5
...
...
@@ -2,6 +2,7 @@
import
local
from
"
@/utils/local
"
;
import
request
from
"
@/utils/request
"
;
import
store
from
"
@/store
"
;
let
PHP_URL
=
process
.
env
.
VUE_APP_API_PHP_URL
;
// 首页数据展示
export
const
getHomeInfo
=
(
data
)
=>
{
let
baseUrl
=
local
.
getLocal
(
"
serverUrl
"
);
...
...
@@ -114,3 +115,11 @@ export const getSkinList = (data) => {
data
,
});
};
// 排队编号查询对应事项
export
const
getMatterForFlownum
=
(
params
)
=>
{
return
request
({
url
:
`
${
PHP_URL
}
/api/matter/matterForFlownum`
,
method
:
"
get
"
,
params
,
});
};
sample-form-client-ui/admin/src/pages/searchpage/SearchPage.vue
View file @
109d41a5
...
...
@@ -104,7 +104,7 @@ import Header from "@/components/Header.vue";
import
PageTop
from
"
@/components/PageTop.vue
"
;
import
SearchBox
from
"
@/components/SearchBox.vue
"
;
import
MateralsList
from
"
@/components/MateralsList.vue
"
;
import
{
getSampleformMatterList
}
from
"
@/api
"
;
import
{
getSampleformMatterList
,
getMatterForFlownum
}
from
"
@/api
"
;
export
default
{
components
:
{
Header
,
...
...
@@ -128,40 +128,62 @@ export default {
}
;
}
,
created
()
{
this
.
getSampleformMatterList
();
this
.
typeSearch
();
// this.getAllmaterials();
}
,
watch
:
{
searchVal
(
newVal
)
{
if
(
newVal
===
""
)
{
this
.
current
=
1
;
this
.
getSampleformMatterList
();
this
.
typeSearch
();
}
}
,
}
,
methods
:
{
// 区分搜索
async
typeSearch
()
{
let
reg
=
/^
[\u
4e00-
\u
9fa5
]
+$/
;
if
(
reg
.
test
(
this
.
searchVal
)
||
this
.
searchVal
==
""
)
{
this
.
getSampleformMatterList
(
this
.
searchVal
);
}
else
{
let
matterFullName
=
await
this
.
getMatterForFlownum
(
this
.
searchVal
);
this
.
getSampleformMatterList
(
matterFullName
);
}
}
,
// 获取事项列表
async
getSampleformMatterList
()
{
async
getSampleformMatterList
(
matterFullName
)
{
let
res
=
await
getSampleformMatterList
({
page
:
this
.
current
,
size
:
this
.
size
,
isTerminal
:
1
,
matterFullName
:
this
.
searchVal
,
matterFullName
,
}
);
let
{
total
,
matterDatumTotal
,
data
}
=
res
.
data
.
data
;
this
.
matterList
=
data
;
this
.
total
=
total
;
this
.
matterDatumTotal
=
matterDatumTotal
;
}
,
// 排队编号获取事项
async
getMatterForFlownum
(
flownum
)
{
let
matterFullName
=
""
;
let
res
=
await
getMatterForFlownum
({
flownum
}
);
if
(
res
.
data
.
code
==
1
)
{
let
{
data
}
=
res
.
data
.
data
;
if
(
data
.
length
)
{
matterFullName
=
data
[
0
].
matterName
;
}
}
return
matterFullName
;
}
,
// 搜索
handleSearch
()
{
this
.
current
=
1
;
this
.
getSampleformMatterList
();
this
.
typeSearch
();
}
,
// 分页
changePage
(
cur
)
{
this
.
current
=
cur
;
this
.
getSampleformMatterList
();
this
.
typeSearch
();
}
,
// 查看
handleCheck
(
row
)
{
...
...
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