Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
topsun-baoshen-excel
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
何远江
topsun-baoshen-excel
Commits
6cd23437
Commit
6cd23437
authored
Dec 12, 2023
by
何远江
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加区域类型关联限制
parent
a5f12ea4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
ExcelOperate.vue
...ws/comment-excel/components/ExcelOperate/ExcelOperate.vue
+7
-2
No files found.
src/views/comment-excel/components/ExcelOperate/ExcelOperate.vue
View file @
6cd23437
...
...
@@ -260,6 +260,7 @@ const currentConnectInfo = reactive<Recordable>({
fileId
:
''
})
const
cachCurrentConnectInfo
=
reactive
<
Recordable
>
({})
const
cachCurrentBeConnectInfo
=
reactive
<
Recordable
>
({})
const
beConnectData
=
computed
(()
=>
{
/**
* 如果公共区域 和 附加区域关联 只能关联 数据区域
...
...
@@ -547,11 +548,14 @@ const confirmConnect = () => {
const
list
=
xTableConnect
.
value
?.
getCheckboxRecords
()
if
(
!
list
?.
length
)
{
if
(
cachCurrentConnectInfo
.
excelAreaType
==
'attach_area'
)
{
if
(
cachCurrentConnectInfo
.
excelAreaType
==
'attach_area'
||
cachCurrentBeConnectInfo
.
excelAreaType
==
'attach_area'
)
{
return
ElMessage
.
warning
(
'请选择关联的字段!'
)
}
addConnect
([])
return
return
}
try
{
...
...
@@ -639,6 +643,7 @@ const confirmBeConnect = () => {
if
(
!
data
)
{
return
ElMessage
.
warning
(
'请选择有效数据!'
)
}
Object
.
assign
(
cachCurrentBeConnectInfo
,
unref
(
data
))
currentConnectInfo
.
excelAreaBeId
=
data
.
excelAreaId
// 打开关联弹窗。
chooseVisible
.
value
=
false
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment