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
1052deeb
Commit
1052deeb
authored
Dec 31, 2024
by
罗林杰
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
3392d814
830ba6b9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
67 additions
and
63 deletions
+67
-63
allPageData.js
src/utils/allPageData.js
+1
-1
index.vue
src/views/contentManagement/activity/index.vue
+3
-3
index.vue
src/views/contentManagement/notice/index.vue
+2
-2
index.vue
src/views/contentManagement/topic/index.vue
+61
-57
No files found.
src/utils/allPageData.js
View file @
1052deeb
...
...
@@ -21,5 +21,5 @@ const yesOrNo = [
const
isExam
=
[
{
value
:
'0'
,
label
:
'待审核'
},
{
value
:
'1'
,
label
:
'已通过'
},
{
value
:
'2'
,
label
:
'已
审核
'
}
{
value
:
'2'
,
label
:
'已
驳回
'
}
]
src/views/contentManagement/activity/index.vue
View file @
1052deeb
...
...
@@ -14,8 +14,8 @@
style=
"width: 150px"
/>
</el-form-item>
<el-form-item
label=
"
顶置
:"
prop=
"isTop"
>
<el-select
v-model=
"queryParams.isTop"
placeholder=
"请选择
顶置
状态"
style=
"width: 150px"
clearable
>
<el-form-item
label=
"
置顶
:"
prop=
"isTop"
>
<el-select
v-model=
"queryParams.isTop"
placeholder=
"请选择
置顶
状态"
style=
"width: 150px"
clearable
>
<el-option
v-for=
"item in yesOrNo"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
/>
</el-select>
</el-form-item>
...
...
@@ -322,7 +322,7 @@ export default {
// },
data
()
{
return
{
yesOrNo
,
yesOrNo
,
pageKey
:
0
,
hasAddPerm
:
[
'sys:activity:add'
],
hasUpdatePerm
:
[
'sys:activity:update'
],
...
...
src/views/contentManagement/notice/index.vue
View file @
1052deeb
...
...
@@ -14,8 +14,8 @@
style=
"width: 150px"
/>
</el-form-item>
<el-form-item
label=
"
顶置
:"
prop=
"isTop"
>
<el-select
v-model=
"queryParams.isTop"
placeholder=
"请选择
顶置
状态"
style=
"width: 150px"
clearable
>
<el-form-item
label=
"
置顶
:"
prop=
"isTop"
>
<el-select
v-model=
"queryParams.isTop"
placeholder=
"请选择
置顶
状态"
style=
"width: 150px"
clearable
>
<el-option
v-for=
"item in yesOrNo"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
/>
</el-select>
</el-form-item>
...
...
src/views/contentManagement/topic/index.vue
View file @
1052deeb
...
...
@@ -107,7 +107,7 @@
</template>
</el-table-column>-->
<el-table-column
align=
"center"
label=
"操作"
min-width=
"1
6
0"
>
<el-table-column
align=
"center"
label=
"操作"
min-width=
"1
8
0"
>
<
template
slot-scope=
"scope"
>
<el-button
v-has-permi=
"hasDetailPerm"
...
...
@@ -123,28 +123,29 @@
:size=
"commonField.size"
@
click=
"handleUpdate(scope.row)"
>
编辑
</el-button>
<el-dropdown
v-if=
"scope.row.examStatus !== '1'"
@
command=
"handleExamOrNoExam(scope.row, $event)"
style=
"margin-left: 10px;margin-right:10px ;"
>
<el-button
v-show=
"scope.row.examStatus !== '1'"
:class=
"commonField.resetPasClass"
:type=
"commonField.typeParent"
:size=
"commonField.size"
@
click=
"handleExam(scope.row)"
>
审核
</el-button>
<el-button
v-show=
"scope.row.examStatus === '1'"
:class=
"commonField.resetPasClass"
:type=
"commonField.typeParent"
:size=
"commonField.size"
@
click=
"handleNoExam(scope.row)"
>
驳回审核
:class=
"commonField.resetPasClass"
:type=
"commonField.typeParent"
:size=
"commonField.size"
>
审核操作
<i
class=
"el-icon-arrow-down el-icon--right"
></i>
</el-button>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-item
command=
"exam"
>
审核
</el-dropdown-item>
<el-dropdown-item
command=
"noExam"
>
驳回
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
<el-button
:class=
"commonField.resetPasClass"
:type=
"commonField.typeParent"
:size=
"commonField.size"
@
click=
"removeCourse(scope.row)"
>
删除
</el-button>
<!--
<el-button
type=
"text"
@
click=
"handleView(scope.row)"
>
查看
</el-button>
-->
<!--
<el-button
type=
"text"
@
click=
"handleView(scope.row)"
>
查看
</el-button>
-->
</
template
>
</el-table-column>
...
...
@@ -283,7 +284,21 @@ export default {
value
:
'0'
}
],
// 审核状态选项
examStatusOptions
:
[
{
label
:
'待审核'
,
value
:
'0'
},
{
label
:
'已通过'
,
value
:
'1'
},
{
label
:
'已驳回'
,
value
:
'2'
}
],
// 上传提交
uploadList
:
{
fm
:
''
...
...
@@ -518,50 +533,39 @@ export default {
})
})
},
/** 审核按钮操作 */
handleExam
(
row
)
{
const
text
=
row
.
examStatus
===
'1'
?
'驳回审核'
:
'审核'
const
params
=
{
handleExamOrNoExam
(
row
,
command
)
{
let
text
,
params
,
api
;
if
(
command
===
'exam'
)
{
text
=
'审核'
;
params
=
{
businessId
:
row
.
businessId
,
examStatus
:
row
.
examStatus
}
this
.
$confirm
(
'是否确认操作?'
,
'审核中'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
function
()
{
return
updateExamStatus
(
params
)
}).
then
(()
=>
{
this
.
$message
({
message
:
text
+
'成功'
,
type
:
'success'
})
this
.
loadData
()
})
},
/** 撤回审核按钮操作 */
handleNoExam
(
row
)
{
const
text
=
row
.
examStatus
===
'1'
?
'驳回审核'
:
'审核'
const
params
=
{
examStatus
:
'1'
};
api
=
updateExamStatus
;
}
else
if
(
command
===
'noExam'
)
{
text
=
'驳回'
;
params
=
{
businessId
:
row
.
businessId
,
examStatus
:
row
.
examStatus
}
this
.
$confirm
(
'是否确认操作?'
,
'驳回中'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
function
()
{
return
updateNoExamStatus
(
params
)
}).
then
(()
=>
{
this
.
$message
({
message
:
text
+
'成功'
,
type
:
'success'
})
this
.
loadData
()
})
},
examStatus
:
'2'
// 驳回审核
};
api
=
updateExamStatus
;
}
this
.
$confirm
(
`是否确认
${
text
}
操作?`
,
text
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
return
api
(
params
);
}).
then
(()
=>
{
this
.
$message
({
message
:
`
${
text
}
成功`
,
type
:
'success'
});
this
.
loadData
();
});
},
/**
* @description: 查看
* @author: gaoyu
...
...
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