修改
This commit is contained in:
parent
65d43d4f5e
commit
de96b1d642
@ -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; // 表示当前行是闭合的,不设置这个等下展开后就没法闭合了
|
||||
|
||||
Loading…
Reference in New Issue
Block a user