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

bug 修改

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