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
374e7801
Commit
374e7801
authored
Aug 16, 2019
by
qddidi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
123
parent
4399d297
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
68 additions
and
3 deletions
+68
-3
getlist.js
xichongSys/src/http/moudules/getlist.js
+8
-0
global.js
xichongSys/src/utils/global.js
+1
-1
candode.vue
xichongSys/src/views/Core/candode.vue
+44
-0
table.vue
xichongSys/src/views/Myvue/table.vue
+15
-2
No files found.
xichongSys/src/http/moudules/getlist.js
View file @
374e7801
...
@@ -162,3 +162,11 @@ export const selectRoleflowNo = (params) => {
...
@@ -162,3 +162,11 @@ export const selectRoleflowNo = (params) => {
params
params
})
})
}
}
export
const
getTown
=
()
=>
{
return
axios
({
url
:
'/dept/findTreeByUser'
,
method
:
'get'
,
})
}
//
\ No newline at end of file
xichongSys/src/utils/global.js
View file @
374e7801
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
//export const baseUrl ="http://faceauth.weface.com.cn:98"
//export const baseUrl ="http://faceauth.weface.com.cn:98"
//export const baseUrl2 = 'http://faceauth.weface.com.cn:97'
//export const baseUrl2 = 'http://faceauth.weface.com.cn:97'
//export const baseUrl = 'http://172.16.10.33:9002'
//export const baseUrl = 'http://172.16.10.33:9002'
export
const
baseUrl
=
'http://172.16.10.
25
:9002'
export
const
baseUrl
=
'http://172.16.10.
33
:9002'
//export const baseUrl ="http://172.16.10.33:9002"
//export const baseUrl ="http://172.16.10.33:9002"
//export const baseUrl2 = 'http://172.16.10.25:9999'
//export const baseUrl2 = 'http://172.16.10.25:9999'
//export const baseUrl = 'http://172.16.10.25:9002'
//export const baseUrl = 'http://172.16.10.25:9002'
...
...
xichongSys/src/views/Core/candode.vue
0 → 100644
View file @
374e7801
<
template
>
<div>
<div
class=
"block"
>
<el-cascader
:props=
"
{ checkStrictly: true }"
clearable
placeholder="请选择镇村"
v-model="value"
:options="options"
size="mini"
@change="handleChange">
</el-cascader>
</div>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
value
:
[],
options
:[]
};
},
methods
:
{
handleChange
(
value
)
{
this
.
$emit
(
'childByValue'
,
value
)
},
},
created
(){
this
.
$api
.
getlist
.
getTown
().
then
((
res
)
=>
{
this
.
options
=
res
.
data
console
.
log
(
res
.
data
)
}).
catch
((
res
)
=>
{
})
}
};
</
script
>
\ No newline at end of file
xichongSys/src/views/Myvue/table.vue
View file @
374e7801
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
<div
class=
"idc"
>
<div
class=
"idc"
>
<el-input
v-model=
"idcard"
size=
"mini"
placeholder=
"请输入身份证号"
></el-input>
<el-input
v-model=
"idcard"
size=
"mini"
placeholder=
"请输入身份证号"
></el-input>
</div>
</div>
<Candode
v-on:childByValue=
"childByValue"
></Candode>
<div
class=
"ywtyoe"
>
<div
class=
"ywtyoe"
>
<el-select
v-model=
"ywtype"
placeholder=
"请选择业务类型"
size=
"mini"
>
<el-select
v-model=
"ywtype"
placeholder=
"请选择业务类型"
size=
"mini"
>
<el-option
<el-option
...
@@ -131,10 +132,16 @@
...
@@ -131,10 +132,16 @@
<
script
>
<
script
>
import
CryptoJS
from
'crypto-js'
import
CryptoJS
from
'crypto-js'
import
{
Loading
}
from
'element-ui'
;
import
{
Loading
}
from
'element-ui'
;
import
Candode
from
"../Core/candode"
// import baseUrl from "../../globe/globeUrl"
// import baseUrl from "../../globe/globeUrl"
export
default
{
export
default
{
components
:{
Candode
},
data
()
{
data
()
{
return
{
return
{
townList
:
''
,
activities
:
[],
activities
:
[],
options1
:
[{
options1
:
[{
value
:
'1'
,
value
:
'1'
,
...
@@ -156,12 +163,17 @@
...
@@ -156,12 +163,17 @@
}
}
},
},
methods
:
{
methods
:
{
childByValue
(
val
){
this
.
townList
=
val
},
//搜索
//搜索
serch
(){
serch
(){
var
data
=
{
var
data
=
{
idcard
:
this
.
idcard
?
this
.
Encrypt
(
this
.
idcard
):
""
,
idcard
:
this
.
idcard
?
this
.
Encrypt
(
this
.
idcard
):
""
,
recordType
:
this
.
ywtype
?
parseInt
(
this
.
ywtype
):
""
recordType
:
this
.
ywtype
?
parseInt
(
this
.
ywtype
):
""
,
townName
:
this
.
townList
?
this
.
townList
[
0
]:
''
,
villageName
:
this
.
townList
?
this
.
townList
[
1
]:
''
,
}
}
this
.
$api
.
getlist
.
getlist
(
data
).
then
((
res
)
=>
{
this
.
$api
.
getlist
.
getlist
(
data
).
then
((
res
)
=>
{
...
@@ -241,7 +253,8 @@
...
@@ -241,7 +253,8 @@
res
.
data
.
list
[
i
].
idcard
=
this
.
decrypt
(
res
.
data
.
list
[
i
].
idcard
)
res
.
data
.
list
[
i
].
idcard
=
this
.
decrypt
(
res
.
data
.
list
[
i
].
idcard
)
res
.
data
.
list
[
i
].
name
=
this
.
decrypt
(
res
.
data
.
list
[
i
].
name
)
res
.
data
.
list
[
i
].
name
=
this
.
decrypt
(
res
.
data
.
list
[
i
].
name
)
var
d
=
new
Date
(
res
.
data
.
list
[
i
].
createtime
)
var
d
=
new
Date
(
res
.
data
.
list
[
i
].
createtime
)
res
.
data
.
list
[
i
].
createtime
=
d
.
getFullYear
()
+
"-"
+
d
.
getMonth
()
+
1
+
"-"
+
d
.
getDate
()
+
d
.
getHours
()
+
':'
+
d
.
getMinutes
()
+
':'
+
d
.
getSeconds
();
var
mon
=
(
parseInt
(
d
.
getMonth
())
+
1
)
res
.
data
.
list
[
i
].
createtime
=
d
.
getFullYear
()
+
"-"
+
mon
+
"-"
+
d
.
getDate
()
+
d
.
getHours
()
+
':'
+
d
.
getMinutes
()
+
':'
+
d
.
getSeconds
();
res
.
data
.
list
[
i
].
recordtype
=
this
.
getType
(
res
.
data
.
list
[
i
].
recordtype
)
res
.
data
.
list
[
i
].
recordtype
=
this
.
getType
(
res
.
data
.
list
[
i
].
recordtype
)
}
}
this
.
tableData
=
res
.
data
.
list
this
.
tableData
=
res
.
data
.
list
...
...
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