diff --git a/src/views/Customer/SalesStage.vue b/src/views/Customer/SalesStage.vue index 038f418..aa59445 100644 --- a/src/views/Customer/SalesStage.vue +++ b/src/views/Customer/SalesStage.vue @@ -4,15 +4,17 @@
楼盘选择:
-
+
- + @@ -87,6 +92,7 @@ export default { return { houseId: "", houseList: [], + orgType: localStorage.getItem("orgType"), ruleForm: { stageName: "", // 公司名称 sort: "", // 联系人 @@ -128,7 +134,12 @@ export default { .then((res) => { // console.log(res) this.houseList = res.data; - this.houseId = res.data[0].id; + if (localStorage.getItem("orgType") == 3) { + this.houseId = localStorage.getItem("houseId"); + } else { + this.houseId = res.data[0].id; + } + // this.houseId = res.data[0].id; // 获取列表 this.findbypage(); }); @@ -206,18 +217,20 @@ export default { this.$message.success("编辑成功"); this.findbypage(); } - }) + }); } else { // 添加 console.log("添加"); - this.$api.api.lifeTrackDefineAdd({houseId:this.houseId,...this.ruleForm,}).then((res) => { - console.log(res); - if (res.code == 0) { - this.dialogVisible = false; - this.$message.success("新增成功"); - this.findbypage(); - } - }); + this.$api.api + .lifeTrackDefineAdd({ houseId: this.houseId, ...this.ruleForm }) + .then((res) => { + console.log(res); + if (res.code == 0) { + this.dialogVisible = false; + this.$message.success("新增成功"); + this.findbypage(); + } + }); } } }); diff --git a/src/views/Customer/index.vue b/src/views/Customer/index.vue index 4111abc..0cc52b7 100644 --- a/src/views/Customer/index.vue +++ b/src/views/Customer/index.vue @@ -2,7 +2,7 @@
-
+
-
筛选相关:
+
筛选 - + -