项目选择课程灰掉自主课程
This commit is contained in:
parent
d9e2960173
commit
11b0e529a5
|
@ -40,7 +40,7 @@
|
|||
</span>
|
||||
</s-table>
|
||||
</a-space>
|
||||
<project-course-select ref="CourseSelect" @selectKeyDataSubmit="selectKeyDataChange" :selectRows="selData"></project-course-select>
|
||||
<project-course-select ref="CourseSelect" @selectKeyDataSubmit="selectKeyDataChange" :tabDisabled="tabDisabled" :selectRows="selData"></project-course-select>
|
||||
<a-col :span="24" style="text-align: center;margin-top: 10px;">
|
||||
<a-button type="primary" size="default" @click="toPrep" style="margin-right: 8px;">上一步</a-button>
|
||||
<a-button type="primary" size="default" @click="toNext">下一步</a-button>
|
||||
|
@ -87,6 +87,7 @@ export default {
|
|||
//这里存放数据
|
||||
return {
|
||||
form: this.projectForm,
|
||||
tabDisabled: false,
|
||||
selData: [],
|
||||
labelCol: {},
|
||||
wrapperCol: {},
|
||||
|
@ -206,6 +207,7 @@ export default {
|
|||
})
|
||||
this.queryParam.ids = arr.join(',')
|
||||
}
|
||||
if(this.form.projectType === 0) this.tabDisabled = true;
|
||||
},
|
||||
//选择课程完毕,提交到list页面
|
||||
selectKeyDataChange(childValue) {
|
||||
|
@ -218,7 +220,7 @@ export default {
|
|||
|
||||
//生命周期 - 创建完成(可以访问当前this实例)
|
||||
created() {
|
||||
this.initIds()
|
||||
this.initIds();
|
||||
},
|
||||
mounted() { }, //生命周期 - 挂载完成(可以访问DOM元素)
|
||||
beforeCreate() { }, //生命周期 - 创建之前
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<a-col :span="4" id="tree">
|
||||
<a-menu v-model="menuKey" mode="horizontal" @select="menuChack">
|
||||
<a-menu-item key="sys">系统课程</a-menu-item>
|
||||
<a-menu-item key="self">自主课程</a-menu-item>
|
||||
<a-menu-item key="self" :disabled="tabDis">自主课程</a-menu-item>
|
||||
</a-menu>
|
||||
<!-- :defaultExpandedKeys="defaultExpandedKeys" -->
|
||||
<a-tree :treeData="treeData" @select="onSelect" :defaultExpandAll="true" :replaceFields="replaceFields">
|
||||
|
@ -63,15 +63,17 @@ export default {
|
|||
selectRows: {
|
||||
type: Array,
|
||||
},
|
||||
tabDisabled: {
|
||||
type: Boolean,
|
||||
}
|
||||
},
|
||||
data() {
|
||||
// 这里存放数据
|
||||
return {
|
||||
visible: false, //是否显示弹框
|
||||
modalTitle: '',
|
||||
|
||||
tabDis: this.tabDisabled,
|
||||
menuKey: ['sys'], //默认系统课程
|
||||
|
||||
// 查询参数
|
||||
queryParam: { name: '', classType: 1, type: 1 },
|
||||
replaceFields: { children: 'children', title: 'name', key: 'value', value: 'id' },
|
||||
|
|
Loading…
Reference in New Issue