提交测试

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-row> -->
<el-row :gutter="20">
<!-- <el-col :span="6">
<div class="grid-content bg-purple">
<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 @click="reset()" style="margin-left: 20pxpx" type="primary" icon="el-icon-refresh-right">重置</el-button>
</div>
</el-col>
</el-row>
<el-row :gutter="20" style="margin-top:15px;margin-bottom:15px">
<el-col :span="4" style="margin-left:0%;">
<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" label="只看自己" border></el-checkbox> -->
</div>
</el-col>
</el-col>
<!-- <el-col :span="6">
</el-col> -->
</el-row>
<!-- <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> -->
@@ -346,18 +346,17 @@ export default {
}
}
},
created() {
this.getSearch();
},
mounted() {
this.loadResOwners();
this.getResOwnerTree().then(rs => {
this.resOwnerListMap = rs;
});
this.search();
},
methods: {
search(){
this.params.pageIndex = 1;
//this.params.pageIndex = 1;
this.page.pageIndex=1;
this.getSearch();
},
reset() {
@@ -369,7 +368,8 @@ export default {
this.params.resOwner1 = '';
this.params.resOwner2 = '';
this.params.resOwner3 = '';
this.params.pageIndex = 1;
//this.params.pageIndex = 1;
this.page.pageIndex=1;
this.getSearch();
},
...mapActions({