|
@@ -45,7 +45,7 @@
|
|
|
</el-checkbox-group>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="适用学院" prop="deptId">
|
|
|
- <el-select v-model="infoForm.deptId" placeholder="请选择适用学院" style="width:400px;">
|
|
|
+ <el-select v-model="infoForm.deptId" placeholder="请选择适用学院" @change="deptFun" style="width:400px;">
|
|
|
<el-option
|
|
|
v-for="item in deptOptions"
|
|
|
:key="item.deptId"
|
|
@@ -661,7 +661,7 @@ import {getDeptDropList, getDeptNoAuthList} from "@/api/commonality/permission";
|
|
|
},
|
|
|
/** 查询资源分类树 */
|
|
|
getResourceTreeData(){
|
|
|
- examElCategoryTreeList({},2).then( response => {
|
|
|
+ examElCategoryTreeList({},1).then( response => {
|
|
|
//this.classTree = JSON.parse(JSON.stringify(response.data));
|
|
|
let list = [];
|
|
|
let obj = {
|
|
@@ -676,6 +676,14 @@ import {getDeptDropList, getDeptNoAuthList} from "@/api/commonality/permission";
|
|
|
this.treeData = list;
|
|
|
});
|
|
|
},
|
|
|
+ //使用学院
|
|
|
+ deptFun(){
|
|
|
+ for(let i=0; i<this.deptOptions.length;i++){
|
|
|
+ if(this.infoForm.deptId==this.deptOptions[i].deptId){
|
|
|
+ this.infoForm.deptNames=this.deptOptions[i].deptName
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
//分类树点击事件
|
|
|
editCheck(event) {
|
|
|
this.$refs.ditTree.setCheckedKeys([event.id]);
|
|
@@ -764,6 +772,7 @@ import {getDeptDropList, getDeptNoAuthList} from "@/api/commonality/permission";
|
|
|
// img:this.infoForm.certUrl,
|
|
|
// description:escape(this.infoForm.content),
|
|
|
deptIds:this.infoForm.deptId,
|
|
|
+ deptNames:this.infoForm.deptNames,
|
|
|
};
|
|
|
let scopeText = this.infoForm.checkList+'';
|
|
|
obj.scopeType = scopeText;
|
|
@@ -784,6 +793,7 @@ import {getDeptDropList, getDeptNoAuthList} from "@/api/commonality/permission";
|
|
|
// img:this.infoForm.certUrl,
|
|
|
// description:escape(this.infoForm.content),
|
|
|
deptIds:this.infoForm.deptId,
|
|
|
+ deptNames:this.infoForm.deptNames,
|
|
|
};
|
|
|
let scopeText = this.infoForm.checkList+'';
|
|
|
obj.scopeType = scopeText;
|