@ -0,0 +1,23 @@
|
||||
.DS_Store
|
||||
node_modules
|
||||
/dist
|
||||
|
||||
|
||||
# local env files
|
||||
.env.local
|
||||
.env.*.local
|
||||
|
||||
# Log files
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
pnpm-debug.log*
|
||||
|
||||
# Editor directories and files
|
||||
.idea
|
||||
.vscode
|
||||
*.suo
|
||||
*.ntvs*
|
||||
*.njsproj
|
||||
*.sln
|
||||
*.sw?
|
@ -0,0 +1,24 @@
|
||||
# zhenhai
|
||||
|
||||
## Project setup
|
||||
```
|
||||
yarn install
|
||||
```
|
||||
|
||||
### Compiles and hot-reloads for development
|
||||
```
|
||||
yarn serve
|
||||
```
|
||||
|
||||
### Compiles and minifies for production
|
||||
```
|
||||
yarn build
|
||||
```
|
||||
|
||||
### Lints and fixes files
|
||||
```
|
||||
yarn lint
|
||||
```
|
||||
|
||||
### Customize configuration
|
||||
See [Configuration Reference](https://cli.vuejs.org/config/).
|
@ -0,0 +1,5 @@
|
||||
module.exports = {
|
||||
presets: [
|
||||
'@vue/cli-plugin-babel/preset'
|
||||
]
|
||||
}
|
@ -0,0 +1,52 @@
|
||||
{
|
||||
"name": "zhenhai",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"serve": "vue-cli-service serve",
|
||||
"build": "vue-cli-service build",
|
||||
"lint": "vue-cli-service lint",
|
||||
"dev": "vue-cli-service serve"
|
||||
},
|
||||
"dependencies": {
|
||||
"axios": "^1.3.5",
|
||||
"cookie": "^0.5.0",
|
||||
"core-js": "^3.6.5",
|
||||
"element-ui": "^2.15.13",
|
||||
"js-cookie": "^3.0.1",
|
||||
"less": "4",
|
||||
"less-loader": "7",
|
||||
"vue": "^2.6.11",
|
||||
"vue-router": "3",
|
||||
"vuex": "3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/cli-plugin-babel": "~4.5.15",
|
||||
"@vue/cli-plugin-eslint": "~4.5.15",
|
||||
"@vue/cli-plugin-router": "~4.5.15",
|
||||
"@vue/cli-service": "~4.5.15",
|
||||
"babel-eslint": "^10.1.0",
|
||||
"eslint": "^6.7.2",
|
||||
"eslint-plugin-vue": "^6.2.2",
|
||||
"vue-template-compiler": "^2.6.11"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"root": true,
|
||||
"env": {
|
||||
"node": true
|
||||
},
|
||||
"extends": [
|
||||
"plugin:vue/essential",
|
||||
"eslint:recommended"
|
||||
],
|
||||
"parserOptions": {
|
||||
"parser": "babel-eslint"
|
||||
},
|
||||
"rules": {}
|
||||
},
|
||||
"browserslist": [
|
||||
"> 1%",
|
||||
"last 2 versions",
|
||||
"not dead"
|
||||
]
|
||||
}
|
After Width: | Height: | Size: 4.2 KiB |
@ -0,0 +1,23 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
||||
<title>镇海平安企业系统</title>
|
||||
</head>
|
||||
<style>
|
||||
body{
|
||||
margin:0;
|
||||
padding: 0;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<!-- <noscript>
|
||||
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
||||
</noscript> -->
|
||||
<div id="app"></div>
|
||||
<!-- built files will be auto injected -->
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,64 @@
|
||||
<template>
|
||||
<div id="app">
|
||||
<router-view />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style lang="less">
|
||||
#app {
|
||||
font-family: 'Avenir', Helvetica, Arial, sans-serif;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
color: #2c3e50;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
|
||||
.el-scrollbar__wrap {
|
||||
overflow-x: hidden !important;
|
||||
}
|
||||
|
||||
.el-scrollbar__bar.is-horizontal {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.el-scrollbar__wrap {
|
||||
overflow-x: hidden;
|
||||
overflow-y: hidden;
|
||||
}
|
||||
|
||||
.el-menu {
|
||||
border-right: 0;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: YouSheBiaoTiHei;
|
||||
src: url('./fonts/YouSheBiaoTiHei.ttf')
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: DS-Digital-Bold;
|
||||
src: url('./fonts/DS-Digital-Bold.ttf')
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: AlimamaShuHeiTi;
|
||||
src: url('./fonts/AlimamaShuHeiTi.ttf')
|
||||
}
|
||||
|
||||
.clearfix::after {
|
||||
content: '';
|
||||
clear: both;
|
||||
display: block;
|
||||
height: 0;
|
||||
zoom: 0;
|
||||
visibility: hidden;
|
||||
font-size: 0;
|
||||
}
|
||||
|
||||
.el-scrollbar__thumb {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
@ -0,0 +1,9 @@
|
||||
import request from '@/utils/request'
|
||||
//企业平安指数
|
||||
export function safeIndex(params) {
|
||||
return request({
|
||||
url: '/safety/enterpriseArchives/safeIndex',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
import axios from 'axios'
|
||||
import { getToken } from '@/utils/auth'
|
||||
//通用下载接口
|
||||
export function download(params) {
|
||||
return axios({
|
||||
url: `http://${window.location.host}/download`,
|
||||
//url: 'http://218.92.196.102:8118/hjapi/common/download',
|
||||
//url: 'http://192.168.0.188:8118/hjapi/common/download',
|
||||
method: 'get',
|
||||
params,
|
||||
responseType: 'blob',
|
||||
headers: { 'Access-Control-Allow-origin': '*', 'Content-Type': 'application/json; charset=UTF-8', 'Authorization': 'Bearer ' + getToken() }
|
||||
})
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
import request from '@/utils/request'
|
||||
//首页数据统计
|
||||
export function listTotal(params) {
|
||||
return request({
|
||||
url: '/safety/enterprise-archives/search-engine-homepage/data',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
//历史搜索列表
|
||||
export function historyList(params) {
|
||||
return request({
|
||||
url: '/safety/enterprise-archives/search-engine-homepage/history',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
//搜索
|
||||
export function searchList(params) {
|
||||
return request({
|
||||
url: '/safety/enterprise-archives/search-engine-homepage/search',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 163 KiB |
After Width: | Height: | Size: 277 B |
After Width: | Height: | Size: 8.9 KiB |
After Width: | Height: | Size: 537 B |
After Width: | Height: | Size: 8.5 KiB |
After Width: | Height: | Size: 377 B |
After Width: | Height: | Size: 4.1 KiB |
After Width: | Height: | Size: 473 B |
After Width: | Height: | Size: 30 KiB |
After Width: | Height: | Size: 422 B |
After Width: | Height: | Size: 381 B |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 532 B |
After Width: | Height: | Size: 1.4 MiB |
After Width: | Height: | Size: 894 B |
After Width: | Height: | Size: 71 KiB |
After Width: | Height: | Size: 611 B |
After Width: | Height: | Size: 577 B |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 90 KiB |
After Width: | Height: | Size: 92 KiB |
After Width: | Height: | Size: 365 B |
After Width: | Height: | Size: 737 B |
After Width: | Height: | Size: 1014 B |
After Width: | Height: | Size: 743 B |
After Width: | Height: | Size: 548 B |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 701 B |
After Width: | Height: | Size: 3.0 KiB |
After Width: | Height: | Size: 3.9 KiB |
After Width: | Height: | Size: 3.7 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 7.1 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 48 KiB |
After Width: | Height: | Size: 48 KiB |
After Width: | Height: | Size: 5.5 KiB |
After Width: | Height: | Size: 238 B |
After Width: | Height: | Size: 238 B |
After Width: | Height: | Size: 238 B |
After Width: | Height: | Size: 251 B |
After Width: | Height: | Size: 267 B |
After Width: | Height: | Size: 802 B |
After Width: | Height: | Size: 743 B |
After Width: | Height: | Size: 267 B |
After Width: | Height: | Size: 277 B |
After Width: | Height: | Size: 267 B |
After Width: | Height: | Size: 277 B |
After Width: | Height: | Size: 832 B |
After Width: | Height: | Size: 820 KiB |
After Width: | Height: | Size: 38 KiB |
After Width: | Height: | Size: 8.6 KiB |
After Width: | Height: | Size: 8.6 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 2.6 KiB |
After Width: | Height: | Size: 9.2 KiB |
After Width: | Height: | Size: 464 KiB |
After Width: | Height: | Size: 9.6 KiB |
After Width: | Height: | Size: 2.3 MiB |
After Width: | Height: | Size: 769 B |
After Width: | Height: | Size: 702 B |
After Width: | Height: | Size: 4.1 KiB |
After Width: | Height: | Size: 464 KiB |
After Width: | Height: | Size: 392 KiB |
After Width: | Height: | Size: 350 KiB |
After Width: | Height: | Size: 488 KiB |
After Width: | Height: | Size: 9.9 KiB |
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 740 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 802 B |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 163 KiB |
After Width: | Height: | Size: 277 B |
After Width: | Height: | Size: 537 B |
After Width: | Height: | Size: 9.6 KiB |
After Width: | Height: | Size: 377 B |
After Width: | Height: | Size: 4.1 KiB |
After Width: | Height: | Size: 473 B |
After Width: | Height: | Size: 30 KiB |
After Width: | Height: | Size: 422 B |
After Width: | Height: | Size: 381 B |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 532 B |
After Width: | Height: | Size: 1.4 MiB |
After Width: | Height: | Size: 894 B |
After Width: | Height: | Size: 71 KiB |
After Width: | Height: | Size: 611 B |
After Width: | Height: | Size: 577 B |