Commit 26567f74 authored by lc@weface.com.cn's avatar lc@weface.com.cn

覆盖人员查询

parent 5baa9d4e
...@@ -75,4 +75,12 @@ export const shebao = (params) => { ...@@ -75,4 +75,12 @@ export const shebao = (params) => {
}) })
} }
export const listAllBaseInfo = (data) =>{
return axios({
url: '/baseInfo/getAllBaseInfo',
method: 'post',
data
})
}
...@@ -17,7 +17,7 @@ import drcbdj from "@/views/Myvue/drcbdj" ...@@ -17,7 +17,7 @@ import drcbdj from "@/views/Myvue/drcbdj"
import xxbg from "@/views/Myvue/xxbg" import xxbg from "@/views/Myvue/xxbg"
import Record from "@/views/Myvue/rzrecord" import Record from "@/views/Myvue/rzrecord"
import Newsupdata from "@/views/Myvue/newsupdata" import Newsupdata from "@/views/Myvue/newsupdata"
import AllbaseInfo from "@/views/Myvue/allbaseInfo"
Vue.use(Router) Vue.use(Router)
const router = new Router({ const router = new Router({
...@@ -27,9 +27,9 @@ const router = new Router({ ...@@ -27,9 +27,9 @@ const router = new Router({
name: '首页', name: '首页',
component: Home, component: Home,
children: [ children: [
{ {
path: '', path: '',
name: '系统介绍', name: '系统介绍',
component: Intro, component: Intro,
meta: { meta: {
icon: 'fa fa-home fa-lg', icon: 'fa fa-home fa-lg',
...@@ -75,6 +75,10 @@ const router = new Router({ ...@@ -75,6 +75,10 @@ const router = new Router({
path:"/newsupdata", path:"/newsupdata",
name:"新闻发布", name:"新闻发布",
component: Newsupdata component: Newsupdata
},{
path:"/allbaseInfo",
name:"覆盖人员",
component: AllbaseInfo
} }
] ]
}, },
......
...@@ -9,10 +9,14 @@ ...@@ -9,10 +9,14 @@
* @param datetime 国际化日期格式 * @param datetime 国际化日期格式
*/ */
export function format (datetime) { export function format (datetime) {
return formatWithSeperator(datetime, "/", ":"); return formatWithSeperator(datetime, "-", ":");
}
export function formatDate (datetime) {
return formatWithSeperator(datetime, "-");
} }
/** /**
*
* 时间格式化 * 时间格式化
* 将 2018-09-23T11:54:16.000+0000 格式化成类似 2018/09/23 11:54:16 * 将 2018-09-23T11:54:16.000+0000 格式化成类似 2018/09/23 11:54:16
* 可以指定日期和时间分隔符 * 可以指定日期和时间分隔符
...@@ -22,12 +26,18 @@ export function formatWithSeperator (datetime, dateSeprator, timeSeprator) { ...@@ -22,12 +26,18 @@ export function formatWithSeperator (datetime, dateSeprator, timeSeprator) {
if (datetime != null) { if (datetime != null) {
const dateMat = new Date(datetime); const dateMat = new Date(datetime);
const year = dateMat.getFullYear(); const year = dateMat.getFullYear();
const month = dateMat.getMonth() + 1; const month = addZoo(dateMat.getMonth() + 1);
const day = dateMat.getDate(); const day = addZoo(dateMat.getDate());
const hh = dateMat.getHours(); const hh = addZoo(dateMat.getHours());
const mm = dateMat.getMinutes(); const mm = addZoo(dateMat.getMinutes());
const ss = dateMat.getSeconds(); const ss = addZoo(dateMat.getSeconds());
if(!timeSeprator){
return year + dateSeprator + month + dateSeprator + day;
}
const timeFormat = year + dateSeprator + month + dateSeprator + day + " " + hh + timeSeprator + mm + timeSeprator + ss; const timeFormat = year + dateSeprator + month + dateSeprator + day + " " + hh + timeSeprator + mm + timeSeprator + ss;
return timeFormat; return timeFormat;
} }
} }
function addZoo(val) {
return val < 9 ? 0+""+val : val;
}
...@@ -5,13 +5,13 @@ ...@@ -5,13 +5,13 @@
*/ */
// 后台管理系统服务器地址 // 后台管理系统服务器地址
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.33:9002" //export const baseUrl2 ="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 backupBaseUrl = 'http://localhost:8002' //export const backupBaseUrl = 'http://localhost:8002'
//export const baseUrl = 'http://faceauth.weface.com.cn:98' //export const baseUrl = 'http://faceauth.weface.com.cn:98'
//export const baseUrl = 'http://172.16.10.163:9002' export const baseUrl = 'http://172.16.10.33:9002'
export default { export default {
baseUrl, baseUrl,
......
This diff is collapsed.
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
label="操作人" label="操作人"
> >
</el-table-column> </el-table-column>
<el-table-column <el-table-column
width="180" width="180"
label="操作"> label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -63,10 +63,10 @@ ...@@ -63,10 +63,10 @@
} }
this.$api.getlist.newsList(data).then((res) => { this.$api.getlist.newsList(data).then((res) => {
this.tableData=res.data.list this.tableData=res.data.list
}).catch((res) => { }).catch((res) => {
}); });
} }
}, },
created(){ created(){
...@@ -76,10 +76,10 @@ ...@@ -76,10 +76,10 @@
} }
this.$api.getlist.newsList(data).then((res) => { this.$api.getlist.newsList(data).then((res) => {
this.tableData=res.data.list this.tableData=res.data.list
}).catch((res) => { }).catch((res) => {
}); });
} }
} }
</script> </script>
\ No newline at end of file
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
prop="nowExamine" prop="nowExamine"
label="当前状态"> label="当前状态">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
width="180" width="180"
label="操作"> label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -119,10 +119,10 @@ ...@@ -119,10 +119,10 @@
.op{ .op{
display: flex; display: flex;
align-items: center; align-items: center;
} }
.idc{ .idc{
width: 200px width: 200px
} }
.nam{ .nam{
...@@ -154,7 +154,7 @@ ...@@ -154,7 +154,7 @@
// import baseUrl from "../../globe/globeUrl" // import baseUrl from "../../globe/globeUrl"
export default { export default {
data() { data() {
return { return {
list:[], list:[],
name:"", name:"",
...@@ -181,13 +181,12 @@ ...@@ -181,13 +181,12 @@
methods: { methods: {
//搜索 //搜索
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:'', townName:'',
villageName:'' villageName:''
} }
this.$api.getlist.record(data).then((res) => { this.$api.getlist.record(data).then((res) => {
for(var i in res.data.list){ for(var i in res.data.list){
...@@ -195,15 +194,15 @@ ...@@ -195,15 +194,15 @@
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)
var mon=(parseInt(d.getMonth()) + 1) 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].createtime=d.getFullYear()+"-"+mon+"-"+d.getDate()+" "+d.getHours() + ':' + d.getMinutes() + ':' + d.getSeconds();
res.data.list[i].recordtype=res.data.list[i].recordtype==1?"参保登记":res.data.list[i].recordtype==2?"信息变更":'' res.data.list[i].recordtype=res.data.list[i].recordtype==1?"参保登记":res.data.list[i].recordtype==2?"信息变更":''
} }
this.tableData=res.data.list this.tableData=res.data.list
this.totals=res.data.total this.totals=res.data.total
this.page=res.data.total.pageNum this.page=res.data.total.pageNum
}).catch((res) => { }).catch((res) => {
}); });
}, },
//流程 //流程
...@@ -224,8 +223,8 @@ ...@@ -224,8 +223,8 @@
size: 'large' size: 'large'
}) })
}else{ }else{
if(res.data[i].examineState=="审核失败"){ if(res.data[i].examineState=="审核失败"){
this.activities.push({ this.activities.push({
content:res.data[i].role+":"+"审核失败", content:res.data[i].role+":"+"审核失败",
...@@ -277,7 +276,7 @@ ...@@ -277,7 +276,7 @@
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)
var mon=(parseInt(d.getMonth()) + 1) 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].createtime=d.getFullYear()+"-"+mon+"-"+d.getDate()+" "+d.getHours() + ':' + d.getMinutes() + ':' + d.getSeconds();
res.data.list[i].recordtype=res.data.list[i].recordtype==1?"参保登记":res.data.list[i].recordtype==2?"信息变更":'' res.data.list[i].recordtype=res.data.list[i].recordtype==1?"参保登记":res.data.list[i].recordtype==2?"信息变更":''
} }
this.tableData=res.data.list this.tableData=res.data.list
...@@ -301,7 +300,7 @@ ...@@ -301,7 +300,7 @@
idcardbackpic:this.tableData[s].idcardbackpic, idcardbackpic:this.tableData[s].idcardbackpic,
idcardfrontpic:this.tableData[s].idcardfrontpic, idcardfrontpic:this.tableData[s].idcardfrontpic,
signpic:this.tableData[s].signpic, signpic:this.tableData[s].signpic,
show:false show:false
} }
}) })
...@@ -350,7 +349,7 @@ ...@@ -350,7 +349,7 @@
return decrypted.toString(CryptoJS.enc.Utf8); return decrypted.toString(CryptoJS.enc.Utf8);
} }
}, },
created(){ created(){
for(var i in listtown){ for(var i in listtown){
this.list.push({ this.list.push({
...@@ -370,7 +369,7 @@ ...@@ -370,7 +369,7 @@
var data={ var data={
idcard:'', idcard:'',
recordType:'' recordType:''
} }
this.$api.getlist.record(data).then((res) => { this.$api.getlist.record(data).then((res) => {
let loadingInstance = Loading.service(); let loadingInstance = Loading.service();
...@@ -382,13 +381,13 @@ ...@@ -382,13 +381,13 @@
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)
var mon=(parseInt(d.getMonth()) + 1) 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].createtime=d.getFullYear()+"-"+mon+"-"+d.getDate()+" "+d.getHours() + ':' + d.getMinutes() + ':' + d.getSeconds();
res.data.list[i].recordtype=res.data.list[i].recordtype==1?"参保登记":res.data.list[i].recordtype==2?"信息变更":'' res.data.list[i].recordtype=res.data.list[i].recordtype==1?"参保登记":res.data.list[i].recordtype==2?"信息变更":''
} }
this.tableData=res.data.list this.tableData=res.data.list
this.totals=res.data.total this.totals=res.data.total
this.page=res.data.total.pageNum this.page=res.data.total.pageNum
}).catch((res) => { }).catch((res) => {
let loadingInstance = Loading.service(); let loadingInstance = Loading.service();
this.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭 this.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭
...@@ -412,8 +411,8 @@ ...@@ -412,8 +411,8 @@
// that.tableData=res.data.list // that.tableData=res.data.list
// that.totals=res.data.total // that.totals=res.data.total
// that.page=res.data.total.pageNum // that.page=res.data.total.pageNum
// } // }
// }) // })
} }
......
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