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
2faa230e
Commit
2faa230e
authored
Nov 16, 2023
by
tianhongyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
784433ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
10 deletions
+13
-10
index.js
dsk-operate-ui/src/utils/index.js
+11
-7
index.vue
dsk-operate-ui/src/views/enterpriseManagement/index.vue
+2
-3
No files found.
dsk-operate-ui/src/utils/index.js
View file @
2faa230e
...
@@ -572,15 +572,19 @@ export async function elementMessageSingleton(type = "success", messgage = "") {
...
@@ -572,15 +572,19 @@ export async function elementMessageSingleton(type = "success", messgage = "") {
* @returns
* @returns
*/
*/
export
function
hasDuplicates
(
arr
,
mapKey
=
null
)
{
export
function
hasDuplicates
(
arr
,
mapKey
=
null
)
{
const
map
=
new
Map
();
try
{
for
(
const
item
of
arr
)
{
const
map
=
new
Map
();
const
key
=
mapKey
?
item
[
mapKey
]
:
JSON
.
stringify
(
item
);
for
(
const
item
of
arr
)
{
if
(
map
.
has
(
key
))
{
const
key
=
mapKey
?
item
[
mapKey
]
:
JSON
.
stringify
(
item
);
return
{
hasRepeat
:
true
,
repeatKey
:
key
};
if
(
map
.
has
(
key
))
{
return
{
hasRepeat
:
true
,
repeatKey
:
key
};
}
map
.
set
(
key
,
true
);
}
}
map
.
set
(
key
,
true
);
return
{
hasRepeat
:
false
};
}
catch
(
error
)
{
console
.
log
(
error
);
}
}
return
{
hasRepeat
:
false
,
repeatKey
:
key
};
}
}
// 甲方详情左侧菜单映射
// 甲方详情左侧菜单映射
...
...
dsk-operate-ui/src/views/enterpriseManagement/index.vue
View file @
2faa230e
...
@@ -379,11 +379,10 @@ export default {
...
@@ -379,11 +379,10 @@ export default {
submitForm
:
function
()
{
submitForm
:
function
()
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
this
.
$refs
[
"form"
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
const
text
=
this
.
form
.
id
?
"正在修改企业数据,请耐心等待"
:
"正在添加企业数据,请耐心等待"
;
const
loading
=
this
.
$loading
({
const
loading
=
this
.
$loading
({
lock
:
true
,
lock
:
true
,
text
:
'数据处理中...'
,
text
,
spinner
:
'el-icon-loading'
,
background
:
'rgba(0, 0, 0, 0.7)'
});
});
this
.
form
.
startTime
=
this
.
form
.
dateRange
[
0
];
this
.
form
.
startTime
=
this
.
form
.
dateRange
[
0
];
this
.
form
.
expireTime
=
this
.
form
.
dateRange
[
1
];
this
.
form
.
expireTime
=
this
.
form
.
dateRange
[
1
];
...
...
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