This commit is contained in:
2025-08-19 16:24:37 +08:00
parent 27909c5231
commit e9d967478a
6 changed files with 1233 additions and 1 deletions

View File

@@ -10,7 +10,7 @@
:model="dataForm"
:rules="dataRule"
ref="dataForm"
label-width="80px"
label-width="120px"
>
<el-form-item label="课程名" prop="title">
<el-input v-model="dataForm.title" placeholder="课程名"></el-input>
@@ -31,6 +31,16 @@
inactive-text="关闭">
</el-switch>
</el-form-item>
<el-form-item label="是否直接购买" prop="adminControl">
<el-switch
v-model="dataForm.adminControl"
active-text=""
inactive-text=""
:active-value="0"
:inactive-value="1"
>
</el-switch>
</el-form-item>
<el-form-item
label="课程长图"
prop="image"
@@ -633,6 +643,7 @@ export default {
id: this.dataForm.id || undefined,
title: this.dataForm.title,
canzk: this.dataForm.canzk ? '1' : '0', // 是否可以自考 0/ 1 0 否 1 是
adminControl: this.dataForm.adminControl, // 是否可以自考 0/ 1 0 否 1 是
sort: this.dataForm.sort,
image: this.dataForm.image,
squareImage: this.dataForm.squareImage,

View File

@@ -185,6 +185,19 @@
</div>
</template>
</el-table-column>
<el-table-column
prop="adminControl"
width="110"
header-align="center"
align="center"
label="是否直接购买"
>
<template slot-scope="scope">
<span v-if="scope.row.adminControl == 0" style="color: #606266;font-weight: 700;"></span>
<span v-else style="color: red;font-weight: 700;"></span>
</template>
</el-table-column>
<el-table-column
prop="sort"
width="80"