Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
fe-data-trusted-space
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
1fb590f9
authored
2025-12-04 16:37:13 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复策略的必填检验
1 parent
d93fc6b7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
14 deletions
src/layouts/components/Tools/index.vue
src/views/data_asset/dataDelivery.vue
src/views/data_smart_contract/components/strategyTable.vue
src/layouts/components/Tools/index.vue
View file @
1fb590f
...
...
@@ -87,6 +87,7 @@ const verifyDialogBtnClick = (btn, info) => {
localStorage
.
setItem
(
'userRole'
,
selectRole
.
value
);
// 从浏览器缓存中重新加载页面
location
.
reload
();
window
.
location
.
href
=
location
.
origin
+
'/'
;
}
}).
catch
(()
=>
{
verifyDialogInfo
.
value
.
footer
.
btns
[
1
].
loading
=
false
;
...
...
src/views/data_asset/dataDelivery.vue
View file @
1fb590f
...
...
@@ -198,7 +198,7 @@ const tableInfo = ref({
actionInfo
:
{
label
:
"操作"
,
type
:
"btn"
,
width
:
1
6
0
,
width
:
1
4
0
,
btns
:
(
scope
)
=>
{
let
btns
:
any
=
[];
let
row
=
scope
.
row
;
...
...
src/views/data_smart_contract/components/strategyTable.vue
View file @
1fb590f
...
...
@@ -474,25 +474,30 @@ const validateValue = () => {
proxy
.
$ElMessage
.
error
(
'行为类型必填,请填写完整'
);
return
false
;
}
if
(
!
d
.
constraintName
)
{
// 加密不需要填写约束条件和运算符
if
(
d
.
action
!=
'加密'
&&
!
d
.
constraintName
)
{
proxy
.
$ElMessage
.
error
(
'约束条件必填,请填写完整'
);
return
false
;
}
if
(
!
d
.
constraintOperatorCode
)
{
if
(
d
.
action
!=
'加密'
&&
!
d
.
constraintOperatorCode
)
{
proxy
.
$ElMessage
.
error
(
'运算符必填,请填写完整'
);
return
false
;
}
if
(
!
d
.
constraintValue
)
{
proxy
.
$ElMessage
.
error
(
'约束值必填,请填写完整'
);
return
false
;
}
if
(
d
.
constraintName
.
includes
(
'字段'
)
&&
!
d
.
constraintFieldValue
?.
length
)
{
proxy
.
$ElMessage
.
error
(
'约束值必填,请填写完整'
);
return
false
;
}
if
((
d
.
constraintEnName
==
'limitedDeliveryConnector'
||
d
.
constraintEnName
==
'limitedUseConnector'
)
&&
!
d
.
constraintConnectorValue
?.
length
)
{
proxy
.
$ElMessage
.
error
(
'约束值必填,请填写完整'
);
return
false
;
if
(
d
.
constraintEnName
==
'dataField'
)
{
if
(
!
d
.
constraintFieldValue
?.
length
)
{
proxy
.
$ElMessage
.
error
(
'字段的约束值必填,请填写完整'
);
return
false
;
}
}
else
if
((
d
.
constraintEnName
==
'limitedDeliveryConnector'
||
d
.
constraintEnName
==
'limitedUseConnector'
))
{
if
(
!
d
.
constraintConnectorValue
?.
length
)
{
proxy
.
$ElMessage
.
error
(
'约束值必填,请填写完整'
);
return
false
;
}
}
else
{
if
(
d
.
action
!=
'加密'
&&
!
d
.
constraintValue
)
{
proxy
.
$ElMessage
.
error
(
'约束值必填,请填写完整'
);
return
false
;
}
}
}
return
true
;
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment