master
lion 4 years ago
parent 600c1f4888
commit 2ba0deb04c

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

@ -298,7 +298,19 @@
this.dialogFormVisible = true; this.dialogFormVisible = true;
}, },
submitForm(formName) { submitForm(formName) {
var that = this; 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) => { this.$refs[formName].validate((valid) => {
if (valid) { if (valid) {
if (that.form.id) { if (that.form.id) {

@ -294,7 +294,19 @@
this.dialogFormVisible = true; this.dialogFormVisible = true;
}, },
submitForm(formName) { submitForm(formName) {
var that = this; 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) => { this.$refs[formName].validate((valid) => {
if (valid) { if (valid) {
if (that.form.id) { if (that.form.id) {

@ -340,7 +340,19 @@
this.dialogFormVisible = true; this.dialogFormVisible = true;
}, },
submitForm(formName) { submitForm(formName) {
var that = this; 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) => { this.$refs[formName].validate((valid) => {
if (valid) { if (valid) {
if (that.form.id) { if (that.form.id) {

Loading…
Cancel
Save