南昌市物联网技防平台-前端
zengh
2021-05-20 b83a8fbbf9b0a33508d9393a42399fd1c2ab0279
客户管理问题修复(小区、医院信息无法保存)
2 files modified
17 ■■■■■ changed files
src/api/system/tenant.js 6 ●●●●● patch | view | raw | blame | history
src/views/system/cs.vue 11 ●●●● patch | view | raw | blame | history
src/api/system/tenant.js
@@ -103,13 +103,12 @@
    data: row
  })
}
export const instery = (dj, had, ht, ctime, content,hn) => {
export const instery = (dj, ht, ctime, content,hn) => {
  return request({
    url: '/api/blade-system/tenant/instery',
    method: 'post',
    params: {
      dj,
      had,
      ht,
      ctime,
      content,
@@ -117,7 +116,7 @@
    }
  })
}
export const insertsr = (category, attributes, developers, had, housetype, content, hn) => {
export const insertsr = (category, attributes, developers, housetype, content, hn) => {
  return request({
    url: '/api/blade-system/tenant/insertsr',
    method: 'post',
@@ -125,7 +124,6 @@
      category,
      attributes,
      developers,
      had,
      housetype,
      content,
      hn
src/views/system/cs.vue
@@ -785,8 +785,10 @@
  },
  methods: {
    rowSave(row, done, loading) {
      add(row).then(
        () => {
            debugger
          if (row.type == "0") {
            console.log(123);
            instery(
@@ -799,8 +801,8 @@
            );
          } else if (row.type == "1") {
            insertss(
              row.dj,
              row.nature,
                row.had,
              // row.had,
              row.motto,
              row.ctime,
@@ -809,14 +811,12 @@
            );
          } else if (row.type == "2") {
            insertsr(
              row.dj,
              row.category,
              row.attributes,
              row.developers,
              // row.had,
              row.housetype,
              row.content,
              row.hn
                row.tenantName
            );
          }
          this.onLoad(this.page);
@@ -845,7 +845,6 @@
        );
      } else if (row.type == "1") {
        updateInfos(
          row.dj,
          row.nature,
          row.had,
          row.motto,
@@ -855,7 +854,6 @@
        );
      } else if (row.type == "2") {
        updateInfor(
          row.dj,
          row.category,
          row.attributes,
          row.developers,
@@ -887,6 +885,7 @@
        type: "warning",
      })
        .then(() => {
            debugger
          if (row.type == "0") {
            deletey(row.tenantName);
          } else if (row.type == "1") {