master
lion 4 years ago
parent 600c1f4888
commit 2ba0deb04c

@ -221,7 +221,9 @@
formLabelWidth: "120px",
clientHeight: 0,
form: {
cover:"",
type_id:"",
area_id:"",
from_id:"",
province:"",
city:"",

@ -299,6 +299,18 @@
},
submitForm(formName) {
var that = this;
let listUrl = [];
for (var m of that.fileList) {
if (m.response)
listUrl.push({
"upload_id": m.response.id
});
else
listUrl.push({
"upload_id": m.upload_id
});
}
that.form.files_list = listUrl;
this.$refs[formName].validate((valid) => {
if (valid) {
if (that.form.id) {

@ -295,6 +295,18 @@
},
submitForm(formName) {
var that = this;
let listUrl = [];
for (var m of that.fileList) {
if (m.response)
listUrl.push({
"upload_id": m.response.id
});
else
listUrl.push({
"upload_id": m.upload_id
});
}
that.form.files_list = listUrl;
this.$refs[formName].validate((valid) => {
if (valid) {
if (that.form.id) {

@ -341,6 +341,18 @@
},
submitForm(formName) {
var that = this;
let listUrl = [];
for (var m of that.fileList) {
if (m.response)
listUrl.push({
"upload_id": m.response.id
});
else
listUrl.push({
"upload_id": m.upload_id
});
}
that.form.files_list = listUrl;
this.$refs[formName].validate((valid) => {
if (valid) {
if (that.form.id) {

Loading…
Cancel
Save