This commit is contained in:
daihh
2022-06-02 17:33:17 +08:00
25 changed files with 119 additions and 20 deletions

View File

@@ -368,7 +368,7 @@ export default {
device:1, device:1,
orderField: orderType == 1 ? '' : 'studys', orderField: orderType == 1 ? '' : 'studys',
orderAsc: false, orderAsc: false,
topOrder:true, // topOrder:true,
pageIndex: pageIndex pageIndex: pageIndex
}; };
let isTopList = []; let isTopList = [];

View File

@@ -35,7 +35,7 @@
</div> </div>
<div style="padding: 0px 5px"> <div style="padding: 0px 5px">
<el-button <el-button
@click="getArticleList" @click="getsearch"
icon="el-icon-search" icon="el-icon-search"
type="primary" type="primary"
>搜索</el-button >搜索</el-button
@@ -167,9 +167,15 @@ export default {
}, },
}, },
methods: { methods: {
getsearch(){
this.pageData.pageIndex = 1;
this.getArticleList()
},
reset() { reset() {
this.pageData.status = '' this.pageData.status = ''
this.pageData.keyword = '' this.pageData.keyword = ''
this.pageData.pageIndex = 1;
this.getArticleList() this.getArticleList()
}, },
//获取文章列表数据 //获取文章列表数据

View File

@@ -91,6 +91,7 @@ export default {
methods: { methods: {
search(){ search(){
this.isSearh = true; this.isSearh = true;
this.pageData.pageIndex = 1;
this.getArticleList() this.getArticleList()
}, },
saveSuccess(data){ saveSuccess(data){
@@ -127,7 +128,7 @@ export default {
}, },
reset(){ reset(){
this.pageData.pageIndex = 1;
this.pageData.keyword = '', this.pageData.keyword = '',
this.pageData.status = '' this.pageData.status = ''
this.getArticleList(); this.getArticleList();

View File

@@ -141,6 +141,7 @@ export default {
components: {}, components: {},
methods: { methods: {
getList() { getList() {
this.dataList.pageIndex = 1;
this.isSearh = true; this.isSearh = true;
this.getData(); this.getData();
}, },
@@ -187,6 +188,7 @@ export default {
}) })
}, },
reset(){ reset(){
this.dataList.pageIndex = 1;
this.dataList.send = '', this.dataList.send = '',
this.type = 0; this.type = 0;
this.getData(); this.getData();

View File

@@ -33,7 +33,7 @@
</el-col> </el-col>
<el-col :span="8" > <el-col :span="8" >
<div class="grid-content bg-purple" > <div class="grid-content bg-purple" >
<el-button type="primary" style="margin-left: 0px" @click="getSearch()" 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>
@@ -356,6 +356,11 @@ export default {
}); });
}, },
methods: { methods: {
search(){
this.params.pageIndex = 1;
this.getSearch();
},
reset() { reset() {
this.params.self = null; this.params.self = null;
this.params.name = ''; this.params.name = '';
@@ -365,6 +370,7 @@ 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.getSearch(); this.getSearch();
}, },
...mapActions({ ...mapActions({

View File

@@ -178,6 +178,7 @@ export default {
this.params.keyword = ''; this.params.keyword = '';
this.params.status = ''; this.params.status = '';
this.params.type = ''; this.params.type = '';
this.params.pageIndex = 1;
this.getList(); this.getList();
this.isSearh = false; this.isSearh = false;
}, },

View File

@@ -22,7 +22,7 @@
</el-select> </el-select>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-button type="primary" @click="searchData()" icon="el-icon-search">搜索</el-button> <el-button type="primary" @click="getseatch();" icon="el-icon-search">搜索</el-button>
<el-button icon="el-icon-refresh-right" type="primary" @click="reset">重置</el-button> <el-button icon="el-icon-refresh-right" type="primary" @click="reset">重置</el-button>
</el-col> </el-col>
</el-row> </el-row>
@@ -289,6 +289,10 @@ export default {
this.loadSysTypes(); this.loadSysTypes();
}, },
methods: { methods: {
getseatch(){
this.params.pageIndex= 1;
this.searchData();
},
reset(){ reset(){
this.resOwner = '' this.resOwner = ''
this.params.sysType = '' this.params.sysType = ''
@@ -300,6 +304,7 @@ export default {
this.params.sysType1 = ''; this.params.sysType1 = '';
this.params.sysType2 = ''; this.params.sysType2 = '';
this.params.sysType3 = ''; this.params.sysType3 = '';
this.params.pageIndex= 1;
this.searchData(); this.searchData();
}, },
...mapActions({ ...mapActions({

View File

@@ -181,6 +181,10 @@ export default {
}, },
methods: { methods: {
getseatch(){
this.params.pageIndex= 1;
this.searchData();
},
reset(){ reset(){
this.resOwner = '' this.resOwner = ''
this.params.sysType = '' this.params.sysType = ''
@@ -192,6 +196,7 @@ export default {
this.params.sysType1 = ''; this.params.sysType1 = '';
this.params.sysType2 = ''; this.params.sysType2 = '';
this.params.sysType3 = ''; this.params.sysType3 = '';
this.params.pageIndex= 1;
this.searchData(); this.searchData();
}, },
...mapActions({ ...mapActions({

View File

@@ -21,7 +21,7 @@
<el-input placeholder="关键词" v-model="params.keyWord" clearable></el-input> <el-input placeholder="关键词" v-model="params.keyWord" clearable></el-input>
</div> </div>
<div style="padding: 0px 5px"> <div style="padding: 0px 5px">
<el-button @click="loadData()" icon="el-icon-search" type="primary" >搜索</el-button> <el-button @click="search()" icon="el-icon-search" type="primary" >搜索</el-button>
</div> </div>
<div style="padding: 0px 5px;"><el-button icon="el-icon-refresh-right" type="primary" @click="reset">重置</el-button></div> <div style="padding: 0px 5px;"><el-button icon="el-icon-refresh-right" type="primary" @click="reset">重置</el-button></div>
<div style="margin-left:5px"> <div style="margin-left:5px">
@@ -836,10 +836,16 @@ export default {
ele.select(); ele.select();
document.execCommand("Copy"); document.execCommand("Copy");
}, },
search(){
this.params.pageIndex = 1;
this.loadData();
},
reset(){ reset(){
this.params.keyWord = '' this.params.keyWord = ''
this.params.published = '' this.params.published = ''
this.ownership = '' this.ownership = ''
this.params.pageIndex = 1;
this.loadData(); this.loadData();
}, },

View File

@@ -113,11 +113,13 @@
}, },
search(){ search(){
this.isSearh = true; this.isSearh = true;
this.pageIndex =1;
this.query() this.query()
}, },
reset() { reset() {
this.testName = ''; this.testName = '';
this.status=''; this.status='';
this.pageIndex =1;
this.query(); this.query();
this.isSearh = false; this.isSearh = false;
}, },

View File

@@ -29,7 +29,7 @@
clearable></el-input> clearable></el-input>
</el-col> </el-col>
<el-col :span="14"> <el-col :span="14">
<el-button type="primary" @click="loadData(1)" style="margin-left: 20px" icon="el-icon-search" >搜索</el-button> <el-button type="primary" @click="getsearch(1)" style="margin-left: 20px" icon="el-icon-search" >搜索</el-button>
<el-button icon="el-icon-refresh-right" type="primary" @click="reset"> 重置 </el-button> <el-button icon="el-icon-refresh-right" type="primary" @click="reset"> 重置 </el-button>
<el-button type="primary" @click="addQuestion(1)" style="margin-left: 10px" icon="el-icon-plus"> 添加 </el-button> <el-button type="primary" @click="addQuestion(1)" style="margin-left: 10px" icon="el-icon-plus"> 添加 </el-button>
<div style="display: inline-block;margin-left: 10px;"> <div style="display: inline-block;margin-left: 10px;">
@@ -395,10 +395,16 @@ export default {
} }
}) })
}, },
getsearch(){
this.params.pageIndex = 1;
this.loadData(1)
},
reset(){ reset(){
this.params.ownership = [] this.params.ownership = [];
this.params.type = '' this.params.type = '';
this.params.title = '' this.params.title = '';
this.params.pageIndex = 1;
this.loadData(1) this.loadData(1)
}, },
...mapActions({ ...mapActions({

View File

@@ -15,7 +15,7 @@
</el-select> </el-select>
</div> </div>
<div style="padding: 0px 5px;"><el-input placeholder="关键词" v-model="params.keyWord" clearable></el-input></div> <div style="padding: 0px 5px;"><el-input placeholder="关键词" v-model="params.keyWord" clearable></el-input></div>
<div style="padding: 0px 5px;"><el-button icon="el-icon-search" @click="searchData" type="primary" >搜索</el-button></div> <div style="padding: 0px 5px;"><el-button icon="el-icon-search" @click="getsearch" type="primary" >搜索</el-button></div>
<div style="padding: 0px 5px;"><el-button icon="el-icon-refresh-right" type="primary" @click="reset">重置</el-button></div> <div style="padding: 0px 5px;"><el-button icon="el-icon-refresh-right" type="primary" @click="reset">重置</el-button></div>
<div style="padding-left:5px;"><el-button icon="el-icon-plus" type="primary" @click="addPaper()" >新建试卷</el-button></div> <div style="padding-left:5px;"><el-button icon="el-icon-plus" type="primary" @click="addPaper()" >新建试卷</el-button></div>
</div> </div>
@@ -427,10 +427,15 @@ export default {
} }
}) })
}, },
getsearch(){
this.params.pageIndex = 1;
this.searchData();
},
reset(){ reset(){
this.ownership = [] this.ownership = []
this.params.paperType = '' this.params.paperType = ''
this.params.keyWord = '' this.params.keyWord = ''
this.params.pageIndex = 1;
this.searchData(); this.searchData();
}, },
...mapActions({ ...mapActions({

View File

@@ -22,7 +22,7 @@
</el-select> </el-select>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-button type="primary" @click="searchData()" icon="el-icon-search">搜索</el-button> <el-button type="primary" @click="getsearch()" icon="el-icon-search">搜索</el-button>
<el-button icon="el-icon-refresh-right" type="primary" @click="reset">重置</el-button> <el-button icon="el-icon-refresh-right" type="primary" @click="reset">重置</el-button>
</el-col> </el-col>
</el-row> </el-row>
@@ -289,6 +289,10 @@ export default {
this.loadSysTypes(); this.loadSysTypes();
}, },
methods: { methods: {
getsearch(){
this.params.pageIndex= 1;
this.searchData();
},
reset(){ reset(){
this.resOwner = '' this.resOwner = ''
this.params.sysType = '' this.params.sysType = ''
@@ -300,6 +304,7 @@ export default {
this.params.sysType1 = ''; this.params.sysType1 = '';
this.params.sysType2 = ''; this.params.sysType2 = '';
this.params.sysType3 = ''; this.params.sysType3 = '';
this.params.pageIndex= 1;
this.searchData(); this.searchData();
}, },
...mapActions({ ...mapActions({

View File

@@ -23,7 +23,7 @@
</el-select> </el-select>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<el-button type="primary" @click="searchData()" icon="el-icon-search">搜索</el-button> <el-button type="primary" @click="getsearch()" icon="el-icon-search">搜索</el-button>
<el-button icon="el-icon-refresh-right" type="primary" @click="reset">重置</el-button> <el-button icon="el-icon-refresh-right" type="primary" @click="reset">重置</el-button>
</el-col> </el-col>
</el-row> </el-row>
@@ -235,6 +235,10 @@ export default {
}, },
methods: { methods: {
getsearch(){
this.params.pageIndex = 1;
this.searchData();
},
reset(){ reset(){
this.resOwner = '' this.resOwner = ''
this.params.sysType = '' this.params.sysType = ''
@@ -246,6 +250,7 @@ export default {
this.params.sysType1 = ''; this.params.sysType1 = '';
this.params.sysType2 = ''; this.params.sysType2 = '';
this.params.sysType3 = ''; this.params.sysType3 = '';
this.params.pageIndex = 1;
this.searchData(); this.searchData();
}, },
...mapActions({ ...mapActions({

View File

@@ -21,7 +21,7 @@
</div> </div>
</div> </div>
<div style="margin-top:10px;padding: 0px 5px;"> <div style="margin-top:10px;padding: 0px 5px;">
<el-button icon="el-icon-search" type="primary" @click="loadData(1)">搜索</el-button> <el-button icon="el-icon-search" type="primary" @click="getsearch()">搜索</el-button>
<el-button icon="el-icon-refresh-right" type="primary" @click="reset">重置</el-button> <el-button icon="el-icon-refresh-right" type="primary" @click="reset">重置</el-button>
<el-button icon="el-icon-circle-plus-outline" type="primary" @click="openDialog">新建教师</el-button> <el-button icon="el-icon-circle-plus-outline" type="primary" @click="openDialog">新建教师</el-button>
<el-button icon="el-icon-folder-opened" type="primary" @click="exportsExcel">导出</el-button> <el-button icon="el-icon-folder-opened" type="primary" @click="exportsExcel">导出</el-button>
@@ -297,9 +297,14 @@
}); });
this.levelData=array; this.levelData=array;
}, },
getsearch(){
this.pageIndex = 1;
this.loadData(1);
},
reset (){ reset (){
this.queryName = ''; this.queryName = '';
this.$refs.teacherTable.clearFilter(); this.$refs.teacherTable.clearFilter();
this.pageIndex = 1;
this.loadData(1); this.loadData(1);
}, },
openDialog(){ openDialog(){

View File

@@ -128,8 +128,10 @@
}, },
methods: { methods: {
reset(){ reset(){
this.page.pageIndex = 1;
this.query.name = '' this.query.name = ''
this.query.status = '' this.query.status = ''
this.loadData(this.page,this.query); this.loadData(this.page,this.query);
}, },
handleSizePushChange(val){ handleSizePushChange(val){

View File

@@ -32,7 +32,7 @@
</el-select> </el-select>
</div> </div>
<div style="padding: 0px 10px;"><el-input placeholder="请输入标题" v-model="queryObj.keyword" clearable></el-input></div> <div style="padding: 0px 10px;"><el-input placeholder="请输入标题" v-model="queryObj.keyword" clearable></el-input></div>
<el-button icon="el-icon-search" @click="getQaList" type="primary" >搜索</el-button> <el-button icon="el-icon-search" @click="search" type="primary" >搜索</el-button>
<el-button icon="el-icon-refresh-right" type="primary" @click="reset">重置</el-button> <el-button icon="el-icon-refresh-right" type="primary" @click="reset">重置</el-button>
</div> </div>
<div style="display: flex;justify-content:flex-start;align-items: center;margin-top:10px"> <div style="display: flex;justify-content:flex-start;align-items: center;margin-top:10px">
@@ -163,13 +163,17 @@ export default {
} }
}, },
methods: { methods: {
search(){
this.queryObj.pageIndex = 1;
this.getQaList();
},
reset(){ reset(){
this.queryObj.orderField = '' this.queryObj.orderField = ''
this.queryObj.status = '' this.queryObj.status = ''
this.queryObj.isResolve = '' this.queryObj.isResolve = ''
this.queryObj.keyword = '' this.queryObj.keyword = ''
this.queryObj.isEssence = '' this.queryObj.isEssence = ''
this.queryObj.pageIndex = 1;
this.getQaList(); this.getQaList();
}, },
//查询问答列表数据 //查询问答列表数据

View File

@@ -94,12 +94,14 @@ export default {
reset(){ reset(){
this.queryObj.keyWord = '', this.queryObj.keyWord = '',
this.queryObj.isResolve = '' this.queryObj.isResolve = '';
this.queryObj.pageIndex =1;
this.getData(); this.getData();
this.isSearh = false; this.isSearh = false;
}, },
getList() { getList() {
this.isSearh = true; this.isSearh = true;
this.queryObj.pageIndex =1;
this.getData(); this.getData();
}, },
//获取列表数据 //获取列表数据

View File

@@ -85,6 +85,7 @@ export default {
}, },
methods: { methods: {
getList() { getList() {
this.queryObj.pageIndex = 1;
this.isSearh = true; this.isSearh = true;
this.getData(); this.getData();
}, },
@@ -104,6 +105,7 @@ export default {
}); });
}, },
reset(){ reset(){
this.queryObj.pageIndex = 1;
this.queryObj.keyWord = ''; this.queryObj.keyWord = '';
this.queryObj.isResolve = ''; this.queryObj.isResolve = '';
this.getData(); this.getData();

View File

@@ -116,10 +116,12 @@ export default {
methods: { methods: {
getlist(){ getlist(){
this.dataList.pageIndex = 1;
this.isSearh = true; this.isSearh = true;
this.getData(); this.getData();
}, },
reset(){ reset(){
this.dataList.pageIndex = 1;
this.dataList.send = '' this.dataList.send = ''
this.getData() this.getData()
this.isSearh = false; this.isSearh = false;

View File

@@ -108,10 +108,12 @@ export default {
components: {}, components: {},
methods: { methods: {
getList(){ getList(){
this.dataList.pageIndex = 1;
this.isSearh = true; this.isSearh = true;
this.getData(); this.getData();
}, },
reset(){ reset(){
this.dataList.pageIndex = 1;
this.dataList.send = '' this.dataList.send = ''
this.getData(); this.getData();
this.isSearh = false; this.isSearh = false;

View File

@@ -149,6 +149,9 @@
}, },
methods:{ methods:{
queryData(){ queryData(){
this.qaList.pageIndex = 1;
this.articleList.pageIndex = 1;
this.courseList.pageIndex = 1;
this.isSearh = true; this.isSearh = true;
if (this.tabName == 'qa') { if (this.tabName == 'qa') {
this.findQa(); this.findQa();
@@ -161,6 +164,9 @@
} }
}, },
resData() { resData() {
this.qaList.pageIndex = 1;
this.articleList.pageIndex = 1;
this.courseList.pageIndex = 1;
this.keyword = ''; this.keyword = '';
this.isRead = ''; this.isRead = '';
this.queryData(); this.queryData();

View File

@@ -170,6 +170,9 @@ export default {
}, },
methods: { methods: {
queryData() { queryData() {
this.qaList.pageIndex = 1;
this.articleList.pageIndex = 1;
this.courseList.pageIndex = 1;
this.isSearh= true; this.isSearh= true;
if (this.tabName == 'qa') { if (this.tabName == 'qa') {
this.findQa(); this.findQa();
@@ -185,6 +188,9 @@ export default {
resData() { resData() {
this.keyword = ''; this.keyword = '';
this.isRead = ''; this.isRead = '';
this.qaList.pageIndex = 1;
this.articleList.pageIndex = 1;
this.courseList.pageIndex = 1;
this.queryData(); this.queryData();
this.isSearh= false; this.isSearh= false;
}, },

View File

@@ -7,7 +7,7 @@
<el-col :span="24"> <el-col :span="24">
<el-input clearable placeholder="搜索名称" v-model="keyword"></el-input> <el-input clearable placeholder="搜索名称" v-model="keyword"></el-input>
<el-button type="primary" icon="el-icon-search" @click="findList()">搜索</el-button> <el-button type="primary" icon="el-icon-search" @click="getData()">搜索</el-button>
<el-button type="primary" icon="el-icon-refresh-right" @click="reset">重置</el-button> <el-button type="primary" icon="el-icon-refresh-right" @click="reset">重置</el-button>
</el-col> </el-col>
<el-col :span="8" v-for="(item,index) in testList" :key="index"> <el-col :span="8" v-for="(item,index) in testList" :key="index">
@@ -82,6 +82,10 @@
jumpRouter(item) { jumpRouter(item) {
window.open(`${this.webBaseUrl}/course/boeframe?id=${item.id}&type=quizsummary`) window.open(`${this.webBaseUrl}/course/boeframe?id=${item.id}&type=quizsummary`)
}, },
getData() {
this.page=1;
this.findList();
},
findList(){ findList(){
let params={ let params={
keyword:this.keyword, keyword:this.keyword,
@@ -110,8 +114,9 @@
this.findList() this.findList()
}, },
reset(){ reset(){
this.keyword = '' this.keyword = '';
this.findList(); this.page=1;
this.findList();
}, },
getItem(item){ getItem(item){
if(item.cover[0].url){ if(item.cover[0].url){

View File

@@ -278,6 +278,10 @@ export default {
}, },
methods: { methods: {
queryData() { queryData() {
this.qaList.pageIndex = 1;
this.articleList.pageIndex = 1;
this.courseList.pageIndex = 1;
this.dataList.pageIndex = 1;
this.isSearh = true; this.isSearh = true;
if (this.tabName == 'qa') { if (this.tabName == 'qa') {
this.findQa(); this.findQa();
@@ -296,6 +300,10 @@ export default {
} }
}, },
resData() { resData() {
this.qaList.pageIndex = 1;
this.articleList.pageIndex = 1;
this.courseList.pageIndex = 1;
this.dataList.pageIndex = 1;
this.keyword = ''; this.keyword = '';
this.isRead = ''; this.isRead = '';
this.courseList.type = ''; this.courseList.type = '';