diff --git a/src/components/shopping-cart/shopping-cart-cell.vue b/src/components/shopping-cart/shopping-cart-cell.vue index eae1e72d5e73702de18457ef729e544839ef33b4..7506b6e3f117a9d59a046e772e464ab8f27603b0 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 c5ffac1873ca38d7b3568779508e7212820712b1..6c093609acf4bb57e16e2657818448c79218b6fa 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 7aff3dacb12f0acfcc4811502a6f3150ae9ca094..b320fa86e9beddf6a13c5e34dad2378d37b02076 100644 --- a/src/components/table/table-input.vue +++ b/src/components/table/table-input.vue @@ -1,7 +1,18 @@