Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
saas-manage
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chehuidong
saas-manage
Commits
7ca96b84
Commit
7ca96b84
authored
Jul 26, 2024
by
朱哲铨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导入功能
parent
22a854b6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
0 deletions
+19
-0
src/views/system/category-style.vue
+0
-0
src/views/system/sku-manage.vue
+0
-0
src/views/system/sku-sort.vue
+19
-0
No files found.
src/views/system/category-style.vue
View file @
7ca96b84
This diff is collapsed.
Click to expand it.
src/views/system/sku-manage.vue
View file @
7ca96b84
This diff is collapsed.
Click to expand it.
src/views/system/sku-sort.vue
View file @
7ca96b84
...
...
@@ -38,6 +38,9 @@
<el-form-item>
<el-button
type=
"danger"
@
click=
"deleteSection()"
>
删除
</el-button>
</el-form-item>
<el-form-item
style=
"margin-bottom: 0px"
>
<el-button
type=
"primary"
@
click=
"importExcel"
>
导入
</el-button>
</el-form-item>
</el-form>
<div
class=
"table_wrap"
>
<my-table
...
...
@@ -368,6 +371,22 @@ export default {
}
,
methods
:
{
importExcel
()
{
const
input
=
document
.
createElement
(
'input'
)
input
.
style
.
display
=
'none'
input
.
type
=
'file'
input
.
click
()
input
.
onchange
=
async
()
=>
{
const
form
=
new
FormData
()
form
.
append
(
'importExcel'
,
input
.
files
.
length
>
0
?
input
.
files
[
0
]
:
[])
const
res
=
await
axios
.
post
(
'baseProperty/importBaseProperty'
,
form
)
console
.
log
(
res
)
if
(
res
.
code
===
200
)
{
this
.
$message
.
success
(
'导入成功'
)
this
.
getList
()
}
}
}
,
async
changeDisableStatus
(
v
,
item
)
{
try
{
await
this
.
$confirm
(
...
...
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