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
6301d6a4
Commit
6301d6a4
authored
Nov 23, 2022
by
tianxinyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
index修改
parent
928f3714
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
8 deletions
+32
-8
index.vue
src/views/Statics/Dbifec/index.vue
+32
-8
No files found.
src/views/Statics/Dbifec/index.vue
View file @
6301d6a4
...
...
@@ -11,7 +11,7 @@
:validate-on-rule-change=
"false"
:disabled=
"isDisabled"
>
<c-tabs
v-model=
"tabVal"
ref=
"elment"
type=
"card"
>
<c-tabs
v-model=
"tabVal"
ref=
"elment"
type=
"card"
@
tab-click=
"changePosition"
>
<el-tab-pane
label=
"费率信息"
name=
"fec"
>
<c-content>
<m-fec-info
:model=
"model"
/>
...
...
@@ -59,7 +59,7 @@ import Fec, { Pattern } from "./Fec.js";
import
FecInfo
from
"./FecInfo.vue"
;
import
FeeInfo
from
"./FeeInfo.vue"
;
import
{
queryDetailById
,
add
,
edit
,
deleteById
}
from
"~/service/test/fec.js"
;
import
{
queryDetailById
,
add
,
edit
,
deleteById
,
editFeeData
,
deleteFeeData
}
from
"~/service/test/fec.js"
;
export
default
{
name
:
"StaticsDbifec"
,
...
...
@@ -87,6 +87,7 @@ export default {
model
:
new
Fec
().
data
,
tabVal
:
"fec"
,
rules
:
Pattern
,
tabPosition
:
"tab-fec"
,
};
},
computed
:
{
...
...
@@ -126,14 +127,24 @@ export default {
commitEdit
()
{
this
.
$refs
.
modelForm
.
validate
((
validated
)
=>
{
if
(
validated
)
{
if
(
this
.
tabPosition
===
`tab-fec`
){
edit
(
this
.
model
)
.
then
((
res
)
=>
{
this
.
$message
.
success
(
"保存成功!"
);
this
.
$message
.
success
(
"
费率修改
保存成功!"
);
this
.
goBack
()
})
.
catch
((
err
)
=>
{
this
.
$message
.
error
(
"保存失败!"
);
this
.
$message
.
error
(
"费率修改保存失败!"
);
});}
else
{
editFeeData
(
this
.
model
.
inr
,
this
.
model
)
.
then
((
res
)
=>
{
this
.
$message
.
success
(
"费用代码修改保存成功!"
);
this
.
goBack
()
})
.
catch
((
err
)
=>
{
this
.
$message
.
error
(
"费用代码修改保存失败!"
);
});
}
}
else
{
Utils
.
formValidateTips
(
this
.
$refs
.
modelForm
.
fields
)
}
...
...
@@ -146,14 +157,24 @@ export default {
type
:
"warning"
,
})
.
then
(()
=>
{
if
(
this
.
tabPosition
===
`tab-fec`
){
deleteById
(
this
.
model
.
inr
)
.
then
((
res
)
=>
{
this
.
$message
.
success
(
"删除成功!"
);
this
.
$message
.
success
(
"
费率信息
删除成功!"
);
this
.
goBack
(
true
)
})
.
catch
((
err
)
=>
{
this
.
$message
.
error
(
"删除失败!"
);
});
this
.
$message
.
error
(
"费率信息删除失败!"
);
})}
else
{
deleteFeeData
(
this
.
model
)
.
then
((
res
)
=>
{
this
.
$message
.
success
(
"费用代码删除成功!"
);
this
.
goBack
(
true
)
})
.
catch
((
err
)
=>
{
this
.
$message
.
error
(
"费用代码删除失败!"
);
})
};
})
.
catch
(()
=>
{
this
.
$message
({
...
...
@@ -169,7 +190,10 @@ export default {
this
.
$store
.
dispatch
(
"TagsView/delView"
,
this
.
$route
);
this
.
$router
.
push
({
name
:
"StaticsInffec"
,
params
:
{
update
}
});
},
changePosition
(
tab
,
event
){
this
.
tabPosition
=
event
.
target
.
getAttribute
(
'id'
);
console
.
log
(
this
.
tabPosition
)
},
},
};
</
script
>
...
...
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