Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust_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
张伯涛
cust_web
Commits
4b7d6818
Commit
4b7d6818
authored
Dec 26, 2024
by
曹泽华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
话题管理
parent
6ac32e51
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
34 deletions
+31
-34
allPageData.js
src/utils/allPageData.js
+3
-2
index.vue
src/views/contentManagement/topic/index.vue
+26
-30
index.vue
src/views/contentManagement/topic/info/index.vue
+2
-2
No files found.
src/utils/allPageData.js
View file @
4b7d6818
...
@@ -19,6 +19,7 @@ const yesOrNo = [
...
@@ -19,6 +19,7 @@ const yesOrNo = [
]
]
const
isExam
=
[
const
isExam
=
[
{
value
:
'0'
,
label
:
'未审核'
},
{
value
:
'0'
,
label
:
'待审核'
},
{
value
:
'1'
,
label
:
'已审核'
}
{
value
:
'1'
,
label
:
'已通过'
},
{
value
:
'2'
,
label
:
'已审核'
}
]
]
src/views/contentManagement/topic/index.vue
View file @
4b7d6818
...
@@ -69,10 +69,10 @@
...
@@ -69,10 +69,10 @@
<el-table-column
align=
"center"
prop=
"topicName"
label=
"话题名称"
min-width=
"200"
show-overflow-tooltip
/>
<el-table-column
align=
"center"
prop=
"topicName"
label=
"话题名称"
min-width=
"200"
show-overflow-tooltip
/>
<el-table-column
align=
"center"
prop=
"examStatus"
label=
"审核状态"
min-width=
"200"
show-overflow-tooltip
>
<el-table-column
align=
"center"
prop=
"examStatus"
label=
"审核状态"
min-width=
"200"
show-overflow-tooltip
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
examStatus
===
'
1'
?
'已审核'
:
'未审核
'
}}
</span>
<span>
{{
scope
.
row
.
examStatus
===
'
0'
?
'待审核'
:
scope
.
row
.
examStatus
===
'1'
?
'已通过'
:
'已驳回
'
}}
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
align=
"center"
prop=
"weight"
label=
"
排序
"
min-width=
"200"
show-overflow-tooltip
/>
<el-table-column
align=
"center"
prop=
"weight"
label=
"
权重
"
min-width=
"200"
show-overflow-tooltip
/>
<el-table-column
align=
"center"
prop=
"articleCount"
label=
"动态数"
min-width=
"200"
show-overflow-tooltip
/>
<el-table-column
align=
"center"
prop=
"articleCount"
label=
"动态数"
min-width=
"200"
show-overflow-tooltip
/>
<el-table-column
align=
"left"
prop=
"flag"
label=
"状态"
min-width=
"120"
show-overflow-tooltip
>
<el-table-column
align=
"left"
prop=
"flag"
label=
"状态"
min-width=
"120"
show-overflow-tooltip
>
...
@@ -115,19 +115,19 @@
...
@@ -115,19 +115,19 @@
@
click=
"handleUpdate(scope.row)"
@
click=
"handleUpdate(scope.row)"
>
编辑
</el-button>
>
编辑
</el-button>
<el-button
<el-button
v-show=
"scope.row.examStatus
=== '0
'"
v-show=
"scope.row.examStatus
!== '1
'"
:class=
"commonField.resetPasClass"
:class=
"commonField.resetPasClass"
:type=
"commonField.typeParent"
:type=
"commonField.typeParent"
:size=
"commonField.size"
:size=
"commonField.size"
@
click=
"handleExam(scope.row)"
@
click=
"handleExam(scope.row)"
>
审核
</el-button>
>
审核
</el-button>
<
el-button
<
!--
<el-button-->
v-show=
"scope.row.examStatus === '1'"
<!-- v-show="scope.row.examStatus === '1'"-->
:class=
"commonField.resetPasClass"
<!-- :class="commonField.resetPasClass"-->
:type=
"commonField.typeParent"
<!-- :type="commonField.typeParent"-->
:size=
"commonField.size"
<!-- :size="commonField.size"-->
@
click=
"handleNoExam(scope.row)"
<!-- @click="handleNoExam(scope.row)"-->
>
撤回审核
</el-button
>
<!-- >撤回审核
</el-button>
--
>
<el-button
<el-button
:class=
"commonField.resetPasClass"
:class=
"commonField.resetPasClass"
:type=
"commonField.typeParent"
:type=
"commonField.typeParent"
...
@@ -154,15 +154,15 @@
...
@@ -154,15 +154,15 @@
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"500px"
append-to-body
>
<el-dialog
:title=
"title"
:visible
.
sync=
"open"
width=
"500px"
append-to-body
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
size=
"small"
label-width=
"90px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
size=
"small"
label-width=
"90px"
>
<el-form-item
label=
"
话题
名称:"
prop=
"topicName"
>
<el-form-item
label=
"名称:"
prop=
"topicName"
>
<el-input
v-model
.
trim=
"form.topicName"
show-word-limit
:maxlength=
"500"
placeholder=
"请输入话题名称"
/>
<el-input
v-model
.
trim=
"form.topicName"
show-word-limit
:maxlength=
"500"
placeholder=
"请输入话题名称"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"权重:"
prop=
"weight"
>
<el-form-item
label=
"权重:"
prop=
"weight"
>
<el-input-number
v-model
.
trim=
"form.weight"
style=
"width: 100%"
controls-position=
"right"
:min=
"0"
/>
<el-input-number
v-model
.
trim=
"form.weight"
style=
"width: 100%"
controls-position=
"right"
:min=
"0"
/>
</el-form-item>
</el-form-item>
<!-- <el-form-item label="动态数:" prop="articleCount">-->
<!-- <el-form-item label="动态数:" prop="articleCount">-->
<!-- <el-input-number v-model.trim="form.articleCount" style="width: 100%" controls-position="right" :min="0" />-->
<!-- <el-input-number v-model.trim="form.articleCount" style="width: 100%" controls-position="right" :min="0" />-->
<!-- </el-form-item>-->
<!-- </el-form-item>-->
<el-form-item
label=
"状态:"
>
<el-form-item
label=
"状态:"
>
<el-radio-group
v-model=
"form.flag"
style=
"width: 100%"
>
<el-radio-group
v-model=
"form.flag"
style=
"width: 100%"
>
<el-radio
<el-radio
...
@@ -206,7 +206,7 @@ export default {
...
@@ -206,7 +206,7 @@ export default {
return
{
return
{
pageKey
:
0
,
pageKey
:
0
,
open
:
false
,
open
:
false
,
title
:
'
新增话题
'
,
title
:
''
,
hasAddPerm
:
[
'sys:topic:add'
],
hasAddPerm
:
[
'sys:topic:add'
],
hasUpdatePerm
:
[
'sys:topic:update'
],
hasUpdatePerm
:
[
'sys:topic:update'
],
hasDetailPerm
:
[
'sys:topic:query'
],
hasDetailPerm
:
[
'sys:topic:query'
],
...
@@ -223,12 +223,9 @@ export default {
...
@@ -223,12 +223,9 @@ export default {
enableOrDisable
,
enableOrDisable
,
// 新增课程
// 新增课程
form
:
{
form
:
{
id
:
''
,
topicName
:
''
,
topicName
:
''
,
examStatus
:
''
,
weight
:
''
,
weight
:
''
,
articleCount
:
''
,
flag
:
'1'
flag
:
''
},
},
// 课程方向
// 课程方向
courseDirection
:
[],
courseDirection
:
[],
...
@@ -307,11 +304,7 @@ export default {
...
@@ -307,11 +304,7 @@ export default {
],
],
weight
:
[
weight
:
[
{
required
:
true
,
message
:
'请输入排序'
}
{
required
:
true
,
message
:
'请输入权重'
}
],
articleCount
:
[
{
required
:
true
,
message
:
'请输入动态数'
}
]
]
}
}
...
@@ -346,6 +339,7 @@ export default {
...
@@ -346,6 +339,7 @@ export default {
this
.
loadData
()
this
.
loadData
()
},
},
methods
:
{
methods
:
{
step
(
index
)
{
step
(
index
)
{
return
'step'
+
index
return
'step'
+
index
},
},
...
@@ -388,31 +382,31 @@ export default {
...
@@ -388,31 +382,31 @@ export default {
if
(
this
.
form
.
businessId
!==
undefined
)
{
if
(
this
.
form
.
businessId
!==
undefined
)
{
updateOpmTopic
(
this
.
form
).
then
(
response
=>
{
updateOpmTopic
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
'修改成功'
)
this
.
msgSuccess
(
'修改成功'
)
this
.
open
=
false
this
.
loadData
()
this
.
loadData
()
this
.
cancel
()
})
})
}
else
{
}
else
{
addOpmTopic
(
this
.
form
).
then
(
response
=>
{
addOpmTopic
(
this
.
form
).
then
(
response
=>
{
this
.
msgSuccess
(
'新增成功'
)
this
.
msgSuccess
(
'新增成功'
)
this
.
open
=
false
this
.
loadData
()
this
.
loadData
()
this
.
cancel
()
})
})
}
}
}
}
})
})
},
},
cancel
()
{
cancel
()
{
this
.
reset
()
this
.
$refs
[
'form'
].
resetFields
()
this
.
open
=
false
this
.
open
=
false
},
},
// 表单重置
// 表单重置
reset
()
{
reset
()
{
this
.
form
=
{
this
.
form
=
{
businessId
:
undefined
,
topicName
:
undefined
,
topicName
:
undefined
,
weight
:
undefined
,
weight
:
undefined
,
articleCount
:
undefined
,
flag
:
'1'
flag
:
'0'
}
}
},
},
...
@@ -483,12 +477,14 @@ export default {
...
@@ -483,12 +477,14 @@ export default {
/** 新增按钮操作 */
/** 新增按钮操作 */
handleAdd
()
{
handleAdd
()
{
this
.
open
=
true
this
.
open
=
true
this
.
title
=
'新增话题'
},
},
/** 修改按钮操作 */
/** 修改按钮操作 */
handleUpdate
(
row
)
{
handleUpdate
(
row
)
{
//
this.reset()
this
.
reset
()
const
id
=
row
.
businessId
const
id
=
row
.
businessId
console
.
log
(
'id'
,
id
)
console
.
log
(
'id'
,
id
)
console
.
log
(
'row'
,
row
)
getOpmTopic
(
id
).
then
(
response
=>
{
getOpmTopic
(
id
).
then
(
response
=>
{
this
.
form
=
response
.
data
this
.
form
=
response
.
data
this
.
open
=
true
this
.
open
=
true
...
...
src/views/contentManagement/topic/info/index.vue
View file @
4b7d6818
...
@@ -56,8 +56,8 @@
...
@@ -56,8 +56,8 @@
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<!-- 是否置顶-->
<!-- 是否置顶-->
<el-form-item
<el-form-item
label=
"
排序
:"
label=
"
权重
:"
prop=
"
isTop
"
prop=
"
weight
"
:rules=
"
{ required: !(controls.isOperation === '3'), message: '请选择排序', trigger: 'change' }"
:rules=
"
{ required: !(controls.isOperation === '3'), message: '请选择排序', trigger: 'change' }"
>
>
<el-input-number
v-model=
"form.weight"
placeholder=
"请选择是否置顶公告"
size=
"small"
class=
"normalInput"
:disabled=
"secondFromDisabled"
>
<el-input-number
v-model=
"form.weight"
placeholder=
"请选择是否置顶公告"
size=
"small"
class=
"normalInput"
:disabled=
"secondFromDisabled"
>
...
...
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