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

修改

parent 4286c81f
......@@ -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) {
......
......@@ -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;
......
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