From 354171d454c82d0835f966060ffb1fb3dab14a78 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Mon, 4 Sep 2023 17:52:04 +0800 Subject: [PATCH] =?UTF-8?q?markdown=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/quill/index.vue | 30 +- src/setting.js | 2 +- src/views/customer/AddCustomer.vue | 19 +- src/views/match/manage/matchInfo.vue | 1231 ++++++++++++++------------ src/views/serve/projectAdd.vue | 12 +- 5 files changed, 706 insertions(+), 588 deletions(-) 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 @@