|
@@ -98,7 +98,7 @@
|
|
|
/>
|
|
|
<el-dialog
|
|
|
:visible.sync="dialogVisible"
|
|
|
- width="560px"
|
|
|
+ width="460px"
|
|
|
:show-close="false"
|
|
|
:close-on-click-modal="false"
|
|
|
>
|
|
@@ -148,10 +148,15 @@
|
|
|
: ""
|
|
|
}}
|
|
|
</p>
|
|
|
- <el-radio-group v-model="finishStatusOS" v-if="stice == 1">
|
|
|
- <el-radio :label="1">是</el-radio>
|
|
|
- <el-radio :label="0">否</el-radio>
|
|
|
- </el-radio-group>
|
|
|
+ <div style="text-align: center">
|
|
|
+ <el-radio-group
|
|
|
+ v-model="finishStatusOS"
|
|
|
+ v-if="stice == 1 || stice == 4"
|
|
|
+ >
|
|
|
+ <el-radio :label="1">是</el-radio>
|
|
|
+ <el-radio :label="0">否</el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </div>
|
|
|
</ul>
|
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
@@ -829,23 +834,26 @@ export default {
|
|
|
let data = {
|
|
|
id: ars,
|
|
|
};
|
|
|
- if (this.stice === 1) {
|
|
|
+ if (this.stice === 1 || this.stice === 4) {
|
|
|
if (this.finishStatusOS !== 0 && this.finishStatusOS !== 1) {
|
|
|
- this.$message.warning("请选择是否");
|
|
|
+ this.$message.warning("请选择是或否");
|
|
|
return;
|
|
|
}
|
|
|
- data.finishStatus = this.finishStatusOS;
|
|
|
+ if (this.stice === 1) {
|
|
|
+ data.finishStatus = this.finishStatusOS;
|
|
|
+ }
|
|
|
+ if (this.stice === 4) {
|
|
|
+ data.learnStatus = this.finishStatusOS;
|
|
|
+ }
|
|
|
}
|
|
|
if (this.stice === 3) {
|
|
|
data.status = 0;
|
|
|
}
|
|
|
- if (this.stice === 4) {
|
|
|
- data.learnStatus = 1;
|
|
|
- }
|
|
|
this.$api.editGradeUserGradegrade(data).then((res) => {
|
|
|
this.dialogVisible = false;
|
|
|
this.$message.success("成功");
|
|
|
this.search();
|
|
|
+ this.$refs.tableList.clearMoreActive();
|
|
|
});
|
|
|
},
|
|
|
//1结业 2选班 3移除 4账号状态标记
|
|
@@ -997,7 +1005,7 @@ export default {
|
|
|
};
|
|
|
}
|
|
|
if (int === 3) {
|
|
|
- this.$refs.tableList.allCheckData = [];
|
|
|
+ this.$refs.tableList.clearMoreActive();
|
|
|
this.formData.pageSize = 10;
|
|
|
this.formData.pageNum = 1;
|
|
|
}
|