Commit 4ecee879 authored by tanghao's avatar tanghao

字段配置复制功能

parent 8b0f61e2
......@@ -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)
......
......@@ -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"
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment