Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
micro-trialrun
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 c2f99d69
authored
Mar 08, 2022
by
张杰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复导入车辆
1 parent
56df8daf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
11 deletions
src/views/vehicleManage/vehicleList.vue
src/views/vehicleManage/vehicleList.vue
View file @
c2f99d6
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
<!-- 列表数据 end -->
<!-- 列表数据 end -->
<!-- 新增、编辑、查看弹框 开始 -->
<!-- 新增、编辑、查看弹框 开始 -->
<basic-dialog
width=
"800px"
:title=
"vehicleTitle"
:isVisible=
"vehicleVisible"
:hasOk=
"vehicleHasOk"
@
confirmDialog=
"handleConfirm('create')"
@
closeDialog=
"handleClose('
vehicleVisibl
e')"
>
<basic-dialog
width=
"800px"
:title=
"vehicleTitle"
:isVisible=
"vehicleVisible"
:hasOk=
"vehicleHasOk"
@
confirmDialog=
"handleConfirm('create')"
@
closeDialog=
"handleClose('
creat
e')"
>
<slot>
<slot>
<div
class=
"dialog_content"
v-loading=
"formLoading"
>
<div
class=
"dialog_content"
v-loading=
"formLoading"
>
<el-form
class=
"el_form"
ref=
"snForm"
:model=
"snForm"
:rules=
"vehicleRules"
:inline=
"false"
:disabled=
"isReadonly"
size=
"mini"
label-width=
"100px"
>
<el-form
class=
"el_form"
ref=
"snForm"
:model=
"snForm"
:rules=
"vehicleRules"
:inline=
"false"
:disabled=
"isReadonly"
size=
"mini"
label-width=
"100px"
>
...
@@ -190,17 +190,17 @@
...
@@ -190,17 +190,17 @@
<!-- 新增、编辑、查看弹框 开始 -->
<!-- 新增、编辑、查看弹框 开始 -->
<!-- 导入弹框 开始 -->
<!-- 导入弹框 开始 -->
<basic-dialog
:title=
"importTitle"
:isVisible=
"vehicleImport"
@
confirmDialog=
"handleConfirm('import')"
@
closeDialog=
"handleClose('
vehicleI
mport')"
>
<basic-dialog
:title=
"importTitle"
:isVisible=
"vehicleImport"
@
confirmDialog=
"handleConfirm('import')"
@
closeDialog=
"handleClose('
i
mport')"
>
<slot>
<slot>
<el-form
ref=
"importRuleForm"
:rules=
"importRules"
:model=
"importForm"
label-width=
"140px"
>
<el-form
ref=
"importRuleForm"
:rules=
"importRules"
:model=
"importForm"
label-width=
"140px"
>
<el-form-item
label=
"导入文件:"
prop=
"fileName"
>
<el-form-item
label=
"导入文件:"
prop=
"fileName"
>
<el-col
:span=
"14"
>
<el-col
:span=
"14"
>
<el-input
readonly
:size=
"btn_size"
v-model=
"importForm.fileName"
ref=
"importInput"
></el-input>
<el-input
readonly
:size=
"btn_size"
v-model=
"importForm.fileName"
ref=
"importInput"
></el-input>
</el-col>
</el-col>
<el-col
:span=
"6"
class=
"m-l-md"
>
<el-col
:span=
"6"
class=
"m-l-md
impot_btn
"
>
<el-button
class=
"import-btn"
:size=
"btn_size"
>
导入文件
<el-button
class=
"import-btn"
:size=
"btn_size"
>
导入文件
<input
:size=
"btn_size"
type=
"file"
id=
"importFile"
class=
"import-input"
accept=
".csv, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
@
change=
"importFile($event)"
/>
</el-button>
</el-button>
<input
ref=
"importFile"
:size=
"btn_size"
type=
"file"
id=
"importFile"
class=
"import-input"
accept=
".csv, application/vnd.ms-excel, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
@
change=
"importFile($event)"
/>
</el-col>
</el-col>
<el-button
type=
"text"
class=
"import-template"
icon=
"el-icon-link"
@
click=
"downloadTemplate"
>
模版下载
</el-button>
<el-button
type=
"text"
class=
"import-template"
icon=
"el-icon-link"
@
click=
"downloadTemplate"
>
模版下载
</el-button>
</el-form-item>
</el-form-item>
...
@@ -1112,6 +1112,7 @@ export default {
...
@@ -1112,6 +1112,7 @@ export default {
if
(
!
this
.
vehicleImport
)
{
if
(
!
this
.
vehicleImport
)
{
this
.
importForm
=
{};
this
.
importForm
=
{};
this
.
exportData
=
{};
this
.
exportData
=
{};
this
.
$refs
.
importFile
.
value
=
""
;
}
}
break
;
break
;
case
"export"
:
case
"export"
:
...
@@ -1277,13 +1278,7 @@ export default {
...
@@ -1277,13 +1278,7 @@ export default {
});
});
},
},
handleClose
(
id
)
{
handleClose
(
id
)
{
//this.btnClick(type);
this
.
btnClick
(
id
);
this
[
id
||
"vehicleVisible"
]
=
false
;
if
(
id
==
"vehicleVisible"
)
{
this
.
snForm
=
{};
this
.
dialogType
=
""
;
this
.
$refs
.
snForm
.
clearValidate
();
}
},
},
// 所属组织弹窗
// 所属组织弹窗
selectStore
()
{
selectStore
()
{
...
@@ -1757,4 +1752,16 @@ export default {
...
@@ -1757,4 +1752,16 @@ export default {
padding
:
8px
0
;
padding
:
8px
0
;
}
}
}
}
.impot_btn
{
position
:
relative
;
}
.import-input
{
position
:
absolute
;
top
:
0
;
right
:
0
;
bottom
:
0
;
left
:
0
;
z-index
:
2
;
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
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