...
 
Commits (2)
{
"name": "vue-admin-template",
"version": "3.0.0",
"license": "MIT",
"description": "A vue admin template with Element UI & axios & iconfont & permission control & lint",
"name": "vue-element-admin",
"version": "3.5.1",
"description": "A magical vue admin. Typical templates for enterprise applications. Newest development stack of vue. Lots of awesome features",
"author": "Pan <panfree23@gmail.com>",
"license": "MIT",
"private": true,
"scripts": {
"dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
"start": "npm run dev",
"build": "node build/build.js",
"build:report": "npm_config_report=true node build/build.js",
"build:prod": "cross-env NODE_ENV=production env_config=prod node build/build.js",
"build:sit": "cross-env NODE_ENV=production env_config=sit node build/build.js",
"lint": "eslint --ext .js,.vue src",
"test": "npm run lint"
},
"dependencies": {
"axios": "0.17.1",
"clipboard": "1.7.1",
"codemirror": "5.32.0",
"dropzone": "5.2.0",
"echarts": "3.8.5",
"element-ui": "2.0.8",
"file-saver": "1.3.3",
"font-awesome": "4.7.0",
"js-cookie": "2.2.0",
"jsonlint": "1.6.2",
"jszip": "3.1.5",
"mockjs": "1.0.1-beta3",
"normalize.css": "7.0.0",
"nprogress": "0.2.0",
"screenfull": "3.3.2",
"showdown": "1.8.5",
"simplemde": "1.11.2",
"sortablejs": "1.7.0",
"vue": "2.5.10",
"vue-count-to": "1.0.13",
"vue-i18n": "7.3.2",
"vue-multiselect": "2.0.8",
"vue-router": "3.0.1",
"vuex": "3.0.1"
"vue-splitpane": "1.0.2",
"vuedraggable": "2.15.0",
"vuex": "3.0.1",
"xlsx": "^0.11.16"
},
"devDependencies": {
"autoprefixer": "7.2.3",
......@@ -34,13 +53,13 @@
"babel-preset-env": "1.6.1",
"babel-preset-stage-2": "6.24.1",
"chalk": "2.3.0",
"copy-webpack-plugin": "4.2.3",
"copy-webpack-plugin": "4.3.0",
"cross-env": "5.1.1",
"css-loader": "0.28.7",
"eslint": "4.13.1",
"eslint-friendly-formatter": "3.0.0",
"eslint-loader": "1.9.0",
"eslint-plugin-html": "4.0.1",
"eventsource-polyfill": "0.9.6",
"extract-text-webpack-plugin": "3.0.2",
"file-loader": "1.1.5",
"friendly-errors-webpack-plugin": "1.6.1",
......@@ -52,8 +71,11 @@
"portfinder": "1.0.13",
"postcss-import": "11.0.0",
"postcss-loader": "2.0.9",
"postcss-url": "7.3.0",
"pushstate-server": "3.0.1",
"rimraf": "2.6.2",
"sass-loader": "6.0.6",
"script-loader": "0.7.2",
"semver": "5.4.1",
"shelljs": "0.7.8",
"svg-sprite-loader": "3.5.2",
......
import request from '@/utils/request'
export function getToken() {
return request({
url: '/qiniu/upload/token', // 假地址 自行替换
method: 'get'
})
}
import request from '@/utils/request'
export function userSearch(name) {
return request({
url: '/search/user',
method: 'get',
params: { name }
})
}
import request from '@/utils/request'
export function fetchList(query) {
return request({
url: '/transaction/list',
method: 'get',
params: query
})
}
This source diff could not be displayed because it is too large. You can view the blob instead.
/* eslint-disable */
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['exports', 'echarts'], factory);
} else if (typeof exports === 'object' && typeof exports.nodeName !== 'string') {
// CommonJS
factory(exports, require('echarts'));
} else {
// Browser globals
factory({}, root.echarts);
}
}(this, function (exports, echarts) {
var log = function (msg) {
if (typeof console !== 'undefined') {
console && console.error && console.error(msg);
}
};
if (!echarts) {
log('ECharts is not Loaded');
return;
}
var colorPalette = [
'#2ec7c9','#b6a2de','#5ab1ef','#ffb980','#d87a80',
'#8d98b3','#e5cf0d','#97b552','#95706d','#dc69aa',
'#07a2a4','#9a7fd1','#588dd5','#f5994e','#c05050',
'#59678c','#c9ab00','#7eb00a','#6f5553','#c14089'
];
var theme = {
color: colorPalette,
title: {
textStyle: {
fontWeight: 'normal',
color: '#008acd'
}
},
visualMap: {
itemWidth: 15,
color: ['#5ab1ef','#e0ffff']
},
toolbox: {
iconStyle: {
normal: {
borderColor: colorPalette[0]
}
}
},
tooltip: {
backgroundColor: 'rgba(50,50,50,0.5)',
axisPointer : {
type : 'line',
lineStyle : {
color: '#008acd'
},
crossStyle: {
color: '#008acd'
},
shadowStyle : {
color: 'rgba(200,200,200,0.2)'
}
}
},
dataZoom: {
dataBackgroundColor: '#efefff',
fillerColor: 'rgba(182,162,222,0.2)',
handleColor: '#008acd'
},
grid: {
borderColor: '#eee'
},
categoryAxis: {
axisLine: {
lineStyle: {
color: '#008acd'
}
},
splitLine: {
lineStyle: {
color: ['#eee']
}
}
},
valueAxis: {
axisLine: {
lineStyle: {
color: '#008acd'
}
},
splitArea : {
show : true,
areaStyle : {
color: ['rgba(250,250,250,0.1)','rgba(200,200,200,0.1)']
}
},
splitLine: {
lineStyle: {
color: ['#eee']
}
}
},
timeline : {
lineStyle : {
color : '#008acd'
},
controlStyle : {
normal : { color : '#008acd'},
emphasis : { color : '#008acd'}
},
symbol : 'emptyCircle',
symbolSize : 3
},
line: {
smooth : true,
symbol: 'emptyCircle',
symbolSize: 3
},
candlestick: {
itemStyle: {
normal: {
color: '#d87a80',
color0: '#2ec7c9',
lineStyle: {
color: '#d87a80',
color0: '#2ec7c9'
}
}
}
},
scatter: {
symbol: 'circle',
symbolSize: 4
},
map: {
label: {
normal: {
textStyle: {
color: '#d87a80'
}
}
},
itemStyle: {
normal: {
borderColor: '#eee',
areaColor: '#ddd'
},
emphasis: {
areaColor: '#fe994e'
}
}
},
graph: {
color: colorPalette
},
gauge : {
axisLine: {
lineStyle: {
color: [[0.2, '#2ec7c9'],[0.8, '#5ab1ef'],[1, '#d87a80']],
width: 10
}
},
axisTick: {
splitNumber: 10,
length :15,
lineStyle: {
color: 'auto'
}
},
splitLine: {
length :22,
lineStyle: {
color: 'auto'
}
},
pointer : {
width : 5
}
}
};
echarts.registerTheme('macarons', theme);
}));
<template>
<a href="https://github.com/PanJiaChen/vue-element-admin" target="_blank" class="github-corner" aria-label="View source on Github">
<svg width="80" height="80" viewBox="0 0 250 250" style="fill:#40c9c6; color:#fff; position: absolute; top: 84px; border: 0; right: 0;"
aria-hidden="true">
<path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path>
<path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2"
fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path>
<path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z"
fill="currentColor" class="octo-body"></path>
</svg>
</a>
</template>
<style scoped>
.github-corner:hover .octo-arm {
animation: octocat-wave 560ms ease-in-out
}
@keyframes octocat-wave {
0%,
100% {
transform: rotate(0)
}
20%,
60% {
transform: rotate(-25deg)
}
40%,
80% {
transform: rotate(10deg)
}
}
@media (max-width:500px) {
.github-corner:hover .octo-arm {
animation: none
}
.github-corner .octo-arm {
animation: octocat-wave 560ms ease-in-out
}
}
</style>
<template>
<div>
<svg t="1492500959545" @click="toggleClick" class="svg-icon hamburger" :class="{'is-active':isActive}" style="" viewBox="0 0 1024 1024"
<svg t="1492500959545" @click="toggleClick" class="wscn-icon hamburger" :class="{'is-active':isActive}" style="" viewBox="0 0 1024 1024"
version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1691" xmlns:xlink="http://www.w3.org/1999/xlink" width="64" height="64">
<path d="M966.8023 568.849776 57.196677 568.849776c-31.397081 0-56.850799-25.452695-56.850799-56.850799l0 0c0-31.397081 25.452695-56.849776 56.850799-56.849776l909.605623 0c31.397081 0 56.849776 25.452695 56.849776 56.849776l0 0C1023.653099 543.397081 998.200404 568.849776 966.8023 568.849776z"
p-id="1692"></path>
......@@ -30,16 +30,16 @@ export default {
<style scoped>
.hamburger {
display: inline-block;
cursor: pointer;
width: 20px;
height: 20px;
transform: rotate(0deg);
transition: .38s;
transform-origin: 50% 50%;
display: inline-block;
cursor: pointer;
width: 20px;
height: 20px;
transform: rotate(90deg);
transition: .38s;
transform-origin: 50% 50%;
}
.hamburger.is-active {
transform: rotate(90deg);
transform: rotate(0deg);
}
</style>
<template>
<div class="pan-item" :style="{zIndex:zIndex,height:height,width:width}">
<div class="pan-info">
<div class="pan-info-roles-container">
<slot></slot>
</div>
</div>
<img class="pan-thumb" :src="image">
</div>
</template>
<script>
export default {
name: 'PanThumb',
props: {
image: {
type: String,
required: true
},
zIndex: {
type: Number,
default: 100
},
width: {
type: String,
default: '150px'
},
height: {
type: String,
default: '150px'
}
}
}
</script>
<style scoped>
.pan-item {
width: 200px;
height: 200px;
border-radius: 50%;
display: inline-block;
position: relative;
cursor: default;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.pan-info-roles-container {
padding: 20px;
text-align: center;
}
.pan-thumb {
width: 100%;
height: 100%;
background-size: 100%;
border-radius: 50%;
overflow: hidden;
position: absolute;
transform-origin: 95% 40%;
transition: all 0.3s ease-in-out;
}
.pan-thumb:after {
content: '';
width: 8px;
height: 8px;
position: absolute;
border-radius: 50%;
top: 40%;
left: 95%;
margin: -4px 0 0 -4px;
background: radial-gradient(ellipse at center, rgba(14, 14, 14, 1) 0%, rgba(125, 126, 125, 1) 100%);
box-shadow: 0 0 1px rgba(255, 255, 255, 0.9);
}
.pan-info {
position: absolute;
width: inherit;
height: inherit;
border-radius: 50%;
overflow: hidden;
box-shadow: inset 0 0 0 5px rgba(0, 0, 0, 0.05);
}
.pan-info h3 {
color: #fff;
text-transform: uppercase;
position: relative;
letter-spacing: 2px;
font-size: 18px;
margin: 0 60px;
padding: 22px 0 0 0;
height: 85px;
font-family: 'Open Sans', Arial, sans-serif;
text-shadow: 0 0 1px #fff, 0 1px 2px rgba(0, 0, 0, 0.3);
}
.pan-info p {
color: #fff;
padding: 10px 5px;
font-style: italic;
margin: 0 30px;
font-size: 12px;
border-top: 1px solid rgba(255, 255, 255, 0.5);
}
.pan-info p a {
display: block;
color: #333;
width: 80px;
height: 80px;
background: rgba(255, 255, 255, 0.3);
border-radius: 50%;
color: #fff;
font-style: normal;
font-weight: 700;
text-transform: uppercase;
font-size: 9px;
letter-spacing: 1px;
padding-top: 24px;
margin: 7px auto 0;
font-family: 'Open Sans', Arial, sans-serif;
opacity: 0;
transition: transform 0.3s ease-in-out 0.2s, opacity 0.3s ease-in-out 0.2s, background 0.2s linear 0s;
transform: translateX(60px) rotate(90deg);
}
.pan-info p a:hover {
background: rgba(255, 255, 255, 0.5);
}
.pan-item:hover .pan-thumb {
transform: rotate(-110deg);
}
.pan-item:hover .pan-info p a {
opacity: 1;
transform: translateX(0px) rotate(0deg);
}
</style>
<template>
<a class="link--mallki" :class="className" href="#">
{{text}}
<span :data-letters="text"></span>
<span :data-letters="text"></span>
</a>
</template>
<script>
export default {
props: {
className: {
type: String
},
text: {
type: String,
default: 'vue-element-admin'
}
}
}
</script>
<style>
/* Mallki */
.link--mallki {
font-weight: 800;
color: #4dd9d5;
font-family: 'Dosis', sans-serif;
-webkit-transition: color 0.5s 0.25s;
transition: color 0.5s 0.25s;
overflow: hidden;
position: relative;
display: inline-block;
line-height: 1;
outline: none;
text-decoration: none;
}
.link--mallki:hover {
-webkit-transition: none;
transition: none;
color: transparent;
}
.link--mallki::before {
content: '';
width: 100%;
height: 6px;
margin: -3px 0 0 0;
background: #3888fa;
position: absolute;
left: 0;
top: 50%;
-webkit-transform: translate3d(-100%, 0, 0);
transform: translate3d(-100%, 0, 0);
-webkit-transition: -webkit-transform 0.4s;
transition: transform 0.4s;
-webkit-transition-timing-function: cubic-bezier(0.7, 0, 0.3, 1);
transition-timing-function: cubic-bezier(0.7, 0, 0.3, 1);
}
.link--mallki:hover::before {
-webkit-transform: translate3d(100%, 0, 0);
transform: translate3d(100%, 0, 0);
}
.link--mallki span {
position: absolute;
height: 50%;
width: 100%;
left: 0;
top: 0;
overflow: hidden;
}
.link--mallki span::before {
content: attr(data-letters);
color: red;
position: absolute;
left: 0;
width: 100%;
color: #3888fa;
-webkit-transition: -webkit-transform 0.5s;
transition: transform 0.5s;
}
.link--mallki span:nth-child(2) {
top: 50%;
}
.link--mallki span:first-child::before {
top: 0;
-webkit-transform: translate3d(0, 100%, 0);
transform: translate3d(0, 100%, 0);
}
.link--mallki span:nth-child(2)::before {
bottom: 0;
-webkit-transform: translate3d(0, -100%, 0);
transform: translate3d(0, -100%, 0);
}
.link--mallki:hover span::before {
-webkit-transition-delay: 0.3s;
transition-delay: 0.3s;
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
-webkit-transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
}
</style>
......@@ -41,7 +41,7 @@ export const constantRouterMap = [
name: 'Kzmb',
children: [{
path: 'index',
name: 'Index',
name: 'KzmbIndex',
component: () => import('@/views/kzmb/index'),
meta: { title: '控制面板', icon: 'dashboard' }
}]
......@@ -53,7 +53,7 @@ export const constantRouterMap = [
name: 'Zcgl',
children: [{
path: 'index',
name: 'Index',
name: 'ZcglIndex',
component: () => import('@/views/zcgl/index'),
meta: { title: '政策管理', icon: 'form' }
}]
......@@ -73,28 +73,34 @@ export const constantRouterMap = [
},
{
path: 'index',
name: 'Index',
name: 'EvaluationIndex',
component: () => import('@/views/company-evaluation/index'),
meta: { title: '企业评价' }
},
{
path: 'expert-review',
name: 'ExpertReview',
component: () => import('@/views/expert-review/index'),
meta: { title: '专家评审' }
}]
},
{
path: '/system',
component: Layout,
redirect: '/system',
name: 'System',
redirect: '/system/index',
name: 'Syste',
meta: { title: '系统管理', icon: 'example' },
children: [{
path: 'index',
name: 'Index',
name: 'UserIndex',
component: () => import('@/views/user/index'),
meta: { title: '人员管理' }
},
{
path: 'user-roles',
name: 'UserRole',
component: () => import('@/views/company-report/index'),
component: () => import('@/views/user-role/index'),
meta: { title: '用户角色管理' }
},
{
......@@ -105,7 +111,7 @@ export const constantRouterMap = [
},
{
path: 'keystores',
name: 'Log',
name: 'Keystore',
component: () => import('@/views/keystore/index'),
meta: { title: '系统参数管理' }
}]
......@@ -114,7 +120,7 @@ export const constantRouterMap = [
{
path: '/description',
component: Layout,
redirect: '/description',
redirect: '/description/company',
name: 'Description',
meta: { title: '使用说明', icon: 'excel' },
children: [{
......
import Vue from 'vue'
import Clipboard from 'clipboard'
function clipboardSuccess() {
Vue.prototype.$message({
message: 'Copy successfully',
type: 'success',
duration: 1500
})
}
function clipboardError() {
Vue.prototype.$message({
message: 'Copy failed',
type: 'error'
})
}
export default function handleClipboard(text, event) {
const clipboard = new Clipboard(event.target, {
text: () => text
})
clipboard.on('success', () => {
clipboardSuccess()
clipboard.off('error')
clipboard.off('success')
clipboard.destroy()
})
clipboard.on('error', () => {
clipboardError()
clipboard.off('error')
clipboard.off('success')
clipboard.destroy()
})
clipboard.onClick(event)
}
/**
* Created by jiachenpan on 17/3/8.
*/
export default function createUniqueString() {
const timestamp = +new Date() + ''
const randomNum = parseInt((1 + Math.random()) * 65536) + ''
return (+(randomNum + timestamp)).toString(32)
}
// translate router.meta.title, be used in breadcrumb sidebar tagsview
export function generateTitle(title) {
const hasKey = this.$te('route.' + title)
const translatedTitle = this.$t('route.' + title) // $t :this method from vue-i18n, inject in @/lang/index.js
if (hasKey) {
return translatedTitle
}
return title
}
......@@ -56,3 +56,38 @@ export function formatTime(time, option) {
return d.getMonth() + 1 + '' + d.getDate() + '' + d.getHours() + '' + d.getMinutes() + ''
}
}
export function debounce(func, wait, immediate) {
let timeout, args, context, timestamp, result
const later = function() {
// 据上一次触发时间间隔
const last = +new Date() - timestamp
// 上次被包装函数被调用时间间隔last小于设定时间间隔wait
if (last < wait && last > 0) {
timeout = setTimeout(later, wait - last)
} else {
timeout = null
// 如果设定为immediate===true,因为开始边界已经调用过了此处无需调用
if (!immediate) {
result = func.apply(context, args)
if (!timeout) context = args = null
}
}
}
return function(...args) {
context = this
timestamp = +new Date()
const callNow = immediate && !timeout
// 如果延时不存在,重新设定延时
if (!timeout) timeout = setTimeout(later, wait)
if (callNow) {
result = func.apply(context, args)
context = args = null
}
return result
}
}
/**
*Created by jiachenpan on 16/11/29.
* @param {Sting} url
* @param {Sting} title
* @param {Number} w
* @param {Number} h
*/
export default function openWindow(url, title, w, h) {
// Fixes dual-screen position Most browsers Firefox
const dualScreenLeft = window.screenLeft !== undefined ? window.screenLeft : screen.left
const dualScreenTop = window.screenTop !== undefined ? window.screenTop : screen.top
const width = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width
const height = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : screen.height
const left = ((width / 2) - (w / 2)) + dualScreenLeft
const top = ((height / 2) - (h / 2)) + dualScreenTop
const newWindow = window.open(url, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, copyhistory=no, width=' + w + ', height=' + h + ', top=' + top + ', left=' + left)
// Puts focus on the newWindow
if (window.focus) {
newWindow.focus()
}
}
<template>
<div class="dashboard-container">
<div class="dashboard-text">name:{{name}}</div>
<div class="dashboard-text">roles:<span v-for='role in roles' :key='role'>{{role}}</span></div>
</div>
</template>
<script>
import { mapGetters } from 'vuex'
export default {
name: 'dashboard',
computed: {
...mapGetters([
'name',
'roles'
])
}
}
</script>
<style rel="stylesheet/scss" lang="scss" scoped>
.dashboard {
&-container {
margin: 30px;
}
&-text {
font-size: 30px;
line-height: 46px;
}
}
</style>
<template>
<h2>{{title}}</h2>
<el-card class="box-card">
<div slot="header" class="clearfix">
<span>登录</span>
</div>
<div class="text item">
<p>通过注册的邮箱、密码进行登录</p>
<img src="../../assets/images/login2.png" alt="" style="width: 100%;">
</div>
</el-card>
</template>
<script>
export default {
......@@ -11,5 +19,24 @@ export default {
}
</script>
<style scoped>
.text {
font-size: 14px;
}
.item {
margin-bottom: 18px;
}
.clearfix:before,
.clearfix:after {
display: table;
content: "";
}
.clearfix:after {
clear: both
}
.box-card {
margin: 25px;
}
</style>
<template>
<h2>{{title}}</h2>
<div class="fqa-box">
<el-collapse accordion>
<el-collapse-item>
<template slot="title">
一致性 Consistency<i class="header-icon el-icon-info"></i>
</template>
<div>与现实生活一致:与现实生活的流程、逻辑保持一致,遵循用户习惯的语言和概念;</div>
<div>在界面中一致:所有的元素和结构需保持一致,比如:设计样式、图标和文本、元素的位置等。</div>
</el-collapse-item>
<el-collapse-item title="反馈 Feedback">
<div>控制反馈:通过界面样式和交互动效让用户可以清晰的感知自己的操作;</div>
<div>页面反馈:操作后,通过页面元素的变化清晰地展现当前状态。</div>
</el-collapse-item>
<el-collapse-item title="效率 Efficiency">
<div>简化流程:设计简洁直观的操作流程;</div>
<div>清晰明确:语言表达清晰且表意明确,让用户快速理解进而作出决策;</div>
<div>帮助用户识别:界面简单直白,让用户快速识别而非回忆,减少用户记忆负担。</div>
</el-collapse-item>
<el-collapse-item title="可控 Controllability">
<div>用户决策:根据场景可给予用户操作建议或安全提示,但不能代替用户进行决策;</div>
<div>结果可控:用户可以自由的进行操作,包括撤销、回退和终止当前操作等。</div>
</el-collapse-item>
</el-collapse>
</div>
</template>
<script>
export default {
......@@ -11,5 +34,7 @@ export default {
}
</script>
<style scoped>
.fqa-box {
margin: 22px;
}
</style>
<template>
<h2>{{title}}</h2>
<section>
<el-card class="box-card">
<div slot="header" class="clearfix">
<span>登录</span>
</div>
<div class="text item">
<p>通过注册的邮箱、密码进行登录</p>
<img src="../../assets/images/login2.png" alt="" style="width: 100%;">
</div>
</el-card>
</section>
</template>
<script>
export default {
......@@ -11,5 +21,24 @@ export default {
}
</script>
<style scoped>
.text {
font-size: 14px;
}
.item {
margin-bottom: 18px;
}
.clearfix:before,
.clearfix:after {
display: table;
content: "";
}
.clearfix:after {
clear: both
}
.box-card {
margin: 25px;
}
</style>
<template>
<h2>{{title}}</h2>
<el-card class="box-card">
<div slot="header" class="clearfix">
<span>登录</span>
</div>
<div class="text item">
<p>通过注册的邮箱、密码进行登录</p>
<img src="../../assets/images/login2.png" alt="" style="width: 100%;">
</div>
</el-card>
</template>
<script>
export default {
......@@ -11,5 +19,24 @@ export default {
}
</script>
<style scoped>
.text {
font-size: 14px;
}
.item {
margin-bottom: 18px;
}
.clearfix:before,
.clearfix:after {
display: table;
content: "";
}
.clearfix:after {
clear: both
}
.box-card {
margin: 25px;
}
</style>
<template>
<el-table
class="tablec"
:data="tableData"
style="width: 100%">
<el-table-column align="center" label="基础得分情况" style="width: 100%;">
<el-table-column
prop="key"
label="标签">
</el-table-column>
<el-table-column
prop="value"
label="详细"
show-overflow-tooltip="true">
</el-table-column>
</el-table-column>
</el-table>
</template>
<script>
export default {
data() {
return {
tableData: [{
key: '企业名称',
value: '成都探码科技有限公司'
},
{
key: '法人',
value: '宋学江'
},
{
key: '注册时间',
value: '2015年'
}]
}
}
}
</script>
<style scoped>
.tablec {
box-shadow: 4px 4px 40px rgba(0, 0, 0, 0.05);
border-color: rgba(0, 0, 0, 0.05);
}
</style>
<template>
<el-row class="form-expert">
<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
<el-row class="form-item" type="flex" align="middle" justify="center">
<el-col :xs="6" :sm="6" :md="6" :lg="6" :xl="6">
<div class="grid-content bg-purple">
<span>技术创新:</span>
</div>
</el-col>
<el-col :xs="15" :sm="15" :md="15" :lg="15" :xl="15">
<div class="grid-content bg-purple-light">
<el-input
type="number"
placeholder="请给出分数"
v-model="input1"
max="100"
label="luohao"
clearable>
</el-input>
</div>
</el-col>
</el-row>
<el-row class="form-item" type="flex" align="middle" justify="center">
<el-col :xs="6" :sm="6" :md="6" :lg="6" :xl="6">
<div class="grid-content">
<span>科技创新:</span>
</div>
</el-col>
<el-col :xs="15" :sm="15" :md="15" :lg="15" :xl="15">
<div class="grid-content">
<el-input
type="number"
placeholder="请给出分数"
v-model="input2"
max="100"
label="luohao"
clearable>
</el-input>
</div>
</el-col>
</el-row>
<el-row class="form-item" type="flex" align="middle" justify="center">
<el-col :xs="6" :sm="6" :md="6" :lg="6" :xl="6">
<div class="grid-content">
<span>人才创新:</span>
</div>
</el-col>
<el-col :xs="15" :sm="15" :md="15" :lg="15" :xl="15">
<div class="grid-content">
<el-input
type="number"
placeholder="请给出分数"
v-model="input3"
max="100"
label="luohao"
clearable>
</el-input>
</div>
</el-col>
</el-row>
<el-row class="form-item" type="flex" align="middle" justify="center">
<el-col :xs="6" :sm="6" :md="6" :lg="6" :xl="6">
<div class="grid-content">
<span>经济创新:</span>
</div>
</el-col>
<el-col :xs="15" :sm="15" :md="15" :lg="15" :xl="15">
<div class="grid-content">
<el-input
type="number"
placeholder="请给出分数"
v-model="input4"
max="100"
label="luohao"
clearable>
</el-input>
</div>
</el-col>
</el-row>
<el-row type="flex" align="middle" justify="end">
<el-button type="primary" size="small" native-type="submit" style="margin-top: 5px;margin-right: 15px;margin-bottom: 5px;">确认</el-button>
</el-row>
</el-col>
</el-row>
</template>
<script>
export default {
data() {
return {
tableData: [],
input1: '',
input2: '',
input3: '',
input4: ''
}
}
}
</script>
<style scoped>
.form-expert {
/* background-color: #fff; */
border-top: 1px solid #eee;
box-shadow: 4px 4px 40px rgba(0, 0, 0, 0.05);
border-color: rgba(0, 0, 0, 0.05);
}
.form-expert .form-item {
padding: 12px 0px;
}
.form-expert .form-item:not(:last-child) {
border-bottom: 1px solid #eee;
}
.form-expert .form-item .grid-content span {
font-size: 14px;
color: #666;
}
.form-card {
display: -webkit-flex;
display: flex;
}
</style>
<template>
<el-table
class="tableg"
:data="tableData"
style="width: 100%">
<el-table-column align="center" label="成长得分情况列表" style="width: 100%;">
<el-table-column
prop="key"
label="成长前">
</el-table-column>
<el-table-column
prop="value"
label="成长后"
show-overflow-tooltip="true">
</el-table-column>
</el-table-column>
</el-table>
</template>
<script>
export default {
data() {
return {
tableData: [{
key: '每年营业额50万',
value: '每年营业额100万'
},
{
key: '',
value: '高新技术企业'
},
{
key: '注册地天府新区',
value: '注册地高新区'
}]
}
}
}
</script>
<style scoped>
.tableg {
box-shadow: 4px 4px 40px rgba(0, 0, 0, 0.05);
border-color: rgba(0, 0, 0, 0.05);
}
</style>
<template>
<section class="section">
<el-row :gutter="40">
<el-col :xs="8" :sm="6" :md="8" :lg="8" :xl="8">
<div class="grid-content baseCount">
<count-to class="text" :startVal="0" :endVal="88" :duration="3000"></count-to>
<span> /基础分</span>
</div>
<TableC></TableC>
</el-col>
<el-col :xs="8" :sm="6" :md="8" :lg="8" :xl="8">
<div class="grid-content baseCount">
<span class="text">BB</span>
<span> /成长分</span>
</div>
<TableG></TableG>
</el-col>
<el-col :xs="8" :sm="6" :md="8" :lg="8" :xl="8">
<div class="grid-content baseCount">
<count-to class="expert" :startVal="0" :endVal="0" :duration="3000"></count-to>
<span> /专家打分</span>
</div>
<TableE></TableE>
</el-col>
</el-row>
<el-row class="company-message" :gutter="40">
<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
<h2>企业信息情况</h2>
</el-col>
</el-row>
<el-row class="company-content">
<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="基本信息" name="first">
<el-table
:data="tableData"
border
style="width: 100%">
<el-table-column
prop="date"
label="日期"
width="180">
</el-table-column>
<el-table-column
prop="name"
label="姓名"
width="180">
</el-table-column>
<el-table-column
prop="address"
label="地址">
</el-table-column>
</el-table>
</el-tab-pane>
<el-tab-pane label="人员管理" name="second">人员管理</el-tab-pane>
<el-tab-pane label="营业收入" name="third">营业收入</el-tab-pane>
<el-tab-pane label="等等其他" name="fourth">等等其他</el-tab-pane>
</el-tabs>
</el-col>
</el-row>
<!-- <el-steps :active="active" finish-status="success">
<el-step title="步骤 1"></el-step>
<el-step title="步骤 2"></el-step>
<el-step title="步骤 3"></el-step>
<el-button style="margin-top: 12px;" @click="next">下一步</el-button>
</el-steps> -->
</section>
</template>
<script>
import CountTo from 'vue-count-to'
import TableC from './components/TableC'
import TableG from './components/TableG'
import TableE from './components/TableE'
export default {
components: { CountTo, TableC, TableG, TableE },
data() {
return {
title: '专家评审',
active: '0',
activeName: 'first',
tableData: [{
date: '2016-05-02',
name: '王小虎',
address: '上海市普陀区金沙江路 1518 弄'
}, {
date: '2016-05-04',
name: '王小虎',
address: '上海市普陀区金沙江路 1517 弄'
}, {
date: '2016-05-01',
name: '王小虎',
address: '上海市普陀区金沙江路 1519 弄'
}, {
date: '2016-05-03',
name: '王小虎',
address: '上海市普陀区金沙江路 1516 弄'
}]
}
},
methods: {
next() {
if (this.active++ > 2) this.active = 0
},
handleClick(tab, event) {
console.log(tab, event)
}
}
}
</script>
<style scoped>
.section {
height: 100%;
padding: 32px;
}
.content {
background-color: #fff;
min-height: 36px;
border-top: 1px solid #eee;
}
.grid-content {
padding: 36px;
min-height: 36px;
color: #666;
background: #fff;
-webkit-box-shadow: 4px 4px 40px rgba(0, 0, 0, 0.05);
box-shadow: 4px 4px 40px rgba(0, 0, 0, 0.05);
border-color: rgba(0, 0, 0, 0.05);
}
.grid-content.baseCount {
display: -webkit-flex;
display: flex;
justify-content: center;
justify-content: -webkit-center;
align-items: baseline;
align-items: -webkit-baseline
}
.grid-content.baseCount .text{
color: #F56C6C;
font-size: 35px;
letter-spacing: 1px;
}
.grid-content.baseCount .expert {
font-size: 35px;
letter-spacing: 1px;
border-bottom: 2px solid #36a3f7;
color: #36a3f7;
}
.company-message {
margin-top: 15px;
color: #666;
}
</style>
<template>
<h2>{{title}}</h2>
<el-card class="box-card">
<div slot="header" class="clearfix">
<el-row type="flex" class="row-bg">
<el-col>
<span>政策个数</span>
</el-col>
<el-col>
<div style="text-align: right;">
<el-button type="default" size="mini" @click="dialogFormVisible = true">编辑</el-button>
<el-button type="danger" size="mini">删除</el-button>
</div>
</el-col>
</el-row>
<el-dialog title="参数名称" :visible.sync="dialogFormVisible">
<el-form :model="form">
<el-form-item label="" :label-width="formLabelWidth">
<el-input type="number" v-model="form.name" auto-complete="on"></el-input>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="dialogFormVisible = false">取 消</el-button>
<el-button type="primary" @click="dialogFormVisible = false">确 定</el-button>
</div>
</el-dialog>
</div>
<div class="text item">
1
</div>
</el-card>
</template>
<script>
export default {
data() {
return {
title: '系统参数管理'
title: '系统参数管理',
dialogTableVisible: false,
dialogFormVisible: false,
form: {
name: 1,
region: '',
date1: '',
date2: '',
delivery: false,
type: [],
resource: '',
desc: ''
}
}
},
methods: {
}
}
</script>
<style scoped>
.text {
font-size: 14px;
}
.item {
margin-bottom: 18px;
}
.clearfix:before,
.clearfix:after {
display: table;
content: "";
}
.clearfix:after {
clear: both
}
.box-card {
margin: 15px;
}
</style>
<template>
<div :class="className" :style="{height:height,width:width}"></div>
</template>
<script>
import echarts from 'echarts'
require('echarts/theme/macarons') // echarts theme
import { debounce } from '@/utils'
const animationDuration = 6000
export default {
props: {
className: {
type: String,
default: 'chart'
},
width: {
type: String,
default: '100%'
},
height: {
type: String,
default: '300px'
}
},
data() {
return {
chart: null
}
},
mounted() {
this.initChart()
this.__resizeHanlder = debounce(() => {
if (this.chart) {
this.chart.resize()
}
}, 100)
window.addEventListener('resize', this.__resizeHanlder)
},
beforeDestroy() {
if (!this.chart) {
return
}
window.removeEventListener('resize