Commit 8afdf1f6 authored by lc@weface.com.cn's avatar lc@weface.com.cn

''

parent a0e3cd42
......@@ -5,14 +5,14 @@
*/
// 后台管理系统服务器地址
//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:9009'
export const baseUrl ="http://172.16.10.33:9002"
export const baseUrl2 = 'http://172.16.10.25:9999'
//export const baseUrl ="http://faceauth.weface.com.cn:98"
//export const baseUrl2 = 'http://faceauth.weface.com.cn:97'
// 系统数据备份还原服务器地址
//export const backupBaseUrl = 'http://localhost:8002'
//export const baseUrl = 'http://faceauth.weface.com.cn:98'
//export const baseUrl = 'http://172.16.10.163:9002'
export const baseUrl2 = 'http://172.16.10.163:9002'
export default {
baseUrl,
......
......@@ -177,7 +177,7 @@
</el-col>
<el-col :span="8">
<el-form-item label="个人身份">
<el-input v-model="form.grade" readonly></el-input>
<el-input v-model="form.identityType" readonly></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
......
<template>
<div>
<div class="op">
<div class="nam">
<el-input v-model="personName" size="mini" placeholder="请输入姓名"></el-input>
</div>
<div class="idc">
<el-input v-model="idcard" size="mini" placeholder="请输入身份证号"></el-input>
</div>
<el-button type="primary" size="mini" style="background:#148A9B;margin-left:10px" icon="el-icon-search" @click="serch">搜索</el-button>
</div>
<el-table
:data="tableData"
style="width: 100%"
>
<el-table-column
prop="townName"
label="乡镇">
</el-table-column>
<el-table-column
prop="villageName"
label="村">
</el-table-column>
<el-table-column
prop="idcard"
label="身份证号">
</el-table-column>
<el-table-column
prop="name"
label="姓名">
</el-table-column>
<el-table-column
prop="grade"
label="缴费档次">
</el-table-column>
<el-table-column
prop="insuredState"
label="参保状态">
</el-table-column>
<el-table-column
prop="payState"
label="缴费状态">
</el-table-column>
<el-table-column
label="操作">
<template slot-scope="scope">
<el-button
type="primary"
size="mini"
icon="el-icon-s-check"
@click="showDetail(scope.$index, scope.row)">详情</el-button>
</template>
</el-table-column>
</el-table>
<el-pagination
class="pone"
:page-size='10'
layout="total, prev, pager, next, jumper"
:total="totals"
:current-page.sync="Page"
@current-change="current_change">
</el-pagination>
</div>
</template>
<style>
.op{
display: flex;
align-items: center;
}
.idc{
width: 200px
}
.nam{
margin-right: 20px
}
.el-table .warning-row {
background: oldlace;
}
.el-table .success-row {
background: #f0f9eb;
}
</style>
<script>
import CryptoJS from 'crypto-js'
import { Loading } from 'element-ui';
import {formatDate} from '../../utils/datetime'
export default {
data() {
return {
Page: 1,
totals: 0,
idcard:"",
personName:"",
formLabelWidth:10,
dialogFormVisible:false,
form:{},
tableData: [],
}
},
methods: {
showDetail(index,row){
this.dialogFormVisible = true;
this.form = row;
row.isOldRural = row.isOldRural == 0 ? '否': row.isOldRural == 1?"是":"";
row.retireFlag = row.retireFlag == 0 ? '否': row.retireFlag == 1?"是":"";
row.birthday = formatDate(row.birthday);
row.insuredDate = formatDate(row.insuredDate);
},
serch(){
var data={
idcard:this.idcard?this.Encrypt(this.idcard):"",
personName:this.personName?this.Encrypt(this.personName):"",
}
Loading.service();
this.$api.getlist.listAllBaseInfo(data).then((res) => {
let loadingInstance = Loading.service();
this.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭
loadingInstance.close();
});
for(var i in res.data.list){
res.data.list[i].idcard=this.decrypt(res.data.list[i].idcard)
res.data.list[i].name=this.decrypt(res.data.list[i].name)
}
this.tableData=res.data.list
this.totals=res.data.total
this.page=res.data.total.pageNum
}).catch((res) => {
let loadingInstance = Loading.service();
this.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭
loadingInstance.close();
});
});
},
current_change(ss){
var data={
pageNum:ss,
pageSize:10,
idcard:this.idcard?this.Encrypt(this.idcard):"",
personName:this.personName?this.Encrypt(this.personName):"",
}
Loading.service();
this.$api.getlist.listAllBaseInfo(data).then((res) => {
let loadingInstance = Loading.service();
this.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭
loadingInstance.close();
});
for(var i in res.data.list){
res.data.list[i].idcard=this.decrypt(res.data.list[i].idcard)
res.data.list[i].name=this.decrypt(res.data.list[i].name)
}
this.tableData=res.data.list
this.totals=res.data.total
this.page=res.data.total.pageNum
}).catch((res) => {
let loadingInstance = Loading.service();
this.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭
loadingInstance.close();
});
});
},
decrypt(word){
var key = CryptoJS.enc.Utf8.parse("KkweInfo23255625");
var decrypt = CryptoJS.AES.decrypt(word, key, {mode:CryptoJS.mode.ECB,padding: CryptoJS.pad.Pkcs7});
return CryptoJS.enc.Utf8.stringify(decrypt).toString();
},
Encrypt(word) { //aes加密
var key = CryptoJS.enc.Utf8.parse("KkweInfo23255625");
let srcs = CryptoJS.enc.Utf8.parse(word);
let encrypted = CryptoJS.AES.encrypt(srcs, key, {
mode: CryptoJS.mode.ECB,
padding: CryptoJS.pad.Pkcs7
});
return encrypted.toString();
}
},
created() {
this.$api.getlist.listAllBaseInfo().then((res) => {
var list = res.data.list;
for(var i in list){
res.data.list[i].idcard=this.decrypt(res.data.list[i].idcard)
res.data.list[i].name=this.decrypt(res.data.list[i].name)
}
this.tableData=res.data.list
this.totals=res.data.total
this.page=res.data.total.pageNum
}).catch((res) => {
let loadingInstance = Loading.service();
this.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭
loadingInstance.close();
});
});
}
}
</script>
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