liuyg
2021-09-17 aa2a056538a85da696c760117d226a93e7c4cffd
营业执照许可证图片localstorage暂存
2 files modified
9 ■■■■■ changed files
src/views/securityUnitChild/businessLicense.vue 5 ●●●●● patch | view | raw | blame | history
src/views/securityUnitChild/index.vue 4 ●●● patch | view | raw | blame | history
src/views/securityUnitChild/businessLicense.vue
@@ -62,8 +62,12 @@
        this.form.imgUrl = this.row.businessLicense;
      }
    },
    saveLock(name, val) {
      window.localStorage.setItem(name, val);
    },
    uploadDelete(column, file) {
      this.row.businessLicense = "";
      this.saveLock("danweidata", JSON.stringify(this.row));
      return update(this.row)
        .then(() => {
          this.$message({
@@ -83,6 +87,7 @@
    uploadAfter(res, done, loading, column) {
      // this.row.businessLicense = "";
      this.row.businessLicense = res.url;
      this.saveLock("danweidata", JSON.stringify(this.row));
      update(this.row).then(
        () => {
          this.$message({
src/views/securityUnitChild/index.vue
@@ -607,7 +607,7 @@
      this.onLoad1(this.page1);
    },
    rowUpdate1(row, index, done, loading) {
      // delete row.shareholdingratio;
      delete row.shareholdingratio;
      delete row.tenantId;
      console.log(row);
      update1(row).then(
@@ -755,8 +755,6 @@
    rowUpdate2(row, index, done, loading) {
      console.log(row);
      delete row.shareholdingratio;
      // delete row.id;
      delete row.rtime;
      update2(row).then(
        () => {
          this.onLoad2(this.page2);