内容样式
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -386,7 +386,7 @@ export default {
|
||||
console.log("🚀 ~ .then ~ progress888:", progress);
|
||||
return progress;
|
||||
},
|
||||
handleRequest(option) {
|
||||
handleRequest(option) {
|
||||
var that = this;
|
||||
const { onProgress, onSuccess, onError } = option;
|
||||
this.progressPercent = 0;
|
||||
@@ -400,7 +400,7 @@ export default {
|
||||
|
||||
this.isUpload = true;
|
||||
|
||||
axios
|
||||
axios
|
||||
.post(this.baseUrl + "/oss/fileoss/uploadFileSchedule", formdata)
|
||||
.then((res) => {
|
||||
console.log("🚀 ~ this.$axios.post ~ res111:", res);
|
||||
@@ -415,11 +415,10 @@ export default {
|
||||
that.fileList[that.fileList.length - 1].ststus = "error";
|
||||
onError();
|
||||
}
|
||||
|
||||
});
|
||||
// var prom = new Promise((resolve, reject) => {});
|
||||
// prom.abort = () => {};
|
||||
// return prom;
|
||||
});
|
||||
// var prom = new Promise((resolve, reject) => {});
|
||||
// prom.abort = () => {};
|
||||
// return prom;
|
||||
},
|
||||
|
||||
// 文件上传时的钩子函数,获取上传进度
|
||||
@@ -580,6 +579,10 @@ export default {
|
||||
addOreEditCate() {
|
||||
this.$refs["addFormRef"].validate((valid) => {
|
||||
if (valid) {
|
||||
if (this.isUpload) {
|
||||
this.$message.error("文件正在上传中,请稍后...");
|
||||
return false;
|
||||
}
|
||||
this.$http({
|
||||
url: this.$http.adornUrl("/book/medicaldes/saveOrUpdateLight"),
|
||||
method: "post",
|
||||
|
||||
Reference in New Issue
Block a user