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