Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xichonght
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
zhangdishen
xichonght
Commits
f12e3371
Commit
f12e3371
authored
Aug 19, 2019
by
zouliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
efc45309
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
72 additions
and
69 deletions
+72
-69
candode.vue
xichongSys/src/views/Core/candode.vue
+6
-6
authRecord.vue
xichongSys/src/views/Myvue/authRecord.vue
+66
-63
No files found.
xichongSys/src/views/Core/candode.vue
View file @
f12e3371
<
template
>
<
template
>
<div>
<div>
<el-cascader
<el-cascader
:props=
"
{ checkStrictly: true }"
:props=
"
{ checkStrictly: true }"
clearable
clearable
...
@@ -28,17 +28,17 @@
...
@@ -28,17 +28,17 @@
handleChange
(
value
)
{
handleChange
(
value
)
{
this
.
$emit
(
'childByValue'
,
value
)
this
.
$emit
(
'childByValue'
,
value
)
},
},
},
},
created
(){
created
(){
this
.
$api
.
getlist
.
getTown
().
then
((
res
)
=>
{
this
.
$api
.
getlist
.
getTown
().
then
((
res
)
=>
{
this
.
options
=
res
.
data
this
.
options
=
res
.
data
console
.
log
(
res
.
data
)
console
.
log
(
res
.
data
)
this
.
$emit
(
'getTownlength'
,
this
.
options
.
length
)
}).
catch
((
res
)
=>
{
}).
catch
((
res
)
=>
{
})
})
}
}
};
};
</
script
>
</
script
>
\ No newline at end of file
xichongSys/src/views/Myvue/authRecord.vue
View file @
f12e3371
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div>
<div>
<div
class=
"op"
>
<div
class=
"op"
>
<Candode
v-on:childByValue=
"childByValue"
></Candode>
<Candode
v-on:childByValue=
"childByValue"
v-on:getTownlength=
"getTownlength"
></Candode>
<!--
<div
class=
"add"
style=
"margin-left:0"
>
<!--
<div
class=
"add"
style=
"margin-left:0"
>
<el-select
clearable
size=
"mini"
@
change=
"handleChange"
v-model=
"town"
placeholder=
"请选择乡/镇"
>
<el-select
clearable
size=
"mini"
@
change=
"handleChange"
v-model=
"town"
placeholder=
"请选择乡/镇"
>
...
@@ -269,71 +269,77 @@ import Candode from "../Core/candode"
...
@@ -269,71 +269,77 @@ import Candode from "../Core/candode"
},{
},{
value
:
"2"
,
value
:
"2"
,
label
:
"企业员工"
,
label
:
"企业员工"
,
}]
}],
townlen
:
1
}
}
},
},
methods
:
{
methods
:
{
childByValue
(
val
){
childByValue
(
val
){
this
.
townList
=
val
this
.
townList
=
val
},
},
getTownlength
(
val
){
this
.
townlen
=
val
},
//搜索
//搜索
serch
(){
serch
(){
Loading
.
service
();
this
.
serchs
(
1
)
this
.
serchs
(
1
)
},
},
serchs
(
p
){
serchs
(
p
){
if
(
this
.
townList
==
''
&&
this
.
townlen
==
1
){
this
.
$message
.
error
(
"请选择镇村!"
);
return
;
}
Loading
.
service
();
var
start
=
""
var
end
=
""
if
(
this
.
time
){
var
d
=
this
.
time
[
0
]
var
s
=
this
.
time
[
1
]
var
mon
=
(
parseInt
(
d
.
getMonth
())
+
1
)
var
emon
=
(
parseInt
(
s
.
getMonth
())
+
1
)
start
=
d
.
getFullYear
()
+
"-"
+
mon
+
"-"
+
d
.
getDate
()
var
start
=
""
end
=
s
.
getFullYear
()
+
"-"
+
emon
+
"-"
+
s
.
getDate
()
var
end
=
""
if
(
this
.
time
){
var
d
=
this
.
time
[
0
]
var
s
=
this
.
time
[
1
]
console
.
log
(
d
)
var
mon
=
(
parseInt
(
d
.
getMonth
())
+
1
)
var
emon
=
(
parseInt
(
s
.
getMonth
())
+
1
)
start
=
d
.
getFullYear
()
+
"-"
+
mon
+
"-"
+
d
.
getDate
()
end
=
s
.
getFullYear
()
+
"-"
+
emon
+
"-"
+
s
.
getDate
()
}
var
data
=
{
province_name
:
"四川省"
,
city_name
:
"南充市"
,
county_name
:
"西充县"
,
pageSize
:
10
,
page
:
p
,
// town_name:this.town.split(",")[1],
// village_name:this.village.split(",")[1],
town_name
:
this
.
townList
?
this
.
townList
[
0
]:
''
,
village_name
:
this
.
townList
?
this
.
townList
[
1
]:
''
,
iDCard
:
this
.
idcard
,
match_state
:
this
.
state
,
begin_time
:
start
,
end_time
:
end
,
siType
:
this
.
cblx
,
personName
:
this
.
name
,
address
:
this
.
agemeth
,
birthday
:
this
.
age
}
Axios
.
get
(
baseUrl2
+
'/search/authentication.do'
,{
params
:
data
})
.
then
(
res
=>
{
let
loadingInstance
=
Loading
.
service
();
this
.
$nextTick
(()
=>
{
// 以服务的方式调用的 Loading 需要异步关闭
loadingInstance
.
close
();
});
this
.
tableData
=
res
.
data
.
obj
this
.
totals
=
res
.
data
.
page
.
total_count
})
.
catch
(
err
=>
{
let
loadingInstance
=
Loading
.
service
();
this
.
$nextTick
(()
=>
{
// 以服务的方式调用的 Loading 需要异步关闭
loadingInstance
.
close
();
});
});
}
},
var
data
=
{
province_name
:
"四川省"
,
city_name
:
"南充市"
,
county_name
:
"西充县"
,
pageSize
:
10
,
page
:
p
,
// town_name:this.town.split(",")[1],
// village_name:this.village.split(",")[1],
town_name
:
this
.
townList
?
this
.
townList
[
0
]:
''
,
village_name
:
this
.
townList
?
this
.
townList
[
1
]:
''
,
iDCard
:
this
.
idcard
,
match_state
:
this
.
state
,
begin_time
:
start
,
end_time
:
end
,
siType
:
this
.
cblx
,
personName
:
this
.
name
,
address
:
this
.
agemeth
,
birthday
:
this
.
age
}
Axios
.
get
(
baseUrl2
+
'/search/authentication.do'
,{
params
:
data
})
.
then
(
res
=>
{
let
loadingInstance
=
Loading
.
service
();
this
.
$nextTick
(()
=>
{
// 以服务的方式调用的 Loading 需要异步关闭
loadingInstance
.
close
();
});
this
.
tableData
=
res
.
data
.
obj
this
.
totals
=
res
.
data
.
page
.
total_count
})
.
catch
(
err
=>
{
let
loadingInstance
=
Loading
.
service
();
this
.
$nextTick
(()
=>
{
// 以服务的方式调用的 Loading 需要异步关闭
loadingInstance
.
close
();
});
});
},
//流程
//流程
progress
(
d
,
s
){
progress
(
d
,
s
){
...
@@ -407,16 +413,13 @@ import Candode from "../Core/candode"
...
@@ -407,16 +413,13 @@ import Candode from "../Core/candode"
// }
// }
// console.log(this.list)
// console.log(this.list)
Axios
.
get
(
baseUrl2
+
'/show/getTownList.do?county_id=511325000000'
,{
Axios
.
get
(
baseUrl2
+
'/show/getTownList.do?county_id=511325000000'
,
{})
.
then
(
res
=>
{
})
this
.
list
=
res
.
data
.
then
(
res
=>
{
})
this
.
list
=
res
.
data
.
catch
(
err
=>
{
})
console
.
log
(
err
);
.
catch
(
err
=>
{
});
console
.
log
(
err
);
});
}
}
}
}
...
...
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