Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sgaqgl-vue
Project
Project
Details
Activity
Releases
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
李苏
sgaqgl-vue
Commits
dc95b98e
Commit
dc95b98e
authored
Jan 05, 2023
by
dingyoujian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处罚设置
parent
059b9b5a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
82 additions
and
2 deletions
+82
-2
cfsz.vue
src/views/threeViolations/punishmentRecord/cfsz.vue
+68
-0
index.vue
src/views/threeViolations/punishmentRecord/index.vue
+14
-2
No files found.
src/views/threeViolations/punishmentRecord/cfsz.vue
0 → 100644
View file @
dc95b98e
<
template
>
<DefaultDialog
:app=
'app'
>
<el-form
slot=
"form"
ref=
"form"
label-width=
"100px"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"处罚金额"
ref=
"cfje"
prop=
"cfje"
>
<el-input
type=
'number'
:readonly=
"readonly"
v-model=
"singleItem.cfje"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"考核分数"
ref=
"cffs"
prop=
"cffs"
>
<el-input
type=
'number'
:readonly=
"readonly"
v-model=
"singleItem.cffs"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
<div
slot=
"reFooter"
class=
"refooter"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"app.showDialog=false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"save()"
>
保 存
</el-button>
</span>
</div>
</DefaultDialog>
</
template
>
<
script
>
import
{
doPunish
}
from
"@/api/threeViolations/enterTV.js"
export
default
{
props
:
{
app
:
{
type
:
Object
,
default
:
{}
}
},
async
mounted
()
{
this
.
singleItem
=
_
.
cloneDeep
(
this
.
app
.
singleItem
)
},
data
()
{
return
{
singleItem
:{
cfje
:
''
,
cffs
:
''
,
},
}},
methods
:
{
save
(){
let
params
=
{
id
:
this
.
singleItem
.
id
,
cfje
:
this
.
singleItem
.
cfje
,
cffs
:
this
.
singleItem
.
cffs
,
}
doPunish
(
params
).
then
(
res
=>
{
if
(
res
.
success
){
this
.
$success
(
'提交成功'
)
this
.
app
.
$refs
[
'TablePager'
].
reLoad
()
this
.
app
.
$refs
[
'TablePager'
].
clearSelected
()
this
.
app
.
showDialog
=
false
}
})
}
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/threeViolations/punishmentRecord/index.vue
View file @
dc95b98e
<
template
>
<
template
>
<div
class=
"min_full"
>
<div
class=
"min_full"
>
<Cfsz
:app=
'this'
v-if=
"showDialog"
></Cfsz>
<!-- 查询条件-->
<!-- 查询条件-->
<div
class=
"search"
v-condition
>
<div
class=
"search"
v-condition
>
<SearchButton
:app=
'app'
></SearchButton>
<SearchButton
:app=
'app'
></SearchButton>
...
@@ -52,6 +52,7 @@
...
@@ -52,6 +52,7 @@
<!--
<AttachFileButton
:app=
'app'
></AttachFileButton>
-->
<!--
<AttachFileButton
:app=
'app'
></AttachFileButton>
-->
<FieldButton
:app=
'app'
></FieldButton>
<FieldButton
:app=
'app'
></FieldButton>
<ExcelButton
:app=
'app'
></ExcelButton>
<ExcelButton
:app=
'app'
></ExcelButton>
<el-button
size=
'mini'
@
click=
"cfxxsz"
type=
"primary"
>
处罚
</el-button>
<!-- 额外按钮-->
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 表头设置 -->
...
@@ -77,6 +78,7 @@
...
@@ -77,6 +78,7 @@
}
from
'@/api/threeViolations/enterTV.js'
;
}
from
'@/api/threeViolations/enterTV.js'
;
/* edit页面*/
/* edit页面*/
import
Edit
from
'./edit'
import
Edit
from
'./edit'
import
Cfsz
from
'./cfsz'
import
{
import
{
tableMixin
tableMixin
}
from
'common'
}
from
'common'
...
@@ -113,6 +115,7 @@
...
@@ -113,6 +115,7 @@
{
label
:
"联系手机"
,
prop
:
"phone"
,
fieldType
:
"ftString"
,
width
:
120
},
{
label
:
"联系手机"
,
prop
:
"phone"
,
fieldType
:
"ftString"
,
width
:
120
},
{
label
:
"违章日期"
,
prop
:
"wzrq"
,
fieldType
:
"ftDate"
},
{
label
:
"违章日期"
,
prop
:
"wzrq"
,
fieldType
:
"ftDate"
},
{
label
:
"处罚金额"
,
prop
:
"cfje"
,
fieldType
:
"money"
},
{
label
:
"处罚金额"
,
prop
:
"cfje"
,
fieldType
:
"money"
},
{
label
:
"考核分数"
,
prop
:
"cffs"
,
fieldType
:
"ftFloat"
},
{
label
:
"违章行为"
,
prop
:
"wzxw"
,
fieldType
:
"ftString"
,
width
:
260
},
{
label
:
"违章行为"
,
prop
:
"wzxw"
,
fieldType
:
"ftString"
,
width
:
260
},
// {label: "备注", prop: "bz", fieldType: "ftString",width:300},
// {label: "备注", prop: "bz", fieldType: "ftString",width:300},
// {label: "维护人", prop: "whr", fieldType: "ftString"},
// {label: "维护人", prop: "whr", fieldType: "ftString"},
...
@@ -153,6 +156,15 @@
...
@@ -153,6 +156,15 @@
apiUpdate
:
doUpdate
,
apiUpdate
:
doUpdate
,
/* 删除操作*/
/* 删除操作*/
apiDelete
:
doDelete
,
apiDelete
:
doDelete
,
cfxxsz
(){
if
(
this
.
app
.
selectOne
||
this
.
app
.
clickOne
)
{
this
.
showDialog
=
true
}
else
{
this
.
$warning
(
'请选中一行操作'
);
}
},
/* 初始化赋值操作*/
/* 初始化赋值操作*/
init
()
{
init
()
{
...
@@ -182,7 +194,7 @@
...
@@ -182,7 +194,7 @@
},
},
components
:
{
components
:
{
Edit
,
Edit
,
Cfsz
}
}
...
...
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