|
@@ -11,7 +11,7 @@
|
|
</div>
|
|
</div>
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
<el-button @click="dialogVisible = false">取 消</el-button>
|
|
<el-button @click="dialogVisible = false">取 消</el-button>
|
|
- <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
|
|
|
|
|
|
+ <el-button type="primary" @click="confirm">确 定</el-button>
|
|
</span>
|
|
</span>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
</template>
|
|
</template>
|
|
@@ -26,7 +26,9 @@ export default{
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
dialogVisible: false,
|
|
dialogVisible: false,
|
|
- value:''
|
|
|
|
|
|
+ value:'',
|
|
|
|
+ activeClass:'' // 当前选中的
|
|
|
|
+ // dispatch // 分班数据
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -36,10 +38,18 @@ export default{
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ confirm() {
|
|
|
|
+ this.activeClass.newClassId = this.value
|
|
|
|
+ this.activeClass.newClassName = this.getClassName(this.value)
|
|
|
|
+ this.activeClass.newMasterId = this.activeClass.prevMasterId
|
|
|
|
+ this.activeClass.newMasterName = this.activeClass.prevMasterName
|
|
|
|
+ this.dialogVisible = false
|
|
|
|
+ },
|
|
init(row){
|
|
init(row){
|
|
this.dialogVisible = true
|
|
this.dialogVisible = true
|
|
- console.log(row)
|
|
|
|
- this.value = row.prevClassId
|
|
|
|
|
|
+ this.activeClass= row
|
|
|
|
+ // console.log(row)
|
|
|
|
+ this.value = row.newClassId || row.prevClassId
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|