hookehuyr

控制自定义表单提交表单频率

......@@ -2,7 +2,7 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-05-26 23:52:36
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-05-25 11:49:15
* @LastEditTime: 2023-05-25 17:12:08
* @FilePath: /data-table/src/App.vue
* @Description:
-->
......@@ -140,7 +140,14 @@ onMounted(async () => {
}
// 设定填写次数
if (form_setting.wxzq_scope && no_preview_model) {
if (form_setting.fill_error) {
showDialog({
title: '温馨提示',
message: form_setting.fill_error,
theme: 'round-button',
confirmButtonColor: styleColor.baseColor
});
}
}
// // 唯一设备码
// const fpPromise = fp3.load();
......
<!--
* @Date: 2022-07-18 10:22:22
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-05-22 17:55:53
* @LastEditTime: 2023-05-25 17:49:41
* @FilePath: /data-table/src/views/index.vue
* @Description: 首页
-->
......@@ -333,6 +333,18 @@ onMounted(async () => {
sharePage({ title, desc: formSetting.value.wxzq_share_slogan, imgUrl: formSetting.value.wxzq_share_logo });
});
}
// 当数据量达到限额时,该表单将不能继续提交数据。
if (formSetting.value.is_reach_sjsj_max_count) {
// 提交按钮禁用
submitStatus.value = true;
}
// 设定填写次数
if (formSetting.value.wxzq_scope && model !== 'preview') {
if (formSetting.value.fill_error) {
// 提交按钮禁用
submitStatus.value = true;
}
}
});
// 打开轮询用户是否关注
......