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
4a1fd9ff
Commit
4a1fd9ff
authored
Jan 13, 2025
by
何远江
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单复制bug修改
parent
06be3230
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
ExcelOperate.vue
...ws/comment-excel/components/ExcelOperate/ExcelOperate.vue
+5
-3
ExcelOperate.vue
...ews/var/varExcel/components/ExcelOperate/ExcelOperate.vue
+5
-3
No files found.
src/views/comment-excel/components/ExcelOperate/ExcelOperate.vue
View file @
4a1fd9ff
...
...
@@ -96,6 +96,7 @@
<el-button
type=
"primary"
size=
"small"
@
click=
"toRun"
>
执行解析
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"copy"
>
复制
</el-button>
<el-button
v-if=
"commentExcelStore.copyFileId"
:loading=
"pasteLoading"
type=
"primary"
size=
"small"
...
...
@@ -759,7 +760,7 @@ const toDelete = async (row) => {
*/
const
copy
=
()
=>
{
if
(
areaList
.
value
?.
length
)
{
return
commentExcelStore
.
setCopyFileId
(
)
return
localStorage
.
setItem
(
'copyOrderID'
,
getFileInfo
.
value
.
orderFileId
)
}
ElMessage
(
'该文件还未设置标注信息!'
)
}
...
...
@@ -768,15 +769,16 @@ const copy = () => {
* 引入复制的配置
*/
const
pasteConfig
=
async
()
=>
{
const
copyOrderID
=
localStorage
.
getItem
(
'copyOrderID'
)
// 是否是当前文件
if
(
isSameFile
.
value
)
{
if
(
copyOrderID
==
getFileInfo
.
value
.
varFileId
)
{
return
ElMessage
(
'请在其他文件引入!'
)
}
pasteLoading
.
value
=
true
try
{
// 1、获取复制文件id
const
{
data
}
=
await
getExcelAreaByFileId
(
co
mmentExcelStore
.
copyFileId
as
string
)
const
{
data
}
=
await
getExcelAreaByFileId
(
co
pyOrderID
)
// 2、去除id
data
.
result
.
forEach
((
item
)
=>
{
...
...
src/views/var/varExcel/components/ExcelOperate/ExcelOperate.vue
View file @
4a1fd9ff
...
...
@@ -96,6 +96,7 @@
<el-button
type=
"primary"
size=
"small"
@
click=
"toRun"
>
执行解析
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"copy"
>
复制
</el-button>
<el-button
v-if=
"commentExcelStore.copyFileId"
:loading=
"pasteLoading"
type=
"primary"
size=
"small"
...
...
@@ -757,7 +758,7 @@ const toDelete = async (row) => {
*/
const
copy
=
()
=>
{
if
(
areaList
.
value
?.
length
)
{
return
commentExcelStore
.
setCopyFileId
(
)
return
localStorage
.
setItem
(
'copyVarID'
,
getFileInfo
.
value
.
varFileId
)
}
ElMessage
(
'该文件还未设置标注信息!'
)
}
...
...
@@ -766,15 +767,16 @@ const toDelete = async (row) => {
* 引入复制的配置
*/
const
pasteConfig
=
async
()
=>
{
const
copyVarID
=
localStorage
.
getItem
(
'copyVarID'
)
// 是否是当前文件
if
(
isSameVarFile
.
value
)
{
if
(
copyVarID
==
getFileInfo
.
value
.
varFileId
)
{
return
ElMessage
(
'请在其他文件引入!'
)
}
pasteLoading
.
value
=
true
try
{
// 1、获取复制文件id
const
{
data
}
=
await
getExcelAreaByFileId
(
co
mmentExcelStore
.
copyFileId
as
string
)
const
{
data
}
=
await
getExcelAreaByFileId
(
co
pyVarID
)
// 2、去除id
data
.
result
.
forEach
((
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