Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zghywpc-vue
Project
Project
Details
Activity
Releases
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
李苏
zghywpc-vue
Commits
a632c8be
Commit
a632c8be
authored
Jan 08, 2025
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整
parent
cc872aa7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
dialog.vue
src/views/fmegl/fmekpigl/biao/kpiImportButton/dialog.vue
+3
-3
No files found.
src/views/fmegl/fmekpigl/biao/kpiImportButton/dialog.vue
View file @
a632c8be
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
:auto-upload="false">
:auto-upload="false">
<el-button
slot=
"trigger"
size=
"small"
type=
"primary"
>
选择文件
</el-button>
<el-button
slot=
"trigger"
size=
"small"
type=
"primary"
>
选择文件
</el-button>
<div
class=
"flex"
style=
"margin-top: 10px;"
>
<div
class=
"flex"
style=
"margin-top: 10px;"
>
<span
style=
"line-height: 30px;width:
50px;font-size: 14px;"
>
年份:
</span>
<RelYearSelect
v-model=
"year
"
/>
<span
style=
"line-height: 30px;width:
45px;font-size: 12px;"
>
日期:
</span>
<el-date-picker
type=
"date"
v-model=
"date
"
/>
</div>
</div>
<div
slot=
"tip"
class=
"el-upload__tip"
>
如没有模板文件请点击
<span
@
click=
"toDownload"
<div
slot=
"tip"
class=
"el-upload__tip"
>
如没有模板文件请点击
<span
@
click=
"toDownload"
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
},
},
data
()
{
data
()
{
return
{
return
{
year
:
new
Date
().
getFullYear
(),
date
:
new
Date
().
getTime
(),
fileList
:
[],
fileList
:
[],
loading
:
false
,
loading
:
false
,
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
/* 拦截默认上传事件 */
/* 拦截默认上传事件 */
let
formData
=
new
FormData
();
let
formData
=
new
FormData
();
formData
.
append
(
'file'
,
file
)
formData
.
append
(
'file'
,
file
)
formData
.
append
(
'
year'
,
this
.
year
)
formData
.
append
(
'
date'
,
this
.
date
)
importTemp
(
formData
,
this
.
app
.
url
).
then
(
res
=>
{
importTemp
(
formData
,
this
.
app
.
url
).
then
(
res
=>
{
if
(
res
.
success
)
{
if
(
res
.
success
)
{
this
.
$success
(
'上传成功'
)
this
.
$success
(
'上传成功'
)
...
...
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