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