Commit 05595e8f authored by wangwei's avatar wangwei

上传最大时间修改 打包

parent a5defc82
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta name=referrer content=never><link rel=stylesheet href=https://at.alicdn.com/t/font_746649_7dsnjecwkpg.css><title>唱唱启蒙-后台</title><link href=/static/css/app.91ebf43f2430658a7d3994c68fc43506.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/static/js/manifest.30d8f4b4acb905dcb31b.js></script><script type=text/javascript src=/static/js/vendor.9122c146b78876133e6f.js></script><script type=text/javascript src=/static/js/app.e2a2bd2e3d79c9d8a333.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta name=referrer content=never><link rel=stylesheet href=https://at.alicdn.com/t/font_746649_7dsnjecwkpg.css><title>唱唱启蒙-后台</title><link href=/static/css/app.3e8fd391de029b654288c8e1051b84d6.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/static/js/manifest.87b008980ec4cce9cfc8.js></script><script type=text/javascript src=/static/js/vendor.9122c146b78876133e6f.js></script><script type=text/javascript src=/static/js/app.e34331e88af91f274670.js></script></body></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([20],{Uj1Q:function(t,e){},XxBP:function(t,e){},"sg/1":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=s("CCn6"),o=(s("+TkF"),{name:"dialogObj",props:["dialogObj"],data:function(){return{show:!1,id:"",title:"",loading:!0,form:{key:"no_lesson_date",value:"no_lesson_date",desc:[]},noLessonDate:[],rules:{noLessonDate:[{required:!0,message:"请选择日期",trigger:"change"}]},pickerOptions1:{disabledDate:function(t){return!(t.getTime()>Date.now())}}}},components:{page:s("kmJW").a},methods:{save:function(){var t=this;if(0!==this.noLessonDate.length){var e={key:this.form.key,value:this.form.value},s=this.form.desc||[];this.noLessonDate.length>0&&(s=s.concat(this.noLessonDate),s=this.dedupe(s)),e.desc=JSON.stringify(s),this.id?Object(i._41)(this.id,e).then(function(e){t.$message({type:"success",message:"新增成功!"}),t.noLessonDate=s,t.$emit("reflash"),t.show=!1}):Object(i._35)(e).then(function(e){t.$message({type:"success",message:"新增成功!"}),t.noLessonDate=s,t.$emit("reflash"),t.show=!1})}else this.$message({type:"error",message:"请选择不上课时间!"})},initDialog:function(){this.show=this.dialogObj.show,this.dialogObj.id&&(this.id=this.dialogObj.id),this.title=this.dialogObj.title,this.form.desc=this.dialogObj.desc,this.noLessonDate=this.form.desc,this.loading=!1},dedupe:function(t){return Array.from(new Set(t))}},watch:{dialogObj:{handler:function(){this.loading=!0,this.initDialog()},deep:!0},show:function(t){this.$emit("changeShow",t)}}}),n={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("el-dialog",{attrs:{title:t.title,center:"","close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,"append-to-body":"",visible:t.show,width:"800px"},on:{"update:visible":function(e){t.show=e}}},[s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[s("el-form",{ref:"form",attrs:{model:t.form,rules:t.rules}},[s("el-row",[s("el-col",{attrs:{span:4}},[s("label",[t._v("不上课日期")])]),t._v(" "),s("el-col",{attrs:{span:20}},[s("el-form-item",[s("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"dates","value-format":"yyyy-MM-dd","picker-options":t.pickerOptions1,placeholder:"选择日期"},model:{value:t.noLessonDate,callback:function(e){t.noLessonDate=e},expression:"noLessonDate"}})],1)],1)],1)],1),t._v(" "),s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(e){t.show=!1}}},[t._v("取 消")]),t._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:t.save}},[t._v("确 定")])],1)],1)])},staticRenderFns:[]};var a={name:"index",data:function(){return{dialogObj:{value:"",desc:"",show:!1,id:""},list:[],id:""}},components:{dialogCom:s("VU/8")(o,n,!1,function(t){s("Uj1Q")},"data-v-e9aa269a",null).exports},mounted:function(){this.getList()},methods:{changeShow:function(t){this.dialogObj.show=t},getList:function(){var t=this;Object(i._8)({key:"no_lesson_date"}).then(function(e){if(e.list.length>0){var s=e.list[0].desc;t.id=e.list[0].id,t.list=s?JSON.parse(s):[]}})},add:function(){this.dialogObj.title="添加不上课日期",this.dialogObj.desc=this.list||[],this.dialogObj.show=!0,this.list.length>0?this.dialogObj.id=this.id:this.dialogObj.id=""},edit:function(t){var e=this;Object(i._7)(t.id).then(function(t){e.dialogObj.title="修改不上课日期",e.dialogObj.desc=t.desc,e.dialogObj.show=!0})},del:function(t){var e=this;this.$confirm("此操作将删除该记录?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var s={key:"no_lesson_date",value:"no_lesson_date"},o=[];e.list.forEach(function(e){e!==t&&o.push(e)}),s.desc=JSON.stringify(o),Object(i._41)(e.id,s).then(function(t){e.$message({type:"success",message:"删除成功!"}),e.getList()})})}}},l={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{classs:"noLesson"}},[s("el-row",{staticClass:"add-btn",attrs:{type:"flex",justify:"end"}},[s("el-col",{attrs:{span:6}},[t.$store.state.readonly?t._e():s("el-button",{attrs:{type:"success",plain:""},on:{click:t.add}},[t._v("添加不上课日期")])],1)],1),t._v(" "),s("div",{staticClass:"card"},t._l(t.list,function(e,i){return s("el-card",{key:i,attrs:{"body-style":{padding:"0px"}}},[s("span",{staticClass:"time"},[t._v(t._s(e))]),t._v(" "),s("div",{staticClass:"bottom clearfix"},[t.$store.state.deletePermission&&!t.$store.state.readonly?s("el-button",{staticClass:"button",attrs:{type:"text"},on:{click:function(s){t.del(e)}}},[t._v("删除")]):t._e()],1)])})),t._v(" "),s("dialog-com",{attrs:{dialogObj:t.dialogObj},on:{changeShow:t.changeShow,reflash:t.getList}})],1)},staticRenderFns:[]};var d=s("VU/8")(a,l,!1,function(t){s("XxBP")},"data-v-4c22ba2e",null);e.default=d.exports}});
\ No newline at end of file
webpackJsonp([19],{Uj1Q:function(t,e){},XxBP:function(t,e){},"sg/1":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=s("CCn6"),o=(s("+TkF"),{name:"dialogObj",props:["dialogObj"],data:function(){return{show:!1,id:"",title:"",loading:!0,form:{key:"no_lesson_date",value:"no_lesson_date",desc:[]},noLessonDate:[],rules:{noLessonDate:[{required:!0,message:"请选择日期",trigger:"change"}]},pickerOptions1:{disabledDate:function(t){return!(t.getTime()>Date.now())}}}},components:{page:s("kmJW").a},methods:{save:function(){var t=this;if(0!==this.noLessonDate.length){var e={key:this.form.key,value:this.form.value},s=this.form.desc||[];this.noLessonDate.length>0&&(s=s.concat(this.noLessonDate),s=this.dedupe(s)),e.desc=JSON.stringify(s),this.id?Object(i._41)(this.id,e).then(function(e){t.$message({type:"success",message:"新增成功!"}),t.noLessonDate=s,t.$emit("reflash"),t.show=!1}):Object(i._35)(e).then(function(e){t.$message({type:"success",message:"新增成功!"}),t.noLessonDate=s,t.$emit("reflash"),t.show=!1})}else this.$message({type:"error",message:"请选择不上课时间!"})},initDialog:function(){this.show=this.dialogObj.show,this.dialogObj.id&&(this.id=this.dialogObj.id),this.title=this.dialogObj.title,this.form.desc=this.dialogObj.desc,this.noLessonDate=this.form.desc,this.loading=!1},dedupe:function(t){return Array.from(new Set(t))}},watch:{dialogObj:{handler:function(){this.loading=!0,this.initDialog()},deep:!0},show:function(t){this.$emit("changeShow",t)}}}),n={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("el-dialog",{attrs:{title:t.title,center:"","close-on-click-modal":!1,"close-on-press-escape":!1,"show-close":!1,"append-to-body":"",visible:t.show,width:"800px"},on:{"update:visible":function(e){t.show=e}}},[s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[s("el-form",{ref:"form",attrs:{model:t.form,rules:t.rules}},[s("el-row",[s("el-col",{attrs:{span:4}},[s("label",[t._v("不上课日期")])]),t._v(" "),s("el-col",{attrs:{span:20}},[s("el-form-item",[s("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"dates","value-format":"yyyy-MM-dd","picker-options":t.pickerOptions1,placeholder:"选择日期"},model:{value:t.noLessonDate,callback:function(e){t.noLessonDate=e},expression:"noLessonDate"}})],1)],1)],1)],1),t._v(" "),s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:function(e){t.show=!1}}},[t._v("取 消")]),t._v(" "),s("el-button",{attrs:{type:"primary"},on:{click:t.save}},[t._v("确 定")])],1)],1)])},staticRenderFns:[]};var a={name:"index",data:function(){return{dialogObj:{value:"",desc:"",show:!1,id:""},list:[],id:""}},components:{dialogCom:s("VU/8")(o,n,!1,function(t){s("Uj1Q")},"data-v-e9aa269a",null).exports},mounted:function(){this.getList()},methods:{changeShow:function(t){this.dialogObj.show=t},getList:function(){var t=this;Object(i._8)({key:"no_lesson_date"}).then(function(e){if(e.list.length>0){var s=e.list[0].desc;t.id=e.list[0].id,t.list=s?JSON.parse(s):[]}})},add:function(){this.dialogObj.title="添加不上课日期",this.dialogObj.desc=this.list||[],this.dialogObj.show=!0,this.list.length>0?this.dialogObj.id=this.id:this.dialogObj.id=""},edit:function(t){var e=this;Object(i._7)(t.id).then(function(t){e.dialogObj.title="修改不上课日期",e.dialogObj.desc=t.desc,e.dialogObj.show=!0})},del:function(t){var e=this;this.$confirm("此操作将删除该记录?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var s={key:"no_lesson_date",value:"no_lesson_date"},o=[];e.list.forEach(function(e){e!==t&&o.push(e)}),s.desc=JSON.stringify(o),Object(i._41)(e.id,s).then(function(t){e.$message({type:"success",message:"删除成功!"}),e.getList()})})}}},l={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{classs:"noLesson"}},[s("el-row",{staticClass:"add-btn",attrs:{type:"flex",justify:"end"}},[s("el-col",{attrs:{span:6}},[t.$store.state.readonly?t._e():s("el-button",{attrs:{type:"success",plain:""},on:{click:t.add}},[t._v("添加不上课日期")])],1)],1),t._v(" "),s("div",{staticClass:"card"},t._l(t.list,function(e,i){return s("el-card",{key:i,attrs:{"body-style":{padding:"0px"}}},[s("span",{staticClass:"time"},[t._v(t._s(e))]),t._v(" "),s("div",{staticClass:"bottom clearfix"},[t.$store.state.deletePermission&&!t.$store.state.readonly?s("el-button",{staticClass:"button",attrs:{type:"text"},on:{click:function(s){t.del(e)}}},[t._v("删除")]):t._e()],1)])})),t._v(" "),s("dialog-com",{attrs:{dialogObj:t.dialogObj},on:{changeShow:t.changeShow,reflash:t.getList}})],1)},staticRenderFns:[]};var d=s("VU/8")(a,l,!1,function(t){s("XxBP")},"data-v-4c22ba2e",null);e.default=d.exports}});
\ No newline at end of file
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(n,t,f){for(var o,d,b,i=0,u=[];i<n.length;i++)d=n[i],r[d]&&u.push(r[d][0]),r[d]=0;for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);for(c&&c(n,t,f);u.length;)u.shift()();if(f)for(i=0;i<f.length;i++)b=a(a.s=f[i]);return b};var n={},r={32:0};function a(c){if(n[c])return n[c].exports;var r=n[c]={i:c,l:!1,exports:{}};return e[c].call(r.exports,r,r.exports,a),r.l=!0,r.exports}a.e=function(e){var c=r[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var n=new Promise(function(n,a){c=r[e]=[n,a]});c[2]=n;var t=document.getElementsByTagName("head")[0],f=document.createElement("script");f.type="text/javascript",f.charset="utf-8",f.async=!0,f.timeout=12e4,a.nc&&f.setAttribute("nonce",a.nc),f.src=a.p+"static/js/"+e+"."+{0:"529dcb32d4c1f79c23fb",1:"afba16b3a43579d5de6c",2:"84cc0010d0f726d93f86",3:"0dafcb0ea0cf935dff6f",4:"f7de107bf23fce922b15",5:"12a3b18df98e02ea6761",6:"b59399601ad2e2ec7101",7:"71b0f7f78e6058ebd867",8:"5eca2da1cf8434da8e1b",9:"387bba79672c0c643354",10:"4be1c084171d9587498e",11:"a2b5ce01f33684424f99",12:"ef6d1b3aaeb67f7c8614",13:"04e52c666ac689edb671",14:"64683d98ff4c9f40b9be",15:"c8bf887e330b8a0c7003",16:"251d868c80b36a7a57e4",17:"798e6aeec45834447890",18:"07404b3185783ca0154a",19:"9bab581cbcf327884820",20:"1551deaf9cdfa5e77612",21:"c8df5ca35fe9b50b7a0f",22:"d3047d353e8cd669c4d8",23:"b8b87c2c0398dcd5dd61",24:"90d04444787e956de3bc",25:"367b40a9ce3cf148b0ba",26:"5fc8047e466bbf8dda1f",27:"e5238e96ba3f9c97327a",28:"e469d5671f79a4684dc7",29:"40d2a54219d00fb17cc8"}[e]+".js";var o=setTimeout(d,12e4);function d(){f.onerror=f.onload=null,clearTimeout(o);var c=r[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),r[e]=void 0)}return f.onerror=f.onload=d,t.appendChild(f),n},a.m=e,a.c=n,a.d=function(e,c,n){a.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:n})},a.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(c,"a",c),c},a.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},a.p="/",a.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(n,a,o){for(var f,d,b,i=0,u=[];i<n.length;i++)d=n[i],r[d]&&u.push(r[d][0]),r[d]=0;for(f in a)Object.prototype.hasOwnProperty.call(a,f)&&(e[f]=a[f]);for(c&&c(n,a,o);u.length;)u.shift()();if(o)for(i=0;i<o.length;i++)b=t(t.s=o[i]);return b};var n={},r={32:0};function t(c){if(n[c])return n[c].exports;var r=n[c]={i:c,l:!1,exports:{}};return e[c].call(r.exports,r,r.exports,t),r.l=!0,r.exports}t.e=function(e){var c=r[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var n=new Promise(function(n,t){c=r[e]=[n,t]});c[2]=n;var a=document.getElementsByTagName("head")[0],o=document.createElement("script");o.type="text/javascript",o.charset="utf-8",o.async=!0,o.timeout=12e4,t.nc&&o.setAttribute("nonce",t.nc),o.src=t.p+"static/js/"+e+"."+{0:"621c0dc5310832fc1ddf",1:"afba16b3a43579d5de6c",2:"0d81860913e84491e61f",3:"5b5c1e30bf2097859266",4:"f7de107bf23fce922b15",5:"67468f61a9c4d82de135",6:"9056277736ee3b03c82f",7:"71b0f7f78e6058ebd867",8:"5eca2da1cf8434da8e1b",9:"387bba79672c0c643354",10:"4be1c084171d9587498e",11:"a2b5ce01f33684424f99",12:"ef6d1b3aaeb67f7c8614",13:"04e52c666ac689edb671",14:"64683d98ff4c9f40b9be",15:"c8bf887e330b8a0c7003",16:"251d868c80b36a7a57e4",17:"798e6aeec45834447890",18:"07404b3185783ca0154a",19:"430414afe312ddc3dc79",20:"7138a805a44d4f37d72e",21:"c8df5ca35fe9b50b7a0f",22:"d3047d353e8cd669c4d8",23:"b8b87c2c0398dcd5dd61",24:"90d04444787e956de3bc",25:"367b40a9ce3cf148b0ba",26:"5fc8047e466bbf8dda1f",27:"e5238e96ba3f9c97327a",28:"e469d5671f79a4684dc7",29:"40d2a54219d00fb17cc8"}[e]+".js";var f=setTimeout(d,12e4);function d(){o.onerror=o.onload=null,clearTimeout(f);var c=r[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),r[e]=void 0)}return o.onerror=o.onload=d,a.appendChild(o),n},t.m=e,t.c=n,t.d=function(e,c,n){t.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(c,"a",c),c},t.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},t.p="/",t.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
......@@ -331,7 +331,7 @@
this.refundDialogObj.show=data
},
onRefund(id, money){
console.log('onRefund', id, money)
console.log('onRefund', id, money);
this.refundDialogObj.id= id;
this.refundDialogObj.money= money;
this.refundDialogObj.show = true;
......
......@@ -172,7 +172,7 @@
action="/api/public/upload"
:limit="1"
:file-list="form.share_desc.img"
:http-request="uploadFileMain">
:http-request="uploadFileMainShare">
<i class="el-icon-plus"></i>
</el-upload>
</el-form-item>
......@@ -292,6 +292,19 @@
})
},
uploadFileMainShare(a){
this.$store.dispatch('setProgress',{type:'new',id:a.file.uid});
this.fileUid = a.file.uid;
uploadFileApi({file:a.file,type:'local'}).then(res=>{
if(this.form.share_desc.img){
this.form.share_desc.img[0] = {name:res.url,url:process.env.IMAGE_URL_HEAD + res.url,title:'',lable:''}
}else{
this.form.share_desc.img=[];
this.form.share_desc.img[0] = {name:res.url,url:process.env.IMAGE_URL_HEAD + res.url,title:'',lable:''}
}
})
},
uploadFileMainService(a){
this.$store.dispatch('setProgress',{type:'new',id:a.file.uid});
this.fileUid = a.file.uid;
......
......@@ -104,7 +104,7 @@ export function upload(url,json) {
formData.append('file', file);
axios.post(url,formData,{ headers: {
'Content-Type': 'multipart/form-data'
},timeout:100000,
},timeout:10000000,
onUploadProgress: progressEvent => {
if(store.state.progressList.find(i=>{return i.id === json.file.uid})){
let progress = ((Number(progressEvent.loaded) + Number(y*process.env.MAX_FILESIZE)) / Number(json.file.size) * 100| 0);
......
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