Skip to content

Commit bd2f6a6

Browse files
author
cuicui20210817
committed
Merge remote-tracking branch 'origin/master' into feature/bpm-back
2 parents 88bbbec + 5ff0be3 commit bd2f6a6

File tree

68 files changed

+879
-437
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+879
-437
lines changed

.env.demo1024

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,12 @@ VUE_APP_BASE_API = 'http://127.0.0.1:48080'
1313
PUBLIC_PATH = '/admin-ui/'
1414
# 二级部署路径
1515
VUE_APP_APP_NAME ='/admin-ui/'
16+
17+
# 多租户的开关
18+
VUE_APP_TENANT_ENABLE = true
19+
20+
# 文档的开关
21+
VUE_APP_DOC_ENABLE = true
22+
23+
# 百度统计
24+
VUE_APP_BAIDU_CODE = fadc1bd5db1a1d6f581df60a1807f8ab

.env.development

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,9 @@ VUE_CLI_BABEL_TRANSPILE_MODULES = true
1313

1414
# 多租户的开关
1515
VUE_APP_TENANT_ENABLE = true
16+
17+
# 文档的开关
18+
VUE_APP_DOC_ENABLE = true
19+
20+
# 百度统计
21+
VUE_APP_BAIDU_CODE = fadc1bd5db1a1d6f581df60a1807f8ab

.env.production

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,11 @@ PUBLIC_PATH = 'http://my-pi.com:8888/yudao-admin/'
1212
# 二级部署路径
1313
VUE_APP_APP_NAME ='yudao-admin'
1414

15+
# 多租户的开关
16+
VUE_APP_TENANT_ENABLE = true
17+
18+
# 文档的开关
19+
VUE_APP_DOC_ENABLE = false
20+
21+
# 百度统计
22+
VUE_APP_BAIDU_CODE = fadc1bd5db1a1d6f581df60a1807f8ab

.env.staging

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,12 @@ VUE_APP_BASE_API = 'http://api-dashboard.yudao.iocoder.cn'
1111

1212
# 静态资源地址
1313
PUBLIC_PATH = 'http://static.yudao.iocoder.cn/'
14+
15+
# 多租户的开关
16+
VUE_APP_TENANT_ENABLE = true
17+
18+
# 文档的开关
19+
VUE_APP_DOC_ENABLE = false
20+
21+
# 百度统计
22+
VUE_APP_BAIDU_CODE = fadc1bd5db1a1d6f581df60a1807f8ab

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "yudao-ui-admin",
3-
"version": "1.6.0-snapshot",
3+
"version": "1.6.1-snapshot",
44
"description": "芋道管理系统",
55
"author": "芋道",
66
"license": "MIT",

src/api/infra/fileConfig.js

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
import request from '@/utils/request'
2+
3+
// 创建文件配置
4+
export function createFileConfig(data) {
5+
return request({
6+
url: '/infra/file-config/create',
7+
method: 'post',
8+
data: data
9+
})
10+
}
11+
12+
// 更新文件配置
13+
export function updateFileConfig(data) {
14+
return request({
15+
url: '/infra/file-config/update',
16+
method: 'put',
17+
data: data
18+
})
19+
}
20+
21+
// 更新文件配置为主配置
22+
export function updateFileConfigMaster(id) {
23+
return request({
24+
url: '/infra/file-config/update-master?id=' + id,
25+
method: 'put'
26+
})
27+
}
28+
29+
// 删除文件配置
30+
export function deleteFileConfig(id) {
31+
return request({
32+
url: '/infra/file-config/delete?id=' + id,
33+
method: 'delete'
34+
})
35+
}
36+
37+
// 获得文件配置
38+
export function getFileConfig(id) {
39+
return request({
40+
url: '/infra/file-config/get?id=' + id,
41+
method: 'get'
42+
})
43+
}
44+
45+
// 获得文件配置分页
46+
export function getFileConfigPage(query) {
47+
return request({
48+
url: '/infra/file-config/page',
49+
method: 'get',
50+
params: query
51+
})
52+
}
53+
54+
export function testFileConfig(id) {
55+
return request({
56+
url: '/infra/file-config/test?id=' + id,
57+
method: 'get'
58+
})
59+
}

src/assets/styles/sidebar.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
position: relative;
88
}
99

10+
.sidebarHide {
11+
margin-left: 0!important;
12+
}
13+
1014
.sidebar-container {
1115
-webkit-transition: width .28s;
1216
transition: width 0.28s;

src/components/Breadcrumb/index.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ export default {
4545
if (!name) {
4646
return false
4747
}
48-
return name.trim() === 'Index'
48+
// return name.trim() === 'Index'
49+
return name.trim() === '首页' // 修复 Index 重复的问题
4950
},
5051
handleLink(item) {
5152
const { redirect, path } = item

src/components/DictTag/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default {
1717
name: "DictTag",
1818
props: {
1919
type: String,
20-
value: [Number, String, Array],
20+
value: [Number, String, Boolean, Array],
2121
},
2222
};
2323
</script>

src/components/DocAlert/index.vue

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<template>
2+
<el-alert v-if="enable()" :title="'【' + title + '】文档地址:' + url" type="success" show-icon />
3+
</template>
4+
5+
<script>
6+
import {getDocEnable} from "@/utils/ruoyi";
7+
8+
export default {
9+
name: "DocAlert",
10+
props: {
11+
title: String,
12+
url: String,
13+
},
14+
methods: {
15+
enable: function () {
16+
return getDocEnable();
17+
}
18+
}
19+
};
20+
</script>
21+
<style scoped>
22+
.el-alert--success.is-light {
23+
margin-bottom: 10px;
24+
}
25+
</style>

0 commit comments

Comments
 (0)