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
4ecee879
Commit
4ecee879
authored
Jan 15, 2025
by
tanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
字段配置复制功能
parent
8b0f61e2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
5 deletions
+14
-5
OrderChange.vue
src/views/order/orderChange/OrderChange.vue
+1
-1
FileList.vue
src/views/var/file/FileList.vue
+11
-2
VarChange.vue
src/views/var/varChange/VarChange.vue
+2
-2
No files found.
src/views/order/orderChange/OrderChange.vue
View file @
4ecee879
...
...
@@ -586,7 +586,7 @@ const onPaste = () => {
console
.
log
(
copyInfo
)
// 将复制的配置信息,一条一条设置
copyInfo
.
forEach
((
item
:
any
)
=>
{
copyInfo
.
value
.
forEach
((
item
:
any
)
=>
{
item
.
templateFileId
=
currentRow
.
templateFileId
item
.
excelOrderFiledConfId
=
''
excelChangeStore
.
setSingleFieldMap
(
item
)
...
...
src/views/var/file/FileList.vue
View file @
4ecee879
...
...
@@ -41,7 +41,16 @@
>
<vxe-column
type=
"checkbox"
width=
"50"
></vxe-column>
<vxe-column
field=
"customerId_dictText"
title=
"客户名称"
width=
"120"
></vxe-column>
<vxe-column
field=
"varFileId"
title=
"变量文件ID"
width=
"180"
></vxe-column>
<vxe-column
field=
"productCode"
title=
"产品编码"
width=
"120"
></vxe-column>
<vxe-column
field=
"varFileId"
title=
"变量文件ID"
width=
"180"
>
<
template
#
default=
"{ row }"
>
<el-link
target=
"_blank"
:href=
"'/preview-excel?fileId=' + row.varFileId + '&type=var'"
>
{{
row
.
varFileId
}}
</el-link
>
</
template
>
</vxe-column>
<vxe-column
title=
"原始文件地址"
min-width=
"300"
>
<
template
#
default=
"{ row }"
>
<el-link
...
...
@@ -53,7 +62,7 @@
>
</
template
>
</vxe-column>
<vxe-column
title=
"
标注
文件地址"
min-width=
"300"
>
<vxe-column
title=
"
模板
文件地址"
min-width=
"300"
>
<
template
#
default=
"{ row }"
>
<el-link
target=
"_blank"
...
...
src/views/var/varChange/VarChange.vue
View file @
4ecee879
...
...
@@ -46,7 +46,7 @@
<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"
>
{{
<el-link
target=
"_blank"
:href=
"'/preview-excel?fileId=' + row.templateFileId
+ '&type=var'
"
>
{{
row
.
templateFileId
}}
</el-link>
</
template
>
...
...
@@ -429,7 +429,7 @@ const onCopy = () => {
const
onPaste
=
()
=>
{
// 将复制的配置信息,一条一条设置
copyInfo
.
forEach
((
item
:
any
)
=>
{
copyInfo
.
value
.
forEach
((
item
:
any
)
=>
{
item
.
templateFileId
=
currentRow
.
templateFileId
item
.
varFiledConfId
=
''
excelChangeStore
.
setSingleFieldMap
(
item
)
...
...
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