From 0e5454378adb093789a070047de2fed8e6e8a58a Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Wed, 6 Jul 2022 15:29:03 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=9B=E4=BA=8B=E7=AD=89=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/breadcrumb/index.vue | 64 +++++++++++++++ src/setting.js | 2 +- src/views/join/index.vue | 2 +- src/views/match/add/index.vue | 38 ++++++--- src/views/match/manage/matchSignup.vue | 14 ++-- src/views/match/preview/index.vue | 103 ++++++++++++++++++++----- src/views/order/AddOrder.vue | 10 +-- src/views/system/manageLog.vue | 2 +- 8 files changed, 190 insertions(+), 45 deletions(-) create mode 100644 src/components/breadcrumb/index.vue diff --git a/src/components/breadcrumb/index.vue b/src/components/breadcrumb/index.vue new file mode 100644 index 0000000..30e2385 --- /dev/null +++ b/src/components/breadcrumb/index.vue @@ -0,0 +1,64 @@ + + + + \ No newline at end of file diff --git a/src/setting.js b/src/setting.js index 63ff7ba..f555548 100644 --- a/src/setting.js +++ b/src/setting.js @@ -10,7 +10,7 @@ let host = `${location.origin}/` if (isDev) { jumpPath = 'http://192.168.31.125:8087/' // 本地调试-需要启动本地判分点系统 host = 'http://121.37.12.51/' - // host = 'http://192.168.31.151:9000/'// 榕 + host = 'http://192.168.31.151:9000/'// 榕 // host = 'http://192.168.31.137:9000/'// 赓 } else if (isPro) { jumpPath = 'https://www.huorantech.cn/judgmentPoint/' diff --git a/src/views/join/index.vue b/src/views/join/index.vue index c38f178..6d61bc3 100644 --- a/src/views/join/index.vue +++ b/src/views/join/index.vue @@ -18,7 +18,7 @@ - +
diff --git a/src/views/match/add/index.vue b/src/views/match/add/index.vue index 739c015..e5c6646 100644 --- a/src/views/match/add/index.vue +++ b/src/views/match/add/index.vue @@ -149,7 +149,10 @@ :props="props" :show-all-levels="false" clearable - filterable> + filterable + :before-filter="beforeFilter" + :options="rangeList" + @input.native="rangeSearch"> 取 消 确 定 @@ -211,9 +214,10 @@ export default { checkStrictly: true, lazy: true, lazyLoad (node, resolve) { + const input = document.querySelector('.el-cascader__search-input') + if (input && input.value) return false const { level, value } = node // 省份 - console.log('lazy', node, that.range) if (!level) { that.$get(that.api.queryProvince).then(({ list }) => { const data = [] @@ -265,6 +269,9 @@ export default { }, submiting: false, updateTime: 0, + rangeTimer: null, + schools: [], + rangeList: [] }; }, components: { @@ -301,6 +308,7 @@ export default { }, mounted() { this.getData() + this.getSchool() }, methods: { getData() { @@ -336,7 +344,6 @@ export default { range.push(item) }) this.range = range - console.log("🚀 ~ file: matchDetail.vue ~ line 327 ~ this.$post ~ this.range", this.range) } // 选择范围name @@ -354,13 +361,26 @@ export default { // 选择范围 showRange() { this.rangeVisible = true - console.log("🚀 ~ file: index.vue ~ line 384 ~ showRange ~ rangeVisible", this.range) - // this.range = this.rangeInit }, - // 范围模糊查询 - rangeFilter(node, keyword) { - console.log("🚀 ~ file: index.vue ~ line 363 ~ rangeFilter ~ node, keyword", node, keyword) - + // 获取学校列表 + getSchool() { + this.$get(this.api.querySchoolData).then(({ list }) => { + list.map(e => e.label = e.schoolName) + this.schools = list + }).catch(res => {}) + }, + // 范围模糊查询前置钩子 + beforeFilter() { + return false + }, + // 范围筛选 + rangeSearch(el) { + clearTimeout(this.rangeTimer) + this.rangeTimer = setTimeout(() => { + const val = el.target.value + let result = this.schools.filter(e => e.schoolName.includes(val)) // 用学校列表做比对 + this.rangeList = val ? result : [] + }, 500) }, // 范围确定 rangeSubmit() { diff --git a/src/views/match/manage/matchSignup.vue b/src/views/match/manage/matchSignup.vue index 6cbd1ca..dfa2f25 100644 --- a/src/views/match/manage/matchSignup.vue +++ b/src/views/match/manage/matchSignup.vue @@ -9,13 +9,12 @@
- 全部导出 - 批量导出 + 导出
- +