From 39fc6dace3dda560d68cf6bb97562c635653c177 Mon Sep 17 00:00:00 2001 From: douzhuo <17611323298@163.com> Date: Tue, 30 Aug 2022 18:04:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=A2=E6=88=B7=E6=9D=A5?= =?UTF-8?q?=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/page/check/chose.vue | 5 +---- src/util/indexedDb/indexedDB.js | 16 ++++++++++++++++ src/views/Statistics/TheTeamCompared.vue | 4 ++-- src/views/Template/table.js | 3 ++- src/views/building/index.vue | 12 +++++------- 5 files changed, 26 insertions(+), 14 deletions(-) diff --git a/src/page/check/chose.vue b/src/page/check/chose.vue index b3c46de..591ea49 100644 --- a/src/page/check/chose.vue +++ b/src/page/check/chose.vue @@ -350,10 +350,6 @@ export default { this.$message.warning("您已经被禁用"); return; } - // if(item.residueTime<=0){ - // this.$message.warning('您已过期') - // return - // } if (this.flag == 1) { localStorage.setItem("agentId", item.id); localStorage.setItem("orgCode", ""); @@ -375,6 +371,7 @@ export default { } this.$router.push({ path: "/wel" }); localStorage.setItem("allClose", true); + this.$db.deleteDB('EquipmentStateFiltter') }, addLoginCount(houseId) { this.$api.api diff --git a/src/util/indexedDb/indexedDB.js b/src/util/indexedDb/indexedDB.js index fef5ca1..71a8579 100644 --- a/src/util/indexedDb/indexedDB.js +++ b/src/util/indexedDb/indexedDB.js @@ -146,5 +146,21 @@ class IndexDBCache { return value; } + + // 删除indexDB + deleteDB(id) { + let transaction = this._db.transaction(this._cacheTableName, 'readwrite') + let store = transaction.objectStore(this._cacheTableName) + let request = store.delete(id) + + request.onsuccess = function() { + console.log('数据删除成功') + } + + request.onerror = function() { + console.log('数据删除失败') + } + } + } export default IndexDBCache \ No newline at end of file diff --git a/src/views/Statistics/TheTeamCompared.vue b/src/views/Statistics/TheTeamCompared.vue index 7788355..985963b 100644 --- a/src/views/Statistics/TheTeamCompared.vue +++ b/src/views/Statistics/TheTeamCompared.vue @@ -602,7 +602,7 @@
-
+
违禁接待次数 @@ -626,7 +626,7 @@
-
+
团队总数
{{ teamobj5.num || 0 }}个
diff --git a/src/views/Template/table.js b/src/views/Template/table.js index d33037e..008eac1 100644 --- a/src/views/Template/table.js +++ b/src/views/Template/table.js @@ -21,11 +21,11 @@ export default { { label: "项目名称", prop: "houseName", - width: "120px", }, { label: "状态", prop: "status", + width: "150px", formatter: (data) => { if(data.status == 0) return '启用' if(data.status == 1) return '停用' @@ -34,6 +34,7 @@ export default { { label: "大类个数", prop: "count", + width: "90px" }, { diff --git a/src/views/building/index.vue b/src/views/building/index.vue index 37d68df..47e7a60 100644 --- a/src/views/building/index.vue +++ b/src/views/building/index.vue @@ -285,9 +285,9 @@ placeholder="请选择公司" > @@ -1316,12 +1316,10 @@ export default { this.ruleForm = Object.assign({}, row); this.ruleForm.area = [this.ruleForm.provinceId, this.ruleForm.cityId]; this.ruleForm.time = row.time || "22:00"; - this.dialogVisible = true; - // 获取地区选择数据,在这里对回显的时候进行操作,首先先获取一级省的数据 - // this.getProvinceList(); - // 级联选择器回显问题 - this.editFlag = true; + + this.dialogVisible = true; + this.$forceUpdate() }, // 更换账号 changeAccount(row) {