haoxuan
2023-10-16 6907418f12ea84ed5ae9e9c16fa0876815c7c5a4
Merge branch 'wn' of http://192.168.5.5:10010/r/web/crm-web into dev
2个文件已修改
11 ■■■■■ 已修改文件
src/views/client/salesLead/AddSalesLeadDialog.vue 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/client/salesLead/index.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/client/salesLead/AddSalesLeadDialog.vue
@@ -300,7 +300,7 @@
    }
  },
  created() {
    if (this.editConfig.title !== "新建" && this.editConfig.infomation.province_id !== 0) {
    if (this.editConfig.title !== "新建" && this.editConfig.infomation.province_id != 0) {
      this.getCityList(this.editConfig.infomation.province_id, "edit")
    }
    this.getCommonData()
@@ -419,13 +419,16 @@
    },
    // 选择省份
    selProvinceChange(val) {
      this.cityOptions=[]
      if(val){
      this.getCityList(val, "sel")
      }
    },
    async getCityList(val, value) {
      await getCityList({ province_id: val }).then((res) => {
        console.log(res)
        if (res.data.code === 200) {
          this.cityOptions = res.data.data.list
        if (res.code === 200) {
          this.cityOptions = res.data.list?res.data.list:[]
          if (value === "sel") {
            this.editConfig.infomation.city_id = ""
          }
src/views/client/salesLead/index.vue
@@ -214,7 +214,7 @@
    // 新建
    addBtnClick() {
      this.editSalesLeadConfig.title = "新建"
      this.editSalesLeadConfig.infomation = { businessStatus: "新建", city_id: 0 }
      this.editSalesLeadConfig.infomation = { businessStatus: "新建", city_id: 0,province_id:'' }
      this.editSalesLeadConfig.visible = true
    },
    // 编辑