From 4e36873251ef9607fa3523071ad39eb2cf95be7b Mon Sep 17 00:00:00 2001 From: daihh Date: Sat, 22 Oct 2022 20:05:11 +0800 Subject: [PATCH] =?UTF-8?q?=E9=92=88=E5=AF=B9=E4=BA=8EcompanyId=E7=9A=84?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/user.js | 1 + src/views/portal/course/Index.vue | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 91e3a50a..4a0fd304 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -140,6 +140,7 @@ const user = { sex:res.result.sex? res.result.sex:1, loginName: res.result.loginName, userNo: res.result.userNo, + companyId:res.result.companyId, departId: res.result.departId, departName: res.result.departName, departFullName: dfn, diff --git a/src/views/portal/course/Index.vue b/src/views/portal/course/Index.vue index 10e9b6af..a5386f17 100644 --- a/src/views/portal/course/Index.vue +++ b/src/views/portal/course/Index.vue @@ -568,7 +568,7 @@ export default { if(this.audiences.length>0){ this.course.audiences=this.audiences.join(","); } - + this.course.companyId=this.userInfo.companyId; this.isFind = true; this.course.type = this.category; if (this.types.sysTypes == 0 || this.types.sysTypes == null) { @@ -643,6 +643,7 @@ export default { i !== "topOrder" && i !== "device" && i !== "audiences" && + i !== "companyId" && courseData[i] !== null && courseData[i] !== undefined ) {