Commit 16a85b35 authored by 张伯涛's avatar 张伯涛

修改

parent 4286c81f
...@@ -52,6 +52,14 @@ export function importTemplate(params) { ...@@ -52,6 +52,14 @@ export function importTemplate(params) {
params params
}) })
} }
// 移动端新增
export function phoneAdd(data) {
return request({
url: '/system/ycsb/addMobile',
method: 'post',
data: data
})
}
// 导入抗原异常上报信息 // 导入抗原异常上报信息
export function importExcel(data) { export function importExcel(data) {
......
...@@ -147,6 +147,7 @@ ...@@ -147,6 +147,7 @@
<!-- </el-col>--> <!-- </el-col>-->
<!-- </el-row>--> <!-- </el-row>-->
</el-form> </el-form>
<div class="warn">如提交信息发生变更,请尽快联系属地街道/镇 或属地居委会。</div>
<div slot="footer" class="footer"> <div slot="footer" class="footer">
<el-button type="primary" @click="submitForm">确 定</el-button> <el-button type="primary" @click="submitForm">确 定</el-button>
</div> </div>
...@@ -155,7 +156,7 @@ ...@@ -155,7 +156,7 @@
<script> <script>
import moment from "moment"; import moment from "moment";
import { phoneAdd } from "@/api/system/ycsb";
export default { export default {
name: "kfInfoAdd", name: "kfInfoAdd",
data() { data() {
...@@ -492,19 +493,27 @@ name: "kfInfoAdd", ...@@ -492,19 +493,27 @@ name: "kfInfoAdd",
}) })
}, },
submitForm() { submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
this.$confirm('是否确认提交?', '提示', { this.$confirm('是否确认提交?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'info' type: 'info'
}).then(() => { }).then(() => {
phoneAdd(this.form).then(res=>{
if(res.code === 200) {
this.$message({ this.$message({
type: 'success', type: 'success',
message: '提交成功!' message: '提交成功!'
}); });
this.reset() this.reset()
}
})
}).catch(() => { }).catch(() => {
}); });
}
});
}, },
// 表单重置 // 表单重置
reset() { reset() {
...@@ -565,6 +574,11 @@ name: "kfInfoAdd", ...@@ -565,6 +574,11 @@ name: "kfInfoAdd",
width: 20px!important; width: 20px!important;
height: 20px!important; height: 20px!important;
} }
.warn{
padding: 30px 10px 20px 10px;
color: red;
font-size: 20px;
}
.footer{ .footer{
float: right; float: right;
padding-bottom: 20px; padding-bottom: 20px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment