From 116f50f812c6fba2b12bf79daf5761a172df3551 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E6=99=A8=E6=99=A8?= Date: Thu, 20 Apr 2023 17:24:57 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BF=90=E8=A1=8C?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E8=AE=BE=E7=BD=AEbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/param/systemParamConfig.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/views/system/param/systemParamConfig.vue b/src/views/system/param/systemParamConfig.vue index 4dd7462..73d05ee 100644 --- a/src/views/system/param/systemParamConfig.vue +++ b/src/views/system/param/systemParamConfig.vue @@ -186,6 +186,8 @@ export default { } else { callback(); } + }else{ + callback(); } }; return { From f25276f6393e2957a7a2763881fae013d1187fec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E6=99=A8=E6=99=A8?= Date: Thu, 20 Apr 2023 17:43:18 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E9=83=A8=E9=97=A8=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E5=88=9D=E7=89=88=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/dept/authDept.vue | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/views/system/dept/authDept.vue b/src/views/system/dept/authDept.vue index cf735d9..56b7155 100644 --- a/src/views/system/dept/authDept.vue +++ b/src/views/system/dept/authDept.vue @@ -57,6 +57,7 @@ style="width: 100%" highlight-current-row border + ref="deptTableRef" v-if="refreshTable" row-key="id" @current-change="handleDeptChange" @@ -358,6 +359,7 @@ import { filterSubAll } from "@/api/system/invSubWarehouse"; export default { data() { return { + checkdefault: null, filterQuery: { status: 1, companyName: "", @@ -577,15 +579,27 @@ export default { let depList = response.data.list || []; this.deptOptions = this.handleTree(depList, "code", "pcode"); }); + console.log(JSON.parse(JSON.stringify(row))); + this.checkdefault = JSON.parse(JSON.stringify(row)); }, /* 获取列表 */ getList() { + let qwe = this.checkdefault; this.loading = true; filterList(this.filterQuery) .then((response) => { this.loading = false; let depList = response.data.list || []; this.list = this.handleTree(depList, "code", "pcode"); + console.log(qwe); + this.$nextTick(() => { + console.log(qwe); + if (qwe === null) { + this.$refs.deptTableRef.setCurrentRow(depList[0]); + } else { + this.$refs.deptTableRef.setCurrentRow(qwe); + } + }); }) .catch(() => { this.loading = false; From de52881cca5c83f42f938bd21f247bb8e54d3ae5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E6=99=A8=E6=99=A8?= Date: Thu, 20 Apr 2023 17:46:33 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/dept/authDept.vue | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/views/system/dept/authDept.vue b/src/views/system/dept/authDept.vue index 56b7155..2f10e04 100644 --- a/src/views/system/dept/authDept.vue +++ b/src/views/system/dept/authDept.vue @@ -52,7 +52,6 @@ { console.log(qwe); if (qwe === null) {