1
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
</div>
|
||||
<div style="margin-bottom:20px;"></div>
|
||||
<!-- 底部确定按钮 -->
|
||||
<div class="confirm-btn-wrap" style="position: fixed;bottom: 0;text-align: center;left: 0;right: 0;background: #fff;padding: 10px;border-top: 1px solid #eee;">
|
||||
<div v-if="selectnodeid>0" class="confirm-btn-wrap" style="position: fixed;bottom: 0;text-align: center;left: 0;right: 0;background: #fff;padding: 10px;border-top: 1px solid #eee;">
|
||||
<Button type="primary" style="padding:0px 40px;" @click="handleConfirm">确定</Button>
|
||||
</div>
|
||||
</Col>
|
||||
@@ -68,12 +68,12 @@ export default {
|
||||
const _this = this;
|
||||
var item={};
|
||||
_this.$api.get(APIConfig.BschClassSystem.getGroupTree, item, resp => {
|
||||
if(resp.code==0)
|
||||
{
|
||||
_this.treeData = resp.data;
|
||||
}else{
|
||||
_this.treeData=[];
|
||||
}
|
||||
if(resp.code==0)
|
||||
{
|
||||
_this.treeData = resp.data;
|
||||
}else{
|
||||
_this.treeData=[];
|
||||
}
|
||||
});
|
||||
},
|
||||
//节点点击事件
|
||||
@@ -81,6 +81,11 @@ export default {
|
||||
if(treeNode.type==2){
|
||||
this.selectnodeid=treeNode.id;
|
||||
this.getschsystemlist();
|
||||
}else{
|
||||
this.selectnodeid=0;
|
||||
this.getschsystemlist();
|
||||
this.$Message.warning("请先选择学校!");
|
||||
return;
|
||||
}
|
||||
},
|
||||
//获取学校绑定学制列表
|
||||
@@ -90,13 +95,12 @@ export default {
|
||||
schId:this.selectnodeid
|
||||
};
|
||||
_this.$api.get(APIConfig.BschClassSystem.getschsystemlist, item, resp => {
|
||||
|
||||
if(resp.code==0)
|
||||
{
|
||||
_this.schsystemlist = resp.data;
|
||||
}else{
|
||||
_this.schsystemlist=[];
|
||||
}
|
||||
if(resp.code==0)
|
||||
{
|
||||
_this.schsystemlist = resp.data;
|
||||
}else{
|
||||
_this.schsystemlist=[];
|
||||
}
|
||||
});
|
||||
},
|
||||
selectEduType(val,index,index2) {
|
||||
|
||||
@@ -189,7 +189,7 @@
|
||||
},
|
||||
// 表单校验规则
|
||||
formRules: {
|
||||
courseCode: [{ required: true, message: '请输入课程代码', trigger: 'blur' }],
|
||||
// courseCode: [{ required: true, message: '请输入课程代码', trigger: 'blur' }],
|
||||
courseName: [{ required: true, message: '请输入课程名称', trigger: 'blur' }],
|
||||
courseType: [{ required: true, message: '请选择课程类别', trigger: 'change' }],
|
||||
bindMajor: [{ required: true, type: 'array', min: 1, message: '请选择所属专业', trigger: 'change' }],
|
||||
|
||||
@@ -32,7 +32,6 @@
|
||||
<div class="col-bottom-btns">
|
||||
<Button type="error" @click="delGroup">删除分组</Button>
|
||||
<Button style="margin-left:8px" @click="editGroup">编辑分组</Button>
|
||||
<Button type="primary">Primary</Button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user