From 88b33ed8127b42fe0f9fa99fbb487cb7b65851af Mon Sep 17 00:00:00 2001 From: mhsnet Date: Sat, 25 Mar 2023 09:31:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=9A=E5=8A=A1=E5=91=982=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SC-web/src/views/scm/basicInformation/natural/Form.vue | 7 +++++-- SC-web/src/views/scm/basicInformation/natural/index.vue | 4 ---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/SC-web/src/views/scm/basicInformation/natural/Form.vue b/SC-web/src/views/scm/basicInformation/natural/Form.vue index d329e21a..19a08e14 100644 --- a/SC-web/src/views/scm/basicInformation/natural/Form.vue +++ b/SC-web/src/views/scm/basicInformation/natural/Form.vue @@ -100,7 +100,7 @@ export default { bankAccount: '', bank: '', bankNo: '', - photos: null, + photos: [], creatorUserName: '', creatorTime: "", }, @@ -147,7 +147,7 @@ export default { method: 'get' }).then(res => { if (res.data.photos == null) { - res.data.photos = JSON.stringify([]); + res.data.photos = []; } this.dataInfo(res.data) this.loading = false @@ -210,6 +210,9 @@ export default { dataInfo(dataAll) { let _dataAll = dataAll _dataAll.photos = JSON.parse(_dataAll.photos) + if(_dataAll.photos == ''||_dataAll.photos == null){ + _dataAll.photos = []; + } this.dataForm = _dataAll }, }, diff --git a/SC-web/src/views/scm/basicInformation/natural/index.vue b/SC-web/src/views/scm/basicInformation/natural/index.vue index 6807328b..e280ab9a 100644 --- a/SC-web/src/views/scm/basicInformation/natural/index.vue +++ b/SC-web/src/views/scm/basicInformation/natural/index.vue @@ -170,16 +170,12 @@ export default { method: 'post', data: _query }).then(res => { - console.log(res) var _list = []; for (let i = 0; i < res.data.list.length; i++) { let _data = res.data.list[i]; - console.log(_data); - i _list.push(_data) } this.list = _list - console.log(this.list) this.total = res.data.pagination.total this.listLoading = false