mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 19:06:43 +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>
|
<el-button @click="recordList()" type="primary" icon="el-icon-search">搜索</el-button>
|
||||||
</div>
|
</div>
|
||||||
<div style="padding: 0px 5px;">
|
<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>
|
||||||
<div style="padding: 0px 5px;">
|
<div style="padding: 0px 5px;">
|
||||||
<el-button type="primary" @click="exportFile()" icon="el-icon-search" size="small" round>导出</el-button>
|
<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 style="padding: 0px 5px;"><el-button icon="el-icon-refresh-right" type="primary" size="small" round>导出学员信息</el-button></div> -->
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-top:20px;">
|
<div style="margin-top:20px;">
|
||||||
<el-table :data="pageData" border stripe>
|
<el-table :data="pageData" border stripe style="width: 100%">
|
||||||
<el-table-column
|
<el-table-column
|
||||||
|
fixed
|
||||||
label="序号"
|
label="序号"
|
||||||
prop="index"
|
prop="index"
|
||||||
width="100px">
|
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) {
|
handleSizeChange(val) {
|
||||||
|
|||||||
@@ -88,9 +88,9 @@
|
|||||||
<div>
|
<div>
|
||||||
<div class="textbut-box">
|
<div class="textbut-box">
|
||||||
<div style="padding-top: 8px;">
|
<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>
|
</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>
|
<el-button @click="edit(item)" class="textbut" type="text"><svg-icon icon-class="noteedit" ></svg-icon> 编辑</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -195,9 +195,7 @@ export default {
|
|||||||
if(num == 1) {
|
if(num == 1) {
|
||||||
this.editdata.isAuto = true;
|
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=>{
|
apiNote.update(this.editdata).then(res=>{
|
||||||
if(res.status == 200) {
|
if(res.status == 200) {
|
||||||
localStorage.removeItem(this.localStorageKey); //清空本地缓存
|
localStorage.removeItem(this.localStorageKey); //清空本地缓存
|
||||||
|
|||||||
Reference in New Issue
Block a user