Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
data_management_system
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
data_management_system
Commits
16a85b35
Commit
16a85b35
authored
Dec 01, 2022
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
4286c81f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
12 deletions
+34
-12
ycsb.js
ruoyi-ui/src/api/system/ycsb.js
+8
-0
kfInfoAdd.vue
ruoyi-ui/src/views/kfInfoAdd.vue
+26
-12
No files found.
ruoyi-ui/src/api/system/ycsb.js
View file @
16a85b35
...
...
@@ -52,6 +52,14 @@ export function importTemplate(params) {
params
})
}
// 移动端新增
export
function
phoneAdd
(
data
)
{
return
request
({
url
:
'/system/ycsb/addMobile'
,
method
:
'post'
,
data
:
data
})
}
// 导入抗原异常上报信息
export
function
importExcel
(
data
)
{
...
...
ruoyi-ui/src/views/kfInfoAdd.vue
View file @
16a85b35
...
...
@@ -147,6 +147,7 @@
<!--
</el-col>
-->
<!--
</el-row>
-->
</el-form>
<div
class=
"warn"
>
如提交信息发生变更,请尽快联系属地街道/镇 或属地居委会。
</div>
<div
slot=
"footer"
class=
"footer"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
</div>
...
...
@@ -155,7 +156,7 @@
<
script
>
import
moment
from
"moment"
;
import
{
phoneAdd
}
from
"@/api/system/ycsb"
;
export
default
{
name
:
"kfInfoAdd"
,
data
()
{
...
...
@@ -492,18 +493,26 @@ name: "kfInfoAdd",
})
},
submitForm
()
{
this
.
$confirm
(
'是否确认提交?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'info'
}).
then
(()
=>
{
this
.
$message
({
type
:
'success'
,
message
:
'提交成功!'
});
this
.
reset
()
}).
catch
(()
=>
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
if
(
valid
)
{
this
.
$confirm
(
'是否确认提交?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'info'
}).
then
(()
=>
{
phoneAdd
(
this
.
form
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
$message
({
type
:
'success'
,
message
:
'提交成功!'
});
this
.
reset
()
}
})
}).
catch
(()
=>
{
});
}
});
},
// 表单重置
...
...
@@ -565,6 +574,11 @@ name: "kfInfoAdd",
width
:
20px
!
important
;
height
:
20px
!
important
;
}
.warn
{
padding
:
30px
10px
20px
10px
;
color
:
red
;
font-size
:
20px
;
}
.footer
{
float
:
right
;
padding-bottom
:
20px
;
...
...
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