Ver código fonte

优化代码

wulanhaote
hbao 3 anos atrás
pai
commit
5f429d428f
1 arquivos alterados com 3 adições e 0 exclusões
  1. +3
    -0
      src/views/homestead/index.vue

+ 3
- 0
src/views/homestead/index.vue Ver arquivo

@@ -1396,6 +1396,7 @@ export default {
}) })
.then(() => { .then(() => {
// on confirm // on confirm
houseInfoList.theGeom ="["+houseInfoList.theGeom+"]"
houseAdd(houseInfoList).then((res) => { houseAdd(houseInfoList).then((res) => {
if (res.code == 200) { if (res.code == 200) {
this.landHomesteadEditVisbileFun("hide"); this.landHomesteadEditVisbileFun("hide");
@@ -1507,6 +1508,7 @@ export default {
}) })
.then(() => { .then(() => {
// on confirm // on confirm
landInfoList.theGeom ="["+landInfoList.theGeom+"]"
landAdd(landInfoList).then((res) => { landAdd(landInfoList).then((res) => {
if (res.code == 200) { if (res.code == 200) {
this.landHomesteadEditVisbileFun("hide"); this.landHomesteadEditVisbileFun("hide");
@@ -3197,6 +3199,7 @@ export default {
nfAddimgonRead(file) { nfAddimgonRead(file) {
var formData = new FormData(); //构造一个 FormData,把后台需要发送的参数添加 var formData = new FormData(); //构造一个 FormData,把后台需要发送的参数添加
formData.append("file", file.file); //接口需要传的参数 formData.append("file", file.file); //接口需要传的参数
console.log(formData);
commonUpload(formData).then((res) => { commonUpload(formData).then((res) => {
this.houseInfoList.frontHouse = res.url; this.houseInfoList.frontHouse = res.url;
}); });


Carregando…
Cancelar
Salvar