This commit is contained in:
闫晓茹 2023-05-05 17:24:41 +08:00
parent 65d43d4f5e
commit de96b1d642

View File

@ -117,15 +117,9 @@
<template slot-scope="props">
<el-table
:data="props.row.selectSubordinateItemlist"
style="width: 100%; padding-left: 120px"
:header-cell-style="{background:'#fff',color:'#606266'}"
style="width: 100%;"
:header-cell-style="{ background: '#fff', color: '#606266' }"
>
<el-table-column
prop="trainingParentName"
label="培训课程组名称"
width="180"
>
</el-table-column>
<el-table-column
prop="trainingItemCode"
label="培训课程编号"
@ -138,6 +132,12 @@
width="180"
>
</el-table-column>
<el-table-column
prop="trainingItemPrice"
label="培训课程价格"
width="180"
>
</el-table-column>
<el-table-column
prop="trainingItemType"
label="培训课程类型"
@ -186,6 +186,30 @@
width="180"
>
</el-table-column>
<el-table-column
label="操作"
align="center"
class-name="small-padding fixed-width"
>
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['system:trainingItem:edit']"
>修改</el-button
>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['system:trainingItem:remove']"
>删除</el-button
>
</template>
</el-table-column>
</el-table>
</template>
</el-table-column>
@ -233,7 +257,6 @@
<el-table-column label="上架状态" align="center" prop="trainingShelfFlag">
<template slot-scope="scope">
<el-switch
v-if="scope.row.trainingItemType == 'LEARNING_ITEM_GROUP'"
v-model="scope.row.trainingShelfFlag"
active-color="#13ce66"
inactive-color="#ff4949"
@ -1346,7 +1369,7 @@ export default {
getList() {
this.loading = true;
listTrainingItem(this.queryParams).then((response) => {
console.log(response)
console.log(response);
response.rows.forEach((e) => {
e.selectSubordinateItemlist = []; //
e.expand = false; //