| | |
| | | <el-col :span="12"> |
| | | <el-form-item label="负责人" prop="member_id"> |
| | | <el-select v-model="editConfig.infomation.member_id" placeholder="请选择" size="mini"> |
| | | <el-option v-for="item in ownerOptions" :key="item.id" :label="item.username" :value="item.id"> |
| | | <el-option v-for="item in memberOptions" :key="item.id" :label="item.username" :value="item.id"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | |
| | | } |
| | | }, |
| | | components: { EditDropdownDialog }, |
| | | computed: { |
| | | searchCommonHeight() { |
| | | return this.$refs.searchCommonView.offsetHeight |
| | | } |
| | | }, |
| | | computed: {}, |
| | | data() { |
| | | return { |
| | | dialogWidth: "80%", |
| | |
| | | ] |
| | | }, |
| | | businessSourceOptions: [], |
| | | ownerOptions: [], |
| | | memberOptions: [], |
| | | countryOptions: [], // 国家 |
| | | provinceOptions: [], // 省份 |
| | | cityOptions: [], // 城市 |
| | |
| | | created() { |
| | | this.getCommonData() |
| | | }, |
| | | mounted() { |
| | | this.setData() |
| | | }, |
| | | mounted() {}, |
| | | methods: { |
| | | getCommonData() { |
| | | getAllData() |
| | |
| | | this.provinceOptions = res.data.province |
| | | this.cityOptions = res.data.city |
| | | this.regionOptions = res.data.region |
| | | this.ownerOptions = res.data.member |
| | | this.memberOptions = res.data.member |
| | | }) |
| | | .catch((err) => { |
| | | console.log(err) |
| | |
| | | editDropdownBox() { |
| | | 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 |
| | | }, |
| | | // 手机号输入 |
| | | confirmPhone(value) { |