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 1fda2558
authored
May 24, 2022
by
张杰
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'dev_zj_1.7.0' into 'v1.7.0'
第一轮bug修复 See merge request
!16
2 parents
a98766d3
cf955c5a
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
202 additions
and
268 deletions
src/common/index.js
src/components/glsx-table/table.vue
src/views/alarmCenter/shutdown.vue
src/views/reportManage/statistics_car.vue
src/views/reportManage/statistics_device.vue
src/views/vehicleManage/vehicleList.vue
src/common/index.js
View file @
1fda255
import
moment
from
'@/common/moment'
import
moment
from
'@/common/moment'
// 全部
let
allDays
=
{
text
:
'全部'
,
onClick
(
picker
)
{
picker
.
$emit
(
'pick'
,
[])
},
}
// 本月
let
currentMonth
=
{
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
])
},
}
// 今日
let
currentDay
=
{
text
:
'今日'
,
onClick
(
picker
)
{
const
end
=
moment
().
format
(
'YYYY-MM-DD'
)
picker
.
$emit
(
'pick'
,
[
end
,
end
])
},
}
// 昨日
let
yesterday
=
{
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
])
}
}
// 近3天
let
nearly3Days
=
{
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
])
},
}
// 近7天
let
nearly7Days
=
{
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
])
}
}
// 近15天
let
nearly15Days
=
{
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
])
}
}
// 近30天
let
nearly30Days
=
{
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
])
}
}
// 上月
let
lastMonth
=
{
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
])
},
}
// 上周
let
lastWeek
=
{
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
])
},
}
// 本周
let
currentWeek
=
{
text
:
'本周'
,
onClick
(
picker
)
{
const
end
=
moment
().
format
(
'YYYY-MM-DD'
)
const
start
=
moment
().
weekday
(
0
).
format
(
'YYYY-MM-DD'
)
picker
.
$emit
(
'pick'
,
[
start
,
end
])
},
}
// 警情中心-围栏报警
// 警情中心-围栏报警
export
const
fenceShortcuts
=
[
export
const
fenceShortcuts
=
[
{
allDays
,
text
:
'全部'
,
currentDay
,
onClick
(
picker
)
{
yesterday
,
picker
.
$emit
(
'pick'
,
[])
nearly7Days
,
},
nearly15Days
,
},
nearly30Days
{
text
:
'今日'
,
onClick
(
picker
)
{
const
end
=
moment
().
format
(
'YYYY-MM-DD'
)
picker
.
$emit
(
'pick'
,
[
end
,
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
])
},
},
]
]
// 警情中心-停驶报警
// 警情中心-停驶报警
export
const
shutDownShortcuts
=
[
export
const
shutDownShortcuts
=
[
{
allDays
,
text
:
'全部'
,
nearly3Days
,
onClick
(
picker
)
{
nearly7Days
,
picker
.
$emit
(
'pick'
,
[])
currentMonth
,
},
},
{
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
=
[
{
allDays
,
text
:
'全部'
,
yesterday
,
onClick
(
picker
)
{
currentWeek
,
picker
.
$emit
(
'pick'
,
[])
lastWeek
,
},
currentMonth
,
},
lastMonth
{
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
=
[
export
const
deviceActivedShortcuts
=
[
{
allDays
,
text
:
'全部'
,
currentDay
,
onClick
(
picker
)
{
nearly7Days
,
const
end
=
''
currentMonth
,
const
start
=
''
lastMonth
,
picker
.
$emit
(
'pick'
,
[
start
,
end
])
nearly30Days
},
},
{
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
])
},
},
]
]
// 超速报警
// 超速报警
export
const
speedShortcuts
=
[
export
const
speedShortcuts
=
[
{
allDays
,
text
:
'全部'
,
yesterday
,
onClick
(
picker
)
{
lastWeek
,
const
end
=
''
currentMonth
,
const
start
=
''
lastMonth
,
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
:
'上周'
,
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
staticReportCarShortcuts
=
[
allDays
,
yesterday
,
currentWeek
,
lastWeek
,
currentMonth
,
lastMonth
]
\ No newline at end of file
\ No newline at end of file
src/components/glsx-table/table.vue
View file @
1fda255
...
@@ -84,6 +84,7 @@ export default {
...
@@ -84,6 +84,7 @@ export default {
params
:
{
params
:
{
handler
:
function
(
n
,
o
)
{
handler
:
function
(
n
,
o
)
{
if
(
n
)
{
if
(
n
)
{
console
.
log
(
n
);
this
.
getList
();
this
.
getList
();
}
}
},
},
...
@@ -102,14 +103,20 @@ export default {
...
@@ -102,14 +103,20 @@ export default {
*/
*/
changePageSize
:
function
(
e
)
{
changePageSize
:
function
(
e
)
{
this
.
pageSize
=
e
;
this
.
pageSize
=
e
;
this
.
currentPage
=
1
;
this
.
getList
();
this
.
getList
();
},
},
// 获取参数
// 获取参数
getParams
(
current
)
{
getParams
(
current
)
{
console
.
log
(
this
.
params
);
let
oParams
=
{
...
this
.
params
};
let
oParams
=
{
...
this
.
params
};
if
(
current
||
oParams
.
current
)
{
this
.
currentPage
=
current
||
oParams
.
current
;
}
oParams
.
pageSize
=
this
.
pageSize
;
oParams
.
pageSize
=
this
.
pageSize
;
oParams
.
pageNumber
=
current
||
this
.
currentPage
;
oParams
.
pageNumber
=
current
||
oParams
.
current
||
this
.
currentPage
;
delete
oParams
.
current
;
return
oParams
;
return
oParams
;
},
},
...
@@ -117,6 +124,7 @@ export default {
...
@@ -117,6 +124,7 @@ export default {
getList
(
current
)
{
getList
(
current
)
{
let
request
=
this
.
request
;
let
request
=
this
.
request
;
let
oParams
=
this
.
getParams
(
current
);
let
oParams
=
this
.
getParams
(
current
);
console
.
log
(
oParams
);
this
.
loading
=
true
;
this
.
loading
=
true
;
request
(
oParams
)
request
(
oParams
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
...
@@ -141,6 +149,12 @@ export default {
...
@@ -141,6 +149,12 @@ export default {
this
.
currentPage
=
1
;
this
.
currentPage
=
1
;
this
.
getList
();
this
.
getList
();
},
},
// 重置分页参数
restParams
()
{
// this.pageSize = 10;
this
.
currentPage
=
1
;
},
},
},
};
};
</
script
>
</
script
>
...
...
src/views/alarmCenter/shutdown.vue
View file @
1fda255
...
@@ -80,7 +80,7 @@
...
@@ -80,7 +80,7 @@
</el-table-column>
</el-table-column>
<el-table-column
label=
"操作"
prop=
"lastGpsAddress"
>
<el-table-column
label=
"操作"
prop=
"lastGpsAddress"
>
<
template
slot-scope=
"{row}"
>
<
template
slot-scope=
"{row}"
>
<el-link
class=
"el_link"
type=
"primary"
@
click=
"lookDetail(row)"
>
常
住
地
</el-link>
<el-link
class=
"el_link"
type=
"primary"
@
click=
"lookDetail(row)"
>
常
驻
地
</el-link>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
...
src/views/reportManage/statistics_car.vue
View file @
1fda255
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
<el-option
label=
"车辆激活时间"
:value=
"1"
></el-option>
<el-option
label=
"车辆激活时间"
:value=
"1"
></el-option>
<el-option
label=
"工单接收时间"
:value=
"2"
></el-option>
<el-option
label=
"工单接收时间"
:value=
"2"
></el-option>
</el-select>
</el-select>
<el-date-picker
v-model=
"searchForm.timeDate"
class=
"data_picker"
value-format=
"yyyy-MM-dd"
type=
"daterange"
range-separator=
"~"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
>
<el-date-picker
v-model=
"searchForm.timeDate"
class=
"data_picker"
value-format=
"yyyy-MM-dd"
type=
"daterange"
range-separator=
"~"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
unlink-panels
:picker-options=
"dataPickerOptions"
>
</el-date-picker>
</el-date-picker>
</div>
</div>
</el-form-item>
</el-form-item>
...
@@ -63,6 +63,7 @@ import {
...
@@ -63,6 +63,7 @@ import {
import
GlsxOrganization
from
"@/components/glsx-organization"
;
import
GlsxOrganization
from
"@/components/glsx-organization"
;
import
{
deepClone
,
showToast
}
from
"@/utils/util"
;
import
{
deepClone
,
showToast
}
from
"@/utils/util"
;
import
GlsxDialog
from
"@/components/dialog"
;
import
GlsxDialog
from
"@/components/dialog"
;
import
{
staticReportCarShortcuts
}
from
"@/common"
;
export
default
{
export
default
{
name
:
"StatisticsCar"
,
name
:
"StatisticsCar"
,
components
:
{
components
:
{
...
@@ -95,6 +96,9 @@ export default {
...
@@ -95,6 +96,9 @@ export default {
loading
:
false
,
loading
:
false
,
GET_OPEREPORT_VEHICLE_SEARCH
,
GET_OPEREPORT_VEHICLE_SEARCH
,
tableParams
:
{},
tableParams
:
{},
dataPickerOptions
:
{
shortcuts
:
staticReportCarShortcuts
,
},
};
};
},
},
...
@@ -125,13 +129,13 @@ export default {
...
@@ -125,13 +129,13 @@ export default {
// 搜索
// 搜索
searchEvent
()
{
searchEvent
()
{
this
.
$refs
.
glsxTable
.
restParams
();
this
.
tableParams
=
this
.
getParams
();
this
.
tableParams
=
this
.
getParams
();
},
},
// 监听树
// 监听树
onChange
(
e
)
{
onChange
(
e
)
{
this
.
filterVisible
=
false
;
this
.
filterVisible
=
false
;
console
.
log
(
e
);
if
(
e
)
{
if
(
e
)
{
this
.
orgInfo
=
e
.
origin
;
this
.
orgInfo
=
e
.
origin
;
this
.
searchForm
.
orgId
=
e
.
origin
.
orgId
;
this
.
searchForm
.
orgId
=
e
.
origin
.
orgId
;
...
@@ -159,7 +163,7 @@ export default {
...
@@ -159,7 +163,7 @@ export default {
rest
()
{
rest
()
{
this
.
tableParams
=
{};
this
.
tableParams
=
{};
this
.
searchForm
=
{
queryTimeType
:
1
};
this
.
searchForm
=
{
queryTimeType
:
1
};
this
.
$refs
.
glsxTable
.
re
st
();
//this.$refs.glsxTable.getLi
st();
},
},
},
},
};
};
...
...
src/views/reportManage/statistics_device.vue
View file @
1fda255
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
<el-option
label=
"设备激活时间"
:value=
"1"
></el-option>
<el-option
label=
"设备激活时间"
:value=
"1"
></el-option>
<el-option
label=
"定位时间"
:value=
"2"
></el-option>
<el-option
label=
"定位时间"
:value=
"2"
></el-option>
</el-select>
</el-select>
<el-date-picker
v-model=
"searchForm.timeDate"
class=
"data_picker"
value-format=
"yyyy-MM-dd"
type=
"daterange"
range-separator=
"~"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
>
<el-date-picker
v-model=
"searchForm.timeDate"
class=
"data_picker"
value-format=
"yyyy-MM-dd"
type=
"daterange"
range-separator=
"~"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
unlink-panels
:picker-options=
"dataPickerOptions"
>
</el-date-picker>
</el-date-picker>
</div>
</div>
</el-form-item>
</el-form-item>
...
@@ -63,6 +63,7 @@ import {
...
@@ -63,6 +63,7 @@ import {
import
GlsxOrganization
from
"@/components/glsx-organization"
;
import
GlsxOrganization
from
"@/components/glsx-organization"
;
import
{
deepClone
,
showToast
}
from
"@/utils/util"
;
import
{
deepClone
,
showToast
}
from
"@/utils/util"
;
import
GlsxDialog
from
"@/components/dialog"
;
import
GlsxDialog
from
"@/components/dialog"
;
import
{
staticReportCarShortcuts
}
from
'@/common'
export
default
{
export
default
{
name
:
"StatisticsDevice"
,
name
:
"StatisticsDevice"
,
components
:
{
components
:
{
...
@@ -94,6 +95,9 @@ export default {
...
@@ -94,6 +95,9 @@ export default {
loading
:
false
,
loading
:
false
,
GET_OPEREPORT_DEVICE_SEARCH
,
GET_OPEREPORT_DEVICE_SEARCH
,
tableParams
:
{},
tableParams
:
{},
dataPickerOptions
:{
shortcuts
:
staticReportCarShortcuts
,
}
};
};
},
},
...
@@ -124,6 +128,7 @@ export default {
...
@@ -124,6 +128,7 @@ export default {
// 搜索
// 搜索
searchEvent
()
{
searchEvent
()
{
this
.
$refs
.
glsxTable
.
restParams
();
this
.
tableParams
=
this
.
getParams
();
this
.
tableParams
=
this
.
getParams
();
},
},
...
@@ -158,7 +163,7 @@ export default {
...
@@ -158,7 +163,7 @@ export default {
rest
()
{
rest
()
{
this
.
tableParams
=
{};
this
.
tableParams
=
{};
this
.
searchForm
=
{
queryTimeType
:
1
};
this
.
searchForm
=
{
queryTimeType
:
1
};
this
.
$refs
.
glsxTable
.
rest
();
//
this.$refs.glsxTable.rest();
},
},
},
},
};
};
...
...
src/views/vehicleManage/vehicleList.vue
View file @
1fda255
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
:size=
"btn_size"
icon=
"el-icon-search"
@
click=
"
getLis
t()"
>
搜索
</el-button>
<el-button
type=
"primary"
:size=
"btn_size"
icon=
"el-icon-search"
@
click=
"
searchEven
t()"
>
搜索
</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>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -439,7 +439,7 @@ export default {
...
@@ -439,7 +439,7 @@ export default {
return
{
return
{
VEHICLE_USE_LIST
,
VEHICLE_USE_LIST
,
VEHICLE_TAG_LIST
,
VEHICLE_TAG_LIST
,
searchForm
:
{},
searchForm
:
{
settleFlag
:
''
},
getListApi
:
getVehicleList
,
getListApi
:
getVehicleList
,
authList
:
[
authList
:
[
...
@@ -1715,6 +1715,12 @@ export default {
...
@@ -1715,6 +1715,12 @@ export default {
// 是否有权限
// 是否有权限
hasPermission
(
id
){
hasPermission
(
id
){
return
this
.
$hasPermission
(
id
)
return
this
.
$hasPermission
(
id
)
},
// 搜索
searchEvent
(){
this
.
pageNumber
=
1
;
this
.
getList
()
}
}
...
...
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