@ -0,0 +1,3 @@
|
||||
> 1%
|
||||
last 2 versions
|
||||
not dead
|
@ -0,0 +1,18 @@
|
||||
module.exports = {
|
||||
root: true,
|
||||
env: {
|
||||
node: true
|
||||
},
|
||||
'extends': [
|
||||
'plugin:vue/essential',
|
||||
'eslint:recommended'
|
||||
],
|
||||
parserOptions: {
|
||||
parser: 'babel-eslint'
|
||||
},
|
||||
rules: {
|
||||
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
||||
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
||||
'no-unused-vars':'off'
|
||||
}
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
.DS_Store
|
||||
node_modules
|
||||
/dist
|
||||
/package-lock.json
|
||||
|
||||
# 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,36 @@
|
||||
# jianzhi-manage-web
|
||||
|
||||
#### Description
|
||||
jianzhi-manage-web 兼职管理后台
|
||||
|
||||
#### Software Architecture
|
||||
Software architecture description
|
||||
|
||||
#### Installation
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Instructions
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Contribution
|
||||
|
||||
1. Fork the repository
|
||||
2. Create Feat_xxx branch
|
||||
3. Commit your code
|
||||
4. Create Pull Request
|
||||
|
||||
|
||||
#### Gitee Feature
|
||||
|
||||
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
||||
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
||||
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
||||
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
||||
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
||||
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
@ -0,0 +1,63 @@
|
||||
1. 校园兼职平台服务端 jianzhi-portal https://github.com/zzhougy/jianzhi-server.git
|
||||
2. 校园兼职平台门户 jianzhi-portal https://github.com/zzhougy/jianzhi-portal.git
|
||||
3. 校园兼职平台聊天界面 jianzhi-webim https://github.com/zzhougy/jianzhi-webim.git
|
||||
4. 校园兼职平台后台管理 jianzhi-webim https://github.com/zzhougy/jianzhi-manage-web.git
|
||||
|
||||
|
||||
#### 项目介绍
|
||||
本系统用户分为三类:后台管理员(超级管理员,普通管理员),求职者(学生),
|
||||
招聘人员(负责人、普通招聘人员)。本系统主要分为前台和后台,前台面向的是所有用
|
||||
户,后台面向的是系统管理员,可以对网站信息及用户数据进行管理。
|
||||
|
||||
前台实现的模块功能需求:
|
||||
1) 用户进行账号的登录、注册
|
||||
2) 用户按关键词、条件搜索岗位和企业,浏览岗位和企业的详细信息
|
||||
3) 求职者可以对自己个人基本信息进行查看和编辑,进行简历投递,查看简历投递记录和进度
|
||||
4) 招聘单位对个人账号信息查看和编辑,发布和编辑岗位信息,查看收到的简历。企业负责人对企业信息的编辑及审核信息提交
|
||||
5) 即时通讯,求职者与招聘人员进行私聊
|
||||
6) 用户可以对求职者或招聘单位进行评价、投诉
|
||||
|
||||
后台实现的模块功能需求:
|
||||
1) 管理员查看、编辑求职者和招聘单位人员基本信息,对招聘单位提交的企业信息进行审核
|
||||
2) 管理员可以查看、编辑招聘单位发布的兼职信息
|
||||
3) 管理员对违规的账号或招聘单位进行封禁处理
|
||||
4) 超级管理员能够管理平台所有用户的角色及角色所拥有的权限
|
||||
|
||||
|
||||
#### 界面截图
|
||||
![](./image/1.png)
|
||||
![](./image/2.png)
|
||||
![](./image/3.png)
|
||||
![](./image/4.png)
|
||||
![](./image/5.png)
|
||||
![](./image/6.png)
|
||||
|
||||
|
||||
|
||||
## Project setup
|
||||
```
|
||||
npm install
|
||||
```
|
||||
|
||||
### Compiles and hot-reloads for development
|
||||
```
|
||||
npm run serve
|
||||
```
|
||||
|
||||
### Compiles and minifies for production
|
||||
```
|
||||
npm run build
|
||||
```
|
||||
|
||||
### Run your tests
|
||||
```
|
||||
npm run test
|
||||
```
|
||||
|
||||
### Lints and fixes files
|
||||
```
|
||||
npm run 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,8 @@
|
||||
'use strict'
|
||||
const merge = require('webpack-merge')
|
||||
const prodEnv = require('./prod.env')
|
||||
|
||||
module.exports = merge(prodEnv, {
|
||||
NODE_ENV: '"development"',
|
||||
API_HOST:"/api/"
|
||||
})
|
@ -0,0 +1,4 @@
|
||||
'use strict'
|
||||
module.exports = {
|
||||
NODE_ENV: '"production"'
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
'use strict'
|
||||
const merge = require('webpack-merge')
|
||||
const devEnv = require('./dev.env')
|
||||
|
||||
module.exports = merge(devEnv, {
|
||||
NODE_ENV: '"testing"'
|
||||
})
|
After Width: | Height: | Size: 48 KiB |
After Width: | Height: | Size: 67 KiB |
After Width: | Height: | Size: 104 KiB |
After Width: | Height: | Size: 136 KiB |
After Width: | Height: | Size: 98 KiB |
After Width: | Height: | Size: 56 KiB |
@ -0,0 +1,42 @@
|
||||
{
|
||||
"name": "jianzhi",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"serve": "vue-cli-service serve",
|
||||
"build": "vue-cli-service build",
|
||||
"lint": "vue-cli-service lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"axios": "^0.21.0",
|
||||
"cache-loader": "^4.1.0",
|
||||
"core-js": "^3.6.5",
|
||||
"echarts": "^4.9.0",
|
||||
"element-ui": "^2.4.5",
|
||||
"node-sass": "^7.0.0",
|
||||
"nprogress": "^0.2.0",
|
||||
"register-service-worker": "^1.7.1",
|
||||
"sass-loader": "^10.1.1",
|
||||
"serve": "^14.2.3",
|
||||
"vue": "^2.6.12",
|
||||
"vue-axios": "^3.1.3",
|
||||
"vue-router": "^3.2.0",
|
||||
"vuex": "^3.4.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vue/cli-plugin-babel": "^4.5.0",
|
||||
"@vue/cli-plugin-eslint": "^4.5.0",
|
||||
"@vue/cli-plugin-pwa": "^4.5.0",
|
||||
"@vue/cli-service": "^4.5.0",
|
||||
"babel-eslint": "^10.1.0",
|
||||
"eslint": "^6.7.2",
|
||||
"eslint-plugin-vue": "^6.2.2",
|
||||
"less": "^2.7.3",
|
||||
"less-loader": "^4.0.6",
|
||||
"style-resources-loader": "^1.3.2",
|
||||
"vue-cli-plugin-element": "^1.0.1",
|
||||
"vue-cli-plugin-style-resources-loader": "^0.1.4",
|
||||
"vue-template-compiler": "^2.6.11",
|
||||
"webpack": "^4.0.0"
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 9.2 KiB |
After Width: | Height: | Size: 29 KiB |
After Width: | Height: | Size: 6.3 KiB |
After Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 4.6 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.8 KiB |
After Width: | Height: | Size: 4.6 KiB |
After Width: | Height: | Size: 799 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 215 B |
@ -0,0 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<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">
|
||||
<link rel="icon" type="image/x-icon" href="./favicon.ico">
|
||||
<title><%= htmlWebpackPlugin.options.title %></title>
|
||||
</head>
|
||||
<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,2 @@
|
||||
User-agent: *
|
||||
Disallow:
|
After Width: | Height: | Size: 383 KiB |
After Width: | Height: | Size: 40 KiB |
After Width: | Height: | Size: 6.6 KiB |
After Width: | Height: | Size: 64 KiB |
@ -0,0 +1,20 @@
|
||||
<template>
|
||||
<section class="supplier-management">
|
||||
库存清单管理
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'SupplierManagement',
|
||||
data() {
|
||||
return {}
|
||||
},
|
||||
methods: {}
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
||||
<style scoped lang="less">
|
||||
.supplier-management {}
|
||||
</style>
|
@ -0,0 +1,85 @@
|
||||
<template>
|
||||
<figure class="global-breadcrumb">
|
||||
<!-- <el-tag type="success" @click="clickGoHome" effect="dark">首页</el-tag>-->
|
||||
<!-- <el-tag type="info" effect="plain" closable>科目设置</el-tag>-->
|
||||
<!-- <el-tag type="info" effect="plain" closable v-for="tag in dynamicTags" :key="tag">{{tag}}</el-tag>-->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<el-tag :type="activePath=='/index'?'info':'info'" :effect="activePath=='/index'?'dark':'plain'" @click="clickGoHome('/index')">系统首页</el-tag>
|
||||
<el-tag
|
||||
v-for="(item,index ) in dynamicTags"
|
||||
:key="index"
|
||||
:type="item.url==activePath?'info':'info'"
|
||||
@click="clickGoHome(item.url)"
|
||||
:effect="item.url==activePath?'dark':'plain'"
|
||||
@close="handleClose(index)"
|
||||
closable
|
||||
>{{item.menuName}}</el-tag>
|
||||
|
||||
</figure>
|
||||
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import bus from "../plugins/eventBus";
|
||||
export default {
|
||||
name: 'GlobalBreadcrumb',
|
||||
data() {
|
||||
return {
|
||||
effect: 1,
|
||||
dynamicTags: new Set(),
|
||||
activePath: "",
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.activePath= window.sessionStorage.getItem("activePath")?window.sessionStorage.getItem("activePath"):'/index'
|
||||
let tabs=JSON.parse(window.sessionStorage.getItem("tabs"))
|
||||
this.dynamicTags=tabs?tabs.rows:[];
|
||||
var self = this;
|
||||
bus.$on("tabsEvent", function () {
|
||||
self.activePath = window.sessionStorage.getItem("activePath");
|
||||
self.dynamicTags=JSON.parse(window.sessionStorage.getItem("tabs")).rows;
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
clickGoHome(path) {
|
||||
console.log('123' )
|
||||
if (this.$route.path !== path) {
|
||||
this.$router.push(path);
|
||||
}
|
||||
|
||||
this.activePath = path;
|
||||
//bus.$emit("tabsEvent")
|
||||
//bus.$emit("menusEvent", this.$route)
|
||||
console.log('this.$route' , this.$route)
|
||||
this.$emit('update_menu', this.$route)
|
||||
},
|
||||
handleClose(index) {
|
||||
this.dynamicTags.splice(index,1);
|
||||
let obj={
|
||||
rows:this.dynamicTags
|
||||
}
|
||||
window.sessionStorage.setItem("tabs",JSON.stringify(obj))
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
||||
<style scoped lang="less">
|
||||
.global-breadcrumb {
|
||||
padding: 12px 15px;
|
||||
background-color: #FFF;
|
||||
border-bottom: 1px solid @color-border-lighter;
|
||||
.el-tag {
|
||||
cursor: pointer;
|
||||
&+.el-tag {
|
||||
margin-left: 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
@ -0,0 +1,20 @@
|
||||
<template>
|
||||
<section class="hello">
|
||||
哈罗世界
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'hello',
|
||||
data() {
|
||||
return {}
|
||||
},
|
||||
methods: {}
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
||||
<style scoped lang="less">
|
||||
.hello {}
|
||||
</style>
|
@ -0,0 +1,703 @@
|
||||
<template>
|
||||
<section class="index">
|
||||
<figure class="quick-port">
|
||||
<el-row :gutter="24">
|
||||
<!-- <el-col :span="2.5">-->
|
||||
<!-- <router-link class="item" :style="{'background-color':quikPortSetting.color1}" to="/basicData/menus-management">-->
|
||||
<!-- <img src="../static/images/icon_quick_port_3.png" alt="">-->
|
||||
<!-- <h2>权限管理</h2>-->
|
||||
<!-- </router-link>-->
|
||||
<!-- </el-col>-->
|
||||
<!-- <el-col :span="2.5">-->
|
||||
<!-- <router-link class="item" :style="{'background-color':quikPortSetting.color2}" to="/basicData/permission">-->
|
||||
<!-- <img src="../static/images/icon_quick_port_3.png" alt="">-->
|
||||
<!-- <h2>角色管理</h2>-->
|
||||
<!-- </router-link>-->
|
||||
<!-- </el-col>-->
|
||||
<el-col :span="2.7">
|
||||
<router-link class="item" :style="{'background-color':quikPortSetting.color3}" to="/basicData/personnel-list">
|
||||
<img src="../static/images/icon_quick_port_3.png" alt="">
|
||||
<h2>管理员管理</h2>
|
||||
</router-link>
|
||||
</el-col>
|
||||
<el-col :span="2.7">
|
||||
<router-link class="item" :style="{'background-color':quikPortSetting.color4}" to="/basicData/jobSeeker">
|
||||
<img src="../static/images/icon_quick_port_3.png" alt="">
|
||||
<h2>求职者管理</h2>
|
||||
</router-link>
|
||||
</el-col>
|
||||
<el-col :span="2.7">
|
||||
<router-link class="item" :style="{'background-color':quikPortSetting.color5}" to="/basicData/hrList">
|
||||
<img src="../static/images/icon_quick_port_3.png" alt="">
|
||||
<h2>招聘人员管理</h2>
|
||||
</router-link>
|
||||
</el-col>
|
||||
<el-col :span="2.7">
|
||||
<router-link class="item" :style="{'background-color':quikPortSetting.color6}" to="/basicData/recruitmentUnit">
|
||||
<img src="../static/images/icon_quick_port_3.png" alt="">
|
||||
<h2>企业信息管理</h2>
|
||||
</router-link>
|
||||
</el-col>
|
||||
<el-col :span="2.7">
|
||||
<router-link class="item" :style="{'background-color':quikPortSetting.color7}" to="/jobManagement/jobInfo-list">
|
||||
<img src="../static/images/icon_quick_port_3.png" alt="">
|
||||
<h2>岗位信息管理</h2>
|
||||
</router-link>
|
||||
</el-col>
|
||||
<el-col :span="2.7">
|
||||
<router-link class="item" :style="{'background-color':quikPortSetting.color8}" to="/jobManagement/label-list">
|
||||
<img src="../static/images/icon_quick_port_3.png" alt="">
|
||||
<h2>岗位标签管理</h2>
|
||||
</router-link>
|
||||
</el-col>
|
||||
<el-col :span="2.7">
|
||||
<router-link class="item" :style="{'background-color':quikPortSetting.color9}" to="/jobManagement/label-list">
|
||||
<img src="../static/images/icon_quick_port_3.png" alt="">
|
||||
<h2>意见与反馈管理</h2>
|
||||
</router-link>
|
||||
</el-col>
|
||||
|
||||
</el-row>
|
||||
</figure>
|
||||
|
||||
|
||||
<!-- start 全局统计卡片展示 -->
|
||||
<el-row :gutter="10" class="cards-group">
|
||||
<el-col :xs="12" :sm="6" :md="6" :lg="6" :xl="6" style="margin-right:-200px;">
|
||||
<el-card class="box-card" :class="countDict['userCount'].style" style="width: 150px;">
|
||||
<p class="title">{{ countDict['userCount'].name }}</p>
|
||||
<p>_________</p>
|
||||
<h2 class="number">{{ statisticObj.qznum }}人</h2>
|
||||
</el-card>
|
||||
</el-col>
|
||||
<el-col :xs="12" :sm="6" :md="6" :lg="6" :xl="6" style="margin-right:-200px;">
|
||||
<el-card class="box-card" :class="countDict['supplierCount'].style"
|
||||
style="width: 150px;margin-left: 10px">
|
||||
<p class="title">{{ countDict['supplierCount'].name }}</p>
|
||||
<p>_________</p>
|
||||
<h2 class="number">{{ statisticObj.dwnum }}家</h2>
|
||||
</el-card>
|
||||
</el-col>
|
||||
<el-col :xs="12" :sm="6" :md="6" :lg="6" :xl="6" style="margin-right:-200px;">
|
||||
<el-card class="box-card" :class="countDict['productCount'].style"
|
||||
style="width: 150px;margin-left: 10px">
|
||||
<p class="title">{{ countDict['productCount'].name }}</p>
|
||||
<p>_________</p>
|
||||
<h2 class="number">{{ statisticObj.gwnum }}个</h2>
|
||||
</el-card>
|
||||
</el-col>
|
||||
<el-col :xs="12" :sm="6" :md="6" :lg="6" :xl="6" style="margin-right:55px;">
|
||||
<el-card class="box-card" :class="countDict['rmgw'].style"
|
||||
style="width: 430px;margin-left: 10px">
|
||||
<p class="title">{{ countDict['rmgw'].name }}</p>
|
||||
<p>______________________________________________________</p>
|
||||
<h2 class="number">{{ statisticObj11.rmgw }}</h2>
|
||||
</el-card>
|
||||
</el-col>
|
||||
<el-col :xs="12" :sm="6" :md="6" :lg="6" :xl="6" style="margin-right:-200px;">
|
||||
<el-card class="box-card" :class="countDict['lmgw'].style"
|
||||
style="width: 445px;">
|
||||
<p class="title">{{ countDict['lmgw'].name }}</p>
|
||||
<p>______________________________________________________</p>
|
||||
<h2 class="number">{{ statisticObj11.lmgw }}</h2>
|
||||
</el-card>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-card>
|
||||
<div style="height: 500px; display: flex;">
|
||||
<div id="echarts1" style="width: 49%; height: 500px; ">
|
||||
11111
|
||||
</div>
|
||||
<div style="width: 2%;"></div>
|
||||
<div id="echarts2" style="width: 49%; height: 500px; ">
|
||||
22222
|
||||
</div>
|
||||
</div>
|
||||
</el-card>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import ChartsLine from '@/components/ChartsLine.vue'
|
||||
import Radar from '@/components/Radar.vue'
|
||||
|
||||
import {countDict} from "@/static/countDict"
|
||||
|
||||
export default {
|
||||
name: 'index',
|
||||
components: {
|
||||
// ChartsLine,
|
||||
// Radar
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
statisticObj: {},
|
||||
statisticObj11: {
|
||||
rmgw:"",
|
||||
lmgw:""
|
||||
},
|
||||
countDict: countDict,
|
||||
quikPortSetting: {
|
||||
color0: '#29CE8B',
|
||||
color1: '#29CE8B',
|
||||
color2: '#3E82EE',
|
||||
color3: '#C77BE6',
|
||||
color4: '#FD9E8A',
|
||||
color5: '#FCA713',
|
||||
color6: '#05C3EE',
|
||||
color7: '#729FFF',
|
||||
color8: '#13c2c2',
|
||||
color9: '#c27200',
|
||||
}
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.selectStatistic()
|
||||
},
|
||||
|
||||
methods: {
|
||||
linkToMoreOrders() {
|
||||
this.$router.push('/production-management/production-schedule-list');
|
||||
},
|
||||
|
||||
selectStatistic() {
|
||||
this.$axios.get("/statistic/selectStatistic", {}).then((res) => {
|
||||
if (res.code == 200) {
|
||||
this.statisticObj = res.data[0];
|
||||
this.getGwtd();
|
||||
} else {
|
||||
this.$message({
|
||||
type: 'erro',
|
||||
message: '查询失败!'
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
getGwtd() {
|
||||
this.$axios.get("/statistic/getGwtd", {}).then((res) => {
|
||||
let data = res.data;
|
||||
let xDataArr = [];
|
||||
let yDataArr1 = [];
|
||||
let yDataArr2 = [];
|
||||
let yDataArr3 = [];
|
||||
|
||||
if( data.length>2 ){
|
||||
this.statisticObj11.rmgw=data[0].name+","+data[1].name
|
||||
this.statisticObj11.lmgw=data[data.length-1].name+","+data[data.length-2].name
|
||||
console.log(this.statisticObj11,"OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO")
|
||||
}
|
||||
|
||||
for (let i = 0; i < data.length; i++) {
|
||||
xDataArr.push(data[i].name)
|
||||
yDataArr1.push(data[i].num)
|
||||
yDataArr2.push(data[i].tg)
|
||||
yDataArr3.push(data[i].jj)
|
||||
}
|
||||
if (res.code == 200) {
|
||||
let myChart = this.$echarts.init( document.getElementById("echarts1"), "light" );
|
||||
myChart.setOption({
|
||||
tooltip: {
|
||||
trigger: "axis",
|
||||
axisPointer: {
|
||||
type: "cross",
|
||||
label: {
|
||||
backgroundColor: "rgba(66, 139, 202, 0.7)"
|
||||
}
|
||||
}
|
||||
},
|
||||
legend: {
|
||||
textStyle: {
|
||||
color: "#999",
|
||||
fontSize: 14,
|
||||
},
|
||||
data: [{
|
||||
name: "岗位热度",
|
||||
icon: 'circle'
|
||||
}]
|
||||
},
|
||||
grid: {
|
||||
left: "4%",
|
||||
right: "4%",
|
||||
bottom: "0%",
|
||||
containLabel: true
|
||||
},
|
||||
xAxis: [{
|
||||
type: "category",
|
||||
boundaryGap: false,
|
||||
axisLine: {
|
||||
show: true
|
||||
}, //轴线不显示
|
||||
axisTick: {
|
||||
show: false
|
||||
}, //
|
||||
splitLine: {
|
||||
show: true,
|
||||
lineStyle: {
|
||||
color: ["#eee"],
|
||||
width: 1,
|
||||
type: "dashed"
|
||||
}
|
||||
},
|
||||
data: xDataArr
|
||||
}],
|
||||
yAxis: [{
|
||||
type: "value",
|
||||
axisLine: {
|
||||
show: true
|
||||
}, //轴线不显示
|
||||
axisLabel: {
|
||||
show: false
|
||||
},
|
||||
axisTick: {
|
||||
show: false
|
||||
}, //
|
||||
splitLine: {
|
||||
show: true,
|
||||
lineStyle: {
|
||||
color: ["#eee"],
|
||||
width: 1,
|
||||
type: "dashed"
|
||||
}
|
||||
},
|
||||
}],
|
||||
series: [{
|
||||
name: "岗位热度",
|
||||
type: "line",
|
||||
// stack: "总量",
|
||||
itemStyle: {
|
||||
color: "#FD9E8A"
|
||||
},
|
||||
label: {
|
||||
normal: {
|
||||
show: true,
|
||||
position: "top"
|
||||
}
|
||||
},
|
||||
smooth: true,
|
||||
areaStyle: {
|
||||
color: {
|
||||
type: "linear",
|
||||
x: 0,
|
||||
y: 0,
|
||||
x2: 0,
|
||||
y2: 1,
|
||||
colorStops: [{
|
||||
offset: 0,
|
||||
color: "#FD9E8A" // 0% 处的颜色
|
||||
},
|
||||
{
|
||||
offset: 1,
|
||||
color: "#ffe" // 100% 处的颜色
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
data: yDataArr1
|
||||
}]
|
||||
});
|
||||
|
||||
|
||||
let myChart2 = this.$echarts.init( document.getElementById("echarts2"), "light" );
|
||||
myChart2.setOption({
|
||||
tooltip: {
|
||||
trigger: "axis",
|
||||
axisPointer: {
|
||||
type: "cross",
|
||||
label: {
|
||||
backgroundColor: "rgba(66, 139, 202, 0.7)"
|
||||
}
|
||||
}
|
||||
},
|
||||
legend: {
|
||||
textStyle: {
|
||||
color: "#999",
|
||||
fontSize: 14,
|
||||
},
|
||||
data: [{
|
||||
name: "岗位通过率",
|
||||
icon: 'circle'
|
||||
},{
|
||||
name: "岗位拒绝率",
|
||||
icon: 'circle'
|
||||
}]
|
||||
},
|
||||
grid: {
|
||||
left: "4%",
|
||||
right: "4%",
|
||||
bottom: "0%",
|
||||
containLabel: true
|
||||
},
|
||||
xAxis: [{
|
||||
type: "category",
|
||||
boundaryGap: false,
|
||||
axisLine: {
|
||||
show: true
|
||||
}, //轴线不显示
|
||||
axisTick: {
|
||||
show: false
|
||||
}, //
|
||||
splitLine: {
|
||||
show: true,
|
||||
lineStyle: {
|
||||
color: ["#eee"],
|
||||
width: 1,
|
||||
type: "dashed"
|
||||
}
|
||||
},
|
||||
data: xDataArr
|
||||
}],
|
||||
yAxis: [{
|
||||
type: "value",
|
||||
axisLine: {
|
||||
show: true
|
||||
}, //轴线不显示
|
||||
axisLabel: {
|
||||
show: false
|
||||
},
|
||||
axisTick: {
|
||||
show: false
|
||||
}, //
|
||||
splitLine: {
|
||||
show: true,
|
||||
lineStyle: {
|
||||
color: ["#eee"],
|
||||
width: 1,
|
||||
type: "dashed"
|
||||
}
|
||||
},
|
||||
}],
|
||||
series: [{
|
||||
name: "岗位通过率",
|
||||
type: "line",
|
||||
// stack: "总量",
|
||||
itemStyle: {
|
||||
color: "rgba(2,255,91,0.3)"
|
||||
},
|
||||
label: {
|
||||
normal: {
|
||||
show: true,
|
||||
position: "top"
|
||||
}
|
||||
},
|
||||
smooth: true,
|
||||
areaStyle: {
|
||||
color: {
|
||||
type: "linear",
|
||||
x: 0,
|
||||
y: 0,
|
||||
x2: 0,
|
||||
y2: 1,
|
||||
colorStops: [{
|
||||
offset: 0,
|
||||
color: "rgba(2,255,91,0.3)" // 0% 处的颜色
|
||||
},
|
||||
{
|
||||
offset: 1,
|
||||
color: "#ffe" // 100% 处的颜色
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
data: yDataArr2
|
||||
}, {
|
||||
name: "岗位拒绝率",
|
||||
type: "line",
|
||||
// stack: "总量",
|
||||
itemStyle: {
|
||||
color: "rgba(2,255,91,0.3)"
|
||||
},
|
||||
label: {
|
||||
normal: {
|
||||
show: true,
|
||||
position: "top"
|
||||
}
|
||||
},
|
||||
smooth: true,
|
||||
areaStyle: {
|
||||
color: {
|
||||
type: "linear",
|
||||
x: 0,
|
||||
y: 0,
|
||||
x2: 0,
|
||||
y2: 1,
|
||||
colorStops: [{
|
||||
offset: 0,
|
||||
color: "rgba(2,255,91,0.3)" // 0% 处的颜色
|
||||
},{
|
||||
offset: 1,
|
||||
color: "#ffe" // 100% 处的颜色
|
||||
}]
|
||||
}
|
||||
},
|
||||
data: yDataArr3
|
||||
}]
|
||||
});
|
||||
} else {
|
||||
this.$message({
|
||||
type: 'erro',
|
||||
message: '查询失败!'
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
filters: {}
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
||||
<style scoped lang="less">
|
||||
.index {
|
||||
padding: 16px;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
overflow-y: auto;
|
||||
background-color: @color-body-bg;
|
||||
|
||||
.box-card {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.order-charts-list {
|
||||
h3 {
|
||||
margin-top: 12px;
|
||||
font-weight: 800;
|
||||
margin-bottom: 6px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
}
|
||||
|
||||
.quick-port {
|
||||
margin-bottom: 16px;
|
||||
|
||||
.item {
|
||||
background-color: #FFF;
|
||||
padding: 22px 16px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border-radius: 4px;
|
||||
transition: all 0.2s;
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
|
||||
&::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
transition: all 0.2s;
|
||||
width: 100%;
|
||||
left: 0;
|
||||
top: 95%;
|
||||
height: 100%;
|
||||
background-color: rgba(0, 0, 0, .15);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
box-shadow: 0 5px 15px rgba(0, 0, 0, .15);
|
||||
|
||||
> img {
|
||||
transform: scale(.65);
|
||||
}
|
||||
|
||||
&::before {
|
||||
top: 0;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
&:active {
|
||||
box-shadow: 0 5px 0 rgba(0, 0, 0, .15);
|
||||
}
|
||||
|
||||
> img {
|
||||
margin-right: 12px;
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
transition: all 0.2s;
|
||||
position: relative;
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
> h2 {
|
||||
font-size: 17px;
|
||||
font-weight: 800;
|
||||
color: #FFF;
|
||||
flex: 1;
|
||||
position: relative;
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
&.item_plus {
|
||||
}
|
||||
|
||||
&.color1 {
|
||||
background-color: #29CE8B;
|
||||
}
|
||||
|
||||
&.color2 {
|
||||
background-color: #3E82EE;
|
||||
}
|
||||
|
||||
&.color3 {
|
||||
background-color: #C77BE6;
|
||||
}
|
||||
|
||||
&.color4 {
|
||||
background-color: #FD9E8A;
|
||||
}
|
||||
|
||||
&.color5 {
|
||||
background-color: #FCA713;
|
||||
}
|
||||
|
||||
&.color6 {
|
||||
background-color: #05C3EE;
|
||||
}
|
||||
|
||||
&.color7 {
|
||||
background-color: #729FFF;
|
||||
}
|
||||
|
||||
&.color8 {
|
||||
background-color: #606266;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 首页的快捷入口管理
|
||||
.menu-list {
|
||||
> li {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 12px 16px;
|
||||
position: relative;
|
||||
|
||||
&::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 16px;
|
||||
bottom: 0;
|
||||
border-bottom: 1px solid @color-border-lighter;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
&:last-child::after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background-color: #f5f7fa;
|
||||
}
|
||||
|
||||
> span {
|
||||
margin-left: 12px;
|
||||
|
||||
&.menu-name {
|
||||
margin-left: 0;
|
||||
flex: 1;
|
||||
font-size: 16px;
|
||||
font-weight: 800;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.index {
|
||||
height: 100%;
|
||||
|
||||
.cards-group {
|
||||
.box-card {
|
||||
height: 104px;
|
||||
}
|
||||
}
|
||||
|
||||
.quick-links-group {
|
||||
/deep/ .box-card {
|
||||
.el-card__body {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.el-avatar {
|
||||
margin-right: 10px;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.item-content {
|
||||
h2 {
|
||||
font-weight: 800;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: 12px;
|
||||
color: @color-placeholder;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.box-card {
|
||||
line-height: 1;
|
||||
margin-bottom: 15px;
|
||||
|
||||
.card-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
||||
.title {
|
||||
color: @color-primary;
|
||||
}
|
||||
}
|
||||
|
||||
.sub-text {
|
||||
i {
|
||||
margin-left: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
.number {
|
||||
font-size: 24px;
|
||||
font-weight: 800;
|
||||
padding: 5px 0;
|
||||
}
|
||||
|
||||
&.bg1 {
|
||||
color: #fff;
|
||||
background-image: linear-gradient(120deg, #3e82ee 0, #00c8ee 100%);
|
||||
//background-color: #8c939d;
|
||||
}
|
||||
|
||||
&.bg2 {
|
||||
color: #fff;
|
||||
background-image: linear-gradient(120deg, #6cdeb0 0, #b9f39c 100%);
|
||||
//background-color: #8c939d;
|
||||
}
|
||||
|
||||
&.bg3 {
|
||||
color: #fff;
|
||||
background-image: linear-gradient(120deg, #c77be6 0, #ea9aff 100%);
|
||||
}
|
||||
|
||||
&.bg4 {
|
||||
color: #fff;
|
||||
background-image: linear-gradient(120deg, #fd9e8a 0, #ffecca 100%);
|
||||
}
|
||||
|
||||
&.bg5{
|
||||
color: #fff;
|
||||
background-image: linear-gradient(120deg, #c77be6 0, #b9f39c 100%);
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
@ -0,0 +1,20 @@
|
||||
<template>
|
||||
<section class="hello">
|
||||
哈罗世界
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'hello',
|
||||
data() {
|
||||
return {}
|
||||
},
|
||||
methods: {}
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
||||
<style scoped lang="less">
|
||||
.hello {}
|
||||
</style>
|
@ -0,0 +1,6 @@
|
||||
import Vue from 'vue'
|
||||
import Element from 'element-ui'
|
||||
// import 'element-ui/lib/theme-chalk/index.css'
|
||||
import '../theme/element/index.css'
|
||||
|
||||
Vue.use(Element)
|
@ -0,0 +1,3 @@
|
||||
import Vue from 'vue'
|
||||
|
||||
export default new Vue;
|
@ -0,0 +1,89 @@
|
||||
export const hasPermission = {
|
||||
install (Vue) {
|
||||
Vue.directive('hasPermission', {
|
||||
bind (el, binding, vnode) {
|
||||
var flag=false;//默认不显示
|
||||
console.log('vnode.context.$store.state' ,vnode.context.$store.state )
|
||||
let userInfo = vnode.context.$store.state.config.userInfo;
|
||||
var value=binding.value;
|
||||
console.log('userInfo444444444' , userInfo)
|
||||
if(userInfo.isAdmin){
|
||||
//如果是超级管理员
|
||||
flag=true;
|
||||
console.log('3333' )
|
||||
}else if(userInfo.perms.indexOf(value)!=-1){
|
||||
//如果有该权限按钮显示
|
||||
flag=true;
|
||||
console.log('22222' )
|
||||
|
||||
}
|
||||
if (!flag) {
|
||||
// if (!el.parentNode) {
|
||||
// el.style.display = 'none'
|
||||
// } else {
|
||||
// el.parentNode.removeChild(el);
|
||||
// }
|
||||
el.setAttribute("disabled",true);
|
||||
el.classList.add("is-disabled");
|
||||
console.log('331111133' )
|
||||
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
export const hasRolePermission = {
|
||||
install (Vue) {
|
||||
Vue.directive('hasRolePermission', {
|
||||
bind (el, binding, vnode) {
|
||||
var flag=false;//默认不显示
|
||||
let userInfo = vnode.context.$store.state.config.userInfo;
|
||||
var value=binding.value;
|
||||
if(userInfo.isAdmin){
|
||||
//如果是超级管理员
|
||||
flag=true;
|
||||
}else if(userInfo.perms.indexOf(value.perm)!=-1&&userInfo.roleIds.indexOf(value.role)!==-1){
|
||||
//如果有该权限按钮显示
|
||||
flag=true;
|
||||
}
|
||||
if (!flag) {
|
||||
// if (!el.parentNode) {
|
||||
// el.style.display = 'none'
|
||||
// } else {
|
||||
// el.parentNode.removeChild(el);
|
||||
// }
|
||||
el.setAttribute("disabled",true);
|
||||
el.classList.add("is-disabled");
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
export const hasRole={
|
||||
install (Vue) {
|
||||
Vue.directive('hasRole', {
|
||||
bind (el, binding, vnode) {
|
||||
var flag=false;//默认不显示
|
||||
let userInfo = vnode.context.$store.state.config.userInfo;
|
||||
var value=binding.value;
|
||||
if(userInfo.isAdmin){
|
||||
//如果是超级管理员
|
||||
flag=true;
|
||||
}else if(userInfo.roleIds.indexOf(value)!=-1){
|
||||
//如果有该橘色按钮显示
|
||||
flag=true;
|
||||
}
|
||||
if (!flag) {
|
||||
// if (!el.parentNode) {
|
||||
// el.style.display = 'none'
|
||||
// } else {
|
||||
// el.parentNode.removeChild(el);
|
||||
// }
|
||||
el.setAttribute("disabled",true);
|
||||
el.classList.add("is-disabled");
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
/* eslint-disable no-console */
|
||||
|
||||
import { register } from 'register-service-worker'
|
||||
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
register(`${process.env.BASE_URL}service-worker.js`, {
|
||||
ready () {
|
||||
console.log(
|
||||
'App is being served from cache by a service worker.\n' +
|
||||
'For more details, visit https://goo.gl/AFskqB'
|
||||
)
|
||||
},
|
||||
registered () {
|
||||
console.log('Service worker has been registered.')
|
||||
},
|
||||
cached () {
|
||||
console.log('Content has been cached for offline use.')
|
||||
},
|
||||
updatefound () {
|
||||
console.log('New content is downloading.')
|
||||
},
|
||||
updated () {
|
||||
console.log('New content is available; please refresh.')
|
||||
},
|
||||
offline () {
|
||||
console.log('No internet connection found. App is running in offline mode.')
|
||||
},
|
||||
error (error) {
|
||||
console.error('Error during service worker registration:', error)
|
||||
}
|
||||
})
|
||||
}
|
@ -0,0 +1,73 @@
|
||||
import Vue from 'vue'
|
||||
import VueRouter from 'vue-router'
|
||||
import Home from '../views/Home.vue'
|
||||
|
||||
Vue.use(VueRouter)
|
||||
|
||||
const routes = [
|
||||
{
|
||||
path: '/',
|
||||
component: Home,
|
||||
children: [
|
||||
{
|
||||
path: '/',
|
||||
component: () => import ('../components/Index.vue')
|
||||
}, {
|
||||
path: '/index',
|
||||
component: () => import ('../components/Index.vue')
|
||||
},
|
||||
{
|
||||
path: '/messages/message', //消息
|
||||
component: () => import ('../components/Messages/Message.vue')
|
||||
}, {
|
||||
path: '/basicData/personnel-list', //基础数据:人员管理
|
||||
component: () => import ('../components/basicData/PersonnelList.vue')
|
||||
}, {
|
||||
path: '/basicData/permission-list', //基础数据:角色管理
|
||||
component: () => import ('../components/basicData/PermissionList.vue')
|
||||
},
|
||||
|
||||
|
||||
// ------start--------岗位管理-----------------------------------------------
|
||||
{
|
||||
path: '/jobManagement/jobInfo-list', //岗位管理:岗位信息管理
|
||||
component: () => import ('../components/JobManagement/JobInfoList.vue')
|
||||
},
|
||||
{
|
||||
path: '/jobManagement/label-list', //岗位管理:标签管理
|
||||
component: () => import ('../components/JobManagement/JobLabelList.vue')
|
||||
},
|
||||
// ------end--------岗位管理-----------------------------------------------
|
||||
|
||||
|
||||
{
|
||||
path: '/basicData/menus-management',
|
||||
name: 'menusManagement',
|
||||
component: () => import('../components/basicData/menusManagement.vue'), //#####基础数据维护:权限设置
|
||||
},
|
||||
{
|
||||
path: '/basicData/permission',
|
||||
name: 'Permission',
|
||||
component: () => import('../components/basicData/Permission.vue'), //#####基础数据维护:权限设置
|
||||
},
|
||||
{
|
||||
path: '/basicData/jobSeeker', //基础数据:求职者管理
|
||||
component: () => import ('../components/basicData/JobSeekerList.vue')
|
||||
}, {
|
||||
path: '/basicData/recruitmentUnit', //基础数据:招聘单位管理
|
||||
component: () => import ('../components/basicData/RecruitmentUnitList.vue')
|
||||
}, {
|
||||
path: '/basicData/hrList', //基础数据:招聘人员管理
|
||||
component: () => import ('../components/basicData/HrList.vue')
|
||||
},
|
||||
]
|
||||
}, {
|
||||
path: '/login',
|
||||
name: 'login',
|
||||
component: () => import ('../views/Login.vue')
|
||||
}
|
||||
]
|
||||
|
||||
const router = new VueRouter({mode: 'history', routes})
|
||||
|
||||
export default router
|
@ -0,0 +1,27 @@
|
||||
export const countDict = {
|
||||
"userCount" : {
|
||||
name: "求职者人数",
|
||||
increase: true,
|
||||
style: "bg1",
|
||||
},
|
||||
"supplierCount" : {
|
||||
name: "入驻企业数量",
|
||||
increase: true,
|
||||
style: "bg2",
|
||||
},
|
||||
"productCount" : {
|
||||
name: "提供岗位",
|
||||
increase: true,
|
||||
style: "bg3",
|
||||
},
|
||||
"rmgw" : {
|
||||
name: "热门岗位",
|
||||
increase: false,
|
||||
style: "bg4",
|
||||
},
|
||||
"lmgw" : {
|
||||
name: "冷门岗位",
|
||||
increase: false,
|
||||
style: "bg5",
|
||||
},
|
||||
}
|
After Width: | Height: | Size: 266 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 8.7 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 24 KiB |
After Width: | Height: | Size: 12 KiB |
@ -0,0 +1,17 @@
|
||||
import Vue from 'vue'
|
||||
import Vuex from 'vuex'
|
||||
import modules from './modules'
|
||||
|
||||
Vue.use(Vuex)
|
||||
|
||||
export default new Vuex.Store({
|
||||
modules,
|
||||
// state: {
|
||||
// },
|
||||
// mutations: {
|
||||
// },
|
||||
// actions: {
|
||||
// },
|
||||
// modules: {
|
||||
// }
|
||||
})
|
@ -0,0 +1,60 @@
|
||||
import fs from 'fs'
|
||||
import path from 'path'
|
||||
|
||||
const state = {
|
||||
config: null,
|
||||
userInfo: null
|
||||
}
|
||||
|
||||
const mutations = {
|
||||
SET_CONFIG (state, opts){
|
||||
state.config = opts
|
||||
},
|
||||
|
||||
SET_USER_INFO( state, info){
|
||||
state.userInfo = info
|
||||
},
|
||||
|
||||
DESTROY (state){
|
||||
state.userInfo = null
|
||||
|
||||
// //清空data数据库
|
||||
// if( fs.existsSync(path.join(state.config.DB_PATH, 'op-record.db'))){
|
||||
// fs.unlink( path.join(state.config.DB_PATH, 'op-record.db') )
|
||||
// }
|
||||
// if( fs.existsSync(path.join(state.config.DB_PATH, 'usertmp.db'))){
|
||||
// fs.unlink( path.join(state.config.DB_PATH, 'usertmp.db') )
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
const actions = {
|
||||
SET_CONFIG ({ commit }, opts) {
|
||||
commit('SET_CONFIG', opts)
|
||||
},
|
||||
|
||||
SET_USER_INFO ({ commit }, info) {
|
||||
commit('SET_USER_INFO', info)
|
||||
},
|
||||
|
||||
DESTROY({ commit }) {
|
||||
commit('DESTROY')
|
||||
}
|
||||
}
|
||||
|
||||
const getters = {
|
||||
config: state => {
|
||||
return state.config
|
||||
},
|
||||
|
||||
userInfo: state => {
|
||||
return state.userInfo
|
||||
}
|
||||
}
|
||||
|
||||
export default {
|
||||
state,
|
||||
mutations,
|
||||
actions,
|
||||
getters
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
/**
|
||||
* The file enables `@/store/index.js` to import all vuex modules
|
||||
* in a one-shot manner. There should not be any reason to edit this file.
|
||||
*/
|
||||
|
||||
const files = require.context('.', false, /\.js$/)
|
||||
const modules = {}
|
||||
|
||||
files.keys().forEach(key => {
|
||||
if (key === './index.js') return
|
||||
modules[key.replace(/(\.\/|\.js)/g, '')] = files(key).default
|
||||
})
|
||||
|
||||
export default modules
|
@ -0,0 +1,315 @@
|
||||
*,
|
||||
*:after,
|
||||
*:before {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
outline: none;
|
||||
}
|
||||
/* start 滚动条样式 */
|
||||
::-webkit-scrollbar-track-piece {
|
||||
background-color: rgba(0, 0, 0, 0);
|
||||
border-left: 1px solid rgba(0, 0, 0, 0);
|
||||
}
|
||||
::-webkit-scrollbar {
|
||||
width: 17px;
|
||||
height: 17px;
|
||||
border-radius: 20px;
|
||||
}
|
||||
::-webkit-scrollbar-thumb {
|
||||
background-color: rgba(0, 0, 0, 0.05);
|
||||
background-clip: padding-box;
|
||||
border-radius: 20px;
|
||||
min-height: 1.9rem;
|
||||
}
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background-color: rgba(0, 0, 0, 0.3);
|
||||
border-radius: 20px;
|
||||
}
|
||||
// 初始化字体样式
|
||||
body,
|
||||
html {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-size: 14px;
|
||||
font-family: "PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;
|
||||
font-weight: normal;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-webkit-tap-highlight-color: #0000;
|
||||
color: @color-text-primary;
|
||||
overflow-x: hidden;
|
||||
min-width: 1280px;
|
||||
height: 100%;
|
||||
}
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
textarea {
|
||||
font-weight: inherit;
|
||||
font-size: inherit;
|
||||
font-family: inherit;
|
||||
}
|
||||
a {
|
||||
color: @color-primary;
|
||||
text-decoration: none;
|
||||
&:hover {
|
||||
color: lighten(@color-primary,10%);
|
||||
}
|
||||
}
|
||||
.text-left {
|
||||
text-align: left;
|
||||
}
|
||||
.text-right {
|
||||
text-align: right;
|
||||
}
|
||||
.text-center {
|
||||
text-align: center;
|
||||
}
|
||||
.text-subsidiary {
|
||||
color: @color-subsidiary !important;
|
||||
}
|
||||
.text-primary {
|
||||
color: @color-primary !important;
|
||||
}
|
||||
.text-success {
|
||||
color: @color-success !important;
|
||||
}
|
||||
.text-danger {
|
||||
color: @color-danger !important;
|
||||
}
|
||||
.text-warning {
|
||||
color: @color-warning !important;
|
||||
}
|
||||
.text-info {
|
||||
color: @color-info !important;
|
||||
}
|
||||
.btn-block {
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
//样式覆盖
|
||||
// 独立段落标题
|
||||
.single-title {
|
||||
font-size: 20px;
|
||||
padding: 0 10px;
|
||||
margin: 0 0 20px;
|
||||
border-radius: 0 4px 4px 0;
|
||||
border-left: 5px solid @color-primary;
|
||||
font-weight: 800;
|
||||
line-height: 1;
|
||||
color: @color-info;
|
||||
}
|
||||
//解决在表单元素中的文本域“字数限制”行高受form表单默认行高影响
|
||||
.el-form-item__content .el-input__count {
|
||||
line-height: 1;
|
||||
}
|
||||
// 只读表格的行高限制一下
|
||||
.read-only-form {
|
||||
margin-bottom: 24px;
|
||||
.el-form-item {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
//顶级返回el-page-header
|
||||
.el-page-header {
|
||||
background-color: fade(@color-primary,5%);
|
||||
border-radius: 4px;
|
||||
padding: 16px;
|
||||
margin-bottom: 24px;
|
||||
/deep/.el-page-header__left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
/deep/.el-page-header__content {
|
||||
flex: 1;
|
||||
}
|
||||
.page-header-content {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
.title-text {
|
||||
font-weight: 600;
|
||||
}
|
||||
.sns-share {
|
||||
margin-left: auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
.el-button {
|
||||
padding: 4px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
//cells列表样式
|
||||
.cells {
|
||||
background-color: #FFF;
|
||||
line-height: 1.41176471;
|
||||
font-size: 16px;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
&::after,
|
||||
&::before {
|
||||
content: " ";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 1px;
|
||||
transform: scaleY(0.5);
|
||||
z-index: 2;
|
||||
}
|
||||
&:before {
|
||||
top: 0;
|
||||
border-top: 1px solid @color-border;
|
||||
transform-origin: 0 0;
|
||||
}
|
||||
&:after {
|
||||
bottom: 0;
|
||||
border-bottom: 1px solid @color-border;
|
||||
transform-origin: 0 100%;
|
||||
}
|
||||
.cell {
|
||||
padding: 16px;
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
color: inherit;
|
||||
&:before {
|
||||
content: " ";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
right: 0;
|
||||
height: 1px;
|
||||
border-top: 1px solid @color-border-light;
|
||||
transform-origin: 0 0;
|
||||
transform: scaleY(0.5);
|
||||
left: 16px;
|
||||
z-index: 2;
|
||||
}
|
||||
&:first-child:before {
|
||||
display: none;
|
||||
}
|
||||
.cell__bd {
|
||||
flex: 1;
|
||||
}
|
||||
.cell__ft {
|
||||
text-align: right;
|
||||
color: @color-subsidiary;
|
||||
}
|
||||
&.cell_access {
|
||||
cursor: pointer;
|
||||
&:hover {
|
||||
background-color: @color-body-bg;
|
||||
}
|
||||
.cell__ft {
|
||||
padding-right: 22px;
|
||||
position: relative;
|
||||
&:after {
|
||||
content: " ";
|
||||
width: 12px;
|
||||
height: 24px;
|
||||
-webkit-mask-position: 0 0;
|
||||
mask-position: 0 0;
|
||||
-webkit-mask-repeat: no-repeat;
|
||||
mask-repeat: no-repeat;
|
||||
-webkit-mask-size: 100%;
|
||||
mask-size: 100%;
|
||||
background-color: currentColor;
|
||||
color: #0000004d;
|
||||
mask-image: url("data:image/svg+xml,%3Csvg%20width%3D%2212%22%20height%3D%2224%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M2.454%206.58l1.06-1.06%205.78%205.779a.996.996%200%20010%201.413l-5.78%205.779-1.06-1.061%205.425-5.425-5.425-5.424z%22%20fill%3D%22%23B2B2B2%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E");
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 0;
|
||||
margin-top: -12px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.el-card__body > .cells::before {
|
||||
display: none;
|
||||
}
|
||||
.el-card__body > .cells:last-child::after {
|
||||
display: none;
|
||||
}
|
||||
//单独的title-text
|
||||
.card-title {
|
||||
font-size: 16px;
|
||||
display: inline-block;
|
||||
padding: 0 10px;
|
||||
margin: 0 0 0 -20px;
|
||||
border-radius: 0 4px 4px 0;
|
||||
border-left: 5px solid @color-primary;
|
||||
font-weight: 800;
|
||||
}
|
||||
.title-text {
|
||||
font-size: 16px;
|
||||
font-weight: 800;
|
||||
margin-bottom: 12px;
|
||||
line-height: 1;
|
||||
border-left: 4px solid @color-primary;
|
||||
padding-left: 6px;
|
||||
}
|
||||
//预览大图的时候右上角的关闭按钮颜色
|
||||
.el-image-viewer__close {
|
||||
color: #FFF;
|
||||
}
|
||||
//抽屉的内容包裹区
|
||||
.el-drawer {
|
||||
overflow: hidden;
|
||||
.el-drawer__body {
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
//版本列表
|
||||
.version-list {
|
||||
.version-title {
|
||||
> strong:first-child {
|
||||
margin-right: 12px;
|
||||
}
|
||||
}
|
||||
.version-info {
|
||||
padding-top: 16px;
|
||||
}
|
||||
}
|
||||
//全局搜索栏
|
||||
.search-form {
|
||||
padding-top: 15px;
|
||||
background-color: #FFF;
|
||||
}
|
||||
.table-control {
|
||||
padding: 16px;
|
||||
.el-button-group+.el-button-group {
|
||||
margin-left: 10px;
|
||||
}
|
||||
}
|
||||
.el-dialog__body .table-control {
|
||||
padding: 0;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.table-data {
|
||||
padding: 0 16px;
|
||||
}
|
||||
.table-pagination {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 12px 16px;
|
||||
.el-pagination {
|
||||
margin-left: auto;
|
||||
}
|
||||
}
|
||||
.tb-edit .el-input {
|
||||
display: none;
|
||||
}
|
||||
.tb-edit .current-row .el-input {
|
||||
display: block;
|
||||
}
|
||||
.tb-edit .current-row .el-input+span {
|
||||
display: none;
|
||||
}
|
||||
//消息提示
|
||||
.el-message {
|
||||
min-width: 150px;
|
||||
}
|
@ -0,0 +1,2 @@
|
||||
// import vue from '@/main.js';
|
||||
export const ossUrl = "https://testpartpimejob.oss-cn-beijing.aliyuncs.com/";
|
@ -0,0 +1,19 @@
|
||||
<template>
|
||||
<section class="about">
|
||||
sdfsdfs
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'about',
|
||||
data() {
|
||||
return {}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
||||
<style scoped lang="less">
|
||||
.about {}
|
||||
</style>
|
@ -0,0 +1,208 @@
|
||||
<template>
|
||||
<main class="home">
|
||||
<PageHeader @toggleMenuClick="toggleMenu"/>
|
||||
<article class="main">
|
||||
<el-menu :default-active="activeMenu" class="main-menu-vertical-aside" active-text-color="#FFF" router
|
||||
:unique-opened="true" :collapse="isCollapse">
|
||||
<el-menu-item index="/index" style="font-size:16px;">
|
||||
<i class="el-icon-s-home"></i>
|
||||
<span slot="title">首页</span>
|
||||
</el-menu-item>
|
||||
<el-submenu index="1">
|
||||
<template slot="title"><i class="el-icon-document"></i>
|
||||
<span>基础数据</span></template>
|
||||
<el-menu-item index="/basicData/menus-management"
|
||||
@click="savePath('/basicData/menus-management','权限管理')">权限管理
|
||||
</el-menu-item>
|
||||
<el-menu-item index="/basicData/permission" @click="savePath('/basicData/permission','角色管理')">角色管理
|
||||
</el-menu-item>
|
||||
</el-submenu>
|
||||
<el-submenu index="2">
|
||||
<template slot="title"><i class="el-icon-s-custom"></i>
|
||||
<span>人员管理</span></template>
|
||||
<el-menu-item index="/basicData/personnel-list"
|
||||
@click="savePath('/basicData/personnel-list','后台人员管理')">后台人员管理
|
||||
</el-menu-item>
|
||||
<el-menu-item index="/basicData/jobSeeker" @click="savePath('/basicData/jobSeeker','求职者管理')">求职者管理
|
||||
</el-menu-item>
|
||||
<el-menu-item index="/basicData/hrList" @click="savePath('/basicData/hrList','招聘人员管理')">招聘人员管理
|
||||
</el-menu-item>
|
||||
</el-submenu>
|
||||
<el-submenu index="3">
|
||||
<template slot="title"><i class="el-icon-office-building"></i>
|
||||
<span>企业管理</span></template>
|
||||
<el-menu-item index="/basicData/recruitmentUnit"
|
||||
@click="savePath('/basicData/recruitmentUnit','企业信息管理')">企业信息管理
|
||||
</el-menu-item>
|
||||
</el-submenu>
|
||||
<el-submenu index="4">
|
||||
<template slot="title"><i class="el-icon-suitcase"></i>
|
||||
<span>岗位管理</span></template>
|
||||
<el-menu-item index="/jobManagement/jobInfo-list"
|
||||
@click="savePath('/jobManagement/jobInfo-list','岗位信息管理')">岗位信息管理
|
||||
</el-menu-item>
|
||||
<el-menu-item index="/jobManagement/label-list"
|
||||
@click="savePath('/jobManagement/label-list','岗位标签管理')">岗位标签管理
|
||||
</el-menu-item>
|
||||
</el-submenu>
|
||||
|
||||
|
||||
</el-menu>
|
||||
<section class="main-content">
|
||||
<GlobalBreadcrumb @update_menu="update_menu"/>
|
||||
<router-view id="mainContainer"/>
|
||||
</section>
|
||||
</article>
|
||||
</main>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
// @ is an alias to /src
|
||||
import PageHeader from '@/components/PageHeader.vue'
|
||||
import GlobalBreadcrumb from '@/components/GlobalBreadcrumb.vue'
|
||||
import bus from "../plugins/eventBus";
|
||||
|
||||
export default {
|
||||
name: 'home',
|
||||
components: {
|
||||
PageHeader,
|
||||
GlobalBreadcrumb
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
isCollapse: false,
|
||||
activeMenu: '',
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
toggleMenu(val) {
|
||||
this.isCollapse = !this.isCollapse;
|
||||
console.log(val);
|
||||
},
|
||||
savePath(url, menuName) {
|
||||
// if( item.url == null ) {
|
||||
// this.$message.error('页面未配置')
|
||||
// this.$router.go(-1)
|
||||
// return;
|
||||
// }
|
||||
console.log('11111')
|
||||
let item = {
|
||||
url: url,
|
||||
menuName: menuName
|
||||
}
|
||||
window.sessionStorage.setItem("activePath", item.url);
|
||||
let jsonTabs = window.sessionStorage.getItem("tabs")
|
||||
let tabs = JSON.parse(jsonTabs)
|
||||
if (tabs == null)
|
||||
tabs = {
|
||||
rows: []
|
||||
}
|
||||
item.url == '/index' ? '' : tabs.rows.push(item)
|
||||
//去重
|
||||
let obj = {
|
||||
rows: this.unqiueArr(tabs.rows)
|
||||
}
|
||||
window.sessionStorage.setItem("tabs", JSON.stringify(obj))
|
||||
bus.$emit("tabsEvent")
|
||||
},
|
||||
unqiueArr(arr) {
|
||||
var tmp = new Set(arr.map(item => JSON.stringify(item)));
|
||||
return Array.from(tmp).map(item => JSON.parse(item));
|
||||
},
|
||||
// active(r){
|
||||
//
|
||||
// }
|
||||
update_menu(r) {
|
||||
console.log('rrrrrrrrrrrr', r)
|
||||
this.activeMenu = r.path
|
||||
//this.$refs.menulist.active(r)
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
console.log(this.$route.name + '加' + this.$route.path)
|
||||
this.activeMenu = this.$route.path
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
||||
<style scoped lang="less">
|
||||
.home {
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-flow: column;
|
||||
|
||||
.main {
|
||||
display: flex;
|
||||
overflow: hidden;
|
||||
flex: 1;
|
||||
|
||||
.main-menu-vertical-aside:not(.el-menu--collapse) {
|
||||
width: 240px;
|
||||
overflow: scroll; /*zhou左侧菜单栏滚动条*/
|
||||
}
|
||||
}
|
||||
|
||||
.main-content {
|
||||
display: flex;
|
||||
flex-flow: column;
|
||||
overflow: hidden;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
#mainContainer {
|
||||
flex: 1;
|
||||
/*overflow: hidden;*/
|
||||
background-color: @color-body-bg;
|
||||
overflow: scroll; /*zhou滚动条*/
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/deep/ .main-menu-vertical-aside {
|
||||
.el-submenu__title {
|
||||
font-size: 16px;
|
||||
|
||||
&:hover {
|
||||
background-color: fade(@color-deep-bg, 5%);
|
||||
}
|
||||
}
|
||||
|
||||
.el-menu-item.is-active,
|
||||
.el-menu-item.is-active:focus,
|
||||
.el-menu-item.is-active:hover {
|
||||
background-color: @color-primary;
|
||||
}
|
||||
|
||||
.el-submenu {
|
||||
.el-menu-item {
|
||||
padding-left: 50px !important;
|
||||
}
|
||||
}
|
||||
|
||||
.el-submenu.is-opened {
|
||||
.el-menu,
|
||||
.el-submenu__title {
|
||||
background-color: fade(@color-deep-bg, 8%);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.el-menu-item-group {
|
||||
.el-menu-item-group__title {
|
||||
background-color: rgba(255, 255, 255, .1);
|
||||
opacity: 0.5;
|
||||
padding-left: 50px !important;
|
||||
}
|
||||
|
||||
.el-menu-item {
|
||||
padding-left: 60px !important;
|
||||
}
|
||||
}
|
||||
|
||||
.el-menu-item:focus,
|
||||
.el-menu-item:hover {
|
||||
background-color: fade(@color-deep-bg, 5%);
|
||||
}
|
||||
}
|
||||
</style>
|
@ -0,0 +1,17 @@
|
||||
const path = require('path')
|
||||
module.exports = {
|
||||
pluginOptions: {
|
||||
'style-resources-loader': {
|
||||
preProcessor: 'less',
|
||||
patterns: [path.resolve(__dirname, './src/theme/colors.less')]
|
||||
}
|
||||
},
|
||||
|
||||
productionSourceMap: false,
|
||||
devServer: {
|
||||
port: 8082,
|
||||
},
|
||||
css: {
|
||||
extract: false
|
||||
}
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
> 1%
|
||||
last 2 versions
|
||||
not dead
|