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
2e13525e
Commit
2e13525e
authored
Mar 28, 2025
by
何远江
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
35047598
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
+16
-9
VarChange.vue
src/views/var/varChange/VarChange.vue
+16
-9
No files found.
src/views/var/varChange/VarChange.vue
View file @
2e13525e
...
...
@@ -50,9 +50,11 @@
<vxe-column
type=
"checkbox"
width=
"50"
></vxe-column>
<vxe-column
field=
"templateFileId"
title=
"模版文件ID"
width=
"180"
>
<
template
#
default=
"{ row }"
>
<el-link
target=
"_blank"
:href=
"'/preview-excel?fileId=' + row.templateFileId + '&type=var'"
>
{{
row
.
templateFileId
}}
</el-link>
<el-link
target=
"_blank"
:href=
"'/preview-excel?fileId=' + row.templateFileId + '&type=var'"
>
{{
row
.
templateFileId
}}
</el-link
>
</
template
>
</vxe-column>
<vxe-column
field=
"customerId_dictText"
title=
"客户"
width=
"300"
></vxe-column>
...
...
@@ -133,7 +135,7 @@
<!-- 转换下使用 -->
<
template
>
<vxe-colgroup
v-for=
"item in tableTitle"
:key=
"item"
:title=
"item"
>
<vxe-col
umn
:title=
"item"
:field=
"item"
width=
"200"
:key=
"item"
>
<vxe-col
group
>
<template
#
header
>
<div
class=
"header-cell"
@
click=
"(e) => showPopover(e, item)"
>
<template
v-for=
"cf in getAllMapConfigs[item].filedConfs"
>
...
...
@@ -143,7 +145,14 @@
<el-icon><Setting
/></el-icon>
</div>
</template>
</vxe-column>
<vxe-column
:title=
"item"
:field=
"item"
width=
"200"
:key=
"item"
>
<
template
#
header
>
<template
v-for=
"cf in getAllMapConfigs[item].filedConfs"
>
<span>
{{
cf
.
filterFiled
?.
fliedTitle
}}
</span>
</
template
>
</template>
</vxe-column>
</vxe-colgroup>
</vxe-colgroup>
</template>
</vxe-table>
...
...
@@ -192,7 +201,7 @@ import {
apiVarTemplateConvert
,
apiVarTemplateSaveConf
,
getVarSpecList
,
getFilterMapField
getFilterMapField
}
from
'@/api/var'
import
{
ElMessage
,
ElMessageBox
}
from
'element-plus'
import
type
{
VxeTableInstance
}
from
'vxe-table'
...
...
@@ -206,7 +215,6 @@ import TemplateVariable from './components/TemplateVariable.vue'
import
{
useOrderChangeCopy
}
from
'@/hooks/useOrderChangeCopy'
import
CustomerModal
from
'@/components/CustomerModal/CustomerModal.vue'
const
visible
=
ref
(
false
)
const
loading
=
ref
(
false
)
const
importVisible
=
ref
(
false
)
...
...
@@ -388,8 +396,7 @@ const toDetail = async (row: any) => {
const
{
data
:
cdata
}
=
await
apiVarTemplateGetConf
(
row
.
varTemplateDetailId
)
const
{
data
:
specData
}
=
await
getVarSpecList
(
row
.
productCode
)
// 获取过滤字段
const
{
data
:
filterData
}
=
await
getFilterMapField
()
const
{
data
:
filterData
}
=
await
getFilterMapField
()
const
{
res
,
titles
,
configs
}
=
filterRunData2
(
data
.
result
,
true
)
...
...
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