Commit 35cc7a22 authored by 华国豪's avatar 华国豪 🙄

意见调查填写 提交时加转圈圈 防止重复提交数据

parent 99ff5bc0
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
:visible.sync="DiaoChaShow" :visible.sync="DiaoChaShow"
center center
:before-close="closeDialog"> :before-close="closeDialog">
<div class="main NewSurveyList"> <div class="main NewSurveyList" v-loading="saveShow">
<el-select filterable v-model="GuestId" value-key="LineID" @change="getOrderID(GuestId)"> <el-select filterable v-model="GuestId" value-key="LineID" @change="getOrderID(GuestId)">
<el-option v-for="item in ppList" :label='item.GuestName' :value='item.GuestId' :key='item.GuestId'></el-option> <el-option v-for="item in ppList" :label='item.GuestName' :value='item.GuestId' :key='item.GuestId'></el-option>
</el-select> </el-select>
...@@ -196,6 +196,7 @@ export default { ...@@ -196,6 +196,7 @@ export default {
loading:false, loading:false,
DiaoChaShow: false, DiaoChaShow: false,
wqList: [], wqList: [],
saveShow: false,
msg:{ msg:{
pageSize:10, pageSize:10,
pageIndex:1, pageIndex:1,
...@@ -318,6 +319,7 @@ export default { ...@@ -318,6 +319,7 @@ export default {
if (this.GuestId == '') { if (this.GuestId == '') {
return this.$message.error('请选择客人') return this.$message.error('请选择客人')
} }
this.saveShow = true
let data = JSON.parse(JSON.stringify(this.wqList)) let data = JSON.parse(JSON.stringify(this.wqList))
data.forEach(x=>{ data.forEach(x=>{
x.TCID = this.TCID; x.TCID = this.TCID;
...@@ -335,6 +337,7 @@ export default { ...@@ -335,6 +337,7 @@ export default {
this.$message.success('提交成功!'); this.$message.success('提交成功!');
this.GuestId = ''; this.GuestId = '';
this.DiaoChaShow = false; this.DiaoChaShow = false;
this.saveShow = false;
this.getList(); this.getList();
} else { } else {
this.$message.error(res.data.message) this.$message.error(res.data.message)
......
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