Commit 3082b8c4 authored by miaohaoyun's avatar miaohaoyun

Merge branch 'mhy' into 'master'

Mhy

See merge request !41
parents 0eec3d24 faf1d97d
<template> <template>
<div> <div>
<div class="op"> <div class="op">
<Candode v-on:childByValue="childByValue"></Candode>
<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 +14,7 @@ ...@@ -13,7 +14,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 +38,19 @@ ...@@ -37,9 +38,19 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="grantState" prop="grantState"
min-width="15%" min-width="10%"
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 +68,7 @@ ...@@ -57,7 +68,7 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
prop="presentBenchmark" prop="presentBenchmark"
min-width="15%" min-width="10%"
label="当前月领取标准"> label="当前月领取标准">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
...@@ -81,7 +92,6 @@ ...@@ -81,7 +92,6 @@
@current-change="current_change" @current-change="current_change"
> >
</el-pagination> </el-pagination>
<div> <div>
<el-dialog title="详细信息" :visible.sync="dialogTableVisible" width="1200px"> <el-dialog title="详细信息" :visible.sync="dialogTableVisible" width="1200px">
<el-form :model="data" label-width="auto"> <el-form :model="data" label-width="auto">
...@@ -212,16 +222,18 @@ ...@@ -212,16 +222,18 @@
} }
.idc { .idc {
min-width: 200px margin-left: 20px;
/*min-width: 200px;*/
} }
.nam { .nam {
margin-right: 20px margin-left: 20px;
/*min-width: 200px;*/
} }
.grantState { .grantState {
min-width: 200px; margin-left: 20px;
margin-left: 20px /*min-width: 200px;*/
} }
.el-table .warning-row { .el-table .warning-row {
...@@ -244,9 +256,12 @@ ...@@ -244,9 +256,12 @@
<script> <script>
import CryptoJS from 'crypto-js' import CryptoJS from 'crypto-js'
import {Loading} from 'element-ui'; import {Loading} from 'element-ui';
import {listtown} from '../../utils/address' import Candode from "../Core/candode"
export default { export default {
components:{
Candode
},
data() { data() {
return { return {
list: [], list: [],
...@@ -269,7 +284,8 @@ ...@@ -269,7 +284,8 @@
info: '', info: '',
tableData: [], tableData: [],
dialogTableVisible: false, dialogTableVisible: false,
data: {} data: {},
townList: "",
} }
}, },
methods: { methods: {
...@@ -278,7 +294,9 @@ ...@@ -278,7 +294,9 @@
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,
townName: this.townList?this.townList[0]:"",
villageName:this.townList?this.townList[1]:"",
}; };
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 +320,9 @@ ...@@ -302,7 +320,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,
townName: this.townList?this.townList[0]:"",
villageName:this.townList?this.townList[1]:"",
}; };
Loading.service(); Loading.service();
this.$api.getlist.getGrantList(data).then((res) => { this.$api.getlist.getGrantList(data).then((res) => {
...@@ -370,23 +390,12 @@ ...@@ -370,23 +390,12 @@
done(); done();
}) })
.catch(_ => {}); .catch(_ => {});
} },
childByValue(val){
this.townList = val;
},
}, },
created() { created() {
for (var i in listtown) {
this.list.push({
value: listtown[i].town_name,
label: listtown[i].town_name,
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(); Loading.service();
let data = {}; let data = {};
this.$api.getlist.getGrantList(data).then((res) => { this.$api.getlist.getGrantList(data).then((res) => {
......
...@@ -292,9 +292,9 @@ ...@@ -292,9 +292,9 @@
sessionStorage.setItem("treAppItems", JSON.stringify(this.$route.params.treApp)); sessionStorage.setItem("treAppItems", JSON.stringify(this.$route.params.treApp));
} }
this.form = JSON.parse(sessionStorage.getItem("treAppInfo")); this.form = JSON.parse(sessionStorage.getItem("treAppInfo"));
this.form.name = this.decrypt(this.form.name); this.form.name = this.form.name ? this.decrypt(this.form.name) : "";
this.form.identity_number = this.decrypt(this.form.identity_number); this.form.identity_number = this.form.identity_number ? this.decrypt(this.form.identity_number) : "";
this.form.telphoneValue = this.decrypt(this.form.telphoneValue); this.form.telphoneValue = this.form.telphoneValue ? this.decrypt(this.form.telphoneValue) : "";
var obj = JSON.parse(sessionStorage.getItem("treAppItems")); var obj = JSON.parse(sessionStorage.getItem("treAppItems"));
if (obj.bankpic) { if (obj.bankpic) {
this.bb = true; this.bb = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment