Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-operate-sys-cscec
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fulixin
dsk-operate-sys-cscec
Commits
923f20ff
Commit
923f20ff
authored
Nov 24, 2023
by
tianhongyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2023/11/24
parent
4df06171
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
237 additions
and
151 deletions
+237
-151
.env.development
dsk-operate-ui/.env.development
+4
-1
.env.production
dsk-operate-ui/.env.production
+2
-0
.env.test
dsk-operate-ui/.env.test
+3
-1
config.js
dsk-operate-ui/src/api/system/config.js
+23
-9
auth.js
dsk-operate-ui/src/utils/auth.js
+15
-9
index.vue
dsk-operate-ui/src/views/bi/index.vue
+38
-0
index.vue
dsk-operate-ui/src/views/system/config/index.vue
+147
-126
index.vue
dsk-operate-ui/src/views/system/user/index.vue
+5
-5
No files found.
dsk-operate-ui/.env.development
View file @
923f20ff
...
...
@@ -13,4 +13,7 @@ VUE_CLI_BABEL_TRANSPILE_MODULES = true
# 子系统地址
# VUE_APP_SUB_SYSTEM_ADDRESS = "https://pre-plug.jiansheku.com"
VUE_APP_SUB_SYSTEM_ADDRESS = "http://192.168.60.104:3400"
\ No newline at end of file
VUE_APP_SUB_SYSTEM_ADDRESS = "http://192.168.60.104:3400"
# Bi大屏系统地址
VUE_APP_BI_SYSTEM_ADDRESS = "http://192.168.60.104:8001"
\ No newline at end of file
dsk-operate-ui/.env.production
View file @
923f20ff
...
...
@@ -9,3 +9,5 @@ VUE_APP_BASE_API = 'https://szhapi.jiansheku.com'
# 子系统地址
VUE_APP_SUB_SYSTEM_ADDRESS = "https://plug.jiansheku.com"
VUE_APP_BI_SYSTEM_ADDRESS = "http://192.168.60.104:8001"
dsk-operate-ui/.env.test
View file @
923f20ff
...
...
@@ -12,4 +12,6 @@ ENV = 'test'
VUE_APP_BASE_API
=
'/prod-api'
# 子系统地址
VUE_APP_SUB_SYSTEM_ADDRESS
=
"https://pre-plug.jiansheku.com"
\ No newline at end of file
VUE_APP_SUB_SYSTEM_ADDRESS
=
"https://pre-plug.jiansheku.com"
VUE_APP_BI_SYSTEM_ADDRESS
=
"http://192.168.60.104:8001"
\ No newline at end of file
dsk-operate-ui/src/api/system/config.js
View file @
923f20ff
import
request
from
'@/utils/request'
import
request
from
'@/utils/request'
;
// 查询参数列表
export
function
listConfig
(
query
)
{
...
...
@@ -6,7 +6,7 @@ export function listConfig(query) {
url
:
'/system/config/list'
,
method
:
'get'
,
params
:
query
})
})
;
}
// 查询参数详细
...
...
@@ -14,7 +14,7 @@ export function getConfig(configId) {
return
request
({
url
:
'/system/config/'
+
configId
,
method
:
'get'
})
})
;
}
// 根据参数键名查询参数值
...
...
@@ -22,7 +22,7 @@ export function getConfigKey(configKey) {
return
request
({
url
:
'/system/config/configKey/'
+
configKey
,
method
:
'get'
})
})
;
}
// 新增参数配置
...
...
@@ -31,7 +31,7 @@ export function addConfig(data) {
url
:
'/system/config'
,
method
:
'post'
,
data
:
data
})
})
;
}
// 修改参数配置
...
...
@@ -40,9 +40,23 @@ export function updateConfig(data) {
url
:
'/system/config'
,
method
:
'put'
,
data
:
data
})
})
;
}
// 新增租户参数配置
export
const
addTenantConfig
=
(
data
)
=>
request
({
url
:
"/system/config/tenant/add"
,
method
:
"post"
,
data
});
// 修改租户参数配置
export
const
updateTenantConfig
=
(
data
)
=>
request
({
url
:
"/system/config/tenant/add"
,
method
:
"put"
,
data
});
// 修改参数配置
export
function
updateConfigByKey
(
key
,
value
)
{
return
request
({
...
...
@@ -52,7 +66,7 @@ export function updateConfigByKey(key, value) {
configKey
:
key
,
configValue
:
value
}
})
})
;
}
// 删除参数配置
...
...
@@ -60,7 +74,7 @@ export function delConfig(configId) {
return
request
({
url
:
'/system/config/'
+
configId
,
method
:
'delete'
})
})
;
}
// 刷新参数缓存
...
...
@@ -68,6 +82,6 @@ export function refreshCache() {
return
request
({
url
:
'/system/config/refreshCache'
,
method
:
'delete'
})
})
;
}
dsk-operate-ui/src/utils/auth.js
View file @
923f20ff
import
Cookies
from
'js-cookie'
import
Cookies
from
'js-cookie'
;
const
TokenKey
=
'Admin-Token'
const
Tenantid
=
'Tenantid'
const
TokenKey
=
'Admin-Token'
;
const
Tenantid
=
'Tenantid'
;
export
function
getToken
()
{
return
Cookies
.
get
(
TokenKey
)
return
Cookies
.
get
(
TokenKey
)
;
}
export
function
getTenantid
()
{
return
Cookies
.
get
(
Tenantid
)
return
Cookies
.
get
(
Tenantid
)
;
}
export
function
setToken
(
token
)
{
return
Cookies
.
set
(
TokenKey
,
token
)
return
Cookies
.
set
(
TokenKey
,
token
)
;
}
export
function
setTenantid
(
id
)
{
return
Cookies
.
set
(
Tenantid
,
id
)
return
Cookies
.
set
(
Tenantid
,
id
)
;
}
export
function
removeToken
()
{
return
Cookies
.
remove
(
TokenKey
)
return
Cookies
.
remove
(
TokenKey
)
;
}
export
function
removeTenantid
()
{
return
Cookies
.
remove
(
Tenantid
)
return
Cookies
.
remove
(
Tenantid
);
}
export
function
setBiAuth
(
token
)
{
if
(
!
token
)
return
false
;
sessionStorage
.
setItem
(
"DSK_SYSTEM_AUTH_TOKEN"
,
token
);
return
true
;
}
dsk-operate-ui/src/views/bi/index.vue
0 → 100644
View file @
923f20ff
<
script
>
import
{
getToken
}
from
"@/utils/auth"
;
export
default
{
name
:
"bi"
,
data
()
{
return
{
};
},
//可访问data属性
created
()
{
},
//计算集
computed
:
{
},
//方法集
methods
:
{
async
closeOuterTab
()
{
await
this
.
$nextTick
();
this
.
$tab
.
closePage
();
}
},
render
(
h
)
{
const
token
=
getToken
();
if
(
!
token
)
{
this
.
$message
.
warning
(
"获取auth令牌失败"
);
this
.
closeOuterTab
();
return
;
}
window
.
open
(
`
${
process
.
env
.
VUE_APP_BI_SYSTEM_ADDRESS
}
?DSK_SYSTEM_AUTH_TOKEN=
${
token
}
`
,
"DSK_BI_SYSTEM"
);
this
.
closeOuterTab
();
},
}
</
script
>
<
style
lang=
"scss"
scoped
>
</
style
>
dsk-operate-ui/src/views/system/config/index.vue
View file @
923f20ff
This diff is collapsed.
Click to expand it.
dsk-operate-ui/src/views/system/user/index.vue
View file @
923f20ff
...
...
@@ -226,8 +226,8 @@
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"80px"
>
<el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"用户
昵
称"
prop=
"nickName"
>
<el-input
v-model=
"form.nickName"
placeholder=
"请输入用户
昵
称"
maxlength=
"30"
/>
<el-form-item
label=
"用户
名
称"
prop=
"nickName"
>
<el-input
v-model=
"form.nickName"
placeholder=
"请输入用户
名
称"
maxlength=
"30"
/>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
...
...
@@ -373,7 +373,7 @@
</el-table-column>
<el-table-column
prop=
"nickName"
label=
"用户
昵
称"
>
label=
"用户
名
称"
>
</el-table-column>
<el-table-column
prop=
"phonenumber"
...
...
@@ -477,7 +477,7 @@ export default {
columns
:
[
{
key
:
0
,
label
:
`用户编号`
,
visible
:
true
},
{
key
:
1
,
label
:
`用户名称`
,
visible
:
true
},
{
key
:
2
,
label
:
`用户
昵
称`
,
visible
:
true
},
{
key
:
2
,
label
:
`用户
名
称`
,
visible
:
true
},
{
key
:
3
,
label
:
`组织`
,
visible
:
true
},
{
key
:
4
,
label
:
`手机号码`
,
visible
:
true
},
{
key
:
5
,
label
:
`状态`
,
visible
:
true
},
...
...
@@ -486,7 +486,7 @@ export default {
// 表单校验
rules
:
{
nickName
:
[
{
required
:
true
,
message
:
"用户
昵
称不能为空"
,
trigger
:
"blur"
}
{
required
:
true
,
message
:
"用户
名
称不能为空"
,
trigger
:
"blur"
}
],
deptId
:
[
{
required
:
true
,
message
:
"组织不能为空"
,
trigger
:
"blur"
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment