Browse Source

大桥名字及简称

lipengtao 6 years ago
parent
commit
8806f00b7f
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/views/baseInfoManage/bridgesInfo/index.vue

+ 4 - 4
src/views/baseInfoManage/bridgesInfo/index.vue

@ -183,7 +183,7 @@ export default {
183 183
        callback(new Error('请输入桥梁简称'))
184 184
      } else {
185 185
        if (this.edit) {
186
          checkBridgeShortName({ shortName: value, id: this.edit }).then(response => {
186
          checkBridgeShortName({ shortName: value, id: this.edit, active: 1 }).then(response => {
187 187
            if (response.data) {
188 188
              callback(new Error('桥梁简称已存在,请重新输入'))
189 189
            } else {
@ -191,7 +191,7 @@ export default {
191 191
            }
192 192
          })
193 193
        } else {
194
          checkBridgeShortName({ shortName: value }).then(response => {
194
          checkBridgeShortName({ shortName: value, active: 1 }).then(response => {
195 195
            if (response.data) {
196 196
              callback(new Error('桥梁简称已存在,请重新输入'))
197 197
            } else {
@ -206,7 +206,7 @@ export default {
206 206
        callback(new Error('请输入桥梁全称'))
207 207
      } else {
208 208
        if (this.edit) {
209
          checkBridgeName({ name: value, id: this.edit }).then(response => {
209
          checkBridgeName({ name: value, id: this.edit, active: 1 }).then(response => {
210 210
            if (response.data) {
211 211
              callback(new Error('桥梁全称已存在,请重新输入'))
212 212
            } else {
@ -214,7 +214,7 @@ export default {
214 214
            }
215 215
          })
216 216
        } else {
217
          checkBridgeName({ name: value }).then(response => {
217
          checkBridgeName({ name: value, active: 1 }).then(response => {
218 218
            if (response.data) {
219 219
              callback(new Error('桥梁全称已存在,请重新输入'))
220 220
            } else {