Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2023-03-14 16:06:04 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ef6b5f2f85af405fc2d5ef3df97128a8bec36b7f
ef6b5f2f
1 parent
fe0f7d0f
✨ feat: 新增数据收集量上限控制
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletions
src/App.vue
src/App.vue
View file @
ef6b5f2
...
...
@@ -2,7 +2,7 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-05-26 23:52:36
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-03-1
3 16:50:00
* @LastEditTime: 2023-03-1
4 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>
...
...
Please
register
or
login
to post a comment