From 258ac99ab765bb30a2c25a29d125172807e131fe Mon Sep 17 00:00:00 2001 From: liudianxin Date: Wed, 17 Jun 2020 21:18:51 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=AD=E7=89=A9=E8=BD=A6=E8=A7=A3=E5=86=B3?= =?UTF-8?q?=E6=8A=A5=E9=94=99=EF=BC=8C=E6=95=B0=E6=8D=AE=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E5=92=8C=E5=B1=95=E7=A4=BA=E5=BD=A2=E5=BC=8F=EF=BC=8Ctable-inp?= =?UTF-8?q?utNumber=E6=89=A9=E5=B1=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shopping-cart/shopping-cart-cell.vue | 27 ++++++++++++------- .../shopping-cart/shopping-cart-com.vue | 15 ++++++++--- .../shopping-cart/shopping-cart-list.vue | 7 ++--- src/components/table/table-input.vue | 15 +++++++++-- src/components/table/table-um.vue | 12 ++++----- 5 files changed, 51 insertions(+), 25 deletions(-) diff --git a/src/components/shopping-cart/shopping-cart-cell.vue b/src/components/shopping-cart/shopping-cart-cell.vue index eae1e72..7506b6e 100644 --- a/src/components/shopping-cart/shopping-cart-cell.vue +++ b/src/components/shopping-cart/shopping-cart-cell.vue @@ -15,14 +15,20 @@ />
- {{ cellItems.service.name }} + {{ cellIsService ? cellItems.service.name:cellItems.application.app_name }} mapService - 共享 - 受限 - 敏感 + 共享 + 受限 + 敏感
规格:{{ getSpecification }}
申请方式:{{ specificationApplicationBtns[cellItems.duration_method - 1].value }}
规格:
-
+
{{ index + 1 + ". " + item.value }}
-
申请方式:
-
+
申请方式:
+
已失效服务
- +
@@ -43,7 +48,7 @@ >删除选中服务 - 共 {{ checkList.length }} 项服务,已选择 + 共 {{ list.length }} 项服务,已选择 {{ getNum }} @@ -74,6 +79,7 @@ export default { data: () => ({ checkShopAll: false, checkList: [], + checkListIn: [], list: [], listIn: [] }), @@ -93,12 +99,14 @@ export default { getList() { this.$api.serviceShop.getShoppingCart().then(response => { if (response.data.success == "1") { - console.log(response.data.data); this.list = response.data.data.valid; this.listIn = response.data.data.invalid; for (const index in this.list) { this.checkList.push(false); } + for (const index in this.listIn) { + this.checkListIn.push(false); + } } else { console.log(response.data.message); } @@ -143,6 +151,7 @@ export default { let arr = []; this.checkList.forEach((item, index) => { if (item === true) { + this.list[index].selected = Number(this.list[index].selected); arr.push(this.list[index]); } }); diff --git a/src/components/shopping-cart/shopping-cart-list.vue b/src/components/shopping-cart/shopping-cart-list.vue index c5ffac1..6c09360 100644 --- a/src/components/shopping-cart/shopping-cart-list.vue +++ b/src/components/shopping-cart/shopping-cart-list.vue @@ -4,7 +4,7 @@ { - []; - } + type: Array } }, watch: { diff --git a/src/components/table/table-input.vue b/src/components/table/table-input.vue index 7aff3da..b320fa8 100644 --- a/src/components/table/table-input.vue +++ b/src/components/table/table-input.vue @@ -1,7 +1,18 @@