hookehuyr

✨ feat: 新增数据收集量上限控制

......@@ -2,7 +2,7 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-05-26 23:52:36
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-03-13 16:50:00
* @LastEditTime: 2023-03-14 15:15:47
* @FilePath: /data-table/src/App.vue
* @Description:
-->
......@@ -30,6 +30,7 @@ import { apiList } from '@/api/wx/jsApiList.js'
import { wxInfo, getUrlParams, stringifyQuery } from "@/utils/tools";
import { styleColor } from "@/constant.js";
import { getFormSettingAPI } from "@/api/form.js";
import { showDialog } from 'vant';
// 使用 include + pinia 状态管理动态缓存页面
const store = mainStore();
......@@ -122,6 +123,15 @@ onMounted(async () => {
$router.push("/stop?status=finish");
}
}
// 当数据量达到限额时,该表单将不能继续提交数据。
if (form_setting.is_reach_sjsj_max_count) {
showDialog({
title: '温馨提示',
message: '表单收集量已达到限额,无法再提交数据。',
theme: 'round-button',
confirmButtonColor: styleColor.baseColor
});
}
}
});
</script>
......