Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
Overview
Overview
Details
Activity
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
常超
founder_vue
Commits
1add58ca
Commit
1add58ca
authored
Jun 23, 2022
by
hd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改车辆档案
parent
8bb6d909
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
13 deletions
+17
-13
src/views/ryda/carDa/carDagj.vue
+7
-7
src/views/ryda/carda.vue
+9
-5
vue.config.js
+1
-1
No files found.
src/views/ryda/carDa/carDagj.vue
View file @
1add58ca
...
...
@@ -384,13 +384,13 @@ export default {
iDays
=
parseInt
(
Math
.
abs
(
oDate1
-
oDate2
)
/
1000
/
60
/
60
/
24
);
// return iDays;
if
(
iDays
<
31
)
{
this
.
carwzQueryData
.
kssj
=
val
[
0
];
this
.
carwzQueryData
.
jssj
=
val
[
1
];
this
.
$refs
.
rightContents
.
doQuery
(
"yes"
);
}
else
{
this
.
$message
.
error
(
"时间超过30天, 请重新选择时间!"
);
}
//
if (iDays
<
31
)
{
this
.
carwzQueryData
.
kssj
=
val
[
0
];
this
.
carwzQueryData
.
jssj
=
val
[
1
];
this
.
$refs
.
rightContents
.
doQuery
(
"yes"
);
//
} else {
//
this.$message.error("时间超过30天, 请重新选择时间!");
//
}
},
},
};
...
...
src/views/ryda/carda.vue
View file @
1add58ca
...
...
@@ -1597,9 +1597,11 @@ export default {
json
=
{};
json
[
"hphm"
]
=
sessionStorage
.
getItem
(
"cphm"
);
self
.
postCarJbxx
(
JSON
.
stringify
(
json
)).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
success
)
{
console
.
log
(
res
)
// debugger;
self
.
formData
.
forEach
((
item
)
=>
{
console
.
log
(
"prop"
,
res
.
data
.
result
.
rows
[
item
.
prop
])
item
.
value
=
res
.
data
.
result
.
rows
[
item
.
prop
];
});
for
(
let
i
in
self
.
formDataCl
)
{
...
...
@@ -1779,7 +1781,8 @@ export default {
let
json
=
{};
json
[
"hphm"
]
=
sessionStorage
.
getItem
(
"cphm"
);
self
.
postGetTbStCldaClbq
(
JSON
.
stringify
(
json
)).
then
((
res
)
=>
{
if
(
res
.
success
==
true
)
{
console
.
log
(
"res"
,
res
)
if
(
res
.
success
)
{
self
.
zdbqList
=
res
.
data
.
result
.
rows
;
}
else
{
self
.
$message
({
...
...
@@ -2082,8 +2085,8 @@ export default {
json
[
"kssj"
]
=
self
.
valueCxgl
[
0
]
?
self
.
valueCxgl
[
0
]
:
""
;
json
[
"jssj"
]
=
self
.
valueCxgl
[
1
]
?
self
.
valueCxgl
[
1
]
:
""
;
self
.
postGetClcxsjgl
(
JSON
.
stringify
(
json
)).
then
((
res
)
=>
{
if
(
res
.
success
==
true
)
{
self
.
getCxgltjt
(
res
.
data
.
result
.
rows
);
if
(
res
.
success
)
{
self
.
getCxgltjt
(
res
.
data
.
result
?
.
rows
);
}
else
{
self
.
$message
.
error
(
"查询失败"
);
}
...
...
@@ -2091,6 +2094,7 @@ export default {
},
// 出行规律统计图
getCxgltjt
(
item
)
{
// if (!item) return false
const
_this
=
this
;
let
myChart
=
this
.
$echarts
.
init
(
document
.
getElementById
(
"charts"
));
// 绘制图表
...
...
@@ -2247,7 +2251,7 @@ export default {
this
.
valueCxgl
[
0
]
=
val
[
0
];
this
.
valueCxgl
[
1
]
=
val
[
1
];
this
.
postGetClcxsjglLsit
();
}
else
{
}
else
if
(
iDays
>
31
)
{
this
.
$message
.
error
(
"时间超过30天, 请重新选择时间!"
);
}
},
...
...
vue.config.js
View file @
1add58ca
...
...
@@ -62,7 +62,7 @@ module.exports = {
},
proxy
:
{
"/apiAjzb"
:
{
target
:
"http://192.168.1.109:850
1
/"
,
//统一的请求头部每次修改都要重启才会生效西藏:
target
:
"http://192.168.1.109:850
2
/"
,
//统一的请求头部每次修改都要重启才会生效西藏:
// target: "http://192.168.1.115:8002/", //统一的请求头部每次修改都要重启才会生效
ws
:
true
,
changeOrigin
:
true
,
...
...
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