Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
GaoQuIncubator
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kimber
GaoQuIncubator
Commits
caceb7c0
Commit
caceb7c0
authored
Oct 26, 2024
by
xinzhedeai
Browse files
Options
Browse Files
Download
Plain Diff
merge master overview-del
parents
3c5613b7
79a1b887
Changes
11
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
204 additions
and
1272 deletions
+204
-1272
overview.js
src/api/system/overview.js
+50
-0
httpApi.js
src/assets/js/httpApi.js
+23
-13
index2.vue
src/components/TableFilter/index2.vue
+1
-1
AppMain.vue
src/layout/components/AppMain.vue
+1
-1
routers.js
src/router/routers.js
+11
-10
user.js
src/store/modules/user.js
+10
-4
index.vue
src/views/Screen/index.vue
+12
-423
index.vue
src/views/business/statistics/index.vue
+2
-2
overview.vue
src/views/system/home/overview.vue
+61
-792
tech.vue
src/views/system/home/tech.vue
+5
-4
login.vue
src/views/system/user/login.vue
+28
-22
No files found.
src/api/system/overview.js
0 → 100644
View file @
caceb7c0
import
request
from
'
@/utils/request
'
export
function
getData4panel0
(
data
)
{
// 孵化器概况信息
return
request
({
url
:
'
api/incubator/profile?incubatorId=
'
+
data
.
incubatorId
,
method
:
'
get
'
,
})
}
export
function
getData4tech
(
data
)
{
return
request
({
url
:
'
api/incubator
'
,
method
:
'
get
'
,
})
}
export
function
del
(
ids
)
{
return
request
({
url
:
'
api/users
'
,
method
:
'
delete
'
,
data
:
ids
})
}
export
function
edit
(
data
)
{
return
request
({
url
:
'
api/incubator
'
,
method
:
'
put
'
,
data
})
}
export
function
add
(
data
)
{
return
request
({
url
:
'
api/incubator
'
,
method
:
'
post
'
,
data
})
}
export
function
editUser
(
data
)
{
return
request
({
url
:
'
api/users/center
'
,
method
:
'
put
'
,
data
})
}
export
default
{
getData4panel0
,
getData4tech
,
add
,
edit
,
del
}
src/assets/js/httpApi.js
View file @
caceb7c0
...
...
@@ -1241,9 +1241,9 @@ var reqApis = function(){
name
:
'
信息统计
'
,
Dict
:
{
baseInfo
:
{
"
companyName
"
:
{
name
:
"
企业名称
"
,
must
:
true
,
'
width
'
:
'
300px
'
,},
"
companyName
"
:
{
name
:
"
企业名称
"
,
must
:
true
,
'
width
'
:
'
300px
'
,
fixed
:
true
,
},
"
incubatorName
"
:
{
name
:
"
所属孵化器
"
,
must
:
true
,
key
:
'
name
'
,
'
width
'
:
'
180px
'
,},
"
incubatorName
"
:
{
name
:
"
所属孵化器
"
,
must
:
true
,
key
:
'
name
'
,
'
width
'
:
'
180px
'
,
fixed
:
true
,
},
"
entryDate
"
:
{
name
:
"
入驻时间
"
,
'
width
'
:
'
180px
'
,
},
"
companyType
"
:
{
name
:
"
企业类型
"
,
'
type
'
:
'
select
'
,
key
:
'
name
'
,
'
width
'
:
'
180px
'
,
},
"
incubationStatus
"
:
{
name
:
"
企业孵化状态
"
,
'
type
'
:
'
select
'
,
key
:
'
name
'
,
'
width
'
:
'
180px
'
,
},
...
...
@@ -1270,15 +1270,15 @@ var reqApis = function(){
// "mentorId": {name:"创业导师", 'type':'select', key:'name','width': '180px',},
"
companyLevelName
"
:
{
name
:
"
企业级别
"
,
must
:
true
,
key
:
'
name
'
,
'
width
'
:
'
180px
'
,},
//
"totalEmployees": {name:"今年从业人数(人)", must:true, key:'name', 'width': '180px',},
//
"phdEmployees": {name:"博士人数(人)", must:true, key:'name', 'width': '180px',},
//
"overseasEmployees": {name:"留学人数(人)", must:true, key:'name', 'width': '180px',},
//
"revenueLastYear": {name:"上年营业收入(万元)", must:true, key:'name', 'width': '180px',},
//
"netProfit": {name:"净利润(万元)", must:true, key:'name', 'width': '180px',},
//
"taxesPaid": {name:"上缴税费(万元)", must:true, key:'name', 'width': '180px',},
//
"investmentProportion": {name:"研发投入占比", must:true, key:'name', 'width': '180px',},
//
"grossIncome": {name:"总收入(万元)", must:true, key:'name', 'width': '180px',},
//
"researchInput": {name:"研发投入(万元)", must:true, key:'name', 'width': '180px',},
"
totalEmployees
"
:
{
name
:
"
今年从业人数(人)
"
,
must
:
true
,
key
:
'
name
'
,
'
width
'
:
'
180px
'
,},
"
phdEmployees
"
:
{
name
:
"
博士人数(人)
"
,
must
:
true
,
key
:
'
name
'
,
'
width
'
:
'
180px
'
,},
"
overseasEmployees
"
:
{
name
:
"
留学人数(人)
"
,
must
:
true
,
key
:
'
name
'
,
'
width
'
:
'
180px
'
,},
"
revenueLastYear
"
:
{
name
:
"
上年营业收入(万元)
"
,
must
:
true
,
key
:
'
name
'
,
'
width
'
:
'
180px
'
,},
"
netProfit
"
:
{
name
:
"
净利润(万元)
"
,
must
:
true
,
key
:
'
name
'
,
'
width
'
:
'
180px
'
,},
"
taxesPaid
"
:
{
name
:
"
上缴税费(万元)
"
,
must
:
true
,
key
:
'
name
'
,
'
width
'
:
'
180px
'
,},
"
investmentProportion
"
:
{
name
:
"
研发投入占比
"
,
must
:
true
,
key
:
'
name
'
,
'
width
'
:
'
180px
'
,},
"
grossIncome
"
:
{
name
:
"
总收入(万元)
"
,
must
:
true
,
key
:
'
name
'
,
'
width
'
:
'
180px
'
,},
"
researchInput
"
:
{
name
:
"
研发投入(万元)
"
,
must
:
true
,
key
:
'
name
'
,
'
width
'
:
'
180px
'
,},
// "mentorId": {name:"创业导师", 'type':'select', key:'name','width': '180px',},
},
...
...
@@ -1292,6 +1292,8 @@ var reqApis = function(){
};
return
body
.
incubatorId
;
});
},
companyType
:[{
"
name
"
:
"
服务企业
"
,
"
value
"
:
2
},{
"
name
"
:
"
中介机构
"
,
"
value
"
:
1
}],
},
},
config
:
{
...
...
@@ -1311,14 +1313,22 @@ var reqApis = function(){
},
],
search
:
[
// {
// 'type': 'string', 'name': '孵化器名称', 'word': 'incubatorName', 'mode': 0, 'width': '180px', 'clear': function () {
// this.loadData()
// }
// },
{
'
type
'
:
'
string
'
,
'
name
'
:
'
孵化器名称
'
,
'
word
'
:
'
incubator
Name
'
,
'
mode
'
:
0
,
'
width
'
:
'
180px
'
,
'
clear
'
:
function
()
{
'
type
'
:
'
string
'
,
'
name
'
:
'
企业名称
'
,
'
word
'
:
'
company
Name
'
,
'
mode
'
:
0
,
'
width
'
:
'
180px
'
,
'
clear
'
:
function
()
{
this
.
loadData
()
}
},
{
'
type
'
:
'
select
'
,
'
name
'
:
'
在孵状态
'
,
'
word
'
:
'
incubationStatus
'
,
'
mode
'
:
1
,
'
width
'
:
'
140px
'
},
{
'
type
'
:
'
select
'
,
'
name
'
:
'
企业类型
'
,
'
word
'
:
'
companyType
'
,
'
mode
'
:
1
,
'
width
'
:
'
140px
'
},
{
'
type
'
:
'
select
'
,
'
name
'
:
'
企业级别
'
,
'
word
'
:
'
companyLevel
'
,
'
mode
'
:
1
,
'
width
'
:
'
140px
'
},
{
'
type
'
:
'
select
'
,
'
name
'
:
'
所属技术领域
'
,
'
word
'
:
'
technicalField
'
,
'
mode
'
:
9
,
'
width
'
:
'
140px
'
},
{
'
type
'
:
'
select
'
,
'
name
'
:
'
创新创业类型
'
,
'
word
'
:
'
innovationEntrepreneurship
'
,
'
mode
'
:
1
,
'
width
'
:
'
140px
'
},
{
'
type
'
:
'
daterange
'
,
'
defaultTime
'
:
[
'
00:00:00
'
,
'
23:59:59
'
],
'
name
'
:
'
日期范围
'
,
'
word
'
:
'
daterange
'
,
'
mode
'
:
0
,
'
width
'
:
'
300px
'
,
format
:
'
yyyy-MM-dd
'
},
{
'
type
'
:
'
button
'
,
'
label
'
:
'
查询
'
,
'
width
'
:
'
140px
'
,
'
icon
'
:
'
el-icon-search
'
,
'
click
'
:
function
(
e
)
{
this
.
table
.
page
=
1
;
...
...
src/components/TableFilter/index2.vue
View file @
caceb7c0
...
...
@@ -57,7 +57,7 @@
<div
class=
"head-container"
v-if=
"form.config.search && form.config.search[0]"
>
<!-- 搜索 -->
<template
v-for=
"(item, index) in form.config.search"
>
<
!--
<label
v-if=
"item.name"
class=
"el-form-item-label"
>
{{
item
.
name
}}
</label>
--
>
<
label
v-if=
"item.name && item.showLabel"
class=
"el-form-item-label"
>
{{
item
.
name
}}
</label
>
<template
v-if=
"item.type==='string'"
>
<el-input
v-model=
"form.query[item.word]"
clearable
:placeholder=
"item.name"
:style=
"'width:'+item.width"
@
clear=
"item.clear && item.clear.call(_self.$parent)"
/>
</
template
>
...
...
src/layout/components/AppMain.vue
View file @
caceb7c0
...
...
@@ -6,7 +6,7 @@
</keep-alive>
</transition>
<footer
v-if=
"$route.path!=='/dashboard'"
class=
"page-footer"
></footer>
<footer
v-if=
"$route.path!=='/dashboard'
&& $route.path!=='/home/overview'
"
class=
"page-footer"
></footer>
<!--
<div
v-if=
"$store.state.settings.showFooter"
id=
"el-main-footer"
>
<span
v-html=
"$store.state.settings.footerTxt"
/>
...
...
src/router/routers.js
View file @
caceb7c0
...
...
@@ -62,21 +62,22 @@ export const constantRouterMap = [
children
:
[
{
path
:
"
enterprise
"
,
component
:
resolve
=>
require
([
"
@/views/system/home/enterprise
"
],
resolve
),
component
:
resolve
=>
require
([
localStorage
.
getItem
(
'
groupIdByloginType
'
)
*
1
===
1
?
"
@/views/system/home/enterprise
"
:
"
@/views/system/home/tech
"
],
resolve
),
name
:
"
首页-企业
"
,
meta
:
{
title
:
"
首页
"
,
affix
:
true
,
icon
:
"
index
"
}
},
// {
// path: "tech",
// component: resolve => require(["@/views/system/home/tech"], resolve),
// name: "首页-科技局",
// meta: { title: "首页", affix:true , icon: "index"}
// },
{
path
:
"
tech
"
,
component
:
resolve
=>
require
([
"
@/views/system/home/tech
"
],
resolve
),
name
:
"
首页-科技局
"
,
meta
:
{
title
:
"
首页
"
,
affix
:
true
,
icon
:
"
index
"
}
},
{
path
:
"
数据概览
"
,
path
:
"
overview
"
,
component
:
resolve
=>
require
([
"
@/views/system/home/overview
"
],
resolve
),
name
:
"
首页-概览
"
,
meta
:
{
title
:
"
概览
"
,
affix
:
true
,
icon
:
"
index
"
}
name
:
"
概览
"
,
hidden
:
true
,
meta
:
{
title
:
"
数据概览
"
,
icon
:
"
index
"
}
}
]
},
...
...
src/store/modules/user.js
View file @
caceb7c0
import
{
login
,
getInfo
,
logout
}
from
'
@/api/login
'
import
{
getToken
,
setToken
,
removeToken
}
from
'
@/utils/auth
'
import
{
Message
}
from
'
element-ui
'
;
const
user
=
{
state
:
{
token
:
getToken
(),
...
...
@@ -34,7 +34,7 @@ const user = {
const
rememberMe
=
userInfo
.
rememberMe
;
return
new
Promise
((
resolve
,
reject
)
=>
{
login
(
userInfo
).
then
(
res
=>
{
if
(
/* res.head.code === '0000' || */
!
res
.
code
){
if
(
!
res
.
code
){
// 登录成功不返回code状态码。
var
body
=
res
.
body
||
res
;
setToken
(
body
.
token
,
rememberMe
);
commit
(
'
SET_TOKEN
'
,
body
.
token
);
...
...
@@ -42,8 +42,14 @@ const user = {
// 第一次加载菜单时用到, 具体见 src 目录下的 permission.js
commit
(
'
SET_LOAD_MENUS
'
,
true
);
};
resolve
(
res
)
resolve
(
res
)
}
else
{
Message
({
message
:
res
.
msg
,
type
:
'
warning
'
,
// 可以是 'success', 'warning', 'info', 'error'
});
resolve
(
null
)
}
}).
catch
(
error
=>
{
reject
(
error
)
})
...
...
src/views/Screen/index.vue
View file @
caceb7c0
This diff is collapsed.
Click to expand it.
src/views/business/statistics/index.vue
View file @
caceb7c0
...
...
@@ -25,7 +25,7 @@
{{
'
毕业企业:
'
+
table
.
body
.
incubatorGraduateCount
||
''
}}
家
<!--
{{
'
创业导师数:
'
+
table
.
body
.
mentorCount
||
''
}}
-->
{{
'
中介机构:
'
+
table
.
body
.
incubatorIntermediaryCount
||
''
}}
家
{{
'
今年毕业企业
'
+
table
.
body
.
incubatorGraduateCountYear
||
''
}}
家
{{
'
今年毕业企业
:
'
+
table
.
body
.
incubatorGraduateCountYear
||
''
}}
家
</div>
</div>
...
...
@@ -63,7 +63,7 @@
import
{
reqApi
,
Config
}
from
'
@/assets/js/httpApi.js
'
;
import
{
Tools
}
from
'
@/assets/js/common.js
'
;
import
DateRangePicker
from
'
@/components/DateRangePicker
'
;
import
TableFilter
from
'
@/components/TableFilter
'
;
import
TableFilter
from
'
@/components/TableFilter
/index2
'
;
import
cuForm
from
'
@/components/cuForm
'
;
import
cuTable
from
'
@/components/cuTable/index2
'
;
...
...
src/views/system/home/overview.vue
View file @
caceb7c0
This diff is collapsed.
Click to expand it.
src/views/system/home/tech.vue
View file @
caceb7c0
...
...
@@ -20,7 +20,7 @@
</li>
<li>
<div
class=
"title"
>
创业导师
</div>
<div
class=
"content"
>
{{
data
.
mentorAllCount
}}
家
</div>
<div
class=
"content"
>
{{
data
.
mentorAllCount
}}
人
</div>
</li>
<li>
<div
class=
"title"
>
孵化面积
</div>
...
...
@@ -38,7 +38,7 @@
<div
class=
"body"
>
<ul
class=
"list"
>
<li
v-for=
"(item) in data.list"
:key=
"item.id"
@
click=
"go2overview"
>
<li
v-for=
"(item) in data.list"
:key=
"item.id"
@
click=
"go2overview
(item)
"
>
<img
:src=
"`$
{baseAPI}file/${item.incubatorImage}`"alt="" />
<div
class=
"introduce"
>
<h2>
{{
item
.
incubatorName
}}
</h2>
...
...
@@ -298,8 +298,9 @@ export default {
this
.
getData
();
},
methods
:
{
go2overview
(){
alert
(
'
数据概览页开发ing~
'
)
go2overview
(
item
){
// alert('数据概览页开发ing~')
this
.
$router
.
push
(
'
/home/overview?id=
'
+
item
.
id
)
},
handleSuccess
(
response
,
file
)
{
// 处理上传成功
...
...
src/views/system/user/login.vue
View file @
caceb7c0
...
...
@@ -165,29 +165,35 @@ export default {
Cookies
.
remove
(
'
password
'
)
Cookies
.
remove
(
'
rememberMe
'
)
}
this
.
$store
.
dispatch
(
'
Login
'
,
user
).
then
(()
=>
{
this
.
loading
=
false
if
(
this
.
userStyle
)
{
if
(
this
.
userStyle
===
'
应急局
'
&&
this
.
user
.
enterpriseId
!==
0
)
{
this
.
$message
.
error
(
'
您是企业用户,请使用企业端登录
'
)
setTimeout
(()
=>
{
this
.
$store
.
dispatch
(
'
LogOut
'
).
then
(()
=>
{
location
.
reload
()
})
},
1000
)
return
}
if
(
this
.
userStyle
===
'
企业
'
&&
this
.
user
.
enterpriseId
===
0
)
{
this
.
$message
.
error
(
'
您是应急局用户,请使用应急局端登录
'
)
setTimeout
(()
=>
{
this
.
$store
.
dispatch
(
'
LogOut
'
).
then
(()
=>
{
location
.
reload
()
})
},
1000
)
return
}
this
.
$store
.
dispatch
(
'
Login
'
,
user
).
then
((
res
)
=>
{
if
(
!
res
){
// 登录失败
this
.
loading
=
false
this
.
getCode
()
}
this
.
$router
.
push
({
path
:
/* 记住上次退出时的页面 */
/* this.redirect || */
'
/home4Login
'
})
this
.
$router
.
push
({
path
:
'
/edge/Screen
'
})
// 跳转大屏
// debugger
// this.loading = false
// if (this.userStyle) {
// if (this.userStyle === '应急局' && this.user.enterpriseId !== 0) {
// this.$message.error('您是企业用户,请使用企业端登录')
// setTimeout(() => {
// this.$store.dispatch('LogOut').then(() => {
// location.reload()
// })
// }, 1000)
// return
// }
// if (this.userStyle === '企业' && this.user.enterpriseId === 0) {
// this.$message.error('您是应急局用户,请使用应急局端登录')
// setTimeout(() => {
// this.$store.dispatch('LogOut').then(() => {
// location.reload()
// })
// }, 1000)
// return
// }
// }
// this.$router.push({ path: /* 记住上次退出时的页面 */ /* this.redirect || */'/home4Login' })
}).
catch
(()
=>
{
this
.
loading
=
false
this
.
getCode
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment