Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
intelligent_station_web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
张伯涛
intelligent_station_web
Commits
874c80f1
Commit
874c80f1
authored
Dec 09, 2024
by
冷玲鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
课程管理-查看所有课题列表
parent
ca678e2c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
386 additions
and
2 deletions
+386
-2
index.vue
src/views/projectManagement/allTopics/index.vue
+386
-2
No files found.
src/views/projectManagement/allTopics/index.vue
View file @
874c80f1
<
template
>
<div>
所有课题
</div>
<div>
<div
class=
"tableTitle"
>
<span>
所有课题
</span>
</div>
<div>
<el-form
v-show=
"showSearch"
ref=
"queryForm"
:model=
"queryParams"
:inline=
"true"
style=
"margin: 10px 15px -5px 0;"
>
<el-form-item
label=
"课题类型"
prop=
"applicationType"
>
<el-select
v-model=
"queryParams.applicationType"
clearable
size=
"small"
style=
"width: 120px"
filterable
>
<el-option
v-for=
"dict in topicType"
:key=
"dict.typeNumber"
:label=
"dict.typeName"
:value=
"dict.typeNumber"
/>
</el-select>
</el-form-item>
<el-form-item
label=
"状态"
prop=
"status"
>
<el-select
v-model=
"queryParams.status"
placeholder=
"请选择状态"
clearable
size=
"small"
style=
"width: 120px"
filterable
>
<el-option
v-for=
"state in statusList"
:key=
"state.statusNumber"
:label=
"state.statusName"
:value=
"state.statusNumber"
/>
</el-select>
</el-form-item>
<el-form-item
label=
"关键字"
prop=
"words"
>
<el-input
v-model=
"queryParams.words"
placeholder=
"课题号,课题名称,申请人,手机号"
clearable
:maxlength=
"255"
size=
"small"
style=
"width: 390px"
/>
</el-form-item>
<el-form-item>
<el-button
:class=
"commonField.queryClass"
:type=
"commonField.typePrimary"
:size=
"commonField.smallSize"
@
click=
"handleQuery"
>
查询
</el-button>
<el-button
:class=
"commonField.queryClass"
:type=
"commonField.typePrimary"
:size=
"commonField.smallSize"
@
click=
"handleQuery"
>
分析报告
</el-button>
<el-button
:class=
"commonField.queryClass"
:type=
"commonField.typePrimary"
:size=
"commonField.smallSize"
@
click=
"handleQuery"
>
导出申报汇总表
</el-button>
</el-form-item>
</el-form>
</div>
<!-- @pagination="getList"-->
<el-table
v-loading=
"loading"
style=
"width: 100%;"
:data=
"courseInfoList"
>
<el-table-column
min-width=
"50"
label=
"序号"
prop=
"id"
align=
"center"
>
<template
slot-scope=
"scope"
>
{{
scope
.
$index
+
1
}}
</
template
>
</el-table-column>
<el-table-column
min-width=
"120"
label=
"课程号"
prop=
"courseId"
align=
"center"
:show-overflow-tooltip=
"true"
/>
<el-table-column
min-width=
"220"
label=
"课程名称"
prop=
"courseName"
align=
"center"
/>
<el-table-column
min-width=
"100"
label=
"申报类型"
prop=
"applicationType"
align=
"center"
:show-overflow-tooltip=
"true"
/>
<el-table-column
min-width=
"100"
label=
"负责人姓名"
prop=
"responsiblePersonName"
align=
"center"
:show-overflow-tooltip=
"true"
/>
<el-table-column
min-width=
"120"
label=
"手机号"
prop=
"phoneNumber"
align=
"center"
:show-overflow-tooltip=
"true"
/>
<el-table-column
min-width=
"120"
label=
"创建时间"
prop=
"createTime"
align=
"center"
:show-overflow-tooltip=
"true"
/>
<el-table-column
min-width=
"80"
label=
"阶段"
prop=
"stage"
align=
"center"
:show-overflow-tooltip=
"true"
/>
<el-table-column
min-width=
"160"
label=
"状态"
prop=
"status"
align=
"center"
:show-overflow-tooltip=
"true"
/>
<el-table-column
min-width=
"120"
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<el-button
v-if=
"scope.row.status === '验收完成' || scope.row.status === '立项评审中'"
icon=
"el-icon-search"
/>
<el-button
v-else
icon=
"el-icon-edit-outline"
/>
</
template
>
</el-table-column>
</el-table>
<!-- <pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
/>-->
<pagination
background
layout=
"prev, pager, next"
:total=
"total"
:page
.
sync=
"queryParams.pageNum"
:limit
.
sync=
"queryParams.pageSize"
/>
</div>
</template>
<
script
setup
>
<
script
>
import
commonField
from
'@/utils/commonField'
export
default
{
data
()
{
return
{
// 总条数
total
:
100
,
// 遮罩层
loading
:
false
,
// 显示搜索条件
showSearch
:
true
,
courseInfoList
:
[
{
id
:
1
,
courseId
:
'2024YB01033'
,
courseName
:
'text123456190528'
,
applicationType
:
'一般课题'
,
responsiblePersonName
:
'于力'
,
phoneNumber
:
'15821163326'
,
createTime
:
'2024-05-28 14:21'
,
stage
:
'结项'
,
status
:
'验收完成'
},
{
id
:
2
,
courseId
:
'2024YB01031'
,
courseName
:
'阿斯布洛'
,
applicationType
:
'一般课题'
,
responsiblePersonName
:
'于力'
,
phoneNumber
:
'15821163326'
,
createTime
:
'2024-05-23 09:52'
,
stage
:
'立项'
,
status
:
'申报完成'
},
{
id
:
3
,
courseId
:
'2024ZD01029'
,
courseName
:
'测试190523'
,
applicationType
:
'重点课题'
,
responsiblePersonName
:
'于力'
,
phoneNumber
:
'15821163326'
,
createTime
:
'2024-05-23 09:37'
,
stage
:
'立项'
,
status
:
'项目申报中'
},
{
id
:
4
,
courseId
:
'2024YB01026'
,
courseName
:
'asdfasdffest190508'
,
applicationType
:
'一般课题'
,
responsiblePersonName
:
'于力'
,
phoneNumber
:
'15821163326'
,
createTime
:
'2024-05-08 09:56'
,
stage
:
'结项'
,
status
:
'立项评审中'
},
{
id
:
5
,
courseId
:
'2024YB01026'
,
courseName
:
'190507测试'
,
applicationType
:
'一般课题'
,
responsiblePersonName
:
'于力'
,
phoneNumber
:
'15821163326'
,
createTime
:
'2024-05-07 17:38'
,
stage
:
'验收'
,
status
:
'验收申请中'
},
{
id
:
6
,
courseId
:
'2024YB01033'
,
courseName
:
'text123456190528'
,
applicationType
:
'一般课题'
,
responsiblePersonName
:
'于力'
,
phoneNumber
:
'15821163326'
,
createTime
:
'2024-05-28 14:21'
,
stage
:
'结项'
,
status
:
'验收完成'
},
{
id
:
7
,
courseId
:
'2024YB01033'
,
courseName
:
'text123456190528'
,
applicationType
:
'一般课题'
,
responsiblePersonName
:
'于力'
,
phoneNumber
:
'15821163326'
,
createTime
:
'2024-05-28 14:21'
,
stage
:
'结项'
,
status
:
'验收完成'
},
{
id
:
8
,
courseId
:
'2024YB01033'
,
courseName
:
'text123456190528'
,
applicationType
:
'一般课题'
,
responsiblePersonName
:
'于力'
,
phoneNumber
:
'15821163326'
,
createTime
:
'2024-05-28 14:21'
,
stage
:
'结项'
,
status
:
'验收完成'
},
{
id
:
9
,
courseId
:
'2024YB01033'
,
courseName
:
'text123456190528'
,
applicationType
:
'一般课题'
,
responsiblePersonName
:
'于力'
,
phoneNumber
:
'15821163326'
,
createTime
:
'2024-05-28 14:21'
,
stage
:
'结项'
,
status
:
'验收完成'
},
{
id
:
10
,
courseId
:
'2024YB01033'
,
courseName
:
'text123456190528'
,
applicationType
:
'一般课题'
,
responsiblePersonName
:
'于力'
,
phoneNumber
:
'15821163326'
,
createTime
:
'2024-05-28 14:21'
,
stage
:
'结项'
,
status
:
'验收完成'
}
],
// 课题类型
topicType
:
[
{
typeName
:
'不限'
,
typeNumber
:
'0'
},
{
typeName
:
'一般课题'
,
typeNumber
:
'1'
},
{
typeName
:
'重点课题'
,
typeNumber
:
'2'
}
],
// 状态
statusList
:
[
{
statusName
:
'不限'
,
statusNumber
:
'0'
},
{
statusName
:
'验收完成'
,
statusNumber
:
'1'
},
{
statusName
:
'申报完成'
,
statusNumber
:
'2'
},
{
statusName
:
'项目申报中'
,
statusNumber
:
'3'
},
{
statusName
:
'立项评审中'
,
statusNumber
:
'4'
},
{
statusName
:
'验收申请完成'
,
statusNumber
:
'5'
},
{
statusName
:
'验收申请中'
,
statusNumber
:
'6'
}
],
// 查询参数
queryParams
:
{
pageNum
:
1
,
pageSize
:
10
,
// 课程号
courseId
:
null
,
// 课程名称
courseName
:
null
,
// 申报类型
applicationType
:
null
,
// 负责人姓名
responsiblePersonName
:
null
,
// 手机号
phoneNumber
:
null
,
// 创建时间
createTime
:
''
,
// 阶段
stage
:
''
,
// 状态
status
:
''
,
// 关键字
words
:
''
}
}
},
/** 手机号校验*/
computed
:
{
search
()
{
return
search
},
el
()
{
return
el
},
icon
()
{
return
icon
},
themeType
()
{
return
localStorage
.
getItem
(
'theme'
)
},
/** 公共字段 */
commonField
()
{
return
commonField
}
},
created
()
{
this
.
getList
()
},
methods
:
{
getList
()
{
this
.
loading
=
true
this
.
loading
=
false
},
handleNewProject
()
{
this
.
$router
.
push
({
path
:
'/myTopic/newTopic'
,
query
:
{}
})
},
/** 查询按钮操作 */
handleQuery
()
{
this
.
queryParams
.
page
=
1
this
.
getList
()
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
.tableTitle
{
font-size
:
19px
;
color
:
#333
;
a
{
color
:
#599fd1
;
font-size
:
19px
;
i
.el-icon-plus
{
font-size
:
16px
;
}
}
}
</
style
>
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