mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 03:46:45 +08:00
课程库操作按钮
This commit is contained in:
@@ -798,15 +798,16 @@
|
||||
column.key === 'operation'
|
||||
"
|
||||
>
|
||||
<span
|
||||
<div
|
||||
style="margin-right: 24px"
|
||||
:class="[
|
||||
String(record.courseform) === '1'
|
||||
? 'disabled table-operation'
|
||||
: 'table-operation',
|
||||
? 'disabled operation'
|
||||
: 'operation',
|
||||
]"
|
||||
>
|
||||
<a
|
||||
<div class="fb">
|
||||
<div class="jc">
|
||||
@click="
|
||||
() => {
|
||||
handleEdit(record, String(record.courseform));
|
||||
@@ -815,8 +816,9 @@
|
||||
style="display: inline-block; margin-left: 20px"
|
||||
>
|
||||
编辑
|
||||
</a>
|
||||
<a
|
||||
</div>
|
||||
|
||||
<div class="jc">
|
||||
@click="
|
||||
() => {
|
||||
handleCopy(record, String(record.courseform));
|
||||
@@ -825,7 +827,7 @@
|
||||
style="display: inline-block; margin-left: 20px"
|
||||
>
|
||||
复制
|
||||
</a>
|
||||
</div>
|
||||
<!-- 2022-12-10注释 后面放开 -->
|
||||
<!-- <a-dropdown>
|
||||
<template #overlay>
|
||||
@@ -883,7 +885,7 @@
|
||||
<down-outlined />
|
||||
</a>
|
||||
</a-dropdown> -->
|
||||
<a
|
||||
<div class="jc">
|
||||
@click="
|
||||
() => {
|
||||
handleDelete(record, String(record.courseform));
|
||||
@@ -892,8 +894,9 @@
|
||||
style="display: inline-block; margin-left: 20px"
|
||||
>
|
||||
删除
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<template
|
||||
v-if="
|
||||
@@ -901,7 +904,7 @@
|
||||
column.key === 'operation'
|
||||
"
|
||||
>
|
||||
<span
|
||||
<div
|
||||
style="margin-right: 24px"
|
||||
:class="[
|
||||
String(record.courseform) === '1'
|
||||
@@ -909,7 +912,8 @@
|
||||
: 'table-operation',
|
||||
]"
|
||||
>
|
||||
<a
|
||||
<div class="fb">
|
||||
<div class="jc"
|
||||
@click="
|
||||
() => {
|
||||
handleRejectExit(record, String(record.courseform));
|
||||
@@ -918,8 +922,8 @@
|
||||
style="display: inline-block; margin-left: 20px"
|
||||
>
|
||||
撤回
|
||||
</a>
|
||||
<a
|
||||
</div>
|
||||
<div class="jc"
|
||||
@click="
|
||||
() => {
|
||||
handleCopy(record, String(record.courseform));
|
||||
@@ -928,7 +932,7 @@
|
||||
style="display: inline-block; margin-left: 20px"
|
||||
>
|
||||
复制
|
||||
</a>
|
||||
</div>
|
||||
<!-- 2022-12-10注释 后面放开 -->
|
||||
<!-- <a-dropdown>
|
||||
<template #overlay>
|
||||
@@ -986,7 +990,8 @@
|
||||
<down-outlined />
|
||||
</a>
|
||||
</a-dropdown> -->
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<template
|
||||
v-if="
|
||||
@@ -995,7 +1000,7 @@
|
||||
column.key === 'operation'
|
||||
"
|
||||
>
|
||||
<span
|
||||
<div class="fb"
|
||||
style="margin-right: 24px"
|
||||
:class="[
|
||||
String(record.courseform) === '1'
|
||||
@@ -1003,7 +1008,7 @@
|
||||
: 'table-operation',
|
||||
]"
|
||||
>
|
||||
<a
|
||||
<div class="jc"
|
||||
@click="
|
||||
() => {
|
||||
handleStart(record, String(record.courseform));
|
||||
@@ -1012,8 +1017,8 @@
|
||||
style="display: inline-block; margin-left: 20px"
|
||||
>
|
||||
开课
|
||||
</a>
|
||||
<a
|
||||
</div>
|
||||
<div class="jc"
|
||||
@click="
|
||||
() => {
|
||||
handleLook(record, String(record.courseform));
|
||||
@@ -1022,8 +1027,8 @@
|
||||
style="display: inline-block; margin-left: 20px"
|
||||
>
|
||||
查看
|
||||
</a>
|
||||
<a
|
||||
</div>
|
||||
<div class="jc"
|
||||
@click="
|
||||
() => {
|
||||
if (String(record.courseform) === '1') {
|
||||
@@ -1042,8 +1047,8 @@
|
||||
style="display: inline-block; margin-left: 20px"
|
||||
>
|
||||
管理
|
||||
</a>
|
||||
<a
|
||||
</div>
|
||||
<div class="jc"
|
||||
@click="
|
||||
() => {
|
||||
handleCopy(record, String(record.courseform));
|
||||
@@ -1052,7 +1057,7 @@
|
||||
style="display: inline-block; margin-left: 20px"
|
||||
>
|
||||
复制
|
||||
</a>
|
||||
</div>
|
||||
<!-- 2022-12-10注释 后面放开 -->
|
||||
<!-- <a-dropdown>
|
||||
<template #overlay>
|
||||
@@ -1110,8 +1115,7 @@
|
||||
<down-outlined />
|
||||
</a>
|
||||
</a-dropdown> -->
|
||||
<span>
|
||||
<a
|
||||
<div class="jc"
|
||||
@click="
|
||||
() => {
|
||||
handleStop(record, String(record.courseform));
|
||||
@@ -1120,9 +1124,10 @@
|
||||
style="display: inline-block; margin-left: 20px"
|
||||
>
|
||||
停用
|
||||
</a>
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</template>
|
||||
<template
|
||||
v-if="
|
||||
@@ -1131,7 +1136,7 @@
|
||||
column.key === 'operation'
|
||||
"
|
||||
>
|
||||
<span
|
||||
<div class="fb"
|
||||
style="margin-right: 24px"
|
||||
:class="[
|
||||
String(record.courseform) === '1'
|
||||
@@ -1139,7 +1144,7 @@
|
||||
: 'table-operation',
|
||||
]"
|
||||
>
|
||||
<a
|
||||
<div class="jc"
|
||||
@click="
|
||||
() => {
|
||||
handleStart(record, String(record.courseform));
|
||||
@@ -1148,8 +1153,8 @@
|
||||
style="display: inline-block; margin-left: 20px"
|
||||
>
|
||||
开课
|
||||
</a>
|
||||
<a
|
||||
</div>
|
||||
<div class="jc"
|
||||
@click="
|
||||
() => {
|
||||
handleEdit(record, String(record.courseform));
|
||||
@@ -1158,8 +1163,8 @@
|
||||
style="display: inline-block; margin-left: 20px"
|
||||
>
|
||||
编辑
|
||||
</a>
|
||||
<a
|
||||
</div>
|
||||
<div class="jc"
|
||||
@click="
|
||||
() => {
|
||||
if (String(record.courseform) === '1') {
|
||||
@@ -1178,8 +1183,8 @@
|
||||
style="display: inline-block; margin-left: 20px"
|
||||
>
|
||||
管理
|
||||
</a>
|
||||
<a
|
||||
</div>
|
||||
<div class="jc"
|
||||
@click="
|
||||
() => {
|
||||
handleCopy(record, String(record.courseform));
|
||||
@@ -1188,7 +1193,7 @@
|
||||
style="display: inline-block; margin-left: 20px"
|
||||
>
|
||||
复制
|
||||
</a>
|
||||
</div>
|
||||
<!-- 2022-12-10注释 后面放开 -->
|
||||
<!-- <a-dropdown>
|
||||
<template #overlay>
|
||||
@@ -1246,7 +1251,7 @@
|
||||
<down-outlined />
|
||||
</a>
|
||||
</a-dropdown> -->
|
||||
<a
|
||||
<div class="jc"
|
||||
@click="
|
||||
() => {
|
||||
handleOpen(record, String(record.courseform));
|
||||
@@ -1255,8 +1260,8 @@
|
||||
style="display: inline-block; margin-left: 20px"
|
||||
>
|
||||
启用
|
||||
</a>
|
||||
<a
|
||||
</div>
|
||||
<div class="jc"
|
||||
@click="
|
||||
() => {
|
||||
handleDelete(record, String(record.courseform));
|
||||
@@ -1265,8 +1270,8 @@
|
||||
style="display: inline-block; margin-left: 20px"
|
||||
>
|
||||
删除
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<template
|
||||
v-if="
|
||||
@@ -1275,7 +1280,7 @@
|
||||
column.key === 'operation'
|
||||
"
|
||||
>
|
||||
<span
|
||||
<div class="fb"
|
||||
style="margin-right: 24px"
|
||||
:class="[
|
||||
String(record.courseform) === '1'
|
||||
@@ -1283,7 +1288,7 @@
|
||||
: 'table-operation',
|
||||
]"
|
||||
>
|
||||
<a
|
||||
<div class="jc"
|
||||
@click="
|
||||
() => {
|
||||
handleEdit(record, String(record.courseform));
|
||||
@@ -1292,8 +1297,8 @@
|
||||
style="display: inline-block; margin-left: 20px"
|
||||
>
|
||||
编辑
|
||||
</a>
|
||||
<a
|
||||
</div>
|
||||
<div class="jc"
|
||||
@click="
|
||||
() => {
|
||||
handleCopy(record, String(record.courseform));
|
||||
@@ -1302,7 +1307,7 @@
|
||||
style="display: inline-block; margin-left: 20px"
|
||||
>
|
||||
复制
|
||||
</a>
|
||||
</div>
|
||||
<!-- 2022-12-10注释 后面放开 -->
|
||||
<!-- <a-dropdown>
|
||||
<template #overlay>
|
||||
@@ -1360,7 +1365,7 @@
|
||||
<down-outlined />
|
||||
</a>
|
||||
</a-dropdown> -->
|
||||
<a
|
||||
<div class="jc"
|
||||
@click="
|
||||
() => {
|
||||
handleDelete(record, String(record.courseform));
|
||||
@@ -1369,8 +1374,8 @@
|
||||
style="display: inline-block; margin-left: 20px"
|
||||
>
|
||||
删除
|
||||
</a>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</template>
|
||||
</a-table>
|
||||
@@ -5916,31 +5921,20 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
.operation {
|
||||
display: flex;
|
||||
justify-content: right;
|
||||
.fb {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
color: #4ea6ff;
|
||||
|
||||
.nselect {
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
display: flex;
|
||||
|
||||
.jc {
|
||||
margin-left: 20px;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
.tableSelect {
|
||||
// margin-right: 10px;
|
||||
margin-left: -5px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: right;
|
||||
margin-right: 20px;
|
||||
.jc {
|
||||
color: #4ea6ff;
|
||||
font-size: 14px;
|
||||
margin-left: 20px;
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
.ynuse {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
||||
@@ -426,8 +426,7 @@ export default {
|
||||
<div class="operation">
|
||||
{value.state === "2" ? (
|
||||
<div class="fb">
|
||||
<div
|
||||
class="jc"
|
||||
<div class="jc"
|
||||
onClick={() => {
|
||||
handleToManagepage(value, "/managepage");
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user