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
zhouqian
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
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
45 additions
and
5 deletions
+45
-5
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
+9
-1
index.vue
src/views/Statics/Dbicty/index.vue
+10
-1
index.vue
src/views/Statics/Dbicur/index.vue
+9
-1
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,6 +103,10 @@ export default {
commitAdd
()
{
this
.
$refs
.
modelForm
.
validate
((
validated
)
=>
{
if
(
validated
)
{
queryCod
(
this
.
model
.
cod
)
.
then
((
res
)
=>
{
console
.
log
(
"res"
+
res
)
if
(
!
res
)
{
add
(
this
.
model
)
.
then
((
res
)
=>
{
this
.
$message
.
success
(
"添加成功!"
);
...
...
@@ -112,6 +116,10 @@ export default {
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,6 +112,9 @@ export default {
this
.
$refs
.
modelForm
.
validate
((
validated
)
=>
{
if
(
validated
)
{
this
.
model
.
codBopcty
=
this
.
model
.
bopcod
;
queryCod
(
this
.
model
.
cod
)
.
then
((
res
)
=>
{
if
(
!
res
)
{
add
(
this
.
model
)
.
then
((
res
)
=>
{
this
.
$message
.
success
(
"保存成功!"
);
...
...
@@ -120,6 +123,12 @@ export default {
.
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,6 +75,9 @@ export default {
commitAdd
()
{
this
.
$refs
.
modelForm
.
validate
((
validated
)
=>
{
if
(
validated
)
{
queryCod
(
this
.
model
.
cod
)
.
then
(((
res
)
=>
{
if
(
!
res
)
{
add
(
this
.
model
)
.
then
((
res
)
=>
{
this
.
$message
.
success
(
"保存成功!"
);
...
...
@@ -84,6 +87,11 @@ export default {
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