|
@@ -140,7 +140,7 @@
|
|
|
<!-- 按钮 -->
|
|
<!-- 按钮 -->
|
|
|
<div class="custom-bottom-fixed-btns">
|
|
<div class="custom-bottom-fixed-btns">
|
|
|
<!-- <div class="bottom-btn secondary-btn" @click="handlePage">跳过</div> -->
|
|
<!-- <div class="bottom-btn secondary-btn" @click="handlePage">跳过</div> -->
|
|
|
- <div class="bottom-btn primary-btn" @click.stop="submit" @touchstart.stop @touchend.stop>确认信息</div>
|
|
|
|
|
|
|
+ <el-button class="bottom-btn primary-btn" :loading="loading" @click.stop="submit" @touchstart.stop @touchend.stop>确认信息</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
@@ -330,6 +330,7 @@ onBeforeUnmount(() => {
|
|
|
|
|
|
|
|
onDeactivated(() => {
|
|
onDeactivated(() => {
|
|
|
saveDraft();
|
|
saveDraft();
|
|
|
|
|
+ loading.value = false;
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
const formNameObj = ref({
|
|
const formNameObj = ref({
|
|
@@ -599,6 +600,9 @@ const showSuccessPopup = ref(false);
|
|
|
const handleSuccessConfirm = () => {
|
|
const handleSuccessConfirm = () => {
|
|
|
router.push('/agri_record');
|
|
router.push('/agri_record');
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+const loading = ref(false);
|
|
|
async function submit() {
|
|
async function submit() {
|
|
|
try {
|
|
try {
|
|
|
// 正式提交
|
|
// 正式提交
|
|
@@ -626,8 +630,11 @@ async function submit() {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ loading.value = true;
|
|
|
|
|
+
|
|
|
const apiCall = route.query.subjectId ? VE_API.basic_farm.saveBasicFarmInfo(paramsData) : VE_API.basic_farm.saveBasicFarmInfoByExpertV3(paramsData);
|
|
const apiCall = route.query.subjectId ? VE_API.basic_farm.saveBasicFarmInfo(paramsData) : VE_API.basic_farm.saveBasicFarmInfoByExpertV3(paramsData);
|
|
|
apiCall.then((res) => {
|
|
apiCall.then((res) => {
|
|
|
|
|
+ loading.value = false;
|
|
|
if (res.code === 0) {
|
|
if (res.code === 0) {
|
|
|
// showSuccessPopup.value = true;
|
|
// showSuccessPopup.value = true;
|
|
|
if (route.query.subjectId) {
|
|
if (route.query.subjectId) {
|
|
@@ -646,6 +653,7 @@ async function submit() {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
} catch (error) {
|
|
} catch (error) {
|
|
|
|
|
+ loading.value = false;
|
|
|
console.error('提交失败:', error);
|
|
console.error('提交失败:', error);
|
|
|
ElMessage.error('提交失败,请重试');
|
|
ElMessage.error('提交失败,请重试');
|
|
|
return false;
|
|
return false;
|
|
@@ -1049,7 +1057,7 @@ const handlePeriodConfirm = async () => {
|
|
|
border-radius: 6px;
|
|
border-radius: 6px;
|
|
|
// padding: 13px 21px;
|
|
// padding: 13px 21px;
|
|
|
height: 40px;
|
|
height: 40px;
|
|
|
- width: 107px;
|
|
|
|
|
|
|
+ width: 104px;
|
|
|
display: flex;
|
|
display: flex;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
justify-content: center;
|
|
@@ -1371,6 +1379,10 @@ const handlePeriodConfirm = async () => {
|
|
|
pointer-events: auto; // 确保可以接收点击事件
|
|
pointer-events: auto; // 确保可以接收点击事件
|
|
|
|
|
|
|
|
.bottom-btn {
|
|
.bottom-btn {
|
|
|
|
|
+
|
|
|
|
|
+ height: 40px;
|
|
|
|
|
+ padding: 0 30px;
|
|
|
|
|
+ line-height: 40px;
|
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
|
user-select: none; // 防止文本选择
|
|
user-select: none; // 防止文本选择
|
|
|
touch-action: manipulation; // 优化移动端触摸响应
|
|
touch-action: manipulation; // 优化移动端触摸响应
|