diff --git a/src/components/quill/index.vue b/src/components/quill/index.vue index 33a7a17..3f80027 100644 --- a/src/components/quill/index.vue +++ b/src/components/quill/index.vue @@ -2,13 +2,13 @@
- 富文本 - markdown + 富文本 + markdown -
@@ -26,7 +26,7 @@
{ this.submiting = false }) @@ -1136,14 +1135,24 @@ export default { this.form.customerName = '' }, // 获取学校/客户名称 - getSchoolData () { + getSchoolData (schoolId) { let data = { schoolName: '', provinceId: '', cityId: '' } - this.$get(this.api.querySchoolData).then(res => { - this.schoolList = res.list + this.$get(this.api.querySchoolData).then(({ list }) => { + this.schoolList = list + // 有传schoolId,则需要找到这个学校然后赋值表单 + if (schoolId) { + const item = list.find(e => e.schoolId == schoolId) + if (item) { + this.form.schoolId = schoolId + this.form.provinceId = item.provinceId + this.getCityData() + this.form.cityId = item.cityId + } + } }).catch(res => { }); }, // 查询客户是否存在 diff --git a/src/views/match/manage/matchInfo.vue b/src/views/match/manage/matchInfo.vue index 6753b31..1510baf 100644 --- a/src/views/match/manage/matchInfo.vue +++ b/src/views/match/manage/matchInfo.vue @@ -1,627 +1,714 @@