zuozhengqing
2023-10-16 9e81895b192f38d1bedfb9054a90b4c0c46042ea
src/views/client/salesLead/AddSalesLeadDialog.vue
@@ -419,13 +419,16 @@
    },
    // 选择省份
    selProvinceChange(val) {
      this.getCityList(val, "sel")
      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 = ""
          }