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
05740cfa
Commit
05740cfa
authored
Jan 13, 2025
by
何远江
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
4278b717
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
4 deletions
+13
-4
excel.ts
src/api/excel.ts
+3
-0
varExcel.ts
src/api/varExcel.ts
+4
-0
ExcelOperate.vue
...ws/comment-excel/components/ExcelOperate/ExcelOperate.vue
+3
-2
ExcelOperate.vue
...ews/var/varExcel/components/ExcelOperate/ExcelOperate.vue
+3
-2
No files found.
src/api/excel.ts
View file @
05740cfa
...
...
@@ -172,6 +172,9 @@ export const apiClearMark = (fileId: any) => {
export
const
addExcelArea
=
(
data
:
any
)
=>
{
return
axios
.
post
(
'/api/excelMark/addExcelArea'
,
data
)
}
export
const
batchAddExcelArea
=
(
data
:
any
)
=>
{
return
axios
.
post
(
'/api/excelMark/batchAddExcelArea'
,
data
)
}
export
const
editExcelArea
=
(
data
:
any
)
=>
{
return
axios
.
post
(
'/api/excelMark/editExcelArea'
,
data
)
}
...
...
src/api/varExcel.ts
View file @
05740cfa
...
...
@@ -16,6 +16,10 @@ export const apiSaveUpload = (data: any) => {
export
const
addExcelArea
=
(
data
:
any
)
=>
{
return
axios
.
post
(
'/api/varFile/addVarArea'
,
data
)
}
export
const
batchAddVarExcelArea
=
(
data
:
any
)
=>
{
return
axios
.
post
(
'/api/varFile/batchAddVarArea'
,
data
)
}
export
const
editExcelArea
=
(
data
:
any
)
=>
{
return
axios
.
post
(
'/api/varFile/editVarArea'
,
data
)
}
...
...
src/views/comment-excel/components/ExcelOperate/ExcelOperate.vue
View file @
05740cfa
...
...
@@ -247,7 +247,8 @@ import {
getExcelConnectByFileId
,
removeExcelArea
,
removeExcelAreaConnect
,
addExcelArea
addExcelArea
,
batchAddExcelArea
}
from
'@/api/excel'
import
type
{
Recordable
}
from
'@/types/global'
import
{
filterRunData
,
getRangetxt
,
setRangeBackground
}
from
'@/utils/excel'
...
...
@@ -786,7 +787,7 @@ const pasteConfig = async () => {
})
// 3、自动保存
await
a
ddExcelArea
(
data
.
result
)
await
batchA
ddExcelArea
(
data
.
result
)
// 4、刷新
ElMessage
({
...
...
src/views/var/varExcel/components/ExcelOperate/ExcelOperate.vue
View file @
05740cfa
...
...
@@ -246,7 +246,8 @@ import {
getExcelConnectByFileId
,
removeExcelArea
,
removeExcelAreaConnect
,
addExcelArea
addExcelArea
,
batchAddVarExcelArea
}
from
'@/api/varExcel'
import
type
{
Recordable
}
from
'@/types/global'
import
{
filterRunData2
,
getRangetxt
,
setRangeBackground
}
from
'@/utils/excel'
...
...
@@ -784,7 +785,7 @@ const pasteConfig = async () => {
})
// 3、自动保存
await
add
ExcelArea
(
data
.
result
)
await
batchAddVar
ExcelArea
(
data
.
result
)
// 4、刷新
ElMessage
({
...
...
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