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 e766d971
authored
Oct 26, 2021
by
jack
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
3f9ab9ad
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
9 deletions
src/components/glsx-organization/index.vue
src/views/reportManage/driverDetail.vue
src/views/reportManage/mileage.vue
src/components/glsx-organization/index.vue
View file @
e766d97
...
...
@@ -3,8 +3,10 @@
<el-input
placeholder=
"输入关键字进行过滤"
v-model=
"filterText"
size=
"small"
>
</el-input>
<el-tree
style=
"max-height:50vh;overflow:auto"
class=
"filter-tree"
:data=
"filterTextData"
:filter-node-method=
"filterNode"
highlight-current
ref=
"tree"
node-key=
"id"
check-on-click-node
>
</el-tree>
<div
v-loading=
"loading"
>
<el-tree
style=
"max-height:50vh;overflow:auto"
class=
"filter-tree"
:data=
"filterTextData"
:filter-node-method=
"filterNode"
highlight-current
ref=
"tree"
node-key=
"id"
check-on-click-node
>
</el-tree>
</div>
<p
style=
"text-align: right; margin-top: 10px"
>
<el-button
@
click=
"filterConfirm"
type=
"primary"
>
确定
</el-button>
<el-button
@
click=
"closeFilter"
>
取消
</el-button>
...
...
@@ -20,11 +22,22 @@ export default {
return
{
filterText
:
""
,
filterTextData
:
[],
_timeout
:
""
,
loading
:
false
,
};
},
mounted
()
{
this
.
getTree
();
},
watch
:
{
filterText
(
n
)
{
let
_this
=
this
;
_this
.
loading
=
true
;
setTimeout
(
function
()
{
_this
.
$refs
.
tree
.
filter
(
n
);
},
100
);
},
},
methods
:
{
// 确认选择树
filterConfirm
()
{
...
...
@@ -64,9 +77,14 @@ export default {
// 搜索树
filterNode
(
value
,
data
)
{
console
.
log
(
value
,
data
);
this
.
loading
=
false
;
if
(
!
value
)
return
true
;
let
_this
=
this
;
if
(
!
value
)
{
_this
.
loading
=
false
;
return
true
;
}
setTimeout
(
function
()
{
_this
.
loading
=
false
;
},
1500
);
return
data
.
label
.
indexOf
(
value
)
!==
-
1
;
},
...
...
@@ -74,6 +92,12 @@ export default {
closeFilter
()
{
this
.
$emit
(
"change"
);
},
// 搜索树
onChange
(
val
)
{
this
.
loading
=
true
;
this
.
$refs
.
tree
.
filter
(
val
);
},
},
};
</
script
>
...
...
src/views/reportManage/driverDetail.vue
View file @
e766d97
...
...
@@ -38,7 +38,7 @@
<!-- 按钮区域 end -->
<!-- 列表 开始 -->
<glsx-table
ref=
"glsxTable"
:list=
"tableData"
:column=
"columnList"
:pageTotal=
"pageTotal"
@
change=
"getList"
>
<glsx-table
ref=
"glsxTable"
v-loading=
"loading"
:list=
"tableData"
:column=
"columnList"
:pageTotal=
"pageTotal"
@
change=
"getList"
>
<div
slot=
"operate"
slot-scope=
"
{scope}">
<!--
<el-button
size=
"mini"
:id=
"scope.id"
>
试驾轨迹
</el-button>
-->
<el-link
type=
"primary"
:unline=
"false"
:id=
"scope.id"
@
click=
"lookTrack(scope)"
>
试驾轨迹
</el-link>
...
...
@@ -58,7 +58,7 @@ export default {
data
()
{
return
{
searchForm
:
{
keywords
:
this
.
$route
.
query
.
vin
},
test
:
"1"
,
loading
:
false
,
tableData
:
[],
columnList
:
[
{
label
:
"特约店编码"
,
prop
:
"account"
,
align
:
"center"
},
...
...
@@ -136,6 +136,17 @@ export default {
components
:
{
GlsxTable
,
},
watch
:{
'$route.query'
:{
handler
:
function
(
n
,
o
){
console
.
log
(
n
)
this
.
searchForm
.
keywords
=
n
.
vin
;
this
.
timeDate
=
n
.
day
?[
n
.
day
,
n
.
day
]:[]
this
.
getList
()
},
immediate
:
true
,
}
},
created
(){
let
o
=
this
.
$route
.
query
;
this
.
timeDate
=
o
.
day
?[
o
.
day
,
o
.
day
]:[]
...
...
@@ -164,11 +175,15 @@ export default {
let
oParams
=
this
.
getParams
();
oParams
.
pageSize
=
options
?
options
.
pageSize
||
10
:
10
;
oParams
.
pageNumber
=
options
?
options
.
pageNumber
||
1
:
1
;
this
.
loading
=
true
DRIVE_DETAIL_SEARCH
(
oParams
).
then
((
res
)
=>
{
this
.
loading
=
false
let
{
data
}
=
res
;
let
{
list
,
totalElements
}
=
data
;
this
.
pageTotal
=
totalElements
;
this
.
tableData
=
list
;
}).
catch
(
error
=>
{
this
.
loading
=
false
});
},
...
...
src/views/reportManage/mileage.vue
View file @
e766d97
...
...
@@ -13,7 +13,7 @@
<div>
<glsx-organization
@
change=
"onChange"
></glsx-organization>
</div>
<el-input
v-model=
"searchForm.orgName"
:placeholder=
"searchForm.specialShopName || '
请选择特约店名称'"
slot=
"reference"
>
<el-input
v-model=
"searchForm.orgName"
:placeholder=
"searchForm.specialShopName || '
系统组织架构树'"
slot=
"reference"
readonly
>
</el-input>
</el-popover>
</el-form-item>
...
...
@@ -161,7 +161,7 @@ export default {
// 查看详情
lookDetail
(
row
)
{
console
.
log
(
row
);
// let query = {}
// let query = {
vin: row.vin
}
// let path = '/oEshield#/reportManage/mileageDetail';
// history.pushState(query, path, path);
this
.
$router
.
push
({
name
:
"mileageDetail"
,
query
:
{
vin
:
row
.
vin
}
});
...
...
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