Commit 379095fa by tangjiale

修复Bug

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