Commit cade3992 authored by tanghao's avatar tanghao

修改。。。

parent de86129b
......@@ -68,8 +68,12 @@
{{ connectFiledStr(row.beConnectFiled) }}
</template>
</vxe-column>
<vxe-column title="操作" field="action" width="80">
<vxe-column title="操作" field="action" width="160">
<template #default="{ row, $rowIndex }">
<el-link style="font-size: 12px" type="primary" @click="editConnect(row, $rowIndex)"
>修改</el-link
>
<el-divider direction="vertical"></el-divider>
<el-link style="font-size: 12px" type="danger" @click="delConnect(row, $rowIndex)"
>删除</el-link
>
......@@ -302,6 +306,7 @@ import { filterRunData, getRangetxt, setRangeBackground } from '@/utils/excel'
import type { VxeTableInstance } from 'vxe-table'
import EditArea from '../EditArea/EditArea.vue'
import { deleteExcelProdFileConfByIds, getExcelProdFileConfPage } from '@/api/product'
import { tr } from 'element-plus/es/locales.mjs'
const pasteLoading = ref(false)
const connectVisible = ref(false)
......@@ -691,6 +696,13 @@ const confirmBeConnect = () => {
chooseVisible.value = false
connectVisible.value = true
}
const chooseConnectOnHide = () => {
Object.assign(currentConnectInfo, {
// excelAreaConnectId: '',
......@@ -709,6 +721,19 @@ const delConnect = async (row: any, index: number) => {
// 手动删除
connectList.value.splice(index, 1)
}
// 初始化修改关联信息
const editConnect = async (row: any, index: number) => {
console.log(row)
// connectVisible.value = true
}
const queryConnectList = async () => {
const { data } = await getExcelConnectByFileId(getFileInfo.value.orderFileId)
connectList.value = data.result
......
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