Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gjjs
Overview
Overview
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
fukai
vue-gjjs
Commits
fd5835ba
Commit
fd5835ba
authored
Dec 15, 2022
by
hewei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cod不允许重复值优化
parent
45907c24
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
69 additions
and
29 deletions
+69
-29
atp.js
src/service/test/atp.js
+4
-0
cty.js
src/service/test/cty.js
+4
-0
cur.js
src/service/test/cur.js
+4
-0
index.vue
src/views/Business/Botset/index.vue
+5
-2
index.vue
src/views/Statics/Dbiatp/index.vue
+17
-9
index.vue
src/views/Statics/Dbicty/index.vue
+18
-9
index.vue
src/views/Statics/Dbicur/index.vue
+17
-9
No files found.
src/service/test/atp.js
View file @
fd5835ba
...
...
@@ -12,6 +12,10 @@ export function add(data) {
return
Api
.
post
(
"/manager/atp/add"
,
data
)
}
export
function
queryCod
(
cod
)
{
return
Api
.
post
(
`/manager/atp/queryCod?cod=
${
cod
}
`
)
}
export
function
edit
(
data
)
{
return
Api
.
post
(
"/manager/atp/edit"
,
data
)
}
...
...
src/service/test/cty.js
View file @
fd5835ba
...
...
@@ -12,6 +12,10 @@ export function add(data) {
return
Api
.
post
(
"/manager/cty/add"
,
data
)
}
export
function
queryCod
(
cod
)
{
return
Api
.
post
(
`/manager/cty/queryCod?cod=
${
cod
}
`
)
}
export
function
edit
(
data
)
{
return
Api
.
post
(
"/manager/cty/edit"
,
data
)
}
...
...
src/service/test/cur.js
View file @
fd5835ba
...
...
@@ -12,6 +12,10 @@ export function add(data) {
return
Api
.
post
(
"/manager/cur/add"
,
data
)
}
export
function
queryCod
(
cod
)
{
return
Api
.
post
(
`/manager/cur/queryCod?cod=
${
cod
}
`
)
}
export
function
edit
(
data
)
{
return
Api
.
post
(
"/manager/cur/edit"
,
data
)
}
...
...
src/views/Business/Botset/index.vue
View file @
fd5835ba
...
...
@@ -267,8 +267,11 @@ export default {
if
(
this
.
isInDisplay
)
{
this
.
restoreDisplay
();
}
// this.$refs.ovwp.$refs.setp.$refs.table.$refs.table.toggleRowSelection(this.model.liaall.tenstm.rows[0], true);
this
.
$refs
.
ovwp
.
$refs
.
setp
.
$refs
.
table
.
$refs
.
table
.
toggleAllSelection
();
//多选表格,选择某一行的选中状态,第二个参数设置选中与否,true为选中
if
(
this
.
$refs
.
ovwp
.
$refs
.
setp
.
$refs
.
table
.
$refs
.
table
.
data
.
length
>
0
)
{
this
.
$refs
.
ovwp
.
$refs
.
setp
.
$refs
.
table
.
$refs
.
table
.
toggleRowSelection
(
this
.
$refs
.
ovwp
.
$refs
.
setp
.
$refs
.
table
.
$refs
.
table
.
data
[
0
],
true
);
}
// this.$refs.ovwp.$refs.setp.$refs.table.$refs.table.toggleAllSelection();
// this.$refs.setp.$refs.table.$refs.table.toggleAllSelection();
}
else
{
this
.
$notify
.
error
({
title
:
'错误'
,
message
:
'服务请求失败!'
});
...
...
src/views/Statics/Dbiatp/index.vue
View file @
fd5835ba
...
...
@@ -53,7 +53,7 @@ import Atp, { Pattern } from "./Atp.js";
import
AtpInfo
from
"./AtpInfo.vue"
;
import
{
queryById
,
add
,
edit
,
deleteById
}
from
"~/service/test/atp.js"
;
import
{
queryById
,
add
,
edit
,
deleteById
,
queryCod
}
from
"~/service/test/atp.js"
;
export
default
{
name
:
"StaticsDbiatp"
,
...
...
@@ -103,14 +103,22 @@ export default {
commitAdd
()
{
this
.
$refs
.
modelForm
.
validate
((
validated
)
=>
{
if
(
validated
)
{
add
(
this
.
model
)
.
then
((
res
)
=>
{
this
.
$message
.
success
(
"添加成功!"
);
this
.
goBack
(
true
)
})
.
catch
((
err
)
=>
{
this
.
$message
.
error
(
"添加失败!"
);
});
queryCod
(
this
.
model
.
cod
)
.
then
((
res
)
=>
{
console
.
log
(
"res"
+
res
)
if
(
!
res
)
{
add
(
this
.
model
)
.
then
((
res
)
=>
{
this
.
$message
.
success
(
"添加成功!"
);
this
.
goBack
(
true
)
})
.
catch
((
err
)
=>
{
this
.
$message
.
error
(
"添加失败!"
);
});
}
else
{
return
this
.
$message
.
error
(
'交易配置信息代码重复'
);
}
})
}
else
{
Utils
.
formValidateTips
(
this
.
$refs
.
modelForm
.
fields
)
}
...
...
src/views/Statics/Dbicty/index.vue
View file @
fd5835ba
...
...
@@ -59,7 +59,7 @@ import Cty, { Pattern } from "./Cty.js";
import
CtyInfo
from
"./CtyInfo.vue"
;
import
BopctyInfo
from
"./BopctyInfo.vue"
;
import
{
queryById
,
add
,
edit
,
deleteById
,
editBopctyData
,
deleteBopctyById
}
from
"~/service/test/cty.js"
;
import
{
queryById
,
add
,
edit
,
deleteById
,
editBopctyData
,
deleteBopctyById
,
queryCod
}
from
"~/service/test/cty.js"
;
export
default
{
name
:
"StaticsDbicty"
,
...
...
@@ -112,14 +112,23 @@ export default {
this
.
$refs
.
modelForm
.
validate
((
validated
)
=>
{
if
(
validated
)
{
this
.
model
.
codBopcty
=
this
.
model
.
bopcod
;
add
(
this
.
model
)
.
then
((
res
)
=>
{
this
.
$message
.
success
(
"保存成功!"
);
this
.
goBack
(
true
)
})
.
catch
((
err
)
=>
{
this
.
$message
.
error
(
"保存失败!"
);
});
queryCod
(
this
.
model
.
cod
)
.
then
((
res
)
=>
{
if
(
!
res
)
{
add
(
this
.
model
)
.
then
((
res
)
=>
{
this
.
$message
.
success
(
"保存成功!"
);
this
.
goBack
(
true
)
})
.
catch
((
err
)
=>
{
this
.
$message
.
error
(
"保存失败!"
);
});
}
else
{
this
.
$message
.
error
(
"国家代码重复"
)
}
})
}
else
{
Utils
.
formValidateTips
(
this
.
$refs
.
modelForm
.
fields
)
}
...
...
src/views/Statics/Dbicur/index.vue
View file @
fd5835ba
...
...
@@ -23,7 +23,7 @@ import Cur, { Pattern } from "../Infcur/Cur.js";
import
Currency
from
"./Currency.vue"
;
import
{
curInfo
,
add
,
edit
,
deleteById
}
from
"~/service/test/cur.js"
;
import
{
curInfo
,
add
,
edit
,
deleteById
,
queryCod
}
from
"~/service/test/cur.js"
;
export
default
{
name
:
"StaticsDbicur"
,
...
...
@@ -75,14 +75,22 @@ export default {
commitAdd
()
{
this
.
$refs
.
modelForm
.
validate
((
validated
)
=>
{
if
(
validated
)
{
add
(
this
.
model
)
.
then
((
res
)
=>
{
this
.
$message
.
success
(
"保存成功!"
);
this
.
goBack
(
true
)
})
.
catch
((
err
)
=>
{
this
.
$message
.
error
(
"保存失败!"
);
});
queryCod
(
this
.
model
.
cod
)
.
then
(((
res
)
=>
{
if
(
!
res
)
{
add
(
this
.
model
)
.
then
((
res
)
=>
{
this
.
$message
.
success
(
"保存成功!"
);
this
.
goBack
(
true
)
})
.
catch
((
err
)
=>
{
this
.
$message
.
error
(
"保存失败!"
);
});
}
else
{
this
.
$message
.
error
(
"货币种类重复"
)
}
}))
}
else
{
Utils
.
formValidateTips
(
this
.
$refs
.
modelForm
.
fields
)
}
...
...
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