提交测试

This commit is contained in:
daihh
2022-07-22 10:51:13 +08:00
parent 0b9acf52fb
commit e8d1361c8d
3 changed files with 17 additions and 11 deletions

View File

@@ -12,7 +12,7 @@
</el-col> --> </el-col> -->
<!-- </el-row> --> <!-- </el-row> -->
<el-row :gutter="20"> <el-row :gutter="20">
<!-- <el-col :span="6"> <!-- <el-col :span="6">
<div class="grid-content bg-purple"> <div class="grid-content bg-purple">
<el-cascader style="margin-left: 0px" placeholder="资源归属" :options="resOwnerListMap" :props="defaultProps" v-model="resOwner" clearable></el-cascader> <el-cascader style="margin-left: 0px" placeholder="资源归属" :options="resOwnerListMap" :props="defaultProps" v-model="resOwner" clearable></el-cascader>
@@ -36,10 +36,10 @@
<el-button type="primary" style="margin-left: 0px" @click="search()" icon="el-icon-search">搜索</el-button> <el-button type="primary" style="margin-left: 0px" @click="search()" icon="el-icon-search">搜索</el-button>
<el-button @click="reset()" style="margin-left: 20pxpx" type="primary" icon="el-icon-refresh-right">重置</el-button> <el-button @click="reset()" style="margin-left: 20pxpx" type="primary" icon="el-icon-refresh-right">重置</el-button>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
<el-row :gutter="20" style="margin-top:15px;margin-bottom:15px"> <el-row :gutter="20" style="margin-top:15px;margin-bottom:15px">
<el-col :span="4" style="margin-left:0%;"> <el-col :span="4" style="margin-left:0%;">
<div class="grid-content bg-purple"> <div class="grid-content bg-purple">
@@ -51,11 +51,11 @@
<el-checkbox v-model="params.self" @change="getSearch()">仅显示我上传的</el-checkbox> <el-checkbox v-model="params.self" @change="getSearch()">仅显示我上传的</el-checkbox>
<!-- <el-checkbox v-model="params.self" label="只看自己" border></el-checkbox> --> <!-- <el-checkbox v-model="params.self" label="只看自己" border></el-checkbox> -->
</div> </div>
</el-col> </el-col>
<!-- <el-col :span="6"> <!-- <el-col :span="6">
</el-col> --> </el-col> -->
</el-row> </el-row>
<!-- <div><el-button @click="addFile()" type="primary">上传课件</el-button></div> --> <!-- <div><el-button @click="addFile()" type="primary">上传课件</el-button></div> -->
<!-- <el-cascader style="margin-left: 10px" placeholder="资源归属" :options="resOwnerList" :props="defaultProps" v-model="resOwner" clearable></el-cascader> --> <!-- <el-cascader style="margin-left: 10px" placeholder="资源归属" :options="resOwnerList" :props="defaultProps" v-model="resOwner" clearable></el-cascader> -->
@@ -346,18 +346,17 @@ export default {
} }
} }
}, },
created() {
this.getSearch();
},
mounted() { mounted() {
this.loadResOwners(); this.loadResOwners();
this.getResOwnerTree().then(rs => { this.getResOwnerTree().then(rs => {
this.resOwnerListMap = rs; this.resOwnerListMap = rs;
}); });
this.search();
}, },
methods: { methods: {
search(){ search(){
this.params.pageIndex = 1; //this.params.pageIndex = 1;
this.page.pageIndex=1;
this.getSearch(); this.getSearch();
}, },
reset() { reset() {
@@ -369,7 +368,8 @@ export default {
this.params.resOwner1 = ''; this.params.resOwner1 = '';
this.params.resOwner2 = ''; this.params.resOwner2 = '';
this.params.resOwner3 = ''; this.params.resOwner3 = '';
this.params.pageIndex = 1; //this.params.pageIndex = 1;
this.page.pageIndex=1;
this.getSearch(); this.getSearch();
}, },
...mapActions({ ...mapActions({

View File

@@ -213,6 +213,9 @@ export default {
this.showQrimage(); this.showQrimage();
this.isSignUp(); this.isSignUp();
}else{ }else{
if(rs.status==204){ //无查看此课程的权限
this.courseInfo.name=rs.result.course.name;
}
this.$message.error(rs.message); this.$message.error(rs.message);
} }
}) })

View File

@@ -447,6 +447,9 @@ export default {
//study info //study info
this.loadStudyInfo(); this.loadStudyInfo();
} else { } else {
if(rs.status==204){ //无查看此课程的权限
this.courseInfo.name=rs.result.course.name;
}
this.$message.error(rs.message); this.$message.error(rs.message);
} }
}); });