Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform-ui
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform-ui
Commits
e7316078
Commit
e7316078
authored
May 29, 2019
by
hezhen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://113.105.137.151:22280/youjj/cloud-platform-ui
parents
94910996
f8f9b3cc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
101 additions
and
4 deletions
+101
-4
index.vue
src/views/admin/user/index.vue
+63
-4
index.vue
src/views/vehicle/vehicleInfo/index.vue
+38
-0
No files found.
src/views/admin/user/index.vue
View file @
e7316078
...
...
@@ -68,9 +68,16 @@
</el-select>
</el-form-item>
<el-form-item
label=
"所属分公司"
prop=
"companyId"
>
<el-select
class=
"filter-item"
v-model=
"form.companyId"
placeholder=
"请选择分公司"
>
<el-option
v-for=
"item in allCompanies"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
>
</el-option>
</el-select>
<el-autocomplete
class=
"inline-input"
v-model=
"form.state2"
:fetch-suggestions=
"querySearch"
placeholder=
"请输入内容"
@
select=
"handleSelect1"
></el-autocomplete>
<!--<el-select class="filter-item" v-model="form.companyId" placeholder="请选择分公司">-->
<!--<el-option v-for="item in allCompanies" :key="item.id" :label="item.name" :value="item.id"> </el-option>-->
<!--</el-select>-->
</el-form-item>
<el-form-item
label=
"所属角色"
prop=
"groupId"
>
<el-select
v-model=
"form.members"
multiple
filterable
remote
placeholder=
"请选择角色"
:remote-method=
"remoteGroupsMethod"
:loading=
"loading"
>
...
...
@@ -107,7 +114,8 @@ import{
import
{
mapGetters
}
from
'vuex'
;
import
{
getAllCompany
getAllCompany
,
getAll
}
from
'api/base_info/branch_company/'
;
import
{
...
...
@@ -130,6 +138,7 @@ export default {
status
:
1
,
zoneId
:
undefined
,
companyId
:
undefined
,
state2
:
''
,
password
:
undefined
,
passwordEdit
:
undefined
,
description
:
undefined
,
...
...
@@ -211,6 +220,7 @@ export default {
userManager_btn_del
:
false
,
userManager_btn_add
:
false
,
allCompanies
:
{},
allCompaniesArr
:
[],
myGroups
:
[],
loading
:
false
,
textMap
:
{
...
...
@@ -222,6 +232,10 @@ export default {
},
created
()
{
this
.
getList
();
getAll
()
.
then
(
response
=>
{
this
.
allCompaniesArr
=
response
.
data
;
})
getAllCompany
(
codeAndBranchCompany
=>
{
this
.
allCompanies
=
codeAndBranchCompany
;
});
...
...
@@ -342,6 +356,16 @@ export default {
},
create
(
formName
)
{
const
set
=
this
.
$refs
;
if
(
!
this
.
form
.
state2
||
this
.
form
.
state2
==
"全部"
){
this
.
form
.
companyId
=
undefined
;
// this.$notify({
// title: '失败',
// message: '请选择分公司',
// type: 'warning',
// duration: 2000
// });
// return;
}
set
[
formName
].
validate
(
valid
=>
{
if
(
valid
)
{
addObj
(
this
.
form
)
...
...
@@ -364,7 +388,41 @@ export default {
this
.
dialogFormVisible
=
false
;
this
.
$refs
[
formName
].
resetFields
();
},
querySearch
(
queryString
,
cb
)
{
let
selectArry
=
[];
this
.
allCompaniesArr
.
map
(
function
(
item
){
item
.
value
=
item
.
name
;
selectArry
.
push
(
item
);
});
this
.
selectArry
=
selectArry
;
var
results
=
queryString
?
selectArry
.
filter
(
this
.
createFilter
(
queryString
))
:
selectArry
;
// 调用 callback 返回建议列表的数据
cb
(
results
);
},
handleSelect1
(
item
){
if
(
item
.
value
==
"全部"
){
this
.
form
.
companyId
=
undefined
;
}
else
{
this
.
form
.
companyId
=
item
.
id
;
}
console
.
log
(
item
);
},
createFilter
(
queryString
)
{
return
(
restaurant
)
=>
{
return
(
restaurant
.
name
.
indexOf
(
queryString
.
toLowerCase
())
!=
-
1
);
};
},
update
(
formName
)
{
if
(
!
this
.
form
.
state2
||
this
.
form
.
state2
==
"全部"
){
this
.
form
.
companyId
=
undefined
;
// this.$notify({
// title: '失败',
// message: '请选择分公司',
// type: 'warning',
// duration: 2000
// });
// return;
}
const
set
=
this
.
$refs
;
set
[
formName
].
validate
(
valid
=>
{
if
(
valid
)
{
...
...
@@ -400,6 +458,7 @@ export default {
zoneId
:
undefined
,
passwordEdit
:
undefined
,
companyId
:
undefined
,
state2
:
''
,
password
:
""
,
description
:
undefined
,
dataLimit
:
[],
...
...
src/views/vehicle/vehicleInfo/index.vue
View file @
e7316078
...
...
@@ -166,6 +166,7 @@
@
click=
"showMoreMoreCol=!showMoreMoreCol"
>
更多列
</el-button>
<el-button
class=
"filter-item"
type=
"primary"
v-waves
@
click=
"reloadPage"
>
刷新
</el-button>
</div>
...
...
@@ -1258,6 +1259,38 @@
getValue
(
e
){
this
.
listQuery
.
addrCity
=
undefined
;
},
/**
* 刷新
* */
reloadPage
(){
this
.
listQuery
=
{
page
:
1
,
limit
:
20
,
zoneId
:
undefined
,
addrProvince
:
undefined
,
addrCity
:
undefined
,
addrTown
:
undefined
,
vin
:
undefined
,
insuranceCompany
:
undefined
,
mileageRangeStart
:
undefined
,
mileageRangeEnd
:
undefined
,
insuranceDateRange
:
undefined
,
mRange
:
undefined
,
aVRange
:
undefined
,
subordinateBranch
:
undefined
,
numberPlate
:
undefined
,
status
:
undefined
,
bookedStartDate
:
undefined
,
bookedEndDate
:
undefined
,
notBookedStartDate
:
undefined
,
notBookedEndDate
:
undefined
,
code
:
undefined
};
this
.
getList
();
// this.reload();
// window.reload();
// this.$router.go(0)
},
querySearch
(
queryString
,
cb
)
{
let
selectArry
=
[];
let
iitem
=
{
...
...
@@ -1434,6 +1467,7 @@
type
:
'success'
,
duration
:
2000
});
this
.
getList
();
}
else
{
this
.
$notify
({
title
:
'失败'
,
...
...
@@ -1517,6 +1551,7 @@
type
:
'success'
,
duration
:
2000
});
this
.
getList
();
}
else
{
this
.
$notify
({
title
:
'失败'
,
...
...
@@ -1693,6 +1728,7 @@
return
regions
[
0
].
name
+
' '
+
regions
[
1
].
name
+
' '
+
regions
[
2
].
name
+
' '
;
},
handleFilter
()
{
this
.
listQuery
.
page
=
1
;
this
.
$refs
.
queryForm
.
validate
(
valid
=>
{
if
(
valid
)
{
this
.
getList
();
...
...
@@ -1783,6 +1819,7 @@
type
:
'success'
,
duration
:
2000
});
this
.
getList
();
}
else
{
this
.
$notify
({
title
:
'失败'
,
...
...
@@ -1832,6 +1869,7 @@
type
:
'success'
,
duration
:
2000
});
this
.
getList
();
}
else
{
this
.
$notify
({
title
:
'失败'
,
...
...
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