项目选择课程灰掉自主课程

This commit is contained in:
Yjhon 2022-02-26 18:06:23 +08:00
parent d9e2960173
commit 11b0e529a5
2 changed files with 9 additions and 5 deletions

View File

@ -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() { }, // -

View File

@ -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' },