fix:修复误上报空间id和显示逻辑问题 (#320)

* --story=1059873 --user=T8罗佳明 【ALL】2024年06月日常优化 https://www.tapd.cn/23402991/s/2202857

* feat:答卷白名单功能

* fix:修复lint问题

* fix:提交问卷时添加verifyId参数

* fix:去掉上报空间id

* fix:line代码
This commit is contained in:
chaorenluo 2024-07-01 14:24:32 +08:00 committed by GitHub
parent 5a8e821159
commit d31f6178c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,7 +29,7 @@ const defaultProps = {
const handleChange = () => { const handleChange = () => {
const key = props.formConfig.key; const key = props.formConfig.key;
const userKeys = treeRef.value?.getCheckedKeys(false); const userKeys = treeRef.value?.getCheckedKeys(true);
emit(FORM_CHANGE_EVENT_KEY, { key: key, value: userKeys }); emit(FORM_CHANGE_EVENT_KEY, { key: key, value: userKeys });
} }
@ -43,9 +43,13 @@ const selectCount = computed(() => {
return treeRef.value?.getCheckedKeys(true).length || 0 return treeRef.value?.getCheckedKeys(true).length || 0
}) })
const spaceMenus = computed(() => {
return store.state.list.spaceMenus
})
const getSpaceMenus = async () => { const getSpaceMenus = async () => {
await store.dispatch('list/getSpaceList') await store.dispatch('list/getSpaceList')
store.state?.list?.spaceMenus.map((v) => { spaceMenus.value.map((v) => {
if (v.id == "group") { if (v.id == "group") {
const promiseList = [] const promiseList = []
v.children?.map((item) => { v.children?.map((item) => {