Commit 234b9841 authored by 何远江's avatar 何远江

bug 修改

parent e27ac904
...@@ -598,10 +598,7 @@ const addConnect = async (list: any) => { ...@@ -598,10 +598,7 @@ const addConnect = async (list: any) => {
}) })
currentConnectInfo.fileId = getFileInfo.value.orderFileId currentConnectInfo.fileId = getFileInfo.value.orderFileId
// 需要添加修改接口 const { data } = await addExcelAreaConnect(currentConnectInfo)
const { data } = cachConnectEditInfo.value?.excelAreaConnectId
? await addExcelAreaConnect(currentConnectInfo)
: await addExcelAreaConnect(currentConnectInfo)
if (!data?.success) { if (!data?.success) {
ElMessage.error(data?.message || '操作失败!') ElMessage.error(data?.message || '操作失败!')
...@@ -634,8 +631,11 @@ watch(connectVisible, (val) => { ...@@ -634,8 +631,11 @@ watch(connectVisible, (val) => {
// 编辑重新复制 // 编辑重新复制
if (currentConnectInfo.excelAreaConnectId) { if (currentConnectInfo.excelAreaConnectId) {
// 按照顺序来赋值connectFiled -> beConnectFiled // 按照顺序来赋值connectFiled -> beConnectFiled
connectConfigData.value = cachConnectEditInfo.value?.connectFiled.map((item, i) => { const connectFiled = cachConnectEditInfo.value?.connectFiled || []
const beConnectFiled = cachConnectEditInfo.value?.beConnectFiled[i] const beConnectFiled = cachConnectEditInfo.value?.beConnectFiled
connectConfigData.value = connectFiled.map((item, i) => {
const beConnectFiledItem = beConnectFiled[i]
console.log(beConnectFiledItem, '----')
return { return {
title: item.title, title: item.title,
sheet: item.sheet, sheet: item.sheet,
...@@ -644,13 +644,17 @@ watch(connectVisible, (val) => { ...@@ -644,13 +644,17 @@ watch(connectVisible, (val) => {
numFlag: item.numFlag, numFlag: item.numFlag,
numTitle: item.numTitle, numTitle: item.numTitle,
only: item.only, only: item.only,
betitle: beConnectFiled.title, script: item.script,
berow: beConnectFiled.row, scriptName: item.scriptName,
becolum: beConnectFiled.colum, bescriptName: beConnectFiledItem.scriptName,
besheet: beConnectFiled.sheet, bescript: beConnectFiledItem.script,
benumFlag: beConnectFiled.numFlag, betitle: beConnectFiledItem.title,
benumTitle: beConnectFiled.numTitle, berow: beConnectFiledItem.row,
beonly: beConnectFiled.only becolum: beConnectFiledItem.colum,
besheet: beConnectFiledItem.sheet,
benumFlag: beConnectFiledItem.numFlag,
benumTitle: beConnectFiledItem.numTitle,
beonly: beConnectFiledItem.only
} }
}) })
} else { } else {
......
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