mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-07 01:46:42 +08:00
Compare commits
5 Commits
20250708_a
...
250702-add
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
43ca756741 | ||
|
|
6c99555498 | ||
|
|
e6d0281014 | ||
|
|
7713e1f176 | ||
|
|
6efd64644e |
@@ -9,7 +9,7 @@
|
||||
<el-button @click="recordList()" type="primary" icon="el-icon-search">搜索</el-button>
|
||||
</div>
|
||||
<div style="padding: 0px 5px;">
|
||||
<el-button icon="el-icon-refresh-right" @click="keyword = ''" type="primary">重置</el-button>
|
||||
<el-button icon="el-icon-refresh-right" @click="reset()" type="primary">重置</el-button>
|
||||
</div>
|
||||
<div style="padding: 0px 5px;">
|
||||
<el-button type="primary" @click="exportFile()" icon="el-icon-search" size="small" round>导出</el-button>
|
||||
@@ -25,8 +25,9 @@
|
||||
<!-- <div style="padding: 0px 5px;"><el-button icon="el-icon-refresh-right" type="primary" size="small" round>导出学员信息</el-button></div> -->
|
||||
</div>
|
||||
<div style="margin-top:20px;">
|
||||
<el-table :data="pageData" border stripe>
|
||||
<el-table :data="pageData" border stripe style="width: 100%">
|
||||
<el-table-column
|
||||
fixed
|
||||
label="序号"
|
||||
prop="index"
|
||||
width="100px">
|
||||
@@ -252,6 +253,26 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
reset(){
|
||||
let req = {
|
||||
courseName: "",
|
||||
pageNo: this.pageInfo.pageIndex,
|
||||
pageSize: this.pageInfo.pageSize
|
||||
}
|
||||
apiCourse.getListByToken(req).then(res => {
|
||||
if (res.status == 200) {
|
||||
this.pageData = res.data.records;
|
||||
this.pageInfo.pageSize = Number(res.data.size);
|
||||
this.pageInfo.total = Number(res.data.total);
|
||||
this.pageInfo.page = Number(res.data.current);
|
||||
} else {
|
||||
this.$message({
|
||||
type: 'error',
|
||||
message: res.message
|
||||
});
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
// 每页显示的条数事件
|
||||
handleSizeChange(val) {
|
||||
|
||||
@@ -88,9 +88,9 @@
|
||||
<div>
|
||||
<div class="textbut-box">
|
||||
<div style="padding-top: 8px;">
|
||||
<interactBar v-if="item.type == 1" nodeWidth="60px" :readonly="true" :type="6" :data="item" :shares="false" :comments="false" :answers="true" :clickAnswer="true" :views="false"></interactBar>
|
||||
<interactBar v-if="item.type == 1" nodeWidth="60px" :readonly="true" :type="6" :data="item" :shares="false" :comments="true" :answers="false" :clickAnswer="true" :views="false"></interactBar>
|
||||
</div>
|
||||
<el-button @click="deleteNote(item)" style=" margin-right: 10px;" class="textbut" type="text"><svg-icon icon-class="notedel" ></svg-icon>删除</el-button>
|
||||
<el-button @click="deleteNote(item)" style=" margin-right: 10px;margin-left: 15px" class="textbut" type="text"><svg-icon icon-class="notedel" ></svg-icon>删除</el-button>
|
||||
<el-button @click="edit(item)" class="textbut" type="text"><svg-icon icon-class="noteedit" ></svg-icon> 编辑</el-button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -195,9 +195,7 @@ export default {
|
||||
if(num == 1) {
|
||||
this.editdata.isAuto = true;
|
||||
}
|
||||
if(this.imgContent.length > 0) {
|
||||
this.editdata.content = this.imgContent.join();
|
||||
}
|
||||
this.editdata.content = this.imgContent.join();
|
||||
apiNote.update(this.editdata).then(res=>{
|
||||
if(res.status == 200) {
|
||||
localStorage.removeItem(this.localStorageKey); //清空本地缓存
|
||||
|
||||
Reference in New Issue
Block a user