修改
This commit is contained in:
parent
65d43d4f5e
commit
de96b1d642
@ -117,15 +117,9 @@
|
|||||||
<template slot-scope="props">
|
<template slot-scope="props">
|
||||||
<el-table
|
<el-table
|
||||||
:data="props.row.selectSubordinateItemlist"
|
:data="props.row.selectSubordinateItemlist"
|
||||||
style="width: 100%; padding-left: 120px"
|
style="width: 100%;"
|
||||||
:header-cell-style="{background:'#fff',color:'#606266'}"
|
:header-cell-style="{ background: '#fff', color: '#606266' }"
|
||||||
>
|
>
|
||||||
<el-table-column
|
|
||||||
prop="trainingParentName"
|
|
||||||
label="培训课程组名称"
|
|
||||||
width="180"
|
|
||||||
>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="trainingItemCode"
|
prop="trainingItemCode"
|
||||||
label="培训课程编号"
|
label="培训课程编号"
|
||||||
@ -138,6 +132,12 @@
|
|||||||
width="180"
|
width="180"
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="trainingItemPrice"
|
||||||
|
label="培训课程价格"
|
||||||
|
width="180"
|
||||||
|
>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="trainingItemType"
|
prop="trainingItemType"
|
||||||
label="培训课程类型"
|
label="培训课程类型"
|
||||||
@ -186,6 +186,30 @@
|
|||||||
width="180"
|
width="180"
|
||||||
>
|
>
|
||||||
</el-table-column>
|
</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>
|
</el-table>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@ -233,7 +257,6 @@
|
|||||||
<el-table-column label="上架状态" align="center" prop="trainingShelfFlag">
|
<el-table-column label="上架状态" align="center" prop="trainingShelfFlag">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-switch
|
<el-switch
|
||||||
v-if="scope.row.trainingItemType == 'LEARNING_ITEM_GROUP'"
|
|
||||||
v-model="scope.row.trainingShelfFlag"
|
v-model="scope.row.trainingShelfFlag"
|
||||||
active-color="#13ce66"
|
active-color="#13ce66"
|
||||||
inactive-color="#ff4949"
|
inactive-color="#ff4949"
|
||||||
@ -1346,7 +1369,7 @@ export default {
|
|||||||
getList() {
|
getList() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
listTrainingItem(this.queryParams).then((response) => {
|
listTrainingItem(this.queryParams).then((response) => {
|
||||||
console.log(response)
|
console.log(response);
|
||||||
response.rows.forEach((e) => {
|
response.rows.forEach((e) => {
|
||||||
e.selectSubordinateItemlist = []; // 先给一个空值
|
e.selectSubordinateItemlist = []; // 先给一个空值
|
||||||
e.expand = false; // 表示当前行是闭合的,不设置这个等下展开后就没法闭合了
|
e.expand = false; // 表示当前行是闭合的,不设置这个等下展开后就没法闭合了
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user