Commit 379095fa by tangjiale

修复Bug

parent 182c35a7
......@@ -3,7 +3,7 @@
* @eMail: 932055106@qq.com
* @Date: 2022-06-06 09:28:37
* @LastEditors: tangjiale
* @LastEditTime: 2022-06-14 19:18:12
* @LastEditTime: 2022-06-24 10:03:00
-->
<template>
<div class="add-course-bg">
......@@ -304,15 +304,15 @@ export default {
height: auto !important;
}
.image-ctn{
height: 186px;
width: 300px;
height: 208px;
width: 334px;
object-fit: cover;
object-position: center;
}
.upload-bg{
cursor: pointer;
height: 186px;
width: 300px;
height: 208px;
width: 334px;
border: 1px solid #000000;
.el-icon-plus{
margin-top: 60px;
......
......@@ -150,8 +150,6 @@ export default {
formData.append("file", this.file);
const config = {
onUploadProgress: progressEvent => {
debugger
// progressEvent.loaded:已上传文件大小
// progressEvent.total:被上传文件的总大小
this.progressPercent = Number((progressEvent.loaded / progressEvent.total * 100).toFixed(2))
......
......@@ -3,7 +3,7 @@
* @eMail: 932055106@qq.com
* @Date: 2022-06-02 14:08:46
* @LastEditors: tangjiale
* @LastEditTime: 2022-06-16 18:29:27
* @LastEditTime: 2022-06-24 09:52:32
-->
<template>
<div class="page-bg">
......@@ -52,7 +52,7 @@ export default {
ds: [{name:'全部',value:''}, {name:'基础班',value:1},{name:'提高班',value:2},{name:'精英班',value:3},{name:'赛事班',value:4}]
},{
label: '课程类型:', field: 'type', type: 'select',autoSelect:true,required:true,
ds: [{name:'全部',value:''}, {name:'体验课',value:1}, {name:'正式班课',value:0}]
ds: [{name:'全部',value:''}, {name:'体验课',value:2}, {name:'正式班课',value:1}]
},{
label: '课程状态:', field: 'status', type: 'select',autoSelect:true,required:true,
ds: [{name:'全部',value:''}, {name:'已发布',value:1}, {name:'未发布',value:0}]
......
......@@ -3,7 +3,7 @@
* @eMail: 932055106@qq.com
* @Date: 2022-06-16 16:01:31
* @LastEditors: tangjiale
* @LastEditTime: 2022-06-20 16:34:08
* @LastEditTime: 2022-06-24 09:47:13
-->
<template>
......@@ -48,7 +48,7 @@ export default {
ds: {service:'base',func:'getUserAllSchList',params:{all:true}}
},{
label: '课程类型:', field: 'type', type: 'select',autoSelect:true,required:true,
ds: [{name:'全部',value:''}, {name:'体验课',value:1}, {name:'正式班课',value:0}]
ds: [{name:'全部',value:''}, {name:'体验课',value:2}, {name:'正式班课',value:1}]
},{
placeholder: "请输入学生姓名 ",field: "stuName",type: "text",label: "",
},{
......@@ -119,7 +119,7 @@ export default {
...this.params,
};
delete param.undefined
let failName = `体验课订单列表${
let failName = `销课记录列表${
param.startDate ? param.startDate + "-" + param.endDate : ""
}`;
this.$service.course
......
......@@ -44,6 +44,8 @@ export default class Service {
});
}
let o = {
...options,
...{
url: options.url,
method: options.method,
timeout: options.timeout || 5000,
......@@ -51,6 +53,7 @@ export default class Service {
...options.headers || {},
'content-type': CONTENT_TYPE_MAP[ options.contentType || 'json'.toLowerCase() ]
}
}
};
if (options.downloadFile || options.playAudio) { // 下载文件
o.responseType = 'blob';
......@@ -133,7 +136,6 @@ export default class Service {
* 请求之后处理
*/
sendAfter (options) {
const _sendTo = options => {
let promise = this.sendTo(options);
if (options.lock) {
......
......@@ -3,7 +3,7 @@
* @eMail: 932055106@qq.com
* @Date: 2022-06-11 14:08:04
* @LastEditors: tangjiale
* @LastEditTime: 2022-06-11 14:13:27
* @LastEditTime: 2022-06-24 09:09:09
*/
/**
* http基础类
......
......@@ -3,7 +3,7 @@
* @eMail: 932055106@qq.com
* @Date: 2022-02-11 09:23:35
* @LastEditors: tangjiale
* @LastEditTime: 2022-06-11 14:08:51
* @LastEditTime: 2022-06-24 09:09:01
*/
import services from '../plugins/service'
export default class StudentService extends Service {
......@@ -68,7 +68,7 @@ export default class StudentService extends Service {
//学生导入
downloadRecordImport(param,config = {}){
return services.post({
return this.post({
url: '/student/studentImport',
data: param,
progress:true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment