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 81183935
authored
Mar 10, 2022
by
张杰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新增车型库缓存处理
1 parent
19e01ab0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
9 deletions
src/store/mutations.js
src/store/state.js
src/views/vehicleManage/vehicleList.vue
src/store/mutations.js
View file @
8118393
...
@@ -2,5 +2,10 @@ export default {
...
@@ -2,5 +2,10 @@ export default {
//更新全局baseURL
//更新全局baseURL
updateBaseURL
(
state
,
newBaseURL
)
{
updateBaseURL
(
state
,
newBaseURL
)
{
state
.
baseURL
=
newBaseURL
;
state
.
baseURL
=
newBaseURL
;
},
// 更新车型库
updateVehicleList
(
state
,
data
)
{
state
.
vehicleList
=
data
;
}
}
}
}
src/store/state.js
View file @
8118393
...
@@ -11,11 +11,12 @@ const state = {
...
@@ -11,11 +11,12 @@ const state = {
email
:
''
,
email
:
''
,
gender
:
''
,
gender
:
''
,
position
:
''
position
:
''
}
},
vehicleList
:
[],
//车型库数据
}
}
try
{
//
try {
}
catch
(
e
)
{
}
// } catch (e) {
}
export
default
state
;
export
default
state
;
\ No newline at end of file
\ No newline at end of file
src/views/vehicleManage/vehicleList.vue
View file @
8118393
...
@@ -267,6 +267,7 @@ import {
...
@@ -267,6 +267,7 @@ import {
}
from
"services/vehicle"
;
}
from
"services/vehicle"
;
import
{
getOrgTree
}
from
"services/common"
;
import
{
getOrgTree
}
from
"services/common"
;
import
AuthButton
from
"@/components/auth-button"
;
import
AuthButton
from
"@/components/auth-button"
;
import
moment
from
"moment"
;
export
default
{
export
default
{
data
()
{
data
()
{
const
_this
=
this
;
const
_this
=
this
;
...
@@ -1368,6 +1369,13 @@ export default {
...
@@ -1368,6 +1369,13 @@ export default {
// 获取车辆数据
// 获取车辆数据
getModels
(
resolve
)
{
getModels
(
resolve
)
{
let
_this
=
this
;
let
_this
=
this
;
let
vlist
=
_this
.
$store
.
state
.
vehicleList
;
if
(
vlist
&&
vlist
.
length
>
0
)
{
_this
.
vehicleList
=
vlist
;
this
.
vehicleListInit
=
true
;
resolve
();
return
false
;
}
GETVEHICLETREE
().
then
((
res
)
=>
{
GETVEHICLETREE
().
then
((
res
)
=>
{
if
(
res
.
code
!=
200
)
{
if
(
res
.
code
!=
200
)
{
return
false
;
return
false
;
...
@@ -1667,10 +1675,9 @@ export default {
...
@@ -1667,10 +1675,9 @@ export default {
},
},
// 选择文件
// 选择文件
chooseFiles
(){
chooseFiles
()
{
this
.
$refs
.
importInputFile
.
click
()
this
.
$refs
.
importInputFile
.
click
();
}
},
},
},
};
};
</
script
>
</
script
>
...
@@ -1788,7 +1795,7 @@ export default {
...
@@ -1788,7 +1795,7 @@ export default {
}
}
.btn_default
{
.btn_default
{
position
:
relative
;
position
:
relative
;
z-index
:
2
;
z-index
:
2
;
background
:
#fff
;
background
:
#fff
;
border
:
1px
solid
#dcdfe6
;
border
:
1px
solid
#dcdfe6
;
font-size
:
12px
;
font-size
:
12px
;
...
...
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