@@ -350,10 +350,6 @@ export default { | |||||
this.$message.warning("您已经被禁用"); | this.$message.warning("您已经被禁用"); | ||||
return; | return; | ||||
} | } | ||||
// if(item.residueTime<=0){ | |||||
// this.$message.warning('您已过期') | |||||
// return | |||||
// } | |||||
if (this.flag == 1) { | if (this.flag == 1) { | ||||
localStorage.setItem("agentId", item.id); | localStorage.setItem("agentId", item.id); | ||||
localStorage.setItem("orgCode", ""); | localStorage.setItem("orgCode", ""); | ||||
@@ -375,6 +371,7 @@ export default { | |||||
} | } | ||||
this.$router.push({ path: "/wel" }); | this.$router.push({ path: "/wel" }); | ||||
localStorage.setItem("allClose", true); | localStorage.setItem("allClose", true); | ||||
this.$db.deleteDB('EquipmentStateFiltter') | |||||
}, | }, | ||||
addLoginCount(houseId) { | addLoginCount(houseId) { | ||||
this.$api.api | this.$api.api | ||||
@@ -146,5 +146,21 @@ class IndexDBCache { | |||||
return value; | 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 | export default IndexDBCache |
@@ -602,7 +602,7 @@ | |||||
</div> | </div> | ||||
<div class="app-box-san"> | <div class="app-box-san"> | ||||
<div class="zuo"> | |||||
<div class="zuo" style="margin-right: 0;"> | |||||
<div class="title"> | <div class="title"> | ||||
<div class="text1">违禁接待次数 | <div class="text1">违禁接待次数 | ||||
<el-tooltip effect="light" content="筛选时间内,出现违禁的接待次数,不包含待接单/无效接待/无效违禁;" placement="bottom-end"> | <el-tooltip effect="light" content="筛选时间内,出现违禁的接待次数,不包含待接单/无效接待/无效违禁;" placement="bottom-end"> | ||||
@@ -626,7 +626,7 @@ | |||||
</el-select> | </el-select> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
<div class="hejisan"> | |||||
<div class="hejisan" style="margin: 0 auto;"> | |||||
<div class="sanbox1" style="width: 50%"> | <div class="sanbox1" style="width: 50%"> | ||||
<div class="text1-1">团队总数</div> | <div class="text1-1">团队总数</div> | ||||
<div class="text1-2">{{ teamobj5.num || 0 }}个</div> | <div class="text1-2">{{ teamobj5.num || 0 }}个</div> | ||||
@@ -21,11 +21,11 @@ export default { | |||||
{ | { | ||||
label: "项目名称", | label: "项目名称", | ||||
prop: "houseName", | prop: "houseName", | ||||
width: "120px", | |||||
}, | }, | ||||
{ | { | ||||
label: "状态", | label: "状态", | ||||
prop: "status", | prop: "status", | ||||
width: "150px", | |||||
formatter: (data) => { | formatter: (data) => { | ||||
if(data.status == 0) return '启用' | if(data.status == 0) return '启用' | ||||
if(data.status == 1) return '停用' | if(data.status == 1) return '停用' | ||||
@@ -34,6 +34,7 @@ export default { | |||||
{ | { | ||||
label: "大类个数", | label: "大类个数", | ||||
prop: "count", | prop: "count", | ||||
width: "90px" | |||||
}, | }, | ||||
{ | { | ||||
@@ -285,9 +285,9 @@ | |||||
placeholder="请选择公司" | placeholder="请选择公司" | ||||
> | > | ||||
<el-option | <el-option | ||||
v-for="item in orgList" | |||||
v-for="item in houseList" | |||||
:key="item.id" | :key="item.id" | ||||
:label="item.name" | |||||
:label="item.corporateName" | |||||
:value="item.orgCode" | :value="item.orgCode" | ||||
> | > | ||||
</el-option> | </el-option> | ||||
@@ -1316,12 +1316,10 @@ export default { | |||||
this.ruleForm = Object.assign({}, row); | this.ruleForm = Object.assign({}, row); | ||||
this.ruleForm.area = [this.ruleForm.provinceId, this.ruleForm.cityId]; | this.ruleForm.area = [this.ruleForm.provinceId, this.ruleForm.cityId]; | ||||
this.ruleForm.time = row.time || "22:00"; | this.ruleForm.time = row.time || "22:00"; | ||||
this.dialogVisible = true; | |||||
// 获取地区选择数据,在这里对回显的时候进行操作,首先先获取一级省的数据 | |||||
// this.getProvinceList(); | |||||
// 级联选择器回显问题 | |||||
this.editFlag = true; | this.editFlag = true; | ||||
this.dialogVisible = true; | |||||
this.$forceUpdate() | |||||
}, | }, | ||||
// 更换账号 | // 更换账号 | ||||
changeAccount(row) { | changeAccount(row) { | ||||