From a66356743c9edda7e0f21eb37c3f7111e1359879 Mon Sep 17 00:00:00 2001 From: shidongli Date: Wed, 7 Dec 2022 11:01:26 +0800 Subject: [PATCH 01/11] =?UTF-8?q?=E5=AF=8C=E6=96=87=E6=9C=AC=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/OperateGoodsInfo/indexjs.js | 3 ++- src/views/system/station/stationjs.js | 3 ++- src/views/system/stationItem/stationItemjs.js | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/views/system/OperateGoodsInfo/indexjs.js b/src/views/system/OperateGoodsInfo/indexjs.js index 2d72626..18e05fc 100644 --- a/src/views/system/OperateGoodsInfo/indexjs.js +++ b/src/views/system/OperateGoodsInfo/indexjs.js @@ -393,6 +393,7 @@ export default { if (this.imgone != this.form.goodsPictureUrl) { obj.pictureUrlList.push(this.imgone); } + this.imgsurl={pictureUrlList:[]}; if (obj.pictureUrlList.length > 0) { updatePicture(obj).then((res) => { console.log(res); @@ -481,4 +482,4 @@ export default { }); }, }, -}; \ No newline at end of file +}; diff --git a/src/views/system/station/stationjs.js b/src/views/system/station/stationjs.js index b4421fc..54279fd 100644 --- a/src/views/system/station/stationjs.js +++ b/src/views/system/station/stationjs.js @@ -373,6 +373,7 @@ export default { if (this.imgtwo != this.form.stationPictureUrl) { obj.pictureUrlList.push(this.imgtwo); } + this.imgsurl={pictureUrlList:[]}; if (obj.pictureUrlList.length > 0) { updatePicture(obj).then((res) => {}); } @@ -457,4 +458,4 @@ export default { this.upload.isUploading = true; }, }, -}; \ No newline at end of file +}; diff --git a/src/views/system/stationItem/stationItemjs.js b/src/views/system/stationItem/stationItemjs.js index aebe204..1464d88 100644 --- a/src/views/system/stationItem/stationItemjs.js +++ b/src/views/system/stationItem/stationItemjs.js @@ -473,6 +473,7 @@ export default { if (obj.pictureUrlList.length > 0) { updatePicture(obj).then((res) => { }); } + this.imgsurl={pictureUrlList:[]}; this.form.nurseStationItemPrices.forEach(e => { e.price = Number(e.price) }) @@ -520,4 +521,4 @@ export default { this.upload.open = true; }, }, -}; \ No newline at end of file +}; From 320f22bf07d60542f97be0e173165f002e367de3 Mon Sep 17 00:00:00 2001 From: shidongli Date: Wed, 7 Dec 2022 17:25:42 +0800 Subject: [PATCH 02/11] =?UTF-8?q?=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/index.js | 20 +++ src/views/index.vue | 264 ++++++++++++++++++++++++++++++---------- 2 files changed, 220 insertions(+), 64 deletions(-) create mode 100644 src/api/system/index.js diff --git a/src/api/system/index.js b/src/api/system/index.js new file mode 100644 index 0000000..6290c61 --- /dev/null +++ b/src/api/system/index.js @@ -0,0 +1,20 @@ +import request from '@/utils/request' + +// 查询首页基本信息 + +export function informationStatistics(query) { + return request({ + url: '/system/homeStatistics/informationStatistics', + method: 'get', + params: query + }) +} +// 查询首页今日概述 +export function summaryToday(query) { + return request({ + url: '/system/homeStatistics/summaryToday', + method: 'get', + params: query + }) + } + diff --git a/src/views/index.vue b/src/views/index.vue index f5ff6d3..a0321bf 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -1,5 +1,49 @@