server_commit
This commit is contained in:
@@ -654,9 +654,15 @@
|
|||||||
const i = this.formData.hdlb_i
|
const i = this.formData.hdlb_i
|
||||||
|
|
||||||
if (flag === true) {
|
if (flag === true) {
|
||||||
if (this.fd[i].imgList.length === 0) {
|
/*if (this.fd[i].imgList.length === 0) {
|
||||||
this.$toast.fail("请您选择要上传的作品!")
|
this.$toast.fail("请您选择要上传的作品!")
|
||||||
return
|
return
|
||||||
|
}*/
|
||||||
|
if (this.chooseLb.isUploadPhoto === true || this.chooseLb.isUploadOther === true || this.chooseLb.isUploadZip === true) {
|
||||||
|
if (this.fd[i].videoList.length === 0 || this.fd[i].imgList.length === 0 || this.fd[i].zipList.length === 0) {
|
||||||
|
this.$toast.fail("请您选择要上传的作品!")
|
||||||
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (!this.fd[i].zplb || !this.fd[i].zpmc || !this.fd[i].zpms) {
|
if (!this.fd[i].zplb || !this.fd[i].zpmc || !this.fd[i].zpms) {
|
||||||
this.$toast.fail("请您填写完整再提交!")
|
this.$toast.fail("请您填写完整再提交!")
|
||||||
|
|||||||
@@ -761,15 +761,21 @@ layout("/layouts/platform.html"){
|
|||||||
let formdata = new FormData();
|
let formdata = new FormData();
|
||||||
formdata.append("flag", flag);
|
formdata.append("flag", flag);
|
||||||
formdata.append("data", JSON.stringify(this.AddFormData));
|
formdata.append("data", JSON.stringify(this.AddFormData));
|
||||||
|
if(this.picturelist && this.picturelist.length > 0) {
|
||||||
this.picturelist.forEach(val => {
|
this.picturelist.forEach(val => {
|
||||||
formdata.append("file", val.raw);
|
formdata.append("file", val.raw);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
if(this.vadlist && this.vadlist.length > 0) {
|
||||||
this.vadlist.forEach(val => {
|
this.vadlist.forEach(val => {
|
||||||
formdata.append("file", val.raw);
|
formdata.append("file", val.raw);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
if(this.ziplist && this.ziplist.length > 0) {
|
||||||
this.ziplist.forEach(val => {
|
this.ziplist.forEach(val => {
|
||||||
formdata.append("file", val.raw);
|
formdata.append("file", val.raw);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "/platform/hd/jzghd/sczp/doSubmit",
|
url: "/platform/hd/jzghd/sczp/doSubmit",
|
||||||
type: "post",
|
type: "post",
|
||||||
@@ -835,21 +841,27 @@ layout("/layouts/platform.html"){
|
|||||||
formdata.append("flag", flag);
|
formdata.append("flag", flag);
|
||||||
formdata.append("data", JSON.stringify(this.EditFormData));
|
formdata.append("data", JSON.stringify(this.EditFormData));
|
||||||
formdata.append("readytodelfile", JSON.stringify(this.readytodelfile));
|
formdata.append("readytodelfile", JSON.stringify(this.readytodelfile));
|
||||||
|
if(this.picturelist && this.picturelist.length > 0) {
|
||||||
this.picturelist.forEach(val => {
|
this.picturelist.forEach(val => {
|
||||||
if (val.status === 'ready') {
|
if (val.status === 'ready') {
|
||||||
formdata.append("file", val.raw);
|
formdata.append("file", val.raw);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
if(this.vadlist && this.vadlist.length > 0) {
|
||||||
this.vadlist.forEach(val => {
|
this.vadlist.forEach(val => {
|
||||||
if (val.status === 'ready') {
|
if (val.status === 'ready') {
|
||||||
formdata.append("file", val.raw);
|
formdata.append("file", val.raw);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
if(this.ziplist && this.ziplist.length > 0) {
|
||||||
this.ziplist.forEach(val => {
|
this.ziplist.forEach(val => {
|
||||||
if (val.status === 'ready') {
|
if (val.status === 'ready') {
|
||||||
formdata.append("file", val.raw);
|
formdata.append("file", val.raw);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
}
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "/platform/hd/jzghd/sczp/doEdit",
|
url: "/platform/hd/jzghd/sczp/doEdit",
|
||||||
type: "post",
|
type: "post",
|
||||||
|
|||||||
Reference in New Issue
Block a user