|
@@ -14,19 +14,36 @@
|
|
|
|
|
|
<el-divider></el-divider>
|
|
<el-divider></el-divider>
|
|
</div>
|
|
</div>
|
|
- <el-button type="text" style="float: right" @click="clearCom"
|
|
|
|
|
|
+ <div class="topWrap">
|
|
|
|
+ <el-select
|
|
|
|
+ placeholder="请选择主班"
|
|
|
|
+ v-model="radio"
|
|
|
|
+ clearable
|
|
|
|
+ @change="changeMasterClass"
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="(item, index) in dataList"
|
|
|
|
+ :label="item.name"
|
|
|
|
+ :value="item.id"
|
|
|
|
+ :key="index"
|
|
|
|
+ ></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ <el-button type="text" style="float: right" @click="clearCom"
|
|
>清空列表</el-button
|
|
>清空列表</el-button
|
|
>
|
|
>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
<div>
|
|
<div>
|
|
- <el-radio-group v-model="radio" @change="changeMasterClass">
|
|
|
|
|
|
+ <!-- <el-radio-group v-model="radio" @change="changeMasterClass"> -->
|
|
<el-table
|
|
<el-table
|
|
:data="dataList"
|
|
:data="dataList"
|
|
height="300px"
|
|
height="300px"
|
|
:header-cell-style="{ background: '#EDEEF0', color: '#444' }"
|
|
:header-cell-style="{ background: '#EDEEF0', color: '#444' }"
|
|
>
|
|
>
|
|
- <el-table-column align="center" label="主班" width="110">
|
|
|
|
|
|
+ <el-table-column align="center" label="班级编号" width="110">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-radio :label="scope.row.id"></el-radio>
|
|
|
|
|
|
+ {{scope.row.id}}
|
|
|
|
+ <!-- <el-radio :label="scope.row.id"></el-radio> -->
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -69,7 +86,7 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
- </el-radio-group>
|
|
|
|
|
|
+ <!-- </el-radio-group> -->
|
|
</div>
|
|
</div>
|
|
<el-button
|
|
<el-button
|
|
type="primary"
|
|
type="primary"
|
|
@@ -164,6 +181,9 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
cancleCom(row) {
|
|
cancleCom(row) {
|
|
|
|
+ if(row.id== this.radio){
|
|
|
|
+ this.radio = ''
|
|
|
|
+ }
|
|
this.$emit("cancleCompound", row);
|
|
this.$emit("cancleCompound", row);
|
|
},
|
|
},
|
|
clearCom() {
|
|
clearCom() {
|
|
@@ -326,6 +346,10 @@ export default {
|
|
/deep/.el-divider--horizontal {
|
|
/deep/.el-divider--horizontal {
|
|
margin: 0 !important;
|
|
margin: 0 !important;
|
|
}
|
|
}
|
|
|
|
+.topWrap{
|
|
|
|
+ margin: 10px 0;
|
|
|
|
+ padding: 0 20px 0 0;
|
|
|
|
+}
|
|
.minus {
|
|
.minus {
|
|
float: right;
|
|
float: right;
|
|
line-height: 44px;
|
|
line-height: 44px;
|