mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 03:46:44 +08:00
Merge branch 'dai-master'
This commit is contained in:
@@ -86,7 +86,7 @@ export default {
|
||||
// 文件类型, 例如['png', 'jpg', 'jpeg']
|
||||
fileType: {
|
||||
type: Array,
|
||||
default: () => ["doc", "xls", "ppt","docx", "xlsx", "pptx","png","txt", "pdf","jpg","gif","bmp","mp4","mp3","zip"],
|
||||
default: () => ["doc", "xls", "ppt","docx", "xlsx", "pptx","png", "pdf","jpg","gif","mp4","mp3","zip"],
|
||||
},
|
||||
// 是否显示提示
|
||||
isShowTip: {
|
||||
|
||||
@@ -135,7 +135,7 @@
|
||||
<el-button v-if="!forChoose && scope.row.published" @click="showManageStudy(scope.row)" type="text" size="mini">管理</el-button>
|
||||
<el-button v-if="!forChoose && scope.row.status == 2" @click="withdraw(scope.row)" type="text" size="mini">撤回</el-button>
|
||||
<el-button v-if="scope.row.status != 2" type="text" size="mini" @click="editCurriculum(scope.row)">编辑</el-button>
|
||||
<el-button v-if="scope.row.status != 2 && !scope.row.published" type="text" size="mini" @click="delItem(scope.row)">删除</el-button>
|
||||
<el-button v-if="(scope.row.status != 2 && !scope.row.published) || !scope.row.enabled" type="text" size="mini" @click="delItem(scope.row)">删除</el-button>
|
||||
<el-dropdown v-if="scope.row.published" type="text" size="mini" style="margin-left:10px">
|
||||
<el-button type="text" size="mini">更多<i class="el-icon-arrow-down el-icon--right"></i></el-button>
|
||||
<el-dropdown-menu slot="dropdown">
|
||||
|
||||
@@ -477,7 +477,7 @@ export default {
|
||||
oneList:[], //一级分类{type:11}
|
||||
twoList:[], //二级分类{type:12}
|
||||
threeList:[],//三级分类{type:13}
|
||||
|
||||
searching:false,//是否正在搜索中
|
||||
resonimg:{},
|
||||
formatDate,
|
||||
formatNum:formatUserNumber,
|
||||
@@ -492,6 +492,7 @@ export default {
|
||||
// 查询信息
|
||||
course: {
|
||||
orderField: "studys",
|
||||
companyId:'',
|
||||
keyword:'',//关键词
|
||||
topOrder: true,
|
||||
orderAsc: false,
|
||||
@@ -1036,6 +1037,12 @@ export default {
|
||||
return list;
|
||||
},
|
||||
async search() {
|
||||
//
|
||||
if(this.searching){
|
||||
this.$message.warning("正在搜索中,请待搜索完成后再重新搜索");
|
||||
return;
|
||||
}
|
||||
this.searching=true;
|
||||
//测试时间格式化
|
||||
// let s=1650973801;
|
||||
// var d = new Date(1650973801*1000);
|
||||
@@ -1050,7 +1057,7 @@ export default {
|
||||
this.course.audiences=this.audiences.join(",");
|
||||
}
|
||||
//console.log(this.userInfo)
|
||||
//this.course.companyId=this.userInfo.companyId;
|
||||
this.course.companyId=this.userInfo.companyId;
|
||||
this.course.type = "";//不使用单查询了
|
||||
this.course.types = "";
|
||||
this.course.sysType1 = "";
|
||||
@@ -1084,6 +1091,7 @@ export default {
|
||||
// 隐藏loadMore
|
||||
this.moreState = 2;
|
||||
await apiCoursePortal.courseSearch(this.course).then(res => {
|
||||
this.searching=false;
|
||||
if (res.status == 200 && res.result.list.length > 0) {
|
||||
this.totalPages = res.result.totalPages;
|
||||
res.result.list.forEach(item => {
|
||||
|
||||
@@ -351,6 +351,7 @@ export default {
|
||||
}
|
||||
|
||||
if(this.exportType == '1') {
|
||||
//导出pdf已不再使用
|
||||
apiNote.exportPdf(data).then(res=>{
|
||||
const link = document.createElement('a');// 创建a标签
|
||||
let blob = new Blob([res],{type: 'application/vnd.ms-pdf;charset=UTF-8'}); // 设置文件类型
|
||||
|
||||
Reference in New Issue
Block a user