tijiao
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user