浏览代码

修改客户来源

newStyle
douzhuo 2 年前
父节点
当前提交
39fc6dace3
共有 5 个文件被更改,包括 26 次插入14 次删除
  1. +1
    -4
      src/page/check/chose.vue
  2. +16
    -0
      src/util/indexedDb/indexedDB.js
  3. +2
    -2
      src/views/Statistics/TheTeamCompared.vue
  4. +2
    -1
      src/views/Template/table.js
  5. +5
    -7
      src/views/building/index.vue

+ 1
- 4
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


+ 16
- 0
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

+ 2
- 2
src/views/Statistics/TheTeamCompared.vue 查看文件

@@ -602,7 +602,7 @@
</div>

<div class="app-box-san">
<div class="zuo">
<div class="zuo" style="margin-right: 0;">
<div class="title">
<div class="text1">违禁接待次数
<el-tooltip effect="light" content="筛选时间内,出现违禁的接待次数,不包含待接单/无效接待/无效违禁;" placement="bottom-end">
@@ -626,7 +626,7 @@
</el-select>
</div>
</div>
<div class="hejisan">
<div class="hejisan" style="margin: 0 auto;">
<div class="sanbox1" style="width: 50%">
<div class="text1-1">团队总数</div>
<div class="text1-2">{{ teamobj5.num || 0 }}个</div>


+ 2
- 1
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"
},
{


+ 5
- 7
src/views/building/index.vue 查看文件

@@ -285,9 +285,9 @@
placeholder="请选择公司"
>
<el-option
v-for="item in orgList"
v-for="item in houseList"
:key="item.id"
:label="item.name"
:label="item.corporateName"
:value="item.orgCode"
>
</el-option>
@@ -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) {


正在加载...
取消
保存