Commit 10848df7 by 葛青博

青岛社保问题修改

1 parent 6b1374d9
......@@ -10,12 +10,21 @@ module.exports = {
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
proxyTable: {},
proxyTable: {
"/api1": {
target: 'http://192.168.9.115:28000', //"https://store.keliuyun.com", // 要访问的接口域名
ws: true, // 是否启用websockets
changeOrigin: true, //开启代理:在本地会创建一个虚拟服务端,然后发送请求的数据,并同时接收请求的数据,这样服务端和服务端进行数据的交互就不会有跨域问题
pathRewrite: {
"^/api1": "" //这里理解成用'/api'代替target里面的地址,比如我要调用'http://40.00.100.100:3002/user/add',直接写'/api/user/add'即可
}
}
},
useLocalIp: true,
// Various Dev Server settings
host: '192.168.9.102', // 'localhost', // // can be overwritten by process.env.HOST
host: '192.168.9.196', // 'localhost', // // can be overwritten by process.env.HOST
port: 8990, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser: false,
autoOpenBrowser: true,
errorOverlay: true,
notifyOnErrors: true,
poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
......
<!DOCTYPE html>
<html>
<head>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>web</title>
<script>
!(function() {
var randomH = Date.parse(new Date()) / 1000;
document.write("<script type='text/javascript' src='./static/config.js?s=" + randomH + "' charset='utf-8'><\/script>");
})()
</script>
<!-- <script>
!(function() {
var platformConf = document.createElement("script"),
s = document.getElementsByTagName("script")[0],
......@@ -12,10 +19,12 @@
platformConf.src = './static/config.js?_s=' + stamp;
s.parentNode.insertBefore(platformConf, s);
})()
</script>
</head>
<body>
</script> -->
</head>
<body>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>
</body>
</html>
\ No newline at end of file
......@@ -2496,6 +2496,11 @@
"integrity": "sha512-5am6HnnfN+urzt4yfg7IgTbotDjIT/u8AJpEt0sIU9FtXfVeezXAPKswrG+xKUCOYAINpSdgZVDU6QFh+cuH3w==",
"dev": true
},
"blueimp-md5": {
"version": "2.18.0",
"resolved": "https://registry.npm.taobao.org/blueimp-md5/download/blueimp-md5-2.18.0.tgz?cache=0&sync_timestamp=1599372690839&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fblueimp-md5%2Fdownload%2Fblueimp-md5-2.18.0.tgz",
"integrity": "sha1-EVK+EzXwxrORHtnjbbVPPmrFKTU="
},
"bn.js": {
"version": "4.11.8",
"resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz",
......
{
"name": "web",
"version": "1.0.0",
"description": "A Vue.js project",
"author": "panjianbo <13651030816@163.com>",
"private": true,
"scripts": {
"dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
"start": "npm run dev",
"unit": "jest --config test/unit/jest.conf.js --coverage",
"test": "npm run unit",
"build": "node build/build.js"
},
"dependencies": {
"@riophae/vue-treeselect": "^0.0.38",
"axios": "^0.18.0",
"babel-polyfill": "^6.26.0",
"cssnano": "^4.1.10",
"echarts": "^4.7.0",
"element-ui": "^2.8.2",
"file-saver": "^2.0.2",
"ol": "^6.0.0",
"stylus": "^0.54.5",
"stylus-loader": "^3.0.2",
"vue": "^2.5.2",
"vue-photo-zoom-pro": "^1.2.12",
"vue-piczoom": "^1.0.6",
"vue-resource": "^1.5.1",
"vue-router": "^3.0.1",
"vue-video-player": "^5.0.2",
"vue2.0-zoom": "^2.1.1",
"vuex": "^3.1.1",
"xlsx": "^0.15.1"
},
"devDependencies": {
"autoprefixer": "^7.1.2",
"babel-core": "^6.22.1",
"babel-helper-vue-jsx-merge-props": "^2.0.3",
"babel-jest": "^24.8.0",
"babel-loader": "^7.1.1",
"babel-plugin-dynamic-import-node": "^1.2.0",
"babel-plugin-syntax-jsx": "^6.18.0",
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.0",
"babel-plugin-transform-runtime": "^6.22.0",
"babel-plugin-transform-vue-jsx": "^3.5.0",
"babel-preset-env": "^1.3.2",
"babel-preset-stage-2": "^6.22.0",
"chalk": "^2.0.1",
"copy-webpack-plugin": "^4.0.1",
"css-loader": "^3.0.0",
"extract-text-webpack-plugin": "^3.0.0",
"file-loader": "^1.1.4",
"friendly-errors-webpack-plugin": "^1.6.1",
"html-webpack-plugin": "^2.30.1",
"jest": "^24.8.0",
"jest-serializer-vue": "^0.3.0",
"node-notifier": "^5.1.2",
"optimize-css-assets-webpack-plugin": "^2.0.0",
"ora": "^1.2.0",
"portfinder": "^1.0.13",
"postcss-import": "^11.0.0",
"postcss-loader": "^2.0.8",
"postcss-url": "^7.2.1",
"rimraf": "^2.6.0",
"semver": "^5.3.0",
"shelljs": "^0.7.6",
"uglifyjs-webpack-plugin": "^1.0.0",
"url-loader": "^2.0.1",
"vue-jest": "^1.0.2",
"vue-loader": "^13.3.0",
"vue-style-loader": "^3.0.1",
"vue-template-compiler": "^2.5.2",
"webpack": "^3.6.0",
"webpack-bundle-analyzer": "^3.3.2",
"webpack-dev-server": "^2.9.1",
"webpack-merge": "^4.1.0"
},
"engines": {
"node": ">= 6.0.0",
"npm": ">= 3.0.0"
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 8"
]
}
"name": "web",
"version": "1.0.0",
"description": "A Vue.js project",
"author": "panjianbo <13651030816@163.com>",
"private": true,
"scripts": {
"dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
"start": "npm run dev",
"unit": "jest --config test/unit/jest.conf.js --coverage",
"test": "npm run unit",
"build": "node build/build.js"
},
"dependencies": {
"@riophae/vue-treeselect": "^0.0.38",
"axios": "^0.18.0",
"babel-polyfill": "^6.26.0",
"cssnano": "^4.1.10",
"echarts": "^4.7.0",
"element-ui": "^2.8.2",
"file-saver": "^2.0.2",
"ol": "^6.0.0",
"stylus": "^0.54.5",
"stylus-loader": "^3.0.2",
"vue": "^2.5.2",
"vue-photo-zoom-pro": "^1.2.12",
"vue-piczoom": "^1.0.6",
"vue-resource": "^1.5.1",
"vue-router": "^3.0.1",
"vue-video-player": "^5.0.2",
"vue2.0-zoom": "^2.1.1",
"vuex": "^3.1.1",
"xlsx": "^0.15.1"
},
"devDependencies": {
"autoprefixer": "^7.1.2",
"babel-core": "^6.22.1",
"babel-helper-vue-jsx-merge-props": "^2.0.3",
"babel-jest": "^24.8.0",
"babel-loader": "^7.1.1",
"babel-plugin-dynamic-import-node": "^1.2.0",
"babel-plugin-syntax-jsx": "^6.18.0",
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.0",
"babel-plugin-transform-runtime": "^6.22.0",
"babel-plugin-transform-vue-jsx": "^3.5.0",
"babel-preset-env": "^1.3.2",
"babel-preset-stage-2": "^6.22.0",
"chalk": "^2.0.1",
"copy-webpack-plugin": "^4.0.1",
"css-loader": "^3.0.0",
"extract-text-webpack-plugin": "^3.0.0",
"file-loader": "^1.1.4",
"friendly-errors-webpack-plugin": "^1.6.1",
"html-webpack-plugin": "^2.30.1",
"jest": "^24.8.0",
"jest-serializer-vue": "^0.3.0",
"node-notifier": "^5.1.2",
"optimize-css-assets-webpack-plugin": "^2.0.0",
"ora": "^1.2.0",
"portfinder": "^1.0.13",
"postcss-import": "^11.0.0",
"postcss-loader": "^2.0.8",
"postcss-url": "^7.2.1",
"rimraf": "^2.6.0",
"semver": "^5.3.0",
"shelljs": "^0.7.6",
"uglifyjs-webpack-plugin": "^1.0.0",
"url-loader": "^2.0.1",
"vue-jest": "^1.0.2",
"vue-loader": "^13.3.0",
"vue-style-loader": "^3.0.1",
"vue-template-compiler": "^2.5.2",
"webpack": "^3.6.0",
"webpack-bundle-analyzer": "^3.3.2",
"webpack-dev-server": "^2.9.1",
"webpack-merge": "^4.1.0"
},
"engines": {
"node": ">= 6.0.0",
"npm": ">= 3.0.0"
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 8"
]
}
\ No newline at end of file
......@@ -8,7 +8,7 @@ Vue.use(Router)
export const constantRouterMap = [{
path: '/',
name: 'login',
component: reslove => require(['@/views/login/login'], reslove),
component: reslove => require(['@/views/Login/login'], reslove),
},
{
path: '/show',
......@@ -115,7 +115,7 @@ export const asyncRouterMap = [{
{
path: '/activity/report',
name: '状态报表',
component: reslove => require(['@/views/activity/report'], reslove),
component: reslove => require(['@/views/Activity/report'], reslove),
},
{
path: '/system/proofread',
......
import {asyncRouterMap, constantRouterMap } from '@/router/index.js'
import { asyncRouterMap, constantRouterMap } from '@/router/index.js'
import defultrouter from "@/router/index.js";
......@@ -8,22 +8,22 @@ import defultrouter from "@/router/index.js";
* @param {*} roles
*/
function hasPerminssion(router, roles) {
if (router.children && router.children.length > 0) {
if (existsChildren(router, roles)) {
return true;
if (router.children && router.children.length > 0) {
if (existsChildren(router, roles)) {
return true;
}
}
}
let status = false;
// let status = true
if (roles) {
for (let i = 0; i < roles.length; i++) {
if (roles[i].path === router.path) {
status = true;
break;
}
let status = false;
// let status = true
if (roles) {
for (let i = 0; i < roles.length; i++) {
if (roles[i].path === router.path) {
status = true;
break;
}
}
}
}
return status;
return status;
}
/**
......@@ -33,53 +33,53 @@ function hasPerminssion(router, roles) {
* @param {*} roles
*/
function filterAsyncRouter(asyncRouterMap, roles) {
var newData = [];
// return routers
asyncRouterMap.forEach((ele, index) => {
roles.map(m => {
if (ele.path == m.path) {
let obj = ele;
if (m.children && m.children.length > 0) {
obj.children = filterAsyncRouter(ele.children, m.children);
} else {
obj.children = []
}
newData.push(obj);
}
var newData = [];
// return routers
asyncRouterMap.forEach((ele, index) => {
roles.map(m => {
if (ele.path == m.path) {
let obj = ele;
if (m.children && m.children.length > 0) {
obj.children = filterAsyncRouter(ele.children, m.children);
} else {
obj.children = []
}
newData.push(obj);
}
});
});
});
return newData;
return newData;
}
const menu = {
state: {
routers: constantRouterMap,
addRouter: [],
threeMenu: []
},
mutations: {
SET_ROUTERS: (state, routers) => {
state.addRouter = routers;
state.routers = constantRouterMap.concat(routers);
defultrouter.addRoutes(routers); //合并路由
state: {
routers: constantRouterMap,
addRouter: [],
threeMenu: []
},
SET_THREEMENU: (state, routers) => {
state.threeMenu = routers;
}
},
actions: {
GetMenuRole({ commit, state }, data) {
if (data === "") {
commit("SET_ROUTERS", []);
return;
} else {
console.log('aaa',data)
let accessedRouters = filterAsyncRouter(asyncRouterMap, data);
console.log(accessedRouters)
commit("SET_ROUTERS", accessedRouters);
}
mutations: {
SET_ROUTERS: (state, routers) => {
state.addRouter = routers;
state.routers = constantRouterMap.concat(routers);
defultrouter.addRoutes(routers); //合并路由
},
SET_THREEMENU: (state, routers) => {
state.threeMenu = routers;
}
},
actions: {
GetMenuRole({ commit, state }, data) {
if (data === "") {
commit("SET_ROUTERS", []);
return;
} else {
// console.log('aaa',data)
let accessedRouters = filterAsyncRouter(asyncRouterMap, data);
// console.log(accessedRouters)
commit("SET_ROUTERS", accessedRouters);
}
}
}
}
};
export default menu;
export default menu;
\ No newline at end of file
// export let url = 'http://192.168.9.208:20080/api/v1'
// export let url = 'http://52.1.113.109:20080/api/v1'
const { urls = '', picUrls = '', mapUrls = '' } = window.SECURITY_CONF
export const mapUrl = mapUrls || location.host
export let IP = urls || location.host
if (IP.indexOf('9.102') > -1 || IP.indexOf('localhost') > -1) {
IP = 'https://store.keliuyun.com/report'
// IP="/report"
if (IP.indexOf('9.102') > -1 || IP.indexOf('localhost') > -1) {
IP = 'https://store.keliuyun.com/report'
// IP="/report"
}
// IP="/report"
export let url = `${IP}`
export let url = `${IP}` // '/api1/report' //
export let menus = `${url}/auth/api/auth/apps/23660e5593563b27832c2b8f490b458e/menus`
let timer = ()=>{
return new Date().getTime()
let timer = () => {
return new Date().getTime()
}
export let auth = {
login: `${url}/users/login`,
accountid:`${url}/accounts`,
user: `${url}/users`,
edituser(userid){
return `${url}/users/${userid}`
},
role: `${url}/auth/roles`,
editrole (roleid){
return `${url}/auth/roles/${roleid}`
},
menusRole(roleid){
return `${url}/auth/roles/${roleid}/apps/23660e5593563b27832c2b8f490b458e/menus`
},
userRole(userid) {
return `${url}/auth/users/${userid}/roles`
},
deleteRole(roleid) {
return `${url}/auth/roles/${roleid}`
},
deleteuserRole(userid, roleid) {
return `${url}/auth/users/${userid}/roles/${roleid}`
},
perms(roleid){
return `${url}/auth/roles/${roleid}/perms`
},
ugrps: `${url}/auth/ugrps`,
delugrps(ugrp_unid) {
return `${url}/auth/ugrps/${ugrp_unid}`
},
userTogroup(groupid) {
return `${url}/auth/ugrps/${groupid}/users`
},
delUserToGroup(groupid, userid) {
return `${url}/auth/ugrps/${groupid}/users/${userid}`
},
///-------cyl add
getRoleUsers (roleid){
return `${url}/auth/roles/${roleid}/users`
},
login: `${url}/users/login`,
accountid: `${url}/accounts`,
user: `${url}/users`,
edituser(userid) {
return `${url}/users/${userid}`
},
role: `${url}/auth/roles`,
editrole(roleid) {
return `${url}/auth/roles/${roleid}`
},
menusRole(roleid) {
return `${url}/auth/roles/${roleid}/apps/23660e5593563b27832c2b8f490b458e/menus`
},
userRole(userid) {
return `${url}/auth/users/${userid}/roles`
},
deleteRole(roleid) {
return `${url}/auth/roles/${roleid}`
},
deleteuserRole(userid, roleid) {
return `${url}/auth/users/${userid}/roles/${roleid}`
},
perms(roleid) {
return `${url}/auth/roles/${roleid}/perms`
},
ugrps: `${url}/auth/ugrps`,
delugrps(ugrp_unid) {
return `${url}/auth/ugrps/${ugrp_unid}`
},
userTogroup(groupid) {
return `${url}/auth/ugrps/${groupid}/users`
},
delUserToGroup(groupid, userid) {
return `${url}/auth/ugrps/${groupid}/users/${userid}`
},
///-------cyl add
getRoleUsers(roleid) {
return `${url}/auth/roles/${roleid}/users`
},
}
export let org = {
getorgtree:`${url}/org/tree`,
getorg:`${url}/org`,
deleteorg (org_unid){
return `${url}/org/${org_unid}`
},
getvchan:`${url}/org/vchans`,
getvchanList:`${url}/org/vchans/list`,
editvchan (id){
return `${url}/org/vchans/${id}`
}
getorgtree: `${url}/org/tree`,
getorg: `${url}/org`,
deleteorg(org_unid) {
return `${url}/org/${org_unid}`
},
getvchan: `${url}/org/vchans`,
getvchanList: `${url}/org/vchans/list`,
editvchan(id) {
return `${url}/org/vchans/${id}`
}
}
export let faceweb = `${url}/face_web`
export let picUrl = picUrls || "https://vion-retail.oss-cn-beijing.aliyuncs.com/"
// export let picUrl ="http://192.168.9.239/"
// export let picUrl ="http://192.168.9.239/"
\ No newline at end of file
......@@ -3,19 +3,46 @@
*/
import axios from 'axios'
import vue from 'vue'
import router from '../router'
const service = axios.create({
timeout: 2000000 //设置请求超时时间
})
import { Message, Loading } from 'element-ui';
import md5 from 'blueimp-md5'
function cleanArray(actual) {
const newArray = []
for (let i = 0; i < actual.length; i++) {
if (actual[i]) {
newArray.push(actual[i])
}
}
return newArray
}
import { Message, Loading } from 'element-ui';
function param2(json) {
if (!json) return ''
return cleanArray(
Object.keys(json).map(key => {
if (json[key] === undefined ||
json[key] === null
) return ''
return encodeURIComponent(key) + '=' + json[key]
})
).join('&')
}
const Axios = axios.create({
timeout: 0, //设置请求超时时间
withCredentials: true, // 是否允许带cookie这些
headers: {
"Content-Type": "application/json;charset=UTF-8"
}
})
window.axios = Axios;
let loading //定义loading变量
function startLoading() { //使用Element loading-start 方法
loading = Loading.service({
loading = Loading.Axios({
lock: true,
text: '加载中……',
background: 'rgba(0, 0, 0, 0.7)'
......@@ -48,20 +75,15 @@ export function tryHideFullScreenLoading() {
/**@param
* 请求前的拦截器
*/
service.interceptors.request.use(function(config) {
Axios.interceptors.request.use((config) => {
const suffix = '4c413628731691abc99eb2fca5f69aab'
const { method, params, data } = config
const token = localStorage.getItem('atoken');
// config.headers['app-code'] = 1
//截取API添加时间戳防止请求缓存
if (config.method == "get") {
config.params = {
_t: Date.parse(new Date()) / 1000,
...config.params
};
}
if (config.url.indexOf('codes/countries') < 1) {
if (config.url.indexOf('cates') < 1) {
if (token) {
// config.headers.authorization = '4db5183a-721b-4eee-b623-1d143890e813';
config.headers.authorization = token;
//showFullScreenLoading();
} else {
......@@ -69,6 +91,13 @@ service.interceptors.request.use(function(config) {
}
}
}
const signalStr = method.toUpperCase() +
(params ? param2(params) : '') +
(data ? JSON.stringify(data) : '') +
suffix + (config.headers.Authorization ? config.headers.Authorization : '');
const hashSignature = md5(signalStr)
config.headers['signature'] = hashSignature
return config
}, function(err) {
//tryHideFullScreenLoading();
......@@ -79,15 +108,15 @@ service.interceptors.request.use(function(config) {
* @param
* 响应前的拦截器
*/
service.interceptors.response.use(function(res) {
Axios.interceptors.response.use((res) => {
//tryHideFullScreenLoading();
if (res.data) {
if (res.data.ecode === 401) {
Message({
type: 'error',
message: res.data.enote
})
// router.push('/');
type: 'error',
message: res.data.enote
})
router.replace('/');
}
}
return res;
......@@ -96,4 +125,4 @@ service.interceptors.response.use(function(res) {
return Promise.reject(err);
})
export default service
\ No newline at end of file
export default Axios
\ No newline at end of file
......@@ -138,7 +138,7 @@
is_active: true,
sex: Vthis.facesex,
name__like: Vthis.facename,
card_id__like: Vthis.facecardid,
idCard_like: Vthis.facecardid,
crucial_type: Vthis.dbname,
resident_unids: this.communityunid,
}
......
......@@ -651,7 +651,7 @@
is_active: true,
sex: this.facesex,
name__like: '',
card_id__like: '',
idCard_like: '',
crucial_type: 'dl_white',
resident_unids: '',
}
......
......@@ -246,11 +246,11 @@ export default {
map.addOverlay(overlay);
});
});
popupCloser.addEventListener('click',function(){
overlay.setPosition(undefined);
return
// popupCloser.addEventListener('click',function(){
// overlay.setPosition(undefined);
// return
});
// });
},
......@@ -322,7 +322,7 @@ export default {
source: iconFeature,
id:1
});
map.addLayer(this.CameraVertorlayer);
map.addLayer(CameraVertorlayer);
},
},
......@@ -336,11 +336,11 @@ export default {
mounted(){
this.InitMap();
let _this = this;
setTimeout(() => {
// 添加一个使用离线瓦片地图的层
// setTimeout(() => {
// // 添加一个使用离线瓦片地图的层
map.addLayer(CameraVertorlayer);
}, 200);
// map.addLayer(CameraVertorlayer);
// }, 200);
}
}
</script>
......
......@@ -67,6 +67,7 @@ export default {
sessionStorage.removeItem("threemenu");
sessionStorage.removeItem("menu");
localStorage.setItem("accountId", response.data.data.user.accountId);
// localStorage.setItem("accountId", 2);
// this.axios.get(this.API.auth.accountid,{
// params:{
// id:response.
......
......@@ -2,8 +2,8 @@
<template>
<div class="template-box content_div_main">
<el-form :inline="true" class="search-form" size="small">
<el-form-item label="社区选择:">
<el-select v-model="search.communityunid" placeholder="请选择">
<el-form-item label="地点选择:">
<el-select v-model="search.communityunid" placeholder="请选择" @change="initGateData">
<el-option
v-for="item in addrData"
:key="item.unid" :value="item.id" :label="item.name"
......
......@@ -154,7 +154,7 @@
accountId: this.accountId,
gender: Vthis.facesex,
name_like: `%${Vthis.facename}%`,
card_id__like: Vthis.facecardid,
idCard_like: Vthis.facecardid === '' ? null : Vthis.facecardid,
type: Vthis.dbname,
resident_unids: this.communityunid,
}
......
......@@ -24,7 +24,7 @@
</el-form-item>
<el-form-item>
<el-button class="search-btn" @click="searchUser" icon="el-icon-download"
:disabled="buttonDisable()">获取考生列表</el-button>
:disabled="buttonDisable()" v-loading="btnLoading">获取考生列表</el-button>
<el-button class="search-btn ml10" @click="getAllUserList"
:disabled="buttonDisable()">获取考生照片</el-button>
</el-form-item>
......@@ -39,17 +39,13 @@
<el-input type="text" class="bla bra br0" v-model="idCard" placeholder=""></el-input>
</el-form-item>
<el-form-item>
<el-button class="search-btn" @click="getUserList"
:disabled="examinationId === '' || typeId === ''">查询</el-button>
<el-button class="search-btn" @click="getUserList(true)"
:disabled="examinationId === '' || typeId === ''" v-loading="loading">查询</el-button>
</el-form-item>
</el-form>
</el-row>
<el-row>
<el-table :data="systableData"
:v-loading="pictLoading"
element-loading-background = "rgba(0, 0, 0, 0.5)"
element-loading-text = "数据正在加载中"
element-loading-spinner = "el-icon-loading"
<el-table :data="systableData" v-loading="loading"
style="width:98%;margin:20px auto;" class="table_m_type" height="700">
<div slot="empty">
<div class="no-data-box">
......@@ -57,8 +53,12 @@
<div>暂无数据</div>
</div>
</div>
<el-table-column type="index" width=""></el-table-column>
<!-- <el-table-column prop="tabOrder" label="序号" width=""></el-table-column> -->
<!-- <el-table-column type="index" width=""></el-table-column> -->
<el-table-column label="序号" width="">
<template slot-scope="scope">
<div>{{ scope.row.tabOrder + (currentPage - 1) * 10 }}</div>
</template>
</el-table-column>
<el-table-column prop="idCard" label="身份证号" width=""></el-table-column>
<el-table-column label="照片" align="center">
<template slot-scope="scope">
......@@ -133,7 +133,8 @@ export default {
total:0,
currentPage:1,
limit:20,
pictLoading: false,
loading: false,
btnLoading: false,
accountId:localStorage.getItem("accountId"),
allUserList: [],
picUrls,
......@@ -143,22 +144,24 @@ export default {
},
methods: {
searchUser () {
this.btnLoading = true
this.axios.get(this.API.url+`/persons/socialSecurity/getStudentInfo`, {
params: {
mallId: this.examinationId,
personType: this.typeId
}
}).then(response => {
this.btnLoading = false
if (response.data.code === 200) {
this.successCount = response.data.data.successCount
this.userDataSuccess()
this.getUserList()
this.getUserList(false)
}
});
},
handleCurrentChange(val){
this.currentPage = val;
this.getUserList();
this.getUserList(true);
},
// 获取所有用户
async getAllUserList () {
......@@ -196,7 +199,7 @@ export default {
return;
}
if (nowNumber === this.allUserList.length - 1) {
this.getUserList()
this.getUserList(false)
}
if (nowNumber < this.allUserList.length) {
await this.setUserPhoto(() => {
......@@ -216,7 +219,11 @@ export default {
}
},
// 获取担任考生照片
getUserList () {
getUserList (type) {
this.systableData = []
if (type) {
this.loading = true
}
this.axios.get(this.API.url+`/persons`, {
params: {
mallId: this.examinationId,
......@@ -226,10 +233,13 @@ export default {
pageSize: this.limit,
}
}).then(response => {
if (type) {
this.loading = false
}
if (response.data && response.data.data && response.data.data.list) {
// response.data.data.list.forEach((item, index) => {
// item.tabOrder = ++index;
// });
response.data.data.list.forEach((item, index) => {
item.tabOrder = ++index;
});
this.systableData = response.data.data.list
this.total = response.data.data.total || 0
} else {
......@@ -262,6 +272,10 @@ export default {
try {
const data = await this.axios.get(this.API.url+`/persons/socialSecurity/getPictures/${row.id}`)
if (data && data.data && data.data.data) {
this.$message({
type: "info",
message: "获取照片成功"
});
systableData[index].personPic = data.data.data.personPic
}
} catch (err) {
......@@ -289,6 +303,7 @@ export default {
});
},
changeExamination () {
this.typeId = ''
if (this.examinationId !== '') {
this.getTypes()
}
......
<template>
<div class="template-box content_div_main">
<div class="template-box content_div_main" v-loading="pageLoading">
<el-row class="">
<el-form :inline="true" class="search-form" size="small">
<el-form-item label="考点名称:" label-width="82px">
......@@ -36,21 +36,26 @@
<el-input type="text" class="bla bra br0" v-model="idCard" placeholder="" style="width: 192px"></el-input>
</el-form-item>
<el-form-item>
<el-button class="search-btn" @click="getUserList" :disabled="examinationId === '' || typeId === ''">查询</el-button>
<el-button class="search-btn" @click="getUserList" :disabled="examinationId === '' || typeId === ''" v-loading="loading">查询</el-button>
<el-button class="search-btn ml10" @click="upLoadData" :disabled="examinationId === '' || typeId === ''">上传校对结果</el-button>
</el-form-item>
</el-form>
</el-row>
<el-row>
<el-table :data="systableData" style="width:98%;margin:20px auto;" class="table_m_type" height="700">
<el-table :data="systableData" style="width:98%;margin:20px auto;" class="table_m_type" height="700"
v-loading="loading">
<div slot="empty">
<div class="no-data-box">
<img src="../../../assets/img/nodata.png" alt="暂无数据"/>
<div>暂无数据</div>
</div>
</div>
<el-table-column type="index" width="" label="序号"></el-table-column>
<!-- <el-table-column prop="" label="序号" width=""></el-table-column> -->
<!-- <el-table-column type="index" width="" label="序号"></el-table-column> -->
<el-table-column prop="tabOrder" label="序号" width="">
<template slot-scope="scope">
<div>{{ scope.row.tabOrder + (currentPage - 1) * 10 }}</div>
</template>
</el-table-column>
<el-table-column prop="idCard" label="身份证号" width=""></el-table-column>
<el-table-column prop="" label="校对结果" width="">
<template slot-scope="scope">
......@@ -145,21 +150,26 @@ export default {
],
picUrls,
defaultImg,
loading: false,
pageLoading: false,
}
},
methods: {
async upLoadData () {
try {
this.pageLoading = true
const response = await this.axios.get(this.API.url+`/persons/socialSecurity/sendComparisonResults`, {
params: {
mallId: this.examinationId,
personType: this.typeId
}
});
this.pageLoading = false
this.$alert(response.data.msg, '', {
confirmButtonText: '确定'
});
} catch (err) {
this.pageLoading = false
this.$message.error("上传校队失败");
}
},
......@@ -187,6 +197,8 @@ export default {
// 获取所有用户
getUserList () {
const { proofrendResut } = this
this.loading = true
this.systableData = []
let data = {}
if (proofrendResut === '全部') {
data = {
......@@ -210,10 +222,11 @@ export default {
...data
}
}).then(response => {
this.loading = false
if (response.data && response.data.data && response.data.data.list) {
// response.data.data.list.forEach((item, index) => {
// item.tabOrder = ++index;
// });
response.data.data.list.forEach((item, index) => {
item.tabOrder = ++index;
});
this.systableData = response.data.data.list
this.total = response.data.data.total || 0
} else {
......@@ -236,6 +249,7 @@ export default {
});
},
changeExamination () {
this.typeId = ''
if (this.examinationId !== '') {
this.getTypes()
}
......
......@@ -72,12 +72,14 @@ export default {
chartIds: '1,2,3,4,5,6,8,16,17'
}
}).then((res)=>{
this.datas=res.data.data;
if (res && res.data && res.data.data) {
this.datas=res.data.data;
this.chartData1 = this.datas.body.CustomerCounting;
this.chartData1.otherConf={
_color:["#0069FF", "#4BBEFF", "#87D14B", "#FFC62E", "#FF9631"]
}
this.radioChange(this.datas);
}
})
},
radioChange(res){
......
......@@ -6,4 +6,5 @@ window.SECURITY_CONF = {
// urls: 'http://192.168.9.146:17070',
picUrls: 'https://vion-retail.oss-cn-beijing.aliyuncs.com/',
mapUrls: 'http://19610hs911.iask.in/static/pics/qingdaoMap/roadmap'
// mapUrls: 'http://192.168.9.162:20080/static/pics/cache/qingdao/roadmap'
}
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!