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 d3838cf5
authored
May 13, 2022
by
jack
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
v1.7.0版本需求
1 parent
1992a10d
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
316 additions
and
260 deletions
package-lock.json
src/common/constants.js
src/common/index.js
src/main.js
src/views/reportManage/actived.vue
src/views/vehicleManage/vehicleList.vue
package-lock.json
View file @
d3838cf
This diff could not be displayed because it is too large.
src/common/constants.js
View file @
d3838cf
//常量定义
//常量定义
//车辆用途
//车辆用途
export
const
VEHICLE_USE_LIST
=
[
export
const
VEHICLE_USE_LIST
=
[
{
{
label
:
"专属用途"
,
label
:
'专属用途'
,
value
:
"1"
,
value
:
'1'
,
},
},
{
{
label
:
"非专属用途"
,
label
:
'非专属用途'
,
value
:
"2"
,
value
:
'2'
,
},
},
]
]
// 车辆标签
// 车辆标签
export
const
VEHICLE_TAG_LIST
=
[
export
const
VEHICLE_TAG_LIST
=
[
{
{
label
:
"试驶车 "
,
label
:
'试驶车 '
,
value
:
"1"
,
value
:
'1'
,
},
},
{
{
label
:
"服务车"
,
label
:
'服务车'
,
value
:
"3"
,
value
:
'3'
,
},
},
{
{
label
:
"代步车"
,
label
:
'代步车'
,
value
:
"4"
,
value
:
'4'
,
},
},
{
{
label
:
"救援车"
,
label
:
'救援车'
,
value
:
"5"
,
value
:
'5'
,
},
},
{
{
label
:
"办公车"
,
label
:
'办公车'
,
value
:
"6"
,
value
:
'6'
,
},
},
{
{
label
:
"其他"
,
label
:
'其他'
,
value
:
"7"
,
value
:
'7'
,
},
},
]
]
// 围栏列表-监控类型
// 围栏列表-监控类型
export
const
FENCE_MONITOR_LIST
=
[
export
const
FENCE_MONITOR_LIST
=
[
{
label
:
'驶入'
,
value
:
'1'
},
{
label
:
'驶入'
,
value
:
'1'
},
{
label
:
'驶出'
,
value
:
'2'
},
{
label
:
'驶出'
,
value
:
'2'
},
{
label
:
'驶入驶出'
,
value
:
'3'
},
{
label
:
'驶入驶出'
,
value
:
'3'
},
]
]
// 围栏列表-状态
// 围栏列表-状态
export
const
FENCE_TYPE_LIST
=
[
export
const
FENCE_TYPE_LIST
=
[
{
label
:
'已开启'
,
value
:
'1'
},
{
label
:
'已开启'
,
value
:
'1'
},
{
label
:
'已关闭'
,
value
:
'0'
},
{
label
:
'已关闭'
,
value
:
'0'
},
]
]
// 车辆在线状态
// 车辆在线状态
export
const
VEHICLE_ONLINE_STATUS
=
[
export
const
VEHICLE_ONLINE_STATUS
=
[
{
label
:
'行驶中'
,
value
:
0
},
{
label
:
'静止'
,
value
:
1
},
{
label
:
'离线'
,
value
:
2
},
{
label
:
'在线'
,
value
:
3
},
]
\ No newline at end of file
\ No newline at end of file
{
label
:
'行驶中'
,
value
:
0
},
{
label
:
'静止'
,
value
:
1
},
{
label
:
'离线'
,
value
:
2
},
{
label
:
'在线'
,
value
:
3
},
]
// 是否结清
export
const
SETTLEFLAGLIST
=
{
0
:
'未结清'
,
1
:
'已结清'
,
}
export
const
SETTLE_FLAG_LIST
=
[
{
label
:
'未结清'
,
value
:
0
},
{
label
:
'已结清'
,
value
:
1
},
]
src/common/index.js
View file @
d3838cf
import
moment
from
'@/common/moment'
;
import
moment
from
'@/common/moment'
// 警情中心-围栏报警
// 警情中心-围栏报警
export
const
fenceShortcuts
=
[
export
const
fenceShortcuts
=
[
{
{
text
:
"全部"
,
text
:
'全部'
,
onClick
(
picker
)
{
onClick
(
picker
)
{
picker
.
$emit
(
"pick"
,
[]);
picker
.
$emit
(
'pick'
,
[])
},
},
},
{
},
text
:
"今日"
,
{
onClick
(
picker
)
{
text
:
'今日'
,
const
end
=
moment
().
format
(
"YYYY-MM-DD"
);
onClick
(
picker
)
{
picker
.
$emit
(
"pick"
,
[
end
,
end
]);
const
end
=
moment
().
format
(
'YYYY-MM-DD'
)
}
picker
.
$emit
(
'pick'
,
[
end
,
end
])
},
{
},
text
:
"昨日"
,
},
onClick
(
picker
)
{
{
const
start
=
moment
()
text
:
'昨日'
,
.
day
(
moment
().
day
()
-
1
)
onClick
(
picker
)
{
.
format
(
"YYYY-MM-DD"
);
const
start
=
moment
()
const
end
=
moment
()
.
day
(
moment
().
day
()
-
1
)
.
day
(
moment
().
day
()
-
1
)
.
format
(
'YYYY-MM-DD'
)
.
format
(
"YYYY-MM-DD"
);
const
end
=
moment
()
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
.
day
(
moment
().
day
()
-
1
)
}
.
format
(
'YYYY-MM-DD'
)
},
picker
.
$emit
(
'pick'
,
[
start
,
end
])
{
},
text
:
"近7天"
,
},
onClick
(
picker
)
{
{
const
end
=
moment
().
format
(
"YYYY-MM-DD"
);
text
:
'近7天'
,
const
start
=
moment
()
onClick
(
picker
)
{
.
day
(
moment
().
day
()
-
6
)
const
end
=
moment
().
format
(
'YYYY-MM-DD'
)
.
format
(
"YYYY-MM-DD"
);
const
start
=
moment
()
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
.
day
(
moment
().
day
()
-
6
)
}
.
format
(
'YYYY-MM-DD'
)
},
picker
.
$emit
(
'pick'
,
[
start
,
end
])
{
},
text
:
"近15天"
,
},
onClick
(
picker
)
{
{
const
end
=
moment
().
format
(
"YYYY-MM-DD"
);
text
:
'近15天'
,
const
start
=
moment
()
onClick
(
picker
)
{
.
day
(
moment
().
day
()
-
14
)
const
end
=
moment
().
format
(
'YYYY-MM-DD'
)
.
format
(
"YYYY-MM-DD"
);
const
start
=
moment
()
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
.
day
(
moment
().
day
()
-
14
)
},
.
format
(
'YYYY-MM-DD'
)
},
picker
.
$emit
(
'pick'
,
[
start
,
end
])
{
},
text
:
"近30天"
,
},
onClick
(
picker
)
{
{
const
end
=
moment
().
format
(
"YYYY-MM-DD"
);
text
:
'近30天'
,
const
start
=
moment
()
onClick
(
picker
)
{
.
day
(
moment
().
day
()
-
29
)
const
end
=
moment
().
format
(
'YYYY-MM-DD'
)
.
format
(
"YYYY-MM-DD"
);
const
start
=
moment
()
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
.
day
(
moment
().
day
()
-
29
)
},
.
format
(
'YYYY-MM-DD'
)
}
picker
.
$emit
(
'pick'
,
[
start
,
end
])
},
},
]
]
// 警情中心-停驶报警
// 警情中心-停驶报警
export
const
shutDownShortcuts
=
[
export
const
shutDownShortcuts
=
[
{
{
text
:
"全部"
,
text
:
'全部'
,
onClick
(
picker
)
{
onClick
(
picker
)
{
picker
.
$emit
(
"pick"
,
[]);
picker
.
$emit
(
'pick'
,
[])
},
},
{
text
:
"近3天"
,
onClick
(
picker
)
{
const
end
=
moment
().
format
(
"YYYY-MM-DD"
);
const
start
=
moment
()
.
day
(
moment
().
day
()
-
2
)
.
format
(
"YYYY-MM-DD"
);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
}
},
{
text
:
"近7天"
,
onClick
(
picker
)
{
const
end
=
moment
().
format
(
"YYYY-MM-DD"
);
const
start
=
moment
()
.
day
(
moment
().
day
()
-
6
)
.
format
(
"YYYY-MM-DD"
);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
}
},
{
text
:
"本月"
,
onClick
(
picker
)
{
const
start
=
moment
().
add
(
"month"
,
0
).
format
(
"YYYY-MM"
)
+
"-01"
;
const
end
=
moment
().
format
(
"YYYY-MM-DD"
);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
},
},
},
},
{
text
:
'近3天'
,
onClick
(
picker
)
{
const
end
=
moment
().
format
(
'YYYY-MM-DD'
)
const
start
=
moment
()
.
day
(
moment
().
day
()
-
2
)
.
format
(
'YYYY-MM-DD'
)
picker
.
$emit
(
'pick'
,
[
start
,
end
])
},
},
{
text
:
'近7天'
,
onClick
(
picker
)
{
const
end
=
moment
().
format
(
'YYYY-MM-DD'
)
const
start
=
moment
()
.
day
(
moment
().
day
()
-
6
)
.
format
(
'YYYY-MM-DD'
)
picker
.
$emit
(
'pick'
,
[
start
,
end
])
},
},
{
text
:
'本月'
,
onClick
(
picker
)
{
const
start
=
moment
().
add
(
'month'
,
0
).
format
(
'YYYY-MM'
)
+
'-01'
const
end
=
moment
().
format
(
'YYYY-MM-DD'
)
picker
.
$emit
(
'pick'
,
[
start
,
end
])
},
},
]
]
// 里程统计详情
// 里程统计详情
export
const
mileageDetailShortcuts
=
[
export
const
mileageDetailShortcuts
=
[
{
text
:
"全部"
,
onClick
(
picker
)
{
picker
.
$emit
(
"pick"
,
[]);
},
},
{
text
:
"昨日"
,
onClick
(
picker
)
{
const
start
=
moment
()
.
day
(
moment
().
day
()
-
1
)
.
format
(
"YYYY-MM-DD"
);
const
end
=
moment
()
.
day
(
moment
().
day
()
-
1
)
.
format
(
"YYYY-MM-DD"
);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
}
},
{
text
:
"本周"
,
onClick
(
picker
)
{
const
end
=
moment
().
format
(
"YYYY-MM-DD"
);
const
start
=
moment
().
weekday
(
0
).
format
(
"YYYY-MM-DD"
);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
},
},
{
text
:
"上周"
,
onClick
(
picker
)
{
let
weekOfDay
=
parseInt
(
moment
().
format
(
"E"
));
const
end
=
moment
()
.
subtract
(
weekOfDay
,
"days"
)
.
format
(
"YYYY-MM-DD"
);
const
start
=
moment
()
.
subtract
(
weekOfDay
+
7
-
1
,
"days"
)
.
format
(
"YYYY-MM-DD"
);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
},
},
{
text
:
"本月"
,
onClick
(
picker
)
{
const
start
=
moment
().
add
(
"month"
,
0
).
format
(
"YYYY-MM"
)
+
"-01"
;
const
end
=
moment
().
format
(
"YYYY-MM-DD"
);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
},
},
{
text
:
"上月"
,
onClick
(
picker
)
{
const
end
=
moment
()
.
month
(
moment
().
month
()
-
1
)
.
endOf
(
"month"
)
.
format
(
"YYYY-MM-DD"
);
const
start
=
moment
()
.
month
(
moment
().
month
()
-
1
)
.
startOf
(
"month"
)
.
format
(
"YYYY-MM-DD"
);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
},
},
]
\ No newline at end of file
\ No newline at end of file
{
text
:
'全部'
,
onClick
(
picker
)
{
picker
.
$emit
(
'pick'
,
[])
},
},
{
text
:
'昨日'
,
onClick
(
picker
)
{
const
start
=
moment
()
.
day
(
moment
().
day
()
-
1
)
.
format
(
'YYYY-MM-DD'
)
const
end
=
moment
()
.
day
(
moment
().
day
()
-
1
)
.
format
(
'YYYY-MM-DD'
)
picker
.
$emit
(
'pick'
,
[
start
,
end
])
},
},
{
text
:
'本周'
,
onClick
(
picker
)
{
const
end
=
moment
().
format
(
'YYYY-MM-DD'
)
const
start
=
moment
().
weekday
(
0
).
format
(
'YYYY-MM-DD'
)
picker
.
$emit
(
'pick'
,
[
start
,
end
])
},
},
{
text
:
'上周'
,
onClick
(
picker
)
{
let
weekOfDay
=
parseInt
(
moment
().
format
(
'E'
))
const
end
=
moment
().
subtract
(
weekOfDay
,
'days'
).
format
(
'YYYY-MM-DD'
)
const
start
=
moment
()
.
subtract
(
weekOfDay
+
7
-
1
,
'days'
)
.
format
(
'YYYY-MM-DD'
)
picker
.
$emit
(
'pick'
,
[
start
,
end
])
},
},
{
text
:
'本月'
,
onClick
(
picker
)
{
const
start
=
moment
().
add
(
'month'
,
0
).
format
(
'YYYY-MM'
)
+
'-01'
const
end
=
moment
().
format
(
'YYYY-MM-DD'
)
picker
.
$emit
(
'pick'
,
[
start
,
end
])
},
},
{
text
:
'上月'
,
onClick
(
picker
)
{
const
end
=
moment
()
.
month
(
moment
().
month
()
-
1
)
.
endOf
(
'month'
)
.
format
(
'YYYY-MM-DD'
)
const
start
=
moment
()
.
month
(
moment
().
month
()
-
1
)
.
startOf
(
'month'
)
.
format
(
'YYYY-MM-DD'
)
picker
.
$emit
(
'pick'
,
[
start
,
end
])
},
},
]
// 设备激活时间
export
const
deviceActivedShortcuts
=
[
{
text
:
'全部'
,
onClick
(
picker
)
{
const
end
=
''
const
start
=
''
picker
.
$emit
(
'pick'
,
[
start
,
end
])
},
},
{
text
:
'今日'
,
onClick
(
picker
)
{
const
end
=
moment
().
format
(
'YYYY-MM-DD'
)
const
start
=
moment
().
format
(
'YYYY-MM-DD'
)
picker
.
$emit
(
'pick'
,
[
start
,
end
])
},
},
{
text
:
'昨日'
,
onClick
(
picker
)
{
const
start
=
moment
()
.
day
(
moment
().
day
()
-
1
)
.
format
(
'YYYY-MM-DD'
)
const
end
=
moment
()
.
day
(
moment
().
day
()
-
1
)
.
format
(
'YYYY-MM-DD'
)
picker
.
$emit
(
'pick'
,
[
start
,
end
])
},
},
{
text
:
'近7天'
,
onClick
(
picker
)
{
const
end
=
moment
().
format
(
'YYYY-MM-DD'
)
const
start
=
moment
()
.
day
(
moment
().
day
()
-
6
)
.
format
(
'YYYY-MM-DD'
)
picker
.
$emit
(
'pick'
,
[
start
,
end
])
},
},
{
text
:
'近15天'
,
onClick
(
picker
)
{
const
end
=
moment
().
format
(
'YYYY-MM-DD'
)
const
start
=
moment
()
.
day
(
moment
().
day
()
-
14
)
.
format
(
'YYYY-MM-DD'
)
picker
.
$emit
(
'pick'
,
[
start
,
end
])
},
},
{
text
:
'近30天'
,
onClick
(
picker
)
{
const
end
=
moment
().
format
(
'YYYY-MM-DD'
)
const
start
=
moment
()
.
day
(
moment
().
day
()
-
29
)
.
format
(
'YYYY-MM-DD'
)
picker
.
$emit
(
'pick'
,
[
start
,
end
])
},
},
]
src/main.js
View file @
d3838cf
...
@@ -31,6 +31,7 @@ function render({ data = {} , container } = {}) {
...
@@ -31,6 +31,7 @@ function render({ data = {} , container } = {}) {
routes
,
routes
,
});
});
store
.
state
.
baseURL
=
data
.
baseURL
;
store
.
state
.
baseURL
=
data
.
baseURL
;
Vue
.
prototype
.
$hasPermission
=
data
.
common
.
hasPermission
instance
=
new
Vue
({
instance
=
new
Vue
({
router
,
router
,
store
,
store
,
...
...
src/views/reportManage/actived.vue
View file @
d3838cf
...
@@ -52,16 +52,36 @@
...
@@ -52,16 +52,36 @@
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<div
class=
"table_box"
>
<div
class=
"table_box"
>
<el-table
class=
"el_table"
:data=
"tableData"
border
size=
"small"
v-loading=
"tloading"
>
<el-table
class=
"el_table"
:data=
"tableData"
border
size=
"small"
v-loading=
"tloading"
>
<el-table-column
label=
"工单号"
prop=
"workOrderNo"
></el-table-column>
<el-table-column
label=
"工单号"
prop=
"workOrderNo"
>
<el-table-column
label=
"姓名"
prop=
"ownerName"
></el-table-column>
<template
slot-scope=
"
{row}">
{{
row
.
workOrderNo
||
'--'
}}
</
template
>
<el-table-column
label=
"车架号"
prop=
"vin"
></el-table-column>
</el-table-column>
<el-table-column
label=
"设备号"
prop=
"sn"
></el-table-column>
<el-table-column
label=
"姓名"
prop=
"ownerName"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
ownerName
||
'--'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"车架号"
prop=
"vin"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
vin
||
'--'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"设备号"
prop=
"sn"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
sn
||
'--'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"设备类型"
prop=
"deviceTypeStr"
>
<el-table-column
label=
"设备类型"
prop=
"deviceTypeStr"
>
<
template
slot-scope=
"{row}"
>
{{
(
row
.
deviceTypeStr
||
''
)
+
(
row
.
sourceStr
&&
row
.
deviceTypeStr
?
'/'
:
''
)
+
(
row
.
sourceStr
||
''
)
}}
</
template
>
<
template
slot-scope=
"{row}"
>
{{
(
row
.
deviceTypeStr
||
''
)
+
(
row
.
sourceStr
&&
row
.
deviceTypeStr
?
'/'
:
''
)
+
(
row
.
sourceStr
||
''
)
}}
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"是否在线"
prop=
"isOnLineStr"
></el-table-column>
<el-table-column
label=
"是否在线"
prop=
"isOnLineStr"
>
<el-table-column
label=
"车辆归属"
prop=
"shopName"
></el-table-column>
<
template
slot-scope=
"{row}"
>
{{
row
.
isOnLineStr
||
'--'
}}
</
template
>
<el-table-column
label=
"激活时间"
prop=
"activeDate"
></el-table-column>
</el-table-column>
<el-table-column
label=
"车辆归属"
prop=
"shopName"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
shopName
||
'--'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"激活时间"
prop=
"activeDate"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
activeDate
||
'--'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"激活经纬度"
prop=
"lngAndLat"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
lngAndLat
||
'--'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"激活地址"
prop=
"activeAddress"
>
<
template
slot-scope=
"{row}"
>
{{
row
.
activeAddress
||
'--'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
fixed=
"right"
align=
"center"
width=
"180px"
>
<el-table-column
label=
"操作"
fixed=
"right"
align=
"center"
width=
"180px"
>
<
template
slot-scope=
"{row}"
>
<
template
slot-scope=
"{row}"
>
<el-link
class=
"el_link"
type=
"primary"
@
click=
"lookLocation(row)"
v-if=
"row.gpsLng|| row.bsLng"
>
查看激活位置
</el-link>
<el-link
class=
"el_link"
type=
"primary"
@
click=
"lookLocation(row)"
v-if=
"row.gpsLng|| row.bsLng"
>
查看激活位置
</el-link>
...
@@ -84,7 +104,7 @@ import {
...
@@ -84,7 +104,7 @@ import {
GET_DEVICEACTIVE_EXPORT
,
GET_DEVICEACTIVE_EXPORT
,
}
from
"@/services/report"
;
}
from
"@/services/report"
;
import
{
deepClone
,
showToast
}
from
"@/utils/util"
;
import
{
deepClone
,
showToast
}
from
"@/utils/util"
;
import
store
from
"@/store"
;
import
{
deviceActivedShortcuts
}
from
'@/common'
export
default
{
export
default
{
components
:
{
components
:
{
GlsxOrganization
,
GlsxOrganization
,
...
@@ -102,63 +122,7 @@ export default {
...
@@ -102,63 +122,7 @@ export default {
showResult
:
false
,
showResult
:
false
,
loading
:
false
,
loading
:
false
,
pickerOptions
:
{
pickerOptions
:
{
shortcuts
:
[
shortcuts
:
deviceActivedShortcuts
,
{
text
:
"全部"
,
onClick
(
picker
)
{
const
end
=
""
;
const
start
=
""
;
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
},
},
{
text
:
"今日"
,
onClick
(
picker
)
{
const
end
=
moment
().
format
(
"YYYY-MM-DD"
);
const
start
=
moment
().
format
(
"YYYY-MM-DD"
);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
},
},
{
text
:
"昨日"
,
onClick
(
picker
)
{
const
end
=
moment
().
format
(
"YYYY-MM-DD"
);
const
start
=
moment
().
format
(
"YYYY-MM-DD"
);
start
.
setTime
(
start
.
getTime
()
-
3600
*
1000
*
24
*
1
);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
},
},
{
text
:
"近7天"
,
onClick
(
picker
)
{
const
end
=
moment
().
format
(
"YYYY-MM-DD"
);
const
start
=
moment
()
.
day
(
moment
().
day
()
-
7
)
.
format
(
"YYYY-MM-DD"
);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
},
},
{
text
:
"近15天"
,
onClick
(
picker
)
{
const
end
=
moment
().
format
(
"YYYY-MM-DD"
);
const
start
=
moment
()
.
day
(
moment
().
day
()
-
15
)
.
format
(
"YYYY-MM-DD"
);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
},
},
{
text
:
"近30天"
,
onClick
(
picker
)
{
const
end
=
moment
().
format
(
"YYYY-MM-DD"
);
const
start
=
moment
()
.
day
(
moment
().
day
()
-
30
)
.
format
(
"YYYY-MM-DD"
);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
},
},
],
},
},
filterVisible
:
false
,
filterVisible
:
false
,
orgInfo
:
{},
orgInfo
:
{},
...
...
src/views/vehicleManage/vehicleList.vue
View file @
d3838cf
...
@@ -53,6 +53,12 @@
...
@@ -53,6 +53,12 @@
<el-option
v-for=
"(item,index) in VEHICLE_ONLINE_STATUS"
:key=
"index"
:label=
"item.label"
:value=
"item.value"
></el-option>
<el-option
v-for=
"(item,index) in VEHICLE_ONLINE_STATUS"
:key=
"index"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"是否结清:"
>
<el-select
v-model=
"searchForm.settleFlag"
class=
"small_select"
>
<el-option
label=
"全部"
value=
""
></el-option>
<el-option
v-for=
"(item,index) in SETTLE_FLAG_LIST"
:key=
"index"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
:size=
"btn_size"
icon=
"el-icon-search"
@
click=
"getList()"
>
搜索
</el-button>
<el-button
type=
"primary"
:size=
"btn_size"
icon=
"el-icon-search"
@
click=
"getList()"
>
搜索
</el-button>
<el-button
type=
"primary"
:size=
"btn_size"
icon=
"el-icon-refresh"
@
click=
"refresh"
>
重置
</el-button>
<el-button
type=
"primary"
:size=
"btn_size"
icon=
"el-icon-refresh"
@
click=
"refresh"
>
重置
</el-button>
...
@@ -109,6 +115,9 @@
...
@@ -109,6 +115,9 @@
<
template
slot-scope=
"{row}"
>
{{
row
.
deviceStateStr
||
'--'
}}
</
template
>
<
template
slot-scope=
"{row}"
>
{{
row
.
deviceStateStr
||
'--'
}}
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"特殊状态"
prop=
"specialState"
show-overflow-tooltip
></el-table-column>
<el-table-column
label=
"特殊状态"
prop=
"specialState"
show-overflow-tooltip
></el-table-column>
<el-table-column
label=
"是否结清"
prop=
"settleFlag"
show-overflow-tooltip
>
<
template
slot-scope=
"{row}"
>
{{
settleFlagList
[
row
.
settleFlag
]
||
'--'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
prop=
"vehicleUsageStr"
width=
"170"
>
<el-table-column
label=
"操作"
prop=
"vehicleUsageStr"
width=
"170"
>
<
template
slot-scope=
"{row}"
>
<
template
slot-scope=
"{row}"
>
<template
v-if=
"row.permitType == 'r'"
>
<template
v-if=
"row.permitType == 'r'"
>
...
@@ -214,11 +223,11 @@
...
@@ -214,11 +223,11 @@
<el-form-item
label=
"车型/车系:"
prop=
"carIds"
class=
"long_form_item"
>
<el-form-item
label=
"车型/车系:"
prop=
"carIds"
class=
"long_form_item"
>
<el-cascader
v-model=
"snForm.carIds"
:options=
"vehicleList"
:props=
"vehicleProps"
class=
"el_cascader"
></el-cascader>
<el-cascader
v-model=
"snForm.carIds"
:options=
"vehicleList"
:props=
"vehicleProps"
class=
"el_cascader"
></el-cascader>
</el-form-item>
</el-form-item>
<el-form-item
label=
"是否结清:"
>
<el-form-item
label=
"是否结清:"
v-if=
"hasPermission('vehicle_vin_settle')"
>
<div
class=
"el_switch_box"
>
<div
class=
"el_switch_box"
>
<el-switch
v-model=
"snForm.
value1
"
>
<el-switch
v-model=
"snForm.
settleFlag"
:active-value=
"1"
:inactive-value=
"0
"
>
</el-switch>
</el-switch>
<span
class=
"tips"
>
{{snForm.
value1
?'已结清':'未结清'}}
</span>
<span
class=
"tips"
>
{{snForm.
settleFlag
?'已结清':'未结清'}}
</span>
</div>
</div>
</el-form-item>
</el-form-item>
<el-form-item
label=
"排量:"
>
<el-form-item
label=
"排量:"
>
...
@@ -377,7 +386,7 @@ import { getOrgTree } from "services/common";
...
@@ -377,7 +386,7 @@ import { getOrgTree } from "services/common";
import
AuthButton
from
"@/components/auth-button"
;
import
AuthButton
from
"@/components/auth-button"
;
import
moment
from
"moment"
;
import
moment
from
"moment"
;
import
GlsxOrganization
from
"@/components/glsx-organization"
;
import
GlsxOrganization
from
"@/components/glsx-organization"
;
import
{
VEHICLE_USE_LIST
,
VEHICLE_TAG_LIST
}
from
"@/common/constants"
;
import
{
VEHICLE_USE_LIST
,
VEHICLE_TAG_LIST
,
SETTLEFLAGLIST
,
SETTLE_FLAG_LIST
}
from
"@/common/constants"
;
export
default
{
export
default
{
components
:
{
components
:
{
freqModal
,
freqModal
,
...
@@ -817,6 +826,8 @@ export default {
...
@@ -817,6 +826,8 @@ export default {
],
],
VEHICLE_ONLINE_STATUS
,
VEHICLE_ONLINE_STATUS
,
ajaxLoading
:
false
,
ajaxLoading
:
false
,
settleFlagList
:
SETTLEFLAGLIST
,
SETTLE_FLAG_LIST
};
};
},
},
...
@@ -1700,6 +1711,13 @@ export default {
...
@@ -1700,6 +1711,13 @@ export default {
row
.
disabled
=
!
row
.
disabled
;
row
.
disabled
=
!
row
.
disabled
;
this
.
$set
(
this
.
snForm
.
deviceInfoDtos
,
index
,
row
);
this
.
$set
(
this
.
snForm
.
deviceInfoDtos
,
index
,
row
);
},
},
// 是否有权限
hasPermission
(
id
){
return
this
.
$hasPermission
(
id
)
}
},
},
};
};
</
script
>
</
script
>
...
...
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