Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9b7ebd3b
authored
May 21, 2024
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix bug修复
1 parent
d8893c14
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
11 deletions
src/views/vehicleDamage/vehicleDamageOderImport.vue
src/views/vehicleDamage/vehicleDamageOderImportDetail.vue
src/views/vehicleDamage/vehicleDamageOderImport.vue
View file @
9b7ebd3
...
@@ -179,7 +179,7 @@
...
@@ -179,7 +179,7 @@
type=
"file"
type=
"file"
id=
"fileUpload"
id=
"fileUpload"
class=
"import-input"
class=
"import-input"
accept=
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
,application/vnd.ms-excel
"
accept=
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
@
change=
"importFileRest($event)"
@
change=
"importFileRest($event)"
/>
/>
</el-button>
</el-button>
...
@@ -443,6 +443,7 @@ export default {
...
@@ -443,6 +443,7 @@ export default {
// 模板下载
// 模板下载
downloadTemplate
()
{
downloadTemplate
()
{
this
.
previewVisible
=
!
this
.
previewVisible
this
.
previewVisible
=
!
this
.
previewVisible
this
.
options
=
[]
this
.
$refs
.
fileModulesRuleForm
&&
this
.
$refs
.
fileModulesRuleForm
&&
this
.
$refs
.
fileModulesRuleForm
.
resetFields
()
this
.
$refs
.
fileModulesRuleForm
.
resetFields
()
},
},
...
@@ -502,6 +503,7 @@ export default {
...
@@ -502,6 +503,7 @@ export default {
},
},
newTask
()
{
newTask
()
{
this
.
fileVisible
=
!
this
.
fileVisible
this
.
fileVisible
=
!
this
.
fileVisible
this
.
options
=
[]
this
.
$refs
.
fileRuleForm
&&
this
.
$refs
.
fileRuleForm
.
resetFields
()
this
.
$refs
.
fileRuleForm
&&
this
.
$refs
.
fileRuleForm
.
resetFields
()
},
},
// 上传文件,转码为base64
// 上传文件,转码为base64
...
@@ -510,6 +512,14 @@ export default {
...
@@ -510,6 +512,14 @@ export default {
const
size
=
e
.
target
.
files
[
0
].
size
/
1024
/
1024
const
size
=
e
.
target
.
files
[
0
].
size
/
1024
/
1024
if
(
size
<
9
)
{
if
(
size
<
9
)
{
this
.
$set
(
this
.
fileForm
,
"fileName"
,
e
.
target
.
files
[
0
].
name
)
this
.
$set
(
this
.
fileForm
,
"fileName"
,
e
.
target
.
files
[
0
].
name
)
const
fileName
=
e
.
target
.
files
[
0
].
name
if
(
!
fileName
.
includes
(
".xlsx"
))
{
this
.
$message
({
message
:
"文件格式不支持上传"
,
type
:
"error"
})
return
false
}
// // 转码base64
// // 转码base64
const
reader
=
new
FileReader
()
const
reader
=
new
FileReader
()
reader
.
readAsDataURL
(
e
.
target
.
files
[
0
])
reader
.
readAsDataURL
(
e
.
target
.
files
[
0
])
...
@@ -529,6 +539,13 @@ export default {
...
@@ -529,6 +539,13 @@ export default {
const
size
=
e
.
target
.
files
[
0
].
size
/
1024
/
1024
const
size
=
e
.
target
.
files
[
0
].
size
/
1024
/
1024
if
(
size
<
9
)
{
if
(
size
<
9
)
{
this
.
$set
(
this
.
fileFormRest
,
"fileName"
,
e
.
target
.
files
[
0
].
name
)
this
.
$set
(
this
.
fileFormRest
,
"fileName"
,
e
.
target
.
files
[
0
].
name
)
if
(
!
fileName
.
includes
(
".xlsx"
))
{
this
.
$message
({
message
:
"文件格式不支持上传"
,
type
:
"error"
})
return
false
}
// // 转码base64
// // 转码base64
const
reader
=
new
FileReader
()
const
reader
=
new
FileReader
()
reader
.
readAsDataURL
(
e
.
target
.
files
[
0
])
reader
.
readAsDataURL
(
e
.
target
.
files
[
0
])
...
...
src/views/vehicleDamage/vehicleDamageOderImportDetail.vue
View file @
9b7ebd3
...
@@ -83,16 +83,16 @@ export default {
...
@@ -83,16 +83,16 @@ export default {
)
)
}
}
},
},
{
//
{
label
:
"创建时间"
,
//
label: "创建时间",
prop
:
"createTime"
,
//
prop: "createTime",
formatter
:
(
cellValue
)
=>
{
//
formatter: (cellValue) => {
return
Util
.
dateFormate
(
//
return Util.dateFormate(
cellValue
.
createdTime
,
//
cellValue.createdTime,
"YYYY-MM-DD HH:mm:ss"
//
"YYYY-MM-DD HH:mm:ss"
)
//
)
}
//
}
},
//
},
{
{
label
:
"更新时间"
,
label
:
"更新时间"
,
prop
:
"updateTime"
,
prop
:
"updateTime"
,
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment