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 19e01ab0
authored
Mar 10, 2022
by
张杰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
d64e0653
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
11 deletions
src/components/auth-button/index.vue
src/components/auth-button/link.vue
src/views/vehicleManage/vehicleList.vue
src/components/auth-button/index.vue
View file @
19e01ab
...
...
@@ -41,6 +41,9 @@ export default {
let
id
=
this
.
uid
;
let
_name
=
this
.
name
;
let
list
=
this
.
$root
.
parentCommon
.
getAuthData
();
if
(
!
list
||
list
.
length
<=
0
)
{
return
false
;
}
let
idx
=
list
.
findIndex
((
k
)
=>
k
.
id
==
id
||
k
.
label
==
_name
);
if
(
idx
<
0
)
{
return
false
;
...
...
src/components/auth-button/link.vue
View file @
19e01ab
...
...
@@ -34,6 +34,9 @@ export default {
let
id
=
this
.
uid
;
let
_name
=
this
.
name
;
let
list
=
this
.
$root
.
parentCommon
.
getAuthData
();
if
(
!
list
||
list
.
length
<=
0
)
{
return
false
;
}
let
idx
=
list
.
findIndex
((
k
)
=>
k
.
id
==
id
||
k
.
label
==
_name
);
if
(
idx
<
0
)
{
return
false
;
...
...
src/views/vehicleManage/vehicleList.vue
View file @
19e01ab
...
...
@@ -198,9 +198,9 @@
<el-input
readonly
:size=
"btn_size"
v-model=
"importForm.fileName"
ref=
"importInput"
></el-input>
</el-col>
<el-col
:span=
"6"
class=
"m-l-md impot_btn"
>
<
el-button
class=
"import-btn"
:size=
"btn_size"
>
导入文件
<
/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-button class="" :size="btn_size">导入文件</el-button> -->
<
a
href=
"javascript:void(0)"
class=
"btn_default"
@
click=
"chooseFiles"
>
导入文件
</a
>
<input
ref=
"import
Input
File"
: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-button
type=
"text"
class=
"import-template"
icon=
"el-icon-link"
@
click=
"downloadTemplate"
>
模版下载
</el-button>
</el-form-item>
...
...
@@ -870,6 +870,7 @@ export default {
dialogType
:
""
,
vinEdit
:
true
,
// 编辑车辆是否可以编辑车架号
btn_size
:
"mini"
,
};
},
components
:
{
...
...
@@ -1113,7 +1114,7 @@ export default {
this
.
importForm
=
{};
this
.
exportData
=
{};
this
.
$refs
.
importFile
.
value
=
""
;
this
.
$refs
.
serchButton
.
click
();
this
.
$refs
.
serchButton
.
$el
.
click
();
}
break
;
case
"export"
:
...
...
@@ -1169,7 +1170,7 @@ export default {
this
.
$refs
.
serchButton
.
$el
.
click
();
//this.$refs.vehicleForm.refreshTable();
//this.$refs.snForm.refreshTable();
}
}
});
});
break
;
...
...
@@ -1641,7 +1642,7 @@ export default {
}
console
.
log
(
list
);
let
olist
=
list
.
filter
((
k
)
=>
k
.
sn
==
value
);
if
(
olist
.
length
>
1
)
{
cb
(
new
Error
(
"不能输入相同设备号"
));
return
false
;
...
...
@@ -1664,6 +1665,12 @@ export default {
}
});
},
// 选择文件
chooseFiles
(){
this
.
$refs
.
importInputFile
.
click
()
}
},
};
</
script
>
...
...
@@ -1773,10 +1780,27 @@ export default {
}
.import-input
{
position
:
absolute
;
top
:
0
;
right
:
0
;
bottom
:
0
;
left
:
0
;
z-index
:
2
;
//
top
:
0
;
//
right
:
0
;
//
bottom
:
0
;
//
left
:
0
;
z-index
:
1
;
}
.btn_default
{
position
:
relative
;
z-index
:
2
;
background
:
#fff
;
border
:
1px
solid
#dcdfe6
;
font-size
:
12px
;
color
:
#606266
;
padding
:
6px
15px
;
border-radius
:
4px
;
box-sizing
:
border-box
;
}
.btn_default
:focus
,
.btn_default
:hover
{
color
:
#409eff
;
border-color
:
#c6e2ff
;
background
:
#ecf5ff
;
}
</
style
>
\ 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