From 0d2f57c3109556731d8039328b2381a8fdd4da10 Mon Sep 17 00:00:00 2001 From: douzhuo <17611323298@163.com> Date: Tue, 23 Aug 2022 17:56:25 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/page/check/chose.vue | 118 ++++++++------------ src/util/indexedDb/indexedDB.js | 10 +- src/views/Customer/AgentManagement.vue | 53 +++++---- src/views/Customer/table.js | 3 - src/views/Equipment/index.vue | 122 ++++++++++----------- src/views/Equipment/record.vue | 26 ++--- src/views/Equipment/state.vue | 128 ++++++++++++---------- src/views/Equipment/table.js | 2 +- src/views/Statistics/ConsultantBrand.vue | 6 - src/views/Statistics/MentoringAbility.vue | 74 +------------ src/views/building/Count.vue | 2 +- src/views/building/index.vue | 41 +++---- 12 files changed, 244 insertions(+), 341 deletions(-) diff --git a/src/page/check/chose.vue b/src/page/check/chose.vue index 8117e40..38cac6b 100644 --- a/src/page/check/chose.vue +++ b/src/page/check/chose.vue @@ -26,7 +26,7 @@ >搜索 -
+
-
-
+
{{ item.name }}
-
区域位置:{{ (item.provinceName || "-") + "-" + (item.cityName || "-") @@ -162,12 +127,11 @@ >搜索
-
+
{{ item.propertyName }}
@@ -475,6 +439,7 @@ export default { height: 100vh; background: #ffffff; } + .head { height: 64px; background: #2671e2; @@ -500,46 +465,55 @@ export default { color: #32363d; } .content { + // width: 100%; margin-top: 30px; padding: 0 20%; // height: 680px; - min-height: 500px; - .con { - display: flex; - flex-wrap: wrap; - } + height: 600px; + overflow: auto; + .search { + padding: 10px 0; + position: sticky; + top: 0; display: flex; + background: #fff; } - .tab { - width: 200px; - height: 98px; - border-radius: 4px; - border: 1px solid #e0e0e0; - box-sizing: border-box; - padding-left: 20px; - margin-left: 40px; + + .cons { margin-top: 20px; - cursor: pointer; - .text-1 { - font-size: 16px; - line-height: 30px; - margin-top: 10px; - white-space: nowrap; - overflow: hidden; /*超出部分省略号显示*/ - text-overflow: ellipsis; /*省略号显示*/ - } - .text-2 { - font-size: 14px; - line-height: 30px; - } - .text-3 { - font-size: 14px; - line-height: 20px; - margin-bottom: 10px; - white-space: nowrap; - overflow: hidden; /*超出部分省略号显示*/ - text-overflow: ellipsis; /*省略号显示*/ + width: 1100px; + // max-height: 400px; + display: grid; + grid-template-columns: repeat(5, 210px); + grid-gap: 20px; + + .tab { + width: 100%; + padding: 10px 20px; + border-radius: 4px; + border: 1px solid #e0e0e0; + box-sizing: border-box; + cursor: pointer; + + .text-1 { + font-size: 16px; + line-height: 30px; + white-space: nowrap; + overflow: hidden; /*超出部分省略号显示*/ + text-overflow: ellipsis; /*省略号显示*/ + } + .text-2 { + font-size: 14px; + line-height: 30px; + } + .text-3 { + font-size: 14px; + line-height: 20px; + white-space: nowrap; + overflow: hidden; /*超出部分省略号显示*/ + text-overflow: ellipsis; /*省略号显示*/ + } } } .tab:hover { diff --git a/src/util/indexedDb/indexedDB.js b/src/util/indexedDb/indexedDB.js index daa4814..fef5ca1 100644 --- a/src/util/indexedDb/indexedDB.js +++ b/src/util/indexedDb/indexedDB.js @@ -68,13 +68,15 @@ class IndexDBCache { let request = objectStore.get(key) // 操作成功 request.onsuccess = () => { - console.log('拿到数据了') - request.result.optionData = JSON.parse(request.result.optionData, this.deserialize) - resolve(request.result) + if (request.result) { + request.result.optionData = JSON.parse(request.result.optionData, this.deserialize) + resolve(request.result) + } else { + reject("获取失败") + } } // 操作失败 request.onerror = (event) => { - console.log('获取失败') reject(event) } }) diff --git a/src/views/Customer/AgentManagement.vue b/src/views/Customer/AgentManagement.vue index 9592eda..73b0194 100644 --- a/src/views/Customer/AgentManagement.vue +++ b/src/views/Customer/AgentManagement.vue @@ -4,7 +4,7 @@
合同结束日期:
-
+
+
服务状态:
-
+
-
-
地区:
+
代理商名称:
+
+ +
+
+
+
地区:
+
-
-
-
代理商名称:
-
- -
运营人员:
-
- +
{ @@ -1299,9 +1293,12 @@ export default { color: #32363d; line-height: 14px; margin-left: 15px; - min-width: 100px; + width: 120px; text-align: right; } + .labelRight { + width: 250px; + } .toptimeqhuan { height: 30px; diff --git a/src/views/Customer/table.js b/src/views/Customer/table.js index 3535bc4..aa2f228 100644 --- a/src/views/Customer/table.js +++ b/src/views/Customer/table.js @@ -21,12 +21,10 @@ export default { { label: "代理商", prop: "agentName", - width: "120px", }, { label: "地区", prop: "provinceName", - width: "120px", formatter: (data) => { return `${data.provinceName || '-'}${data.cityName || ''}` } @@ -34,7 +32,6 @@ export default { { label: "联系人信息", prop: "linkman", - width: "110px", formatter: (data) => { return `${data.linkman}-${data.linkmanPhone}` } diff --git a/src/views/Equipment/index.vue b/src/views/Equipment/index.vue index 677a35b..dc77005 100644 --- a/src/views/Equipment/index.vue +++ b/src/views/Equipment/index.vue @@ -18,35 +18,60 @@ >
+
+
设备编号:
+ + +
+
项目名称:
- - - - - - - -
-
+
批次号:
+ + +
+
+
代理商名称:
+ + +
+
+
公司名称:
+ + +
+ +
设备状态:
-
+
领用状态:
-
筛选
清空筛选条件 + {{ isOpen ? "收起" : "展开" + }}
@@ -230,13 +264,6 @@ clearable > - -
+
设备编号:
+ +
+
+
领用人:
+ - - - -
diff --git a/src/views/Equipment/state.vue b/src/views/Equipment/state.vue index ca52e3a..9c9e1e4 100644 --- a/src/views/Equipment/state.vue +++ b/src/views/Equipment/state.vue @@ -38,7 +38,7 @@ > @@ -97,30 +97,29 @@ >
+
+
设备编号:
+ + +
+
项目名称:
- - - -
-
+
领用状态:
{ + console.log(res.optionData.dataList); + this.searchForm = res.optionData.searchForm; + this.houseTypes = res.optionData.houseTypes; + this.selValue = res.optionData.selValue; + this.choicValue = res.optionData.choicValue; + this.time = res.optionData.time; + this.changeValue = res.optionData.changeValue; + this.dataList = res.optionData.dataList; + this.isOpen = res.optionData.isOpen; + this.getTableList(); + }).catch(e => { + // 获取不到本地存储的数据在调用获取详细列表 + this.getList(); + }); + }, // 获取当前页面的显隐 setTableOption() { this.$db.getDataByKey(this.tableIdName).then((res) => { @@ -1336,44 +1388,6 @@ export default { this.searchForm.endDate = ""; } }, - selChange() { - this.changeValue = ""; - this.searchForm.imei = ""; - this.searchForm.batchId = ""; - this.searchForm.agentName = ""; - this.searchForm.orgName = ""; - this.searchForm.houseName = ""; - this.searchForm.userName = ""; - }, - selectChange(e) { - this.searchForm.imei = ""; - this.searchForm.batchId = ""; - this.searchForm.agentName = ""; - this.searchForm.orgName = ""; - this.searchForm.houseName = ""; - this.searchForm.userName = ""; - if (!e) return; - if (this.selflag == 1) { - // 设备编号 - this.searchForm.imei = e; - } - if (this.selflag == 3) { - // 批次号 - this.searchForm.batchId = e; - } - if (this.selflag == 4) { - // 代理商名称 - this.searchForm.agentName = e; - } - if (this.selflag == 5) { - // 公司名称 - this.searchForm.orgName = e; - } - if (this.selflag == 6) { - // 项目名称 - this.searchForm.houseName = e; - } - }, handleSelectionChange(val) { this.multipleSelection = val; }, diff --git a/src/views/Equipment/table.js b/src/views/Equipment/table.js index 3afd496..85a36eb 100644 --- a/src/views/Equipment/table.js +++ b/src/views/Equipment/table.js @@ -99,7 +99,7 @@ export default { label: '关机类型', prop: "offStatus", formatter: row => { - return row.offStatus == 1 ? "正常关机" : row.offStatus == 2 ? "低电关机" : row.offStatus == 3 ? "异常关机" : "" + return row.offStatus == 1 ? "正常关机" : row.offStatus == 2 ? "低电关机" : row.offStatus == 3 ? "异常关机" : "-" } }, ] diff --git a/src/views/Statistics/ConsultantBrand.vue b/src/views/Statistics/ConsultantBrand.vue index 1d8612b..35822a1 100644 --- a/src/views/Statistics/ConsultantBrand.vue +++ b/src/views/Statistics/ConsultantBrand.vue @@ -124,7 +124,6 @@ prop="activeCustomer" label="未标顾问" align="center" - width="100" sortable="custom" > @@ -133,7 +132,6 @@ v-if="tabFlag == 1" prop="prohibitedCustomer" label="违禁接待次数" - width="120" align="center" sortable="custom" > @@ -146,7 +144,6 @@ prop="prohibitedZb" label="违禁接待占比" align="center" - width="120" sortable="custom" > @@ -157,7 +154,6 @@ label="接待时长" align="center" sortable="custom" - width="110" > - + placeholder="请选择" @change="selChange" :disabled="activeTotal == 1 || activeTotal == 2"> diff --git a/src/views/building/index.vue b/src/views/building/index.vue index 386b34d..37d68df 100644 --- a/src/views/building/index.vue +++ b/src/views/building/index.vue @@ -71,6 +71,26 @@
+ +
+
项目名称:
+ + + + +
地区:
-
-
项目名称:
- - - - -
-
筛选相关:
+
筛选相关:
筛选