From 05d33b5bb924e52b9e6185a1006b31a53370d350 Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期二, 25 七月 2023 18:34:30 +0800 Subject: [PATCH] bug(4455)修复 --- src/views/client/salesLead/AddSalesLeadDialog.vue | 50 +++++++++++++++++++++----------------------------- 1 files changed, 21 insertions(+), 29 deletions(-) diff --git a/src/views/client/salesLead/AddSalesLeadDialog.vue b/src/views/client/salesLead/AddSalesLeadDialog.vue index 179850f..dc2e0fa 100644 --- a/src/views/client/salesLead/AddSalesLeadDialog.vue +++ b/src/views/client/salesLead/AddSalesLeadDialog.vue @@ -172,7 +172,7 @@ </el-form-item> </el-col> </el-row> - <el-row> + <!-- <el-row> <el-col :span="24"> <el-form-item label="鍦板潃" prop="address"> <el-input @@ -183,7 +183,7 @@ ></el-input> </el-form-item> </el-col> - </el-row> + </el-row> --> </div> <!-- 澶囨敞淇℃伅 --> <div v-if="isUnflod" class="basic-info-title">澶囨敞淇℃伅</div> @@ -233,23 +233,7 @@ return { visible: false, title: "鏂板缓", - infomation: { - name: "", - number: "LEA50", - contact_name: "", - contact_position: "", - contact_phone: "", - businessStatus: "", - sales_sources_id: "", - member_id: "", - country_id: "", - province_id: "", - city_id: "", - region_id: "", - address: "", - desc: "", - id: "" - } + infomation: {} } } } @@ -271,15 +255,7 @@ sales_sources_id: [{ required: true, message: "璇烽�夋嫨鍟嗘満鏉ユ簮", trigger: "change" }] }, businessSourceOptions: [], - ownerOptions: [ - { value: "1", label: "BOSS" }, - { value: "2", label: "Mia" }, - { value: "3", label: "璐㈠姟" }, - { value: "4", label: "甯傚満" }, - { value: "5", label: "绯荤粺绠$悊鍛�" }, - { value: "6", label: "閿�鍞�" }, - { value: "7", label: "閿�鍞�荤洃" } - ], + ownerOptions: [], countryOptions: [], // 鍥藉 provinceOptions: [], // 鐪佷唤 cityOptions: [], // 鍩庡競 @@ -296,6 +272,9 @@ created() { this.getCommonData() }, + mounted() { + this.setData() + }, methods: { getCommonData() { getAllData() @@ -306,6 +285,7 @@ this.provinceOptions = res.data.province this.cityOptions = res.data.city this.regionOptions = res.data.region + this.ownerOptions = res.data.member }) .catch((err) => { console.log(err) @@ -386,9 +366,21 @@ }, // 缂栬緫涓嬫媺妗� editDropdownBox() { - console.log("aaa") this.editDropdownConfig.editVisible = true this.editDropdownConfig.title = "鍟嗘満鏉ユ簮" + }, + // 鏁版嵁澶勭悊 + setData() { + this.editConfig.infomation.city_id = + this.editConfig.infomation.city_id === 0 ? "" : this.editConfig.infomation.city_id + this.editConfig.infomation.member_id = + this.editConfig.infomation.member_id === 0 ? "" : this.editConfig.infomation.member_id + this.editConfig.infomation.province_id = + this.editConfig.infomation.province_id === 0 ? "" : this.editConfig.infomation.province_id + this.editConfig.infomation.region_id = + this.editConfig.infomation.region_id === 0 ? "" : this.editConfig.infomation.region_id + this.editConfig.infomation.country_id = + this.editConfig.infomation.country_id === 0 ? "" : this.editConfig.infomation.country_id } } } -- Gitblit v1.8.0