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
8131d776
Commit
8131d776
authored
Dec 05, 2023
by
何远江
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
标记区域功能,添加区域关联配置
parent
a75d4dcc
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
480 additions
and
101 deletions
+480
-101
excel.ts
src/api/excel.ts
+29
-0
global.d.ts
src/types/global.d.ts
+6
-1
luckyexcel.d.ts
src/types/luckyexcel.d.ts
+1
-0
ExcelOperate.vue
...ws/comment-excel/components/ExcelOperate/ExcelOperate.vue
+443
-99
tsconfig.app.json
tsconfig.app.json
+1
-1
No files found.
src/api/excel.ts
View file @
8131d776
...
...
@@ -178,3 +178,32 @@ export const getExcelAreaByFileId = (orderFileId: string) => {
headers
:
formHeader
})
}
export
const
removeExcelArea
=
(
excelAreaId
:
string
)
=>
{
return
axios
.
get
(
'/api/excelMark/removeExcelArea'
,
{
params
:
{
excelAreaId
},
headers
:
formHeader
})
}
export
const
getExcelConnectByFileId
=
(
orderFileId
:
string
)
=>
{
return
axios
.
get
(
'/api/excelMark/getExcelAreaConnectByFileID'
,
{
params
:
{
orderFileId
},
headers
:
formHeader
})
}
export
const
removeExcelAreaConnect
=
(
excelAreaConnectId
:
string
)
=>
{
return
axios
.
get
(
'/api/excelMark/removeExcelAreaConnect'
,
{
params
:
{
excelAreaConnectId
},
headers
:
formHeader
})
}
export
const
addExcelAreaConnect
=
(
data
:
any
)
=>
{
return
axios
.
post
(
'/api/excelMark/addExcelAreaConnect'
,
data
)
}
export
const
excelMarkRun
=
(
orderFileId
:
string
)
=>
{
return
axios
.
get
(
'/api/excelMark/run'
,
{
params
:
{
orderFileId
},
headers
:
formHeader
})
}
src/types/global.d.ts
View file @
8131d776
declare
module
'luckyexcel'
declare
module
'luckyexcel'
;
export
type
Nullable
<
T
>
=
T
|
null
export
type
NonNullable
<
T
>
=
T
extends
null
|
undefined
?
never
:
T
...
...
@@ -6,3 +6,8 @@ export type Recordable<T = any> = Record<string, T>
export
type
ReadonlyRecordable
<
T
=
any
>
=
{
readonly
[
key
:
string
]:
T
}
declare
interface
Window
{
luckusheet
:
any
}
\ No newline at end of file
src/types/luckyexcel.d.ts
0 → 100644
View file @
8131d776
declare
module
'luckyexcel'
;
\ No newline at end of file
src/views/comment-excel/components/ExcelOperate/ExcelOperate.vue
View file @
8131d776
This diff is collapsed.
Click to expand it.
tsconfig.app.json
View file @
8131d776
{
"extends"
:
"@vue/tsconfig/tsconfig.dom.json"
,
"include"
:
[
"env.d.ts"
,
"src/**/*"
,
"src/**/*.vue"
,
"src/**/*.ts"
],
"include"
:
[
"env.d.ts"
,
"
global.d.ts"
,
"
src/**/*"
,
"src/**/*.vue"
,
"src/**/*.ts"
],
"exclude"
:
[
"src/**/__tests__/*"
],
"compilerOptions"
:
{
"composite"
:
true
,
...
...
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