diff --git a/.env.development b/.env.development
index 403eac1..d16578a 100644
--- a/.env.development
+++ b/.env.development
@@ -1,4 +1,4 @@
VUE_APP_NODE_ENV=development
-VUE_APP_BASE_URL=https://www.tall.wiki/
-VUE_APP_API_URL=https://www.tall.wiki/gateway
-VUE_APP_MSG_URL=wss://www.tall.wiki/websocket/message/v4.0/ws
+VUE_APP_BASE_URL=https://test.tall.wiki/
+VUE_APP_API_URL=https://test.tall.wiki/gateway
+VUE_APP_MSG_URL=wss://test.tall.wiki/websocket/message/v4.0/ws
diff --git a/.env.production b/.env.production
index 9a99c2b..ed91693 100644
--- a/.env.production
+++ b/.env.production
@@ -1,4 +1,4 @@
VUE_APP_NODE_ENV=production
-VUE_APP_BASE_URL=https://www.tall.wiki/
-VUE_APP_API_URL=https://www.tall.wiki/gateway
-VUE_APP_MSG_URL=wss://www.tall.wiki/websocket/message/v4.0/ws
+VUE_APP_BASE_URL=https://test.tall.wiki/
+VUE_APP_API_URL=https://test.tall.wiki/gateway
+VUE_APP_MSG_URL=wss://test.tall.wiki/websocket/message/v4.0/ws
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8b3d54e..f9d4921 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,4 @@
-# 0.1.0 (2021-11-08)
+# 0.1.0 (2021-11-19)
### 🌟 新功能
范围|描述|commitId
@@ -25,6 +25,7 @@
- | 面变化首页变化 | [5e860f1](https://dd.tall.wiki/gitea/wally/tall-mui-3-project/commits/5e860f1)
- | 模拟接口测试 | [69e7931](https://dd.tall.wiki/gitea/wally/tall-mui-3-project/commits/69e7931)
- | 配置默认插件接口 | [f0c177d](https://dd.tall.wiki/gitea/wally/tall-mui-3-project/commits/f0c177d)
+ - | 切换角色时,取消显示多角色下拉框 | [4a57c0c](https://dd.tall.wiki/gitea/wally/tall-mui-3-project/commits/4a57c0c)
- | 全局插件及默认插件位置修改 | [6c80d08](https://dd.tall.wiki/gitea/wally/tall-mui-3-project/commits/6c80d08)
- | 任务进行中状态数字 | [27b7326](https://dd.tall.wiki/gitea/wally/tall-mui-3-project/commits/27b7326)
- | 任务状态时间显示 | [56f5183](https://dd.tall.wiki/gitea/wally/tall-mui-3-project/commits/56f5183)
diff --git a/src/apis/role.js b/src/apis/role.js
index 1918c36..fad984a 100644
--- a/src/apis/role.js
+++ b/src/apis/role.js
@@ -12,10 +12,37 @@ export const queryMustShow = {
},
};
+export const queryLastRoleChoose = {
+ async index(params) {
+ try {
+ /* #endif */
+ const data = await uni.$u.http.post(`${url}/carbasics/v4.0/role/queryLastRoleChoose`, params);
+ return data;
+ } catch (error) {
+ throw new Error(error);
+ }
+ },
+};
+
+export const saveRoleRecord = {
+ async index(params) {
+ try {
+ /* #endif */
+ await uni.$u.http.post(`${url}/carbasics/v4.0/role/saveRoleRecord`, params);
+ } catch (error) {
+ throw new Error(error);
+ }
+ },
+};
+
const install = (Vue, vm) => {
vm.$u.api = { ...vm.$u.api } || {};
// 根据项目id查找所有体验角色
vm.$u.api.queryMustShow = params => queryMustShow.index(params);
+ // 根据项目id查找上次退出项目时所选择的角色
+ vm.$u.api.queryLastRoleChoose = params => queryLastRoleChoose.index(params);
+ // 保存当前用户在当前项目最后一次选择的角色
+ vm.$u.api.saveRoleRecord = params => saveRoleRecord.index(params);
// 根据项目id查找角色
vm.$u.api.findShowRole = param => vm.$u.post(`${uni.$t.domain}/role/show`, param);
// 根据项目id查找所有成员
diff --git a/src/components/Globals/Globals.vue b/src/components/Globals/Globals.vue
index a728653..3e1b38a 100644
--- a/src/components/Globals/Globals.vue
+++ b/src/components/Globals/Globals.vue
@@ -1,12 +1,17 @@
-
+
+
+
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
@@ -63,6 +69,10 @@ export default {
// loading: true,
task: null,
sysHeight: sysHeight,
+ current: 0,
+ global: [],
+ globalTabs: [],
+ showLine: false,
};
},
@@ -72,11 +82,16 @@ export default {
...mapGetters('task', ['globals']),
globalsHeight: function () {
- let h = ((this.sysHeight - 44 - 30 - 10) / 5) * 3;
+ let h = this.sysHeight;
return h;
},
},
-
+ created() {
+ console.log('this.globals: ', this.globals);
+ this.global[0] = this.globals[0];
+ const list = [{ name: '时间轴' }];
+ this.globalTabs = [...this.globals, ...list];
+ },
methods: {
...mapMutations('task', ['setShrink']),
@@ -86,6 +101,18 @@ export default {
this.setShrink(false);
}
},
+ change(e) {
+ console.log('e: ', e);
+ this.current = e;
+ if (e !== this.globals.length) {
+ this.global[0] = this.globals[e];
+ this.$emit('changeShowLine', false);
+ this.showLine = false;
+ } else {
+ this.$emit('changeShowLine', true);
+ this.showLine = true;
+ }
+ },
},
};
diff --git a/src/components/Guide/Guide.vue b/src/components/Guide/Guide.vue
index 57b312c..38afa37 100644
--- a/src/components/Guide/Guide.vue
+++ b/src/components/Guide/Guide.vue
@@ -25,7 +25,8 @@ export default {
.guide-img {
width: 730rpx;
position: absolute;
- top: calc(72px + 60rpx);
+ top: calc(28px + 60rpx);
+ /* top: calc(72px + 60rpx); */
margin-left: 10rpx;
}
.guide-button {
diff --git a/src/components/Roles/Roles.vue b/src/components/Roles/Roles.vue
index 210a053..2e94832 100644
--- a/src/components/Roles/Roles.vue
+++ b/src/components/Roles/Roles.vue
@@ -58,7 +58,7 @@