From 75127e0d1de869a34dfd45b6a230f58a235ee821 Mon Sep 17 00:00:00 2001
From: "446052889@qq.com" <446052889@qq.com>
Date: Thu, 6 Apr 2023 12:55:27 +0800
Subject: [PATCH] =?UTF-8?q?pal=E7=AE=A1=E7=90=86=E4=B8=AD=E5=BF=83?=
=?UTF-8?q?=E5=B0=8F=E7=BB=84=E7=AE=A1=E7=90=86=E5=88=97=E8=A1=A8=E5=8A=A0?=
=?UTF-8?q?=E8=BD=BD=E5=92=8C=E6=9B=B4=E6=96=B0=E5=B0=8F=E7=BB=84=E9=80=9F?=
=?UTF-8?q?=E5=BA=A6=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../AWSDevParams.js | 2 +-
.../src/views/main/Update.vue | 39 ++++++++++++++++++-
2 files changed, 39 insertions(+), 2 deletions(-)
diff --git a/com.actionsoft.apps.coe.pal.cooperation/AWSDevParams.js b/com.actionsoft.apps.coe.pal.cooperation/AWSDevParams.js
index bf7a63a..7cea775 100644
--- a/com.actionsoft.apps.coe.pal.cooperation/AWSDevParams.js
+++ b/com.actionsoft.apps.coe.pal.cooperation/AWSDevParams.js
@@ -1,6 +1,6 @@
module.exports = {
AWSPortalUrl: "http://localhost:8088/portal/",//aws平台启动地址,用于开发时获取平台静态资源,请求数据等(注意最后的/,不要删)
- AWSReleasePath: "/Users/sunlh/idea_workspace_aws6/release/", /*C:/work/workspace/release/*/ //aws的平台路径,暂时写绝对路径,用于build生成的主文件位置(注意最后的/,不要删)
+ AWSReleasePath: "/Users/sunlh/Documents/ideaData/actionsoft/aws6.4.1.1008.yili6/release/", /*C:/work/workspace/release/*/ //aws的平台路径,暂时写绝对路径,用于build生成的主文件位置(注意最后的/,不要删)
moduleTemplateInAWS: "apps/install/com.actionsoft.apps.coe.pal.cooperation/template/page/main.htm", /*apps/install/_bpm.platform/template/page/console.m.dw.design.vue.htm*/ //build后生成到平台的模板位置及名称
outputDir: "apps/install/com.actionsoft.apps.coe.pal.cooperation/web/com.actionsoft.apps.coe.pal.cooperation/main", /*webserver/webapps/portal/apps/_bpm.platform/dw/designer/main*/ //build后js或css生成到平台的位置
publicPath: "../apps/com.actionsoft.apps.coe.pal.cooperation/main", /*../apps/_bpm.platform/dw/designer/main*/ //build到平台后生成到模板中,引入js文件的相对平台的位置
diff --git a/com.actionsoft.apps.coe.pal.cooperation/src/views/main/Update.vue b/com.actionsoft.apps.coe.pal.cooperation/src/views/main/Update.vue
index 0adb798..a37dd1f 100644
--- a/com.actionsoft.apps.coe.pal.cooperation/src/views/main/Update.vue
+++ b/com.actionsoft.apps.coe.pal.cooperation/src/views/main/Update.vue
@@ -72,7 +72,8 @@
label="授权状态"
width="150">
-
+ 正在加载...
+
{
console.log(error);
})
},
+ loadTeamPerm() {
+ const that = this;
+ const teamIdArr = [];
+ for (let i = 0; i < that.tableData.length; i++) {
+ if (that.tableData[i].permStatus == -1) {
+ teamIdArr.push(that.tableData[i].teamId);
+ if (teamIdArr.length >= 5) {// 每次查询5个
+ break;
+ }
+ }
+ }
+ if (teamIdArr.length > 0) {
+ const data = {
+ url:'jd',
+ data:{
+ cmd: 'com.actionsoft.apps.coe.pal.cooperation_manage_team_info_perm',
+ teamIdArr: JSON.stringify(teamIdArr)
+ }
+ };
+ awsuiAxios.post(data).then(function (ro) {
+ if (ro.result == 'ok') {
+ const result = ro.data
+ for (let i = 0; i < that.tableData.length; i++) {
+ if (result[that.tableData[i].teamId] != undefined) {
+ that.tableData[i].permStatus = result[that.tableData[i].teamId];
+ }
+ }
+ that.loadTeamPerm();// 再一次请求
+ }
+ }).catch(error=>{
+ console.log(error);
+ })
+ }
+
+ },
updateTeam(teamId) {
this.update.teamId = teamId;
this.update.visible = true;