提交修改

This commit is contained in:
daihh
2022-06-02 16:20:52 +08:00
20 changed files with 2080 additions and 1607 deletions

View File

@@ -69,7 +69,7 @@
</el-select>
</div>
<div style="width:390px">
<el-button type="primary" @click="searchData()" icon="el-icon-search" >搜索</el-button>
<el-button type="primary" @click="searchData(true)" icon="el-icon-search" >搜索</el-button>
<el-button icon="el-icon-refresh-right" type="primary" style="margin-left:5px" @click="reset">重置</el-button>
</div>
</div>
@@ -456,11 +456,11 @@ export default {
});
});
}
},
// 复制
@@ -519,7 +519,8 @@ export default {
this.params.sysType1 = '';
this.params.sysType2 = '';
this.params.sysType3 = '';
this.searchData();
this.searchData(true);
},
...mapActions({
getResOwnerTree:'resOwner/getResOwnerTree',
@@ -590,7 +591,10 @@ export default {
},
// 课程查询
async searchData() {
async searchData(pageReset) {
if(pageReset){
this.page.pageIndex=1;
}
this.params.resOwner1 = this.resOwner[0];
this.params.resOwner2 = this.resOwner[1];
this.params.resOwner3 = this.resOwner[2];
@@ -657,13 +661,13 @@ export default {
},
showQrimage(row) {
this.qrcodeShow = true;
let urlPre=window.location.protocol+'//'+window.location.host;
this.qrcode = urlPre+'/mobile/pages/resource/microDetail?id='+row.id;
if(row.type==20){
this.qrcode = urlPre+'/mobile/pages/resource/courseDetail?id='+row.id;
}
// 使用$nextTick确保数据渲染
this.$nextTick(() => {
this.crateQrcode();