hookehuyr

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

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