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
7a614cf5
Commit
7a614cf5
authored
Oct 26, 2024
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
panel4
parent
edb8c693
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
96 additions
and
69 deletions
+96
-69
overview.js
src/api/system/overview.js
+10
-1
overview.vue
src/views/system/home/overview.vue
+86
-68
No files found.
src/api/system/overview.js
View file @
7a614cf5
import
request
from
'
@/utils/request
'
import
request
from
'
@/utils/request
'
export
function
getData4panel4
(
data
)
{
// 导师信息
return
request
({
url
:
'
api/mentor
'
,
method
:
'
get
'
,
params
:
data
,
})
}
export
function
getData4panel0
(
data
)
{
// 孵化器概况信息
export
function
getData4panel0
(
data
)
{
// 孵化器概况信息
return
request
({
return
request
({
url
:
'
api/incubator/profile?incubatorId=
'
+
data
.
incubatorId
,
url
:
'
api/incubator/profile?incubatorId=
'
+
data
.
incubatorId
,
...
@@ -55,5 +64,5 @@ export function editUser(data) {
...
@@ -55,5 +64,5 @@ export function editUser(data) {
}
}
export
default
{
getData4panel0
,
getDialogData4panel0
,
getData4tech
,
add
,
edit
,
del
}
export
default
{
getData4panel0
,
getDialogData4panel0
,
getData4
panel4
,
getData4
tech
,
add
,
edit
,
del
}
src/views/system/home/overview.vue
View file @
7a614cf5
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
<div
class=
"bodyer"
>
<div
class=
"bodyer"
>
<ul
class=
"panelsWrapper"
>
<ul
class=
"panelsWrapper"
>
<li
class=
"overview tab_panel_0"
v-if=
"activeIndex === 0"
>
<li
class=
"overview tab_panel_0"
v-if=
"activeIndex ===
4
0"
>
<h2>
{{
data4panel0
.
incubatorName
}}
</h2>
<h2>
{{
data4panel0
.
incubatorName
}}
</h2>
<div
class=
"contentWrapper"
>
<div
class=
"contentWrapper"
>
<div
class=
"left"
>
<div
class=
"left"
>
...
@@ -201,25 +201,39 @@
...
@@ -201,25 +201,39 @@
</div>
</div>
</div>
</div>
</li>
</li>
<li
class=
"tab_panel_4"
v-if=
"activeIndex ===
4
0"
>
<li
class=
"tab_panel_4"
v-if=
"activeIndex === 0"
>
<div
class=
"_title"
>
<div
class=
"_title"
>
<span>
创业导师
</span>
<span>
创业导师
</span>
<el-input
<el-input
placeholder=
"请输入姓名搜索"
placeholder=
"请输入姓名搜索"
prefix-icon=
"el-icon-search"
prefix-icon=
"el-icon-search"
v-model=
"searchText4panel0"
v-model=
"searchText4panel0"
style=
"width: 300px;"
></el-input>
></el-input>
</div>
</div>
<ul>
<ul>
<li
v-for=
"item in 10"
:key=
"item"
>
<li
v-for=
"item in tableData4panel4"
:key=
"item.id"
>
<img
src=
""
alt=
""
/>
<img
<p>
姓名:张丽力
</p>
:src=
"`$
{baseAPI}file/${item.photo}`"
<p>
学历:博士
</p>
alt=""
<p>
毕业学校:山东大学
</p>
/>
<p>
联系电话:13521457845
</p>
<p>
姓名:
{{
item
.
mentorName
}}
</p>
<a>
查看简介
>
</a>
<p>
学历:
{{
item
.
education
}}
</p>
<p>
毕业学校:
{{
item
.
graduationSchool
}}
</p>
<p>
联系电话:
{{
item
.
contactPhone
}}
</p>
<a
@
click=
"getMore4panel4(item)"
>
查看简介
>
</a>
</li>
</li>
</ul>
</ul>
<el-pagination
style=
"text-align: center; margin-top: 20px;"
@
current-change=
"handleCurrentChange4panel4"
@
size-change=
"handleSizeChange4panel4"
:current-page=
"currentPage4panel4"
:page-size=
"pageSize4panel4"
:total=
"totalCount4panel4"
:page-sizes=
"[10, 20, 30, 40]"
layout=
"prev, pager, next, sizes"
></el-pagination>
</li>
</li>
</ul>
</ul>
</div>
</div>
...
@@ -284,54 +298,10 @@
...
@@ -284,54 +298,10 @@
</el-dialog>
</el-dialog>
<el-dialog
<el-dialog
title=
"新增孵化器信息"
title=
"简介信息"
:visible.sync=
"dialogVisible4panel1"
:visible.sync=
"dialogVisible4panel4"
@
close=
"resetForm"
>
>
<el-form
<div
v-html=
"introduction4panel4"
></div>
label-width=
"170px"
:inline=
"true"
:model=
"formData4panel0"
class=
"demo-form-inline"
>
<el-row>
<el-form-item
label=
"孵化器名称"
>
<el-input
v-model=
"formData4panel0.incubatorName"
placeholder=
""
size=
"middle"
></el-input>
</el-form-item>
<el-form-item
label=
"运行机构"
>
<el-input
v-model=
"formData4panel0.operatingAgency"
placeholder=
""
size=
"middle"
></el-input>
</el-form-item>
<el-form-item
label=
"孵化器等级"
>
<el-select
v-model=
"formData4panel0.incubatorLevel"
style=
"width: 200px"
size=
"middle"
>
<el-option
:label=
"item.name"
:value=
"item.value"
v-for=
"item in companyLevelList"
:key=
"item.name"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"联系人"
>
<el-input
v-model=
"formData4panel0.contactPerson"
placeholder=
""
size=
"middle"
></el-input>
</el-form-item>
</el-row>
</el-form>
</el-dialog>
</el-dialog>
</div>
</div>
</
template
>
</
template
>
...
@@ -356,7 +326,7 @@ export default {
...
@@ -356,7 +326,7 @@ export default {
// 顶部切换菜单
// 顶部切换菜单
activeIndex
:
0
,
activeIndex
:
0
,
// panel0
// panel0
孵化器概况
data4panel0
:
{},
data4panel0
:
{},
totalCount4panel0
:
0
,
// 总条目数
totalCount4panel0
:
0
,
// 总条目数
currentPage4panel0
:
0
,
// 当前页码
currentPage4panel0
:
0
,
// 当前页码
...
@@ -364,19 +334,33 @@ export default {
...
@@ -364,19 +334,33 @@ export default {
dialogVisible4panel0
:
false
,
dialogVisible4panel0
:
false
,
searchQuery4panel0
:
''
,
searchQuery4panel0
:
''
,
tableData4panel0
:
[],
tableData4panel0
:
[],
filteredData4panel0
:
[],
formData4panel0
:
{
// panel4 创业导师
address
:
""
,
totalCount4panel4
:
0
,
// 总条目数
contactPerson
:
""
,
currentPage4panel4
:
0
,
// 当前页码
},
pageSize4panel4
:
10
,
// 每页显示的条目数量
dialogVisible4panel4
:
false
,
searchQuery4panel4
:
''
,
tableData4panel4
:
[],
introduction4panel4
:
''
,
};
};
},
},
computed
:
{},
computed
:
{},
mounted
()
{
mounted
()
{
this
.
incubatorId
=
this
.
$route
.
query
.
id
;
this
.
incubatorId
=
this
.
$route
.
query
.
id
;
this
.
getData4panel0
();
// this.getData4panel0();
this
.
getData4panel4
();
},
},
methods
:
{
methods
:
{
changeNav
(
index
)
{
this
.
activeIndex
=
~~
index
;
},
/**
* panel0
*/
filterData4panel0
()
{
filterData4panel0
()
{
this
.
currentPage4panel0
=
1
;
// 重置当前分页
this
.
currentPage4panel0
=
1
;
// 重置当前分页
this
.
getDialogData4panel0
();
this
.
getDialogData4panel0
();
...
@@ -385,9 +369,7 @@ export default {
...
@@ -385,9 +369,7 @@ export default {
this
.
dialogVisible4panel0
=
true
this
.
dialogVisible4panel0
=
true
this
.
getDialogData4panel0
()
this
.
getDialogData4panel0
()
},
},
changeNav
(
index
)
{
this
.
activeIndex
=
~~
index
;
},
handleCurrentChange4panel0
(
newPage
)
{
handleCurrentChange4panel0
(
newPage
)
{
// 切换分页
// 切换分页
this
.
currentPage4panel0
=
newPage
;
this
.
currentPage4panel0
=
newPage
;
...
@@ -457,7 +439,7 @@ export default {
...
@@ -457,7 +439,7 @@ export default {
getDialogData4panel0
(
fn
)
{
// 获取panel0弹窗列表信息
getDialogData4panel0
(
fn
)
{
// 获取panel0弹窗列表信息
overviewApi
overviewApi
.
getDialogData4panel0
({
.
getDialogData4panel0
({
page
:
this
.
currentPage4panel0
-
1
,
page
:
this
.
currentPage4panel0
>
0
?
this
.
currentPage4panel0
-
1
:
this
.
currentPage4panel0
,
size
:
this
.
pageSize4panel0
,
size
:
this
.
pageSize4panel0
,
incubatorId
:
this
.
incubatorId
,
incubatorId
:
this
.
incubatorId
,
year
:
this
.
searchQuery4panel0
year
:
this
.
searchQuery4panel0
...
@@ -479,6 +461,42 @@ export default {
...
@@ -479,6 +461,42 @@ export default {
this
.
initChart4panel0_1
();
this
.
initChart4panel0_1
();
});
});
},
},
/**
* panel4
* @param {*} fn
*/
filterData4panel4
()
{
this
.
currentPage4panel4
=
1
;
// 重置当前分页
this
.
getData4panel4
();
},
getMore4panel4
(
item
){
this
.
dialogVisible4panel4
=
true
this
.
introduction4panel4
=
item
.
introduction
},
handleCurrentChange4panel4
(
newPage
)
{
// 切换分页
this
.
currentPage4panel4
=
newPage
;
this
.
getData4panel4
()
},
handleSizeChange4panel4
(
newSize
){
this
.
pageSize4panel4
=
newSize
;
this
.
getData4panel4
()
},
getData4panel4
(
fn
)
{
// 获取panel4导师信息
overviewApi
.
getData4panel4
({
page
:
this
.
currentPage4panel4
>
0
?
this
.
currentPage4panel4
-
1
:
this
.
currentPage4panel4
,
size
:
this
.
pageSize4panel4
,
incubatorId
:
this
.
incubatorId
,
mentorName
:
this
.
searchQuery4panel4
})
.
then
((
res
)
=>
{
this
.
tableData4panel4
=
res
.
body
.
list
||
[];
this
.
totalCount4panel4
=
res
.
body
.
total
});
},
},
},
};
};
...
@@ -629,7 +647,7 @@ export default {
...
@@ -629,7 +647,7 @@ export default {
a
{
a
{
position
:
absolute
;
position
:
absolute
;
right
:
6px
;
right
:
6px
;
bottom
:
60
px
;
bottom
:
96
px
;
font-size
:
15px
;
font-size
:
15px
;
color
:
#1890ff
;
color
:
#1890ff
;
}
}
...
...
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