From 9fed3785d995c6a961fa7213395b018c11b62c01 Mon Sep 17 00:00:00 2001 From: b2894lxlx <517289602@qq.com> Date: Mon, 2 Nov 2026 13:32:06 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=20=E6=B5=81=E7=A8=8B=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E5=8F=96=E6=B6=88=E9=BB=98=E8=AE=A4=E6=8C=89=E5=BD=93=E5=89=8D?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E9=83=A8=E9=97=A8=E7=AD=9B=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- src/views/business/process-config.vue | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/views/business/process-config.vue b/src/views/business/process-config.vue index d7ba2b1..2be992d 100644 --- a/src/views/business/process-config.vue +++ b/src/views/business/process-config.vue @@ -535,7 +535,6 @@ export default { created() { this.resetNodeRows(); this.loadProjectOptions(''); - this.applyDefaultDeptSearch(); this.initDeptOptions(); }, methods: { @@ -566,27 +565,6 @@ export default { } }); }, - defaultDeptId() { - const raw = (this.userInfo && (this.userInfo.deptId || this.userInfo.dept_id)) || ''; - return ( - String(raw) - .split(',') - .map(item => item.trim()) - .filter(Boolean)[0] || '' - ); - }, - applyDefaultDeptSearch() { - const deptId = this.defaultDeptId(); - const deptColumn = this.findColumn(this.option.column, 'searchDeptId'); - if (!deptId || !deptColumn) return; - deptColumn.searchValue = deptId; - this.query = { ...this.query, deptId }; - this.$nextTick(() => { - if (this.$refs.crud?.searchForm) { - this.$refs.crud.searchForm.searchDeptId = deptId; - } - }); - }, flattenDept(tree, level = 0) { return tree.flatMap(item => { const id = @@ -1113,7 +1091,6 @@ export default { }, searchReset() { this.query = {}; - this.applyDefaultDeptSearch(); this.page.currentPage = 1; this.onLoad(this.page, this.query); },