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
31227ba6
Commit
31227ba6
authored
Mar 25, 2025
by
何远江
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
ce463b41
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
24 deletions
+15
-24
ConfigFormItem.vue
src/views/var/varChange/components/ConfigFormItem.vue
+15
-24
No files found.
src/views/var/varChange/components/ConfigFormItem.vue
View file @
31227ba6
...
...
@@ -8,6 +8,7 @@
filterable
placeholder=
"请选择"
clearable
@
change=
"mapFieldChange"
>
<el-option
v-for=
"itm in getSpecList"
...
...
@@ -181,45 +182,35 @@ onMounted(() => {
// isVariable.value = !!props.item.orderFiled?.variable
})
watch
(
()
=>
props
.
item
.
mapField
,
(
val
)
=>
{
// 如果有值,添加脚本
if
(
val
&&
props
.
item
.
scripts
.
length
==
0
)
{
const
mapFieldChange
=
(
e
)
=>
{
if
(
e
)
{
if
(
props
.
item
.
scripts
?.
length
==
0
)
{
props
.
item
.
scripts
.
push
({
content
:
''
,
scriptName
:
''
})
}
}
else
{
props
.
item
.
scripts
=
[]
props
.
item
.
orderFiled
=
null
}
)
}
const
filterMapFieldChange
=
(
e
)
=>
{
if
(
e
)
{
props
.
item
.
filterMapFiled
=
e
.
filedName
// console.log('匹配当前字段')
// // 找到匹配的过滤字段
// getFilterMapFieldsFlatList.value.some((items) => {
// if (items.filedName == e) {
// props.item.filterFiled = items
// return true
// }
// return false
// })
// 如果没有脚本,设置一个空的脚本
if
(
!
props
.
item
?.
filterScripts
||
props
.
item
?.
filterScripts
?.
length
==
0
)
{
props
.
item
.
filterScripts
=
[
{
content
:
''
,
scriptName
:
''
}
]
if
(
props
.
item
.
filterScripts
?.
length
==
0
)
{
props
.
item
.
filterScripts
.
push
({
content
:
''
,
scriptName
:
''
})
}
}
else
{
//
props
.
item
.
filterMapFiled
=
null
props
.
item
.
filterScripts
=
[]
}
}
</
script
>
<
style
lang=
"scss"
scoped
></
style
>
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