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
abb330f9
Commit
abb330f9
authored
Aug 17, 2019
by
ytbdmhy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mhy
parent
cedda986
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
83 additions
and
20 deletions
+83
-20
receivePersonnel.vue
xichongSys/src/views/Myvue/receivePersonnel.vue
+83
-20
No files found.
xichongSys/src/views/Myvue/receivePersonnel.vue
View file @
abb330f9
<
template
>
<
template
>
<div>
<div>
<div
class=
"op"
>
<div
class=
"op"
>
<div
class=
"add"
style=
"margin-left:0"
>
<el-select
ref=
"town"
clearable
size=
"mini"
v-model=
"townName"
@
change=
"selectTown"
placeholder=
"请选择乡/镇"
>
<el-option
v-for=
"item in townList"
:key=
"item.value"
:label=
"item.label"
:value=
"item.label"
>
</el-option>
</el-select>
</div>
<div
class=
"add"
style=
"margin-left: 20px"
>
<el-select
ref=
"village"
size=
"mini"
clearable
v-model=
"villageName"
placeholder=
"请选择村"
>
<el-option
v-for=
"item2 in villageList"
:key=
"item2.value"
:label=
"item2.label"
:value=
"item2.label"
>
</el-option>
</el-select>
</div>
<div
class=
"nam"
>
<div
class=
"nam"
>
<el-input
v-model=
"name"
size=
"mini"
placeholder=
"请输入姓名"
clearable
></el-input>
<el-input
v-model=
"name"
size=
"mini"
placeholder=
"请输入姓名"
clearable
></el-input>
</div>
</div>
...
@@ -13,7 +44,7 @@
...
@@ -13,7 +44,7 @@
v-for=
"item in options1"
v-for=
"item in options1"
:key=
"item.value"
:key=
"item.value"
:label=
"item.label"
:label=
"item.label"
:value=
"item.
value
"
>
:value=
"item.
label
"
>
</el-option>
</el-option>
</el-select>
</el-select>
</div>
</div>
...
@@ -37,9 +68,19 @@
...
@@ -37,9 +68,19 @@
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"grantState"
prop=
"grantState"
min-width=
"1
5
%"
min-width=
"1
0
%"
label=
"待遇发放状态"
>
label=
"待遇发放状态"
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"townName"
min-width=
"10%"
label=
"乡镇"
>
</el-table-column>
<el-table-column
prop=
"villageName"
min-width=
"10%"
label=
"村(社区)"
>
</el-table-column>
<el-table-column
<el-table-column
prop=
"lastGrantMonth"
prop=
"lastGrantMonth"
min-width=
"10%"
min-width=
"10%"
...
@@ -57,7 +98,7 @@
...
@@ -57,7 +98,7 @@
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"presentBenchmark"
prop=
"presentBenchmark"
min-width=
"1
5
%"
min-width=
"1
0
%"
label=
"当前月领取标准"
>
label=
"当前月领取标准"
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
...
@@ -212,15 +253,16 @@
...
@@ -212,15 +253,16 @@
}
}
.idc
{
.idc
{
margin-left
:
20px
;
min-width
:
200px
min-width
:
200px
}
}
.nam
{
.nam
{
margin-
righ
t
:
20px
margin-
lef
t
:
20px
}
}
.grantState
{
.grantState
{
min-width
:
200px
;
/*min-width: 200px;*/
margin-left
:
20px
margin-left
:
20px
}
}
...
@@ -269,16 +311,26 @@
...
@@ -269,16 +311,26 @@
info
:
''
,
info
:
''
,
tableData
:
[],
tableData
:
[],
dialogTableVisible
:
false
,
dialogTableVisible
:
false
,
data
:
{}
data
:
{},
townList
:
[],
townId
:
""
,
townName
:
""
,
villageList
:
[],
villageId
:
""
,
villageName
:
""
,
}
}
},
},
methods
:
{
methods
:
{
//搜索
//搜索
search
()
{
search
()
{
console
.
log
(
this
.
$refs
.
town
.
value
);
console
.
log
(
this
.
$refs
.
village
.
value
);
let
data
=
{
let
data
=
{
idCard
:
this
.
idCard
?
this
.
Encrypt
(
this
.
idCard
)
:
""
,
idCard
:
this
.
idCard
?
this
.
Encrypt
(
this
.
idCard
)
:
""
,
name
:
this
.
name
?
this
.
Encrypt
(
this
.
name
)
:
""
,
name
:
this
.
name
?
this
.
Encrypt
(
this
.
name
)
:
""
,
grantState
:
this
.
grantState
grantState
:
this
.
grantState
,
town
:
this
.
$refs
.
town
.
value
,
village
:
this
.
$refs
.
village
.
value
,
};
};
this
.
$api
.
getlist
.
getGrantList
(
data
).
then
((
res
)
=>
{
this
.
$api
.
getlist
.
getGrantList
(
data
).
then
((
res
)
=>
{
for
(
var
i
in
res
.
data
.
list
)
{
for
(
var
i
in
res
.
data
.
list
)
{
...
@@ -302,7 +354,9 @@
...
@@ -302,7 +354,9 @@
pageSize
:
10
,
pageSize
:
10
,
idCard
:
this
.
idCard
?
this
.
Encrypt
(
this
.
idCard
)
:
""
,
idCard
:
this
.
idCard
?
this
.
Encrypt
(
this
.
idCard
)
:
""
,
name
:
this
.
name
?
this
.
Encrypt
(
this
.
name
)
:
""
,
name
:
this
.
name
?
this
.
Encrypt
(
this
.
name
)
:
""
,
grantState
:
this
.
grantState
grantState
:
this
.
grantState
,
town
:
this
.
$refs
.
town
.
value
,
village
:
this
.
$refs
.
village
.
value
,
};
};
Loading
.
service
();
Loading
.
service
();
this
.
$api
.
getlist
.
getGrantList
(
data
).
then
((
res
)
=>
{
this
.
$api
.
getlist
.
getGrantList
(
data
).
then
((
res
)
=>
{
...
@@ -370,24 +424,33 @@
...
@@ -370,24 +424,33 @@
done
();
done
();
})
})
.
catch
(
_
=>
{});
.
catch
(
_
=>
{});
},
selectTown
(
town
)
{
this
.
villageList
.
length
=
0
;
this
.
villageName
=
""
;
for
(
let
i
in
listtown
)
{
if
(
listtown
[
i
].
town_name
===
town
)
{
for
(
let
j
in
listtown
[
i
].
chirld
)
{
this
.
villageList
.
push
({
pro
:
listtown
[
i
].
town_id
,
value
:
listtown
[
i
].
chirld
[
j
].
village_id
,
label
:
listtown
[
i
].
chirld
[
j
].
village_name
});
}
return
;
}
}
}
}
},
},
created
()
{
created
()
{
for
(
var
i
in
listtown
)
{
Loading
.
service
();
this
.
list
.
push
({
for
(
let
i
in
listtown
)
{
value
:
listtown
[
i
].
town_name
,
this
.
townList
.
push
({
value
:
listtown
[
i
].
town_id
,
label
:
listtown
[
i
].
town_name
,
label
:
listtown
[
i
].
town_name
,
children
:
[]
children
:
[]
})
});
for
(
var
j
in
listtown
[
i
].
chirld
)
{
this
.
list
[
i
].
children
.
push
({
value
:
listtown
[
i
].
chirld
[
j
].
village_name
,
label
:
listtown
[
i
].
chirld
[
j
].
village_name
})
}
}
}
console
.
log
(
this
.
list
)
Loading
.
service
();
let
data
=
{};
let
data
=
{};
this
.
$api
.
getlist
.
getGrantList
(
data
).
then
((
res
)
=>
{
this
.
$api
.
getlist
.
getGrantList
(
data
).
then
((
res
)
=>
{
let
loadingInstance
=
Loading
.
service
();
let
loadingInstance
=
Loading
.
service
();
...
...
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