Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
9
91isoft_sys_web
Project
Project
Details
Activity
Releases
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
张伯涛
91isoft_sys_web
Commits
6068bdb7
Commit
6068bdb7
authored
Jul 19, 2022
by
zhangyichen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into demo1
parents
216ae298
9b7a7b78
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
10 deletions
+17
-10
data.js
src/api/system/dict/data.js
+3
-3
permission.js
src/permission.js
+6
-1
index.vue
src/views/monitor/loginInfo/index.vue
+1
-1
data.vue
src/views/system/dict/data.vue
+6
-4
index.vue
src/views/system/dict/index.vue
+1
-1
No files found.
src/api/system/dict/data.js
View file @
6068bdb7
...
...
@@ -73,11 +73,11 @@ export function delData(dictCode) {
}
// 导出字典数据
export
function
exportData
(
query
)
{
export
function
exportData
(
params
)
{
return
request
({
url
:
'/system/dict/data/export
/'
+
query
.
dictType
,
url
:
'/system/dict/data/export
'
,
method
:
'get'
,
params
:
query
,
params
,
responseType
:
'blob'
})
}
src/permission.js
View file @
6068bdb7
...
...
@@ -59,7 +59,12 @@ router.beforeEach((to, from, next) => {
})
})
}
else
{
next
()
if
(
store
.
state
.
tagsView
.
visitedViews
.
length
===
10
)
{
Message
.
error
(
'您操作的页面较多,请先关闭部分页面'
)
NProgress
.
done
()
}
else
{
next
()
}
// 没有动态改变权限的需求可直接next() 删除下方权限判断 ↓
// if (hasPermission(store.getters.roles, to.meta.roles)) {
// next()
...
...
src/views/monitor/loginInfo/index.vue
View file @
6068bdb7
...
...
@@ -195,7 +195,7 @@ export default {
switch
(
row
)
{
case
'1'
:
return
'成功'
case
'
2
'
:
case
'
0
'
:
return
'失败'
}
},
...
...
src/views/system/dict/data.vue
View file @
6068bdb7
...
...
@@ -151,7 +151,7 @@
<el-input
v-model
.
trim=
"form.dictLabel"
show-word-limit
maxlength=
"30"
placeholder=
"请输入参数标签"
/>
</el-form-item>
<el-form-item
label=
"参数键值"
prop=
"dictValue"
>
<el-input
v-model
.
trim=
"form.dictValue"
show-word-limit
maxlength=
"
30
0"
placeholder=
"请输入参数键值"
/>
<el-input
v-model
.
trim=
"form.dictValue"
show-word-limit
maxlength=
"
4
0"
placeholder=
"请输入参数键值"
/>
</el-form-item>
<el-form-item
label=
"参数排序"
prop=
"dictSort"
>
<el-input-number
v-model=
"form.dictSort"
style=
"width: 100%"
controls-position=
"right"
:min=
"0"
/>
...
...
@@ -424,13 +424,15 @@ export default {
},
/** 导出按钮操作 */
handleExport
()
{
const
queryParams
=
this
.
queryParams
const
params
=
{
dictType
:
this
.
queryParams
.
dictType
}
this
.
$confirm
(
'是否确认导出所有数据项?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
function
()
{
return
exportData
(
queryP
arams
).
then
(
response
=>
{
}).
then
(
()
=>
{
exportData
(
p
arams
).
then
(
response
=>
{
const
blob
=
new
Blob
([
response
])
const
downloadElement
=
document
.
createElement
(
'a'
)
const
href
=
window
.
URL
.
createObjectURL
(
blob
)
// 创建下载的链接
...
...
src/views/system/dict/index.vue
View file @
6068bdb7
...
...
@@ -194,7 +194,7 @@
<!-- </el-radio-group>-->
</el-form-item>
<el-form-item
label=
"父字典名称"
>
<el-select
v-model=
"form.parentId"
style=
"width: 100%"
clearable
placeholder=
"请选择父字典"
@
change=
"getOptions"
>
<el-select
v-model=
"form.parentId"
style=
"width: 100%"
clearable
placeholder=
"请选择父字典
名称
"
@
change=
"getOptions"
>
<el-option
v-for=
"item in options"
:key=
"item.businessId"
...
...
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