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
33370ba4
Commit
33370ba4
authored
Nov 11, 2022
by
zhoumaotao
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab.gavelinfo.com:lisu/sgaqgl-vue
parents
a14cb3b7
6e135c84
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
1048 additions
and
556 deletions
+1048
-556
index.js
src/router/index.js
+1
-1
edit.vue
src/views/threeViolations/correctTV/edit.vue
+278
-101
exposure.vue
src/views/threeViolations/correctTV/exposure.vue
+48
-18
index.vue
src/views/threeViolations/correctTV/index.vue
+53
-123
index.vue
src/views/threeViolations/enterTV/index.vue
+1
-1
edit.vue
src/views/threeViolations/punishmentRecord/edit.vue
+281
-90
index.vue
src/views/threeViolations/punishmentRecord/index.vue
+55
-59
edit.vue
src/views/threeViolations/queryRecords/edit.vue
+278
-85
index.vue
src/views/threeViolations/queryRecords/index.vue
+53
-78
No files found.
src/router/index.js
View file @
33370ba4
...
...
@@ -808,7 +808,7 @@ export const constantRoutes = [
component
:()
=>
import
(
"@/views/train/onlinExamination/index"
),
hidden
:
false
,
meta
:{
"title"
:
"
onlinExamination
"
,
"title"
:
"
在线考试管理
"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
...
...
src/views/threeViolations/correctTV/edit.vue
View file @
33370ba4
...
...
@@ -4,68 +4,163 @@
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"80px"
:rules=
"rules"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"人员工号"
ref=
"roleid"
prop=
"roleid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.roleid"
></el-input>
<el-form-item
label=
"部门"
ref=
"bmid"
prop=
"bmid"
>
<!--
<el-input
:readonly=
"readonly"
v-model=
"form.bmid"
></el-input>
-->
<RelSelect
hasValue
:optionsData=
'optionsData'
style=
"width: 100%;"
:params=
"
{flid:form.flid}" src='/kzzx/bm/query' clearable :match="{value:'id',label:'bmmc'}" v-model='form.bmid' >
</RelSelect>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"姓名"
ref=
"roleid"
prop=
"roleid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.roleid"
></el-input>
<!--
<el-input
:readonly=
"readonly"
v-model=
"form.userid"
></el-input>
-->
<el-form-item
label=
"违规人"
ref=
"ryid"
prop=
"ryid"
>
<personSelector
:label=
"form.userName||form.userid||'暂无'"
@
selected=
'wgrSelected'
></personSelector>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"所在支部"
ref=
"roleid"
prop=
"roleid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.roleid"
></el-input>
<el-form-item
label=
"电话"
>
<el-input
:readonly=
"true"
v-model=
"form.phone"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"所在班组"
ref=
"roleid"
prop=
"roleid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.roleid"
></el-input>
<el-form-item
label=
"违章日期"
ref=
"wzrq"
prop=
"wzrq"
>
<el-date-picker
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
v-model=
"form.wzrq"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"违章行为"
ref=
"wzxw"
prop=
"wzxw"
>
<el-input
type=
'textarea'
:readonly=
"readonly"
v-model=
"form.wzxw"
></el-input>
</el-form-item>
</el-col>
<!--
<el-col
:span=
"12"
>
<el-form-item
label=
"备注"
ref=
"bz"
prop=
"bz"
>
<el-input
:readonly=
"readonly"
v-model=
"form.bz"
></el-input>
</el-form-item>
</el-col>
-->
</el-row>
<!--
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"手机号"
ref=
"roleid"
prop=
"roleid
"
>
<el-input
:readonly=
"readonly"
v-model=
"form.roleid"
></el-input>
<el-form-item
label=
"系统版本"
ref=
"sysversion"
prop=
"sysversion
"
>
<el-input
:readonly=
"readonly"
v-model=
"form.sysversion"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"违章日期"
ref=
"roleid"
prop=
"roleid
"
>
<el-date-picker
:readonly=
"readonly"
v-model=
"form.roleid"
></el-date-picker
>
<el-form-item
label=
"工作流状态"
ref=
"wfpname"
prop=
"wfpname
"
>
<el-input
:readonly=
"readonly"
v-model=
"form.wfpname"
></el-input
>
</el-form-item>
</el-col>
<el-col
:span=
"24
"
>
<el-form-item
label=
"违章行为"
ref=
"roleid"
prop=
"roleid
"
>
<el-input
:readonly=
"readonly"
v-model=
"form.roleid"
></el-input>
<el-col
:span=
"12
"
>
<el-form-item
label=
"曝光内容"
ref=
"bgcont"
prop=
"bgcont
"
>
<el-input
:readonly=
"readonly"
v-model=
"form.bgcont"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"纠正措施"
ref=
"roleid"
prop=
"role
id"
>
<el-input
:readonly=
"readonly"
v-model=
"form.roleid"
></el-input>
<el-form-item
label=
"安全教育人"
ref=
"aqjyrid"
prop=
"aqjyr
id"
>
<el-input
:readonly=
"readonly"
v-model=
"form.aqjyrid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"纠正结果"
ref=
"roleid"
prop=
"roleid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.roleid"
></el-input>
<el-form-item
label=
"安全教育时间"
ref=
"aqjysj"
prop=
"aqjysj"
>
<el-date-picker
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
v-model=
"form.aqjysj"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"验证人"
ref=
"roleid"
prop=
"roleid
"
>
<el-input
:readonly=
"readonly"
v-model=
"form.roleid"
></el-input>
<el-form-item
label=
"安全教育内容"
ref=
"aqcont"
prop=
"aqcont
"
>
<el-input
:readonly=
"readonly"
v-model=
"form.aqcont"
></el-input>
</el-form-item>
</el-col>
</el-row>
-->
<!--
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"验证时间"
ref=
"roleid"
prop=
"roleid
"
>
<el-date-picker
:readonly=
"readonly"
v-model=
"form.roleid"
></el-date-picker
>
<el-form-item
label=
"反思内容"
ref=
"fscont"
prop=
"fscont
"
>
<el-input
:readonly=
"readonly"
v-model=
"form.fscont"
></el-input
>
</el-form-item>
</el-col>
</el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"谈话层级"
ref=
"ldglcj"
prop=
"ldglcj"
>
<el-input
:readonly=
"readonly"
v-model=
"form.ldglcj"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"教育人编码"
ref=
"ldjyrid"
prop=
"ldjyrid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.ldjyrid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"被教育人编码"
ref=
"ldbjyrid"
prop=
"ldbjyrid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.ldbjyrid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"领导教育时间"
ref=
"ldjysj"
prop=
"ldjysj"
>
<el-date-picker
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
v-model=
"form.ldjysj"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"领导教育内容"
ref=
"ldcont"
prop=
"ldcont"
>
<el-input
:readonly=
"readonly"
v-model=
"form.ldcont"
></el-input>
</el-form-item>
</el-col>
</el-row>
-->
<!--
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"家属教育人"
ref=
"jsjyr"
prop=
"jsjyr"
>
<el-input
:readonly=
"readonly"
v-model=
"form.jsjyr"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"家属教育时间"
ref=
"jsjysj"
prop=
"jsjysj"
>
<el-date-picker
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
v-model=
"form.jsjysj"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"家属教育内容"
ref=
"jscont"
prop=
"jscont"
>
<el-input
:readonly=
"readonly"
v-model=
"form.jscont"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"纠正措施"
ref=
"jzcs"
prop=
"jzcs"
>
<el-input
:readonly=
"readonly"
v-model=
"form.jzcs"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"纠正结果"
ref=
"jzjg"
prop=
"jzjg"
>
<el-input
:readonly=
"readonly"
v-model=
"form.jzjg"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"纠正验证人编码"
ref=
"jzyzrid"
prop=
"jzyzrid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.jzyzrid"
></el-input>
</el-form-item>
</el-col>
</el-row>
-->
<!--
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"纠正验证时间"
ref=
"jzyzsj"
prop=
"jzyzsj"
>
<el-date-picker
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
v-model=
"form.jzyzsj"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"处罚标志"
ref=
"cfbz"
prop=
"cfbz"
>
<el-input
:readonly=
"readonly"
v-model=
"form.cfbz"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"处罚金额"
ref=
"cfje"
prop=
"cfje"
>
<el-input
:readonly=
"readonly"
v-model=
"form.cfje"
></el-input>
</el-form-item>
</el-col>
</el-row>
-->
</el-form>
<!-- 按钮重写, -->
<!--
<div
slot=
"reFooter"
>
<span
slot=
"footer"
>
重写按钮写在这里,根据需要重写 slot(reFooter,foorer) 节点样式 重写方法需要在此页重新定义
</span>
</div>
-->
</RelDialog>
</
template
>
<
script
>
...
...
@@ -74,9 +169,10 @@
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
mounted
()
{
},
/* 组件名称*/
name
:
'roleManagementEdit'
,
name
:
"enterTVEdit"
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data
()
{
...
...
@@ -85,27 +181,108 @@
/* 额外初始化,根据需求*/
systemType
:
[],
bmList
:
[],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
roleid
:
''
,
rolename
:
''
,
bz
:
""
,
form
:
{
phone
:
''
,
//ID
id
:
''
,
//部门ID
bmid
:
''
,
//班组ID
bzid
:
''
,
//违规人ID
userid
:
''
,
//违章日期
wzrq
:
new
Date
().
getTime
(),
//违章行为
wzxw
:
''
,
//备注
bz
:
''
,
//维护人编码
whrid
:
''
,
//维护人
whr
:
''
,
//维护时间
whsj
:
new
Date
().
getTime
(),
//创建人编码
cjrid
:
''
,
//创建人
cjr
:
''
,
//创建时间
cjsj
:
new
Date
().
getTime
(),
//系统版本
sysversion
:
''
,
//状态
zt
:
''
,
//工作流ID
wfid
:
''
,
//工作流实例号
wfinstid
:
''
,
//工作流状态ID
wfpid
:
''
,
//工作流状态
wfpname
:
''
,
//待处理人id
wfwuserid
:
''
,
//待处理人
wfwusername
:
''
,
//已处理人id
wfhuserid
:
''
,
//已处理人
wfhusername
:
''
,
//状态
zt
:
''
,
//曝光内容
bgcont
:
''
,
//安全教育人
aqjyrid
:
''
,
//安全教育时间
aqjysj
:
new
Date
().
getTime
(),
//安全教育内容
aqcont
:
''
,
//反思内容
fscont
:
''
,
//谈话层级
ldglcj
:
''
,
//教育人编码
ldjyrid
:
''
,
//被教育人编码
ldbjyrid
:
''
,
//领导教育时间
ldjysj
:
new
Date
().
getTime
(),
//领导教育内容
ldcont
:
''
,
//家属教育人
jsjyr
:
''
,
//家属教育时间
jsjysj
:
new
Date
().
getTime
(),
//家属教育内容
jscont
:
''
,
//纠正措施
jzcs
:
''
,
//纠正结果
jzjg
:
''
,
//纠正验证人编码
jzyzrid
:
''
,
//纠正验证时间
jzyzsj
:
new
Date
().
getTime
(),
//处罚标志
cfbz
:
''
,
//处罚金额
cfje
:
''
,
},
/* form提交时的规则,具体规则参考官网*/
rules
:
{
roleid
:
[{
required
:
true
,
trigger
:
'blur'
},
],
rolename
:
[{
required
:
true
,
trigger
:
'blur'
},
]
}
}
},
methods
:
{
wgrSelected
(
row
){
this
.
form
.
userid
=
row
.
id
this
.
form
.
phone
=
row
.
phone
}
}
}
</
script
>
...
...
src/views/threeViolations/correctTV/exposure.vue
View file @
33370ba4
<
template
>
<div
class=
"form-detail"
>
<el-form
ref=
"form"
label-width=
'80px'
:model=
"form"
>
<el-row
class=
"tool-bar"
>
<!--
<AttachFileButton
:params=
"
{childPath:'BGLX'}" :app='vMain'>
</AttachFileButton>
-->
<el-button
size=
'mini'
@
click
.
native=
"readonly=false;$success('开启编辑')"
type=
"primary"
>
编辑
</el-button>
<el-button
size=
'mini'
@
click
.
native=
"save()"
type=
"primary"
>
保存
</el-button>
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<br>
<el-form
ref=
"form"
label-width=
'80px'
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"
通报内容
"
>
<el-input
type=
"textarea"
rows=
"5"
>
<el-form-item
label=
"
纠正措施
"
>
<el-input
v-model=
'vMain.rowItem.jzcs'
:readonly=
"readonly"
type=
"textarea"
rows=
"5"
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"纠正结果"
>
<el-input
type=
"textarea"
rows=
"5"
>
<el-input
v-model=
'vMain.rowItem.jzjg'
:readonly=
"readonly"
type=
"textarea"
rows=
"5"
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"验证人"
>
<el-input
>
</el-input>
<personSelector
:readonly=
"readonly"
:label=
"vMain.rowItem.jzyzrName||vMain.rowItem.jzyzrid||'暂无'"
@
selected=
'yzrSelected'
></personSelector>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"验证时间"
>
<el-date-picker></el-date-picker>
<el-date-picker
style=
'width:100%'
v-model=
'vMain.rowItem.jzyzsj'
:readonly=
"readonly"
></el-date-picker>
</el-form-item>
</el-col>
...
...
@@ -36,17 +46,37 @@
export
default
{
data
()
{
return
{
readonly
:
true
,
}
},
props
:[
'vMain'
],
methods
:
{
handleRemove
(
file
,
fileList
)
{
console
.
log
(
file
,
fileList
);
yzrSelected
(
row
)
{
this
.
vMain
.
rowItem
.
id
=
row
.
id
},
handlePictureCardPreview
(
file
)
{
this
.
dialogImageUrl
=
file
.
url
;
this
.
dialogVisible
=
true
;
save
(){
let
params
=
this
.
vMain
.
rowItem
this
.
vMain
.
apiUpdate
(
params
).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'更新成功'
)
this
.
readonly
=
true
this
.
vMain
.
$refs
[
'TablePager'
].
reLoad
()
let
tableData
=
this
.
vMain
.
$refs
[
'TablePager'
].
tableData
let
nowIndex
=
false
tableData
.
forEach
((
data
,
index
)
=>
{
if
(
data
.
id
==
params
.
master
.
id
){
nowIndex
=
index
}
})
if
(
nowIndex
!==
false
){
this
.
vMain
.
$refs
[
'TablePager'
].
tableData
.
splice
(
nowIndex
,
1
,
params
.
master
)
this
.
vMain
.
$refs
[
'TablePager'
].
setCurrent
(
params
.
master
)
}
}
else
{
this
.
$error
(
res
.
message
||
'更新失败'
)
}
})
}
}
}
...
...
@@ -54,7 +84,7 @@
<
style
scoped
>
.form-detail
{
height
:
3
00px
;
height
:
5
00px
;
width
:
100%
;
overflow-y
:
auto
;
overflow-x
:
hidden
;
...
...
src/views/threeViolations/correctTV/index.vue
View file @
33370ba4
...
...
@@ -26,10 +26,9 @@
<el-row
class=
"tool-bar"
>
<PrintButton
:app=
'app'
></PrintButton>
<ViewButton
ref=
"view"
:app=
'app'
></ViewButton>
<AddButton
ref=
"add"
:app=
'app'
></AddButton>
<!--
<AddButton
ref=
"add"
:app=
'app'
></AddButton>
<CopyButton
ref=
"copy"
:app=
'app'
></CopyButton>
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
<AttachFileButton
:app=
'app'
></AttachFileButton>
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
-->
<FieldButton
:app=
'app'
></FieldButton>
<ExcelButton
:app=
'app'
></ExcelButton>
<!-- 额外按钮-->
...
...
@@ -47,7 +46,7 @@
</div>
<div
class=
"min_full"
style=
"height: 60%;padding: 10px;"
>
<!-- tabs -->
<Exposure
/>
<Exposure
:vMain=
'this'
/>
</div>
</div>
...
...
@@ -56,13 +55,11 @@
<
script
>
/* 引入需要的接口*/
import
{
QueryKzzxRole
,
QueryApptype
,
AddKzzxRole
,
DeleteKzzxRole
,
UpdateKzzxRole
,
QtKzzxRole
}
from
"common/src/api/system/dmgSystem.js"
;
doQuery
,
doAdd
,
doUpdate
,
doDelete
}
from
'@/api/threeViolations/enterTV.js'
;
/* edit页面*/
import
Edit
from
'./edit'
import
Exposure
from
'./exposure.vue'
...
...
@@ -76,8 +73,7 @@
/* 初始额外赋值*/
async
mounted
()
{
this
.
$refs
[
'TablePager'
].
pageQuery
()
console
.
log
(
_
)
this
.
$refs
[
'TablePager'
].
pageQuery
({
setFirstCurrent
:
true
})
},
data
()
{
return
{
...
...
@@ -88,7 +84,7 @@
type
:
''
,
DialogTitle
:
''
,
/* 基础url*/
baseUrl
:
'
kzzx/role
'
,
baseUrl
:
'
/aqgl/swgl/swjl
'
,
/* 查询参数*/
queryParams
:
{
ksrq
:
''
,
...
...
@@ -96,86 +92,40 @@
},
/* 表格标题对应参数*/
tableTitle
:
[
{
prop
:
'whsj'
,
label
:
'时间'
,
show
:
false
,
fieldType
:
'ftDateTime'
,
width
:
'100'
,
align
:
'left'
},
{
prop
:
'whsj'
,
label
:
'车间'
,
...
this
.
$common
(
'ftDateTime'
)
},
{
prop
:
'whr'
,
label
:
'岗位'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'地点'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'作业活动设施风险点'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'事故类型'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'危险等级'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'危险分值'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'风险类型'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'管控措施落实后等级'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'管理层级'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'拍照选项'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'序号'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'图形编号'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'措施类型'
,
width
:
'100'
}
{
label
:
"部门"
,
prop
:
"bmName"
,
fieldType
:
"ftString"
,
width
:
192
},
// {label: "班组", prop: "bzName", fieldType: "ftString",width:192},
// {label: "违规人ID", prop: "userid", fieldType: "ftString",width:192},
{
label
:
"违章人"
,
prop
:
"wzr"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"手机"
,
prop
:
"phone"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"违章日期"
,
prop
:
"wzrq"
,
fieldType
:
"ftDateTime"
},
{
label
:
"违章行为"
,
prop
:
"wzxw"
,
fieldType
:
"ftString"
,
width
:
300
},
// {label: "备注", prop: "bz", fieldType: "ftString",width:300},
// {label: "维护人", prop: "whr", fieldType: "ftString"},
// {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
// {label: "创建人", prop: "cjr", fieldType: "ftString"},
// {label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
// {label: "状态", prop: "zt", fieldType: "ftString",width:6},
// {label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300},
// {label: "状态", prop: "zt", fieldType: "ftString",width:6},
// {label: "曝光内容", prop: "bgcont", fieldType: "ftString",width:300},
// {label: "安全教育人", prop: "aqjyrid", fieldType: "ftString",width:192},
// {label: "安全教育时间", prop: "aqjysj", fieldType: "ftDateTime"},
// {label: "安全教育内容", prop: "aqcont", fieldType: "ftString",width:300},
// {label: "反思内容", prop: "fscont", fieldType: "ftString",width:300},
// {label: "谈话层级", prop: "ldglcj", fieldType: "ftString",width:60},
// {label: "教育人编码", prop: "ldjyrid", fieldType: "ftString",width:192},
// {label: "被教育人编码", prop: "ldbjyrid", fieldType: "ftString",width:192},
// {label: "领导教育时间", prop: "ldjysj", fieldType: "ftDateTime"},
// {label: "领导教育内容", prop: "ldcont", fieldType: "ftString",width:300},
// {label: "家属教育人", prop: "jsjyr", fieldType: "ftString",width:180},
// {label: "家属教育时间", prop: "jsjysj", fieldType: "ftDateTime"},
// {label: "家属教育内容", prop: "jscont", fieldType: "ftString",width:300},
// {label: "纠正措施", prop: "jzcs", fieldType: "ftString",width:300},
// {label: "纠正结果", prop: "jzjg", fieldType: "ftString",width:300},
// {label: "纠正验证人编码", prop: "jzyzrid", fieldType: "ftString",width:192},
// {label: "纠正验证时间", prop: "jzyzsj", fieldType: "ftDateTime"},
// {label: "处罚标志", prop: "cfbz", fieldType: "ftString",width:60},
// {label: "处罚金额", prop: "cfje", fieldType: "float"},
]
}
},
...
...
@@ -184,38 +134,18 @@
console
.
log
(
val
,
'val'
)
},
/* 基础查询*/
query
:
QueryKzzxRole
,
query
:
doQuery
,
/* 基础增*/
apiAdd
:
AddKzzxRole
,
apiAdd
:
doAdd
,
/* 基础更新*/
apiUpdate
:
UpdateKzzxRol
e
,
apiUpdate
:
doUpdat
e
,
/* 删除操作*/
apiDelete
:
DeleteKzzxRol
e
,
apiDelete
:
doDelet
e
,
/* 初始化赋值操作*/
init
()
{
},
/* 启用停用*/
setEnable
(
id
)
{
this
.
$confirm
(
'是否启用/停用该角色, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
let
params
=
{
id
:
id
}
QtKzzxRole
(
params
).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
this
.
app
.
$refs
[
'TablePager'
].
reLoad
()
}
else
{
this
.
$error
(
res
.
message
||
'操作失败'
)
}
})
})
}
},
...
...
src/views/threeViolations/enterTV/index.vue
View file @
33370ba4
...
...
@@ -59,7 +59,7 @@
/* 初始额外赋值*/
async
mounted
()
{
this
.
$refs
[
'TablePager'
].
pageQuery
()
this
.
$refs
[
'TablePager'
].
pageQuery
(
{
setFirstCurrent
:
true
}
)
},
data
()
{
return
{
...
...
src/views/threeViolations/punishmentRecord/edit.vue
View file @
33370ba4
...
...
@@ -4,57 +4,166 @@
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"80px"
:rules=
"rules"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"人员工号"
ref=
"roleid"
prop=
"roleid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.roleid"
></el-input>
<el-form-item
label=
"部门"
ref=
"bmid"
prop=
"bmid"
>
<!--
<el-input
:readonly=
"readonly"
v-model=
"form.bmid"
></el-input>
-->
<RelSelect
style=
"width: 100%;"
:params=
"
{flid:form.flid}" src='/kzzx/bm/query' clearable :match="{value:'id',label:'bmmc'}" v-model='form.bmid' >
</RelSelect>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"姓名"
ref=
"roleid"
prop=
"roleid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.roleid"
></el-input>
<!--
<el-input
:readonly=
"readonly"
v-model=
"form.userid"
></el-input>
-->
<el-form-item
label=
"违规人"
ref=
"ryid"
prop=
"ryid"
>
<personSelector
:label=
"form.userName||form.userid||'暂无'"
@
selected=
'wgrSelected'
></personSelector>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"所在支部"
ref=
"roleid"
prop=
"roleid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.roleid"
></el-input>
<el-form-item
label=
"电话"
>
<el-input
:readonly=
"true"
v-model=
"form.phone"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"所在班级"
ref=
"roleid"
prop=
"roleid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.roleid"
></el-input>
<el-form-item
label=
"违章日期"
ref=
"wzrq"
prop=
"wzrq"
>
<el-date-picker
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
v-model=
"form.wzrq"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
<!--
<el-col
:span=
"12"
>
<el-form-item
label=
"备注"
ref=
"bz"
prop=
"bz"
>
<el-input
:readonly=
"readonly"
v-model=
"form.bz"
></el-input>
</el-form-item>
</el-col>
-->
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"联系手机
"
>
<el-input
></el-input>
<el-form-item
label=
"处罚金额"
ref=
"cfje"
prop=
"cfje
"
>
<el-input
type=
'number'
:readonly=
"readonly"
v-model=
"form.cfje"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"违章行为"
ref=
"wzxw"
prop=
"wzxw"
>
<el-input
type=
'textarea'
:readonly=
"readonly"
v-model=
"form.wzxw"
></el-input>
</el-form-item>
</el-col>
</el-row>
<!--
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"违章日期
"
>
<el-date-picker
style=
"width: 100%;"
></el-date-picker
>
<el-form-item
label=
"系统版本"
ref=
"sysversion"
prop=
"sysversion
"
>
<el-input
:readonly=
"readonly"
v-model=
"form.sysversion"
></el-input
>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"处罚金额
"
>
<el-input
></el-input>
<el-form-item
label=
"工作流状态"
ref=
"wfpname"
prop=
"wfpname
"
>
<el-input
:readonly=
"readonly"
v-model=
"form.wfpname"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"24
"
>
<el-form-item
label=
"违章行为
"
>
<el-input
></el-input>
<el-col
:span=
"12
"
>
<el-form-item
label=
"曝光内容"
ref=
"bgcont"
prop=
"bgcont
"
>
<el-input
:readonly=
"readonly"
v-model=
"form.bgcont"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"安全教育人"
ref=
"aqjyrid"
prop=
"aqjyrid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.aqjyrid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"安全教育时间"
ref=
"aqjysj"
prop=
"aqjysj"
>
<el-date-picker
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
v-model=
"form.aqjysj"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"安全教育内容"
ref=
"aqcont"
prop=
"aqcont"
>
<el-input
:readonly=
"readonly"
v-model=
"form.aqcont"
></el-input>
</el-form-item>
</el-col>
</el-row>
-->
<!--
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"反思内容"
ref=
"fscont"
prop=
"fscont"
>
<el-input
:readonly=
"readonly"
v-model=
"form.fscont"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"谈话层级"
ref=
"ldglcj"
prop=
"ldglcj"
>
<el-input
:readonly=
"readonly"
v-model=
"form.ldglcj"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"教育人编码"
ref=
"ldjyrid"
prop=
"ldjyrid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.ldjyrid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"被教育人编码"
ref=
"ldbjyrid"
prop=
"ldbjyrid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.ldbjyrid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"领导教育时间"
ref=
"ldjysj"
prop=
"ldjysj"
>
<el-date-picker
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
v-model=
"form.ldjysj"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"领导教育内容"
ref=
"ldcont"
prop=
"ldcont"
>
<el-input
:readonly=
"readonly"
v-model=
"form.ldcont"
></el-input>
</el-form-item>
</el-col>
</el-row>
-->
<!--
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"家属教育人"
ref=
"jsjyr"
prop=
"jsjyr"
>
<el-input
:readonly=
"readonly"
v-model=
"form.jsjyr"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"家属教育时间"
ref=
"jsjysj"
prop=
"jsjysj"
>
<el-date-picker
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
v-model=
"form.jsjysj"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"家属教育内容"
ref=
"jscont"
prop=
"jscont"
>
<el-input
:readonly=
"readonly"
v-model=
"form.jscont"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"纠正措施"
ref=
"jzcs"
prop=
"jzcs"
>
<el-input
:readonly=
"readonly"
v-model=
"form.jzcs"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"纠正结果"
ref=
"jzjg"
prop=
"jzjg"
>
<el-input
:readonly=
"readonly"
v-model=
"form.jzjg"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"纠正验证人编码"
ref=
"jzyzrid"
prop=
"jzyzrid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.jzyzrid"
></el-input>
</el-form-item>
</el-col>
</el-row>
-->
<!--
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"纠正验证时间"
ref=
"jzyzsj"
prop=
"jzyzsj"
>
<el-date-picker
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
v-model=
"form.jzyzsj"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"处罚标志"
ref=
"cfbz"
prop=
"cfbz"
>
<el-input
:readonly=
"readonly"
v-model=
"form.cfbz"
></el-input>
</el-form-item>
</el-col>
-->
</el-form>
<!-- 按钮重写, -->
<!--
<div
slot=
"reFooter"
>
<span
slot=
"footer"
>
重写按钮写在这里,根据需要重写 slot(reFooter,foorer) 节点样式 重写方法需要在此页重新定义
</span>
</div>
-->
</RelDialog>
</
template
>
<
script
>
...
...
@@ -63,9 +172,10 @@
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
mounted
()
{
},
/* 组件名称*/
name
:
'roleManagementEdit'
,
name
:
"enterTVEdit"
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data
()
{
...
...
@@ -74,27 +184,108 @@
/* 额外初始化,根据需求*/
systemType
:
[],
bmList
:
[],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
roleid
:
''
,
rolename
:
''
,
bz
:
""
,
form
:
{
phone
:
''
,
//ID
id
:
''
,
//部门ID
bmid
:
''
,
//班组ID
bzid
:
''
,
//违规人ID
userid
:
''
,
//违章日期
wzrq
:
new
Date
().
getTime
(),
//违章行为
wzxw
:
''
,
//备注
bz
:
''
,
//维护人编码
whrid
:
''
,
//维护人
whr
:
''
,
//维护时间
whsj
:
new
Date
().
getTime
(),
//创建人编码
cjrid
:
''
,
//创建人
cjr
:
''
,
//创建时间
cjsj
:
new
Date
().
getTime
(),
//系统版本
sysversion
:
''
,
//状态
zt
:
''
,
//工作流ID
wfid
:
''
,
//工作流实例号
wfinstid
:
''
,
//工作流状态ID
wfpid
:
''
,
//工作流状态
wfpname
:
''
,
//待处理人id
wfwuserid
:
''
,
//待处理人
wfwusername
:
''
,
//已处理人id
wfhuserid
:
''
,
//已处理人
wfhusername
:
''
,
//状态
zt
:
''
,
//曝光内容
bgcont
:
''
,
//安全教育人
aqjyrid
:
''
,
//安全教育时间
aqjysj
:
new
Date
().
getTime
(),
//安全教育内容
aqcont
:
''
,
//反思内容
fscont
:
''
,
//谈话层级
ldglcj
:
''
,
//教育人编码
ldjyrid
:
''
,
//被教育人编码
ldbjyrid
:
''
,
//领导教育时间
ldjysj
:
new
Date
().
getTime
(),
//领导教育内容
ldcont
:
''
,
//家属教育人
jsjyr
:
''
,
//家属教育时间
jsjysj
:
new
Date
().
getTime
(),
//家属教育内容
jscont
:
''
,
//纠正措施
jzcs
:
''
,
//纠正结果
jzjg
:
''
,
//纠正验证人编码
jzyzrid
:
''
,
//纠正验证时间
jzyzsj
:
new
Date
().
getTime
(),
//处罚标志
cfbz
:
''
,
//处罚金额
cfje
:
''
,
},
/* form提交时的规则,具体规则参考官网*/
rules
:
{
roleid
:
[{
required
:
true
,
trigger
:
'blur'
},
],
rolename
:
[{
required
:
true
,
trigger
:
'blur'
},
]
}
}
},
methods
:
{
wgrSelected
(
row
){
this
.
form
.
userid
=
row
.
id
this
.
form
.
phone
=
row
.
phone
}
}
}
</
script
>
...
...
src/views/threeViolations/punishmentRecord/index.vue
View file @
33370ba4
...
...
@@ -19,8 +19,8 @@
</el-col>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
所在
支部
:
</span>
<el-input></el-inpu
t>
<span
class=
"search-span"
>
所在
部门
:
</span>
<RelSelect
hasValue
style=
"width: 100%;"
src=
'/kzzx/bm/query'
clearable
:match=
"
{value:'id',label:'bmmc'}" v-model='queryParams.bmid' >
</RelSelec
t>
</div>
</el-col>
...
...
@@ -45,10 +45,10 @@
<el-row
class=
"tool-bar"
>
<PrintButton
:app=
'app'
></PrintButton>
<ViewButton
ref=
"view"
:app=
'app'
></ViewButton>
<AddButton
ref=
"add"
:app=
'app'
></AddButton>
<
!--
<
AddButton
ref=
"add"
:app=
'app'
></AddButton>
<CopyButton
ref=
"copy"
:app=
'app'
></CopyButton>
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
<
AttachFileButton
:app=
'app'
></AttachFileButton
>
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
-->
<
!--
<AttachFileButton
:app=
'app'
></AttachFileButton>
--
>
<FieldButton
:app=
'app'
></FieldButton>
<ExcelButton
:app=
'app'
></ExcelButton>
<!-- 额外按钮-->
...
...
@@ -69,13 +69,11 @@
<
script
>
/* 引入需要的接口*/
import
{
QueryKzzxRole
,
QueryApptype
,
AddKzzxRole
,
DeleteKzzxRole
,
UpdateKzzxRole
,
QtKzzxRole
}
from
"common/src/api/system/dmgSystem.js"
;
doQuery
,
doAdd
,
doUpdate
,
doDelete
}
from
'@/api/threeViolations/enterTV.js'
;
/* edit页面*/
import
Edit
from
'./edit'
import
{
...
...
@@ -83,7 +81,6 @@
}
from
'common'
export
default
{
mixins
:
[
tableMixin
],
name
:
'appVersion'
,
/* 初始额外赋值*/
async
mounted
()
{
...
...
@@ -98,62 +95,61 @@
type
:
''
,
DialogTitle
:
''
,
/* 基础url*/
baseUrl
:
'
kzzx/role
'
,
baseUrl
:
'
/aqgl/swgl/swjl
'
,
/* 查询参数*/
queryParams
:
{
ksrq
:
''
,
jsrq
:
''
jsrq
:
''
,
bmid
:
''
},
/* 表格标题对应参数*/
tableTitle
:
[
{
prop
:
'whsj'
,
label
:
'人员工号'
,
...
this
.
$common
(
'ftDateTime'
)
},
{
prop
:
'whsj'
,
label
:
'姓名'
,
...
this
.
$common
(
'ftDateTime'
)
},
{
prop
:
'whr'
,
label
:
'所在支部'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'所在班组'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'联系手机'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'违章日期'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'违章行为'
,
width
:
'100'
}
{
label
:
"部门"
,
prop
:
"bmName"
,
fieldType
:
"ftString"
,
width
:
192
},
// {label: "班组", prop: "bzName", fieldType: "ftString",width:192},
// {label: "违规人ID", prop: "userid", fieldType: "ftString",width:192},
{
label
:
"违章人"
,
prop
:
"wzr"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"手机"
,
prop
:
"phone"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"违章日期"
,
prop
:
"wzrq"
,
fieldType
:
"ftDateTime"
},
{
label
:
"违章行为"
,
prop
:
"wzxw"
,
fieldType
:
"ftString"
,
width
:
300
},
// {label: "备注", prop: "bz", fieldType: "ftString",width:300},
// {label: "维护人", prop: "whr", fieldType: "ftString"},
// {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
// {label: "创建人", prop: "cjr", fieldType: "ftString"},
// {label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
// {label: "状态", prop: "zt", fieldType: "ftString",width:6},
// {label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300},
// {label: "状态", prop: "zt", fieldType: "ftString",width:6},
// {label: "曝光内容", prop: "bgcont", fieldType: "ftString",width:300},
// {label: "安全教育人", prop: "aqjyrid", fieldType: "ftString",width:192},
// {label: "安全教育时间", prop: "aqjysj", fieldType: "ftDateTime"},
// {label: "安全教育内容", prop: "aqcont", fieldType: "ftString",width:300},
// {label: "反思内容", prop: "fscont", fieldType: "ftString",width:300},
// {label: "谈话层级", prop: "ldglcj", fieldType: "ftString",width:60},
// {label: "教育人编码", prop: "ldjyrid", fieldType: "ftString",width:192},
// {label: "被教育人编码", prop: "ldbjyrid", fieldType: "ftString",width:192},
// {label: "领导教育时间", prop: "ldjysj", fieldType: "ftDateTime"},
// {label: "领导教育内容", prop: "ldcont", fieldType: "ftString",width:300},
// {label: "家属教育人", prop: "jsjyr", fieldType: "ftString",width:180},
// {label: "家属教育时间", prop: "jsjysj", fieldType: "ftDateTime"},
// {label: "家属教育内容", prop: "jscont", fieldType: "ftString",width:300},
// {label: "纠正措施", prop: "jzcs", fieldType: "ftString",width:300},
// {label: "纠正结果", prop: "jzjg", fieldType: "ftString",width:300},
// {label: "纠正验证人编码", prop: "jzyzrid", fieldType: "ftString",width:192},
// {label: "纠正验证时间", prop: "jzyzsj", fieldType: "ftDateTime"},
// {label: "处罚标志", prop: "cfbz", fieldType: "ftString",width:60},
// {label: "处罚金额", prop: "cfje", fieldType: "float"},
]
}
},
methods
:
{
/* 基础查询*/
query
:
QueryKzzxRole
,
query
:
doQuery
,
/* 基础增*/
apiAdd
:
AddKzzxRole
,
apiAdd
:
doAdd
,
/* 基础更新*/
apiUpdate
:
UpdateKzzxRol
e
,
apiUpdate
:
doUpdat
e
,
/* 删除操作*/
apiDelete
:
DeleteKzzxRol
e
,
apiDelete
:
doDelet
e
,
/* 初始化赋值操作*/
init
()
{
...
...
src/views/threeViolations/queryRecords/edit.vue
View file @
33370ba4
...
...
@@ -4,52 +4,163 @@
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"80px"
:rules=
"rules"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"人员工号"
ref=
"roleid"
prop=
"roleid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.roleid"
></el-input>
<el-form-item
label=
"部门"
ref=
"bmid"
prop=
"bmid"
>
<!--
<el-input
:readonly=
"readonly"
v-model=
"form.bmid"
></el-input>
-->
<RelSelect
hasValue
:optionsData=
'optionsData'
style=
"width: 100%;"
:params=
"
{flid:form.flid}" src='/kzzx/bm/query' clearable :match="{value:'id',label:'bmmc'}" v-model='form.bmid' >
</RelSelect>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"姓名"
ref=
"roleid"
prop=
"roleid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.roleid"
></el-input>
<!--
<el-input
:readonly=
"readonly"
v-model=
"form.userid"
></el-input>
-->
<el-form-item
label=
"违规人"
ref=
"ryid"
prop=
"ryid"
>
<personSelector
:label=
"form.userName||form.userid||'暂无'"
@
selected=
'wgrSelected'
></personSelector>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"所在支部"
ref=
"roleid"
prop=
"roleid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.roleid"
></el-input>
<el-form-item
label=
"电话"
>
<el-input
:readonly=
"true"
v-model=
"form.phone"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"所在班级"
ref=
"roleid"
prop=
"roleid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.roleid"
></el-input>
<el-form-item
label=
"违章日期"
ref=
"wzrq"
prop=
"wzrq"
>
<el-date-picker
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
v-model=
"form.wzrq"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"违章行为"
ref=
"wzxw"
prop=
"wzxw"
>
<el-input
type=
'textarea'
:readonly=
"readonly"
v-model=
"form.wzxw"
></el-input>
</el-form-item>
</el-col>
<!--
<el-col
:span=
"12"
>
<el-form-item
label=
"备注"
ref=
"bz"
prop=
"bz"
>
<el-input
:readonly=
"readonly"
v-model=
"form.bz"
></el-input>
</el-form-item>
</el-col>
-->
</el-row>
<el-row
:gutter=
"20"
>
<!--
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"联系手机
"
>
<el-input
></el-input>
<el-form-item
label=
"系统版本"
ref=
"sysversion"
prop=
"sysversion
"
>
<el-input
:readonly=
"readonly"
v-model=
"form.sysversion"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"违章日期
"
>
<el-date-picker
style=
"width: 100%;"
></el-date-picker
>
<el-form-item
label=
"工作流状态"
ref=
"wfpname"
prop=
"wfpname
"
>
<el-input
:readonly=
"readonly"
v-model=
"form.wfpname"
></el-input
>
</el-form-item>
</el-col>
<el-col
:span=
"24
"
>
<el-form-item
label=
"违章行为
"
>
<el-input
></el-input>
<el-col
:span=
"12
"
>
<el-form-item
label=
"曝光内容"
ref=
"bgcont"
prop=
"bgcont
"
>
<el-input
:readonly=
"readonly"
v-model=
"form.bgcont"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"安全教育人"
ref=
"aqjyrid"
prop=
"aqjyrid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.aqjyrid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"安全教育时间"
ref=
"aqjysj"
prop=
"aqjysj"
>
<el-date-picker
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
v-model=
"form.aqjysj"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"安全教育内容"
ref=
"aqcont"
prop=
"aqcont"
>
<el-input
:readonly=
"readonly"
v-model=
"form.aqcont"
></el-input>
</el-form-item>
</el-col>
</el-row>
-->
<!--
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"反思内容"
ref=
"fscont"
prop=
"fscont"
>
<el-input
:readonly=
"readonly"
v-model=
"form.fscont"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"谈话层级"
ref=
"ldglcj"
prop=
"ldglcj"
>
<el-input
:readonly=
"readonly"
v-model=
"form.ldglcj"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"教育人编码"
ref=
"ldjyrid"
prop=
"ldjyrid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.ldjyrid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"被教育人编码"
ref=
"ldbjyrid"
prop=
"ldbjyrid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.ldbjyrid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"领导教育时间"
ref=
"ldjysj"
prop=
"ldjysj"
>
<el-date-picker
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
v-model=
"form.ldjysj"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"领导教育内容"
ref=
"ldcont"
prop=
"ldcont"
>
<el-input
:readonly=
"readonly"
v-model=
"form.ldcont"
></el-input>
</el-form-item>
</el-col>
</el-row>
-->
<!--
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"家属教育人"
ref=
"jsjyr"
prop=
"jsjyr"
>
<el-input
:readonly=
"readonly"
v-model=
"form.jsjyr"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"家属教育时间"
ref=
"jsjysj"
prop=
"jsjysj"
>
<el-date-picker
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
v-model=
"form.jsjysj"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"家属教育内容"
ref=
"jscont"
prop=
"jscont"
>
<el-input
:readonly=
"readonly"
v-model=
"form.jscont"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"纠正措施"
ref=
"jzcs"
prop=
"jzcs"
>
<el-input
:readonly=
"readonly"
v-model=
"form.jzcs"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"纠正结果"
ref=
"jzjg"
prop=
"jzjg"
>
<el-input
:readonly=
"readonly"
v-model=
"form.jzjg"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"纠正验证人编码"
ref=
"jzyzrid"
prop=
"jzyzrid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.jzyzrid"
></el-input>
</el-form-item>
</el-col>
</el-row>
-->
<!--
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"纠正验证时间"
ref=
"jzyzsj"
prop=
"jzyzsj"
>
<el-date-picker
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
v-model=
"form.jzyzsj"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"处罚标志"
ref=
"cfbz"
prop=
"cfbz"
>
<el-input
:readonly=
"readonly"
v-model=
"form.cfbz"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"处罚金额"
ref=
"cfje"
prop=
"cfje"
>
<el-input
:readonly=
"readonly"
v-model=
"form.cfje"
></el-input>
</el-form-item>
</el-col>
</el-row>
-->
</el-form>
<!-- 按钮重写, -->
<!--
<div
slot=
"reFooter"
>
<span
slot=
"footer"
>
重写按钮写在这里,根据需要重写 slot(reFooter,foorer) 节点样式 重写方法需要在此页重新定义
</span>
</div>
-->
</RelDialog>
</
template
>
<
script
>
...
...
@@ -58,9 +169,10 @@
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
mounted
()
{
},
/* 组件名称*/
name
:
'roleManagementEdit'
,
name
:
"enterTVEdit"
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data
()
{
...
...
@@ -69,27 +181,108 @@
/* 额外初始化,根据需求*/
systemType
:
[],
bmList
:
[],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
roleid
:
''
,
rolename
:
''
,
bz
:
""
,
form
:
{
phone
:
''
,
//ID
id
:
''
,
//部门ID
bmid
:
''
,
//班组ID
bzid
:
''
,
//违规人ID
userid
:
''
,
//违章日期
wzrq
:
new
Date
().
getTime
(),
//违章行为
wzxw
:
''
,
//备注
bz
:
''
,
//维护人编码
whrid
:
''
,
//维护人
whr
:
''
,
//维护时间
whsj
:
new
Date
().
getTime
(),
//创建人编码
cjrid
:
''
,
//创建人
cjr
:
''
,
//创建时间
cjsj
:
new
Date
().
getTime
(),
//系统版本
sysversion
:
''
,
//状态
zt
:
''
,
//工作流ID
wfid
:
''
,
//工作流实例号
wfinstid
:
''
,
//工作流状态ID
wfpid
:
''
,
//工作流状态
wfpname
:
''
,
//待处理人id
wfwuserid
:
''
,
//待处理人
wfwusername
:
''
,
//已处理人id
wfhuserid
:
''
,
//已处理人
wfhusername
:
''
,
//状态
zt
:
''
,
//曝光内容
bgcont
:
''
,
//安全教育人
aqjyrid
:
''
,
//安全教育时间
aqjysj
:
new
Date
().
getTime
(),
//安全教育内容
aqcont
:
''
,
//反思内容
fscont
:
''
,
//谈话层级
ldglcj
:
''
,
//教育人编码
ldjyrid
:
''
,
//被教育人编码
ldbjyrid
:
''
,
//领导教育时间
ldjysj
:
new
Date
().
getTime
(),
//领导教育内容
ldcont
:
''
,
//家属教育人
jsjyr
:
''
,
//家属教育时间
jsjysj
:
new
Date
().
getTime
(),
//家属教育内容
jscont
:
''
,
//纠正措施
jzcs
:
''
,
//纠正结果
jzjg
:
''
,
//纠正验证人编码
jzyzrid
:
''
,
//纠正验证时间
jzyzsj
:
new
Date
().
getTime
(),
//处罚标志
cfbz
:
''
,
//处罚金额
cfje
:
''
,
},
/* form提交时的规则,具体规则参考官网*/
rules
:
{
roleid
:
[{
required
:
true
,
trigger
:
'blur'
},
],
rolename
:
[{
required
:
true
,
trigger
:
'blur'
},
]
}
}
},
methods
:
{
wgrSelected
(
row
){
this
.
form
.
userid
=
row
.
id
this
.
form
.
phone
=
row
.
phone
}
}
}
</
script
>
...
...
src/views/threeViolations/queryRecords/index.vue
View file @
33370ba4
...
...
@@ -19,8 +19,8 @@
</el-col>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
所在
支部
:
</span>
<el-input></el-inpu
t>
<span
class=
"search-span"
>
所在
部门
:
</span>
<RelSelect
hasValue
:optionsData=
'optionsData'
style=
"width: 100%;"
src=
'/kzzx/bm/query'
clearable
:match=
"
{value:'id',label:'bmmc'}" v-model='queryParams.bmid' >
</RelSelec
t>
</div>
</el-col>
...
...
@@ -67,15 +67,14 @@
</
template
>
<
script
>
/* 引入需要的接口*/
/* 引入需要的接口*/
import
{
QueryKzzxRole
,
QueryApptype
,
AddKzzxRole
,
DeleteKzzxRole
,
UpdateKzzxRole
,
QtKzzxRole
}
from
"common/src/api/system/dmgSystem.js"
;
doQuery
,
doAdd
,
doUpdate
,
doDelete
}
from
'@/api/threeViolations/enterTV.js'
;
/* edit页面*/
import
Edit
from
'./edit'
import
{
...
...
@@ -98,92 +97,68 @@
type
:
''
,
DialogTitle
:
''
,
/* 基础url*/
baseUrl
:
'
kzzx/role
'
,
baseUrl
:
'
/aqgl/swgl/swjl
'
,
/* 查询参数*/
queryParams
:
{
ksrq
:
''
,
jsrq
:
''
jsrq
:
''
,
bmid
:
''
},
/* 表格标题对应参数*/
tableTitle
:
[
{
prop
:
'whsj'
,
label
:
'人员工号'
,
...
this
.
$common
(
'ftDateTime'
)
},
{
prop
:
'whsj'
,
label
:
'姓名'
,
...
this
.
$common
(
'ftDateTime'
)
},
{
prop
:
'whr'
,
label
:
'所在支部'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'所在班组'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'联系手机'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'违章日期'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'违章行为'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'处罚金额'
,
width
:
'100'
}
{
label
:
"部门"
,
prop
:
"bmName"
,
fieldType
:
"ftString"
,
width
:
192
},
// {label: "班组", prop: "bzName", fieldType: "ftString",width:192},
// {label: "违规人ID", prop: "userid", fieldType: "ftString",width:192},
{
label
:
"违章人"
,
prop
:
"wzr"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"手机"
,
prop
:
"phone"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"违章日期"
,
prop
:
"wzrq"
,
fieldType
:
"ftDateTime"
},
{
label
:
"违章行为"
,
prop
:
"wzxw"
,
fieldType
:
"ftString"
,
width
:
300
},
// {label: "备注", prop: "bz", fieldType: "ftString",width:300},
// {label: "维护人", prop: "whr", fieldType: "ftString"},
// {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
// {label: "创建人", prop: "cjr", fieldType: "ftString"},
// {label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
// {label: "状态", prop: "zt", fieldType: "ftString",width:6},
// {label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300},
// {label: "状态", prop: "zt", fieldType: "ftString",width:6},
// {label: "曝光内容", prop: "bgcont", fieldType: "ftString",width:300},
// {label: "安全教育人", prop: "aqjyrid", fieldType: "ftString",width:192},
// {label: "安全教育时间", prop: "aqjysj", fieldType: "ftDateTime"},
// {label: "安全教育内容", prop: "aqcont", fieldType: "ftString",width:300},
// {label: "反思内容", prop: "fscont", fieldType: "ftString",width:300},
// {label: "谈话层级", prop: "ldglcj", fieldType: "ftString",width:60},
// {label: "教育人编码", prop: "ldjyrid", fieldType: "ftString",width:192},
// {label: "被教育人编码", prop: "ldbjyrid", fieldType: "ftString",width:192},
// {label: "领导教育时间", prop: "ldjysj", fieldType: "ftDateTime"},
// {label: "领导教育内容", prop: "ldcont", fieldType: "ftString",width:300},
// {label: "家属教育人", prop: "jsjyr", fieldType: "ftString",width:180},
// {label: "家属教育时间", prop: "jsjysj", fieldType: "ftDateTime"},
// {label: "家属教育内容", prop: "jscont", fieldType: "ftString",width:300},
// {label: "纠正措施", prop: "jzcs", fieldType: "ftString",width:300},
// {label: "纠正结果", prop: "jzjg", fieldType: "ftString",width:300},
// {label: "纠正验证人编码", prop: "jzyzrid", fieldType: "ftString",width:192},
// {label: "纠正验证时间", prop: "jzyzsj", fieldType: "ftDateTime"},
// {label: "处罚标志", prop: "cfbz", fieldType: "ftString",width:60},
// {label: "处罚金额", prop: "cfje", fieldType: "float"},
]
}
},
methods
:
{
/* 基础查询*/
query
:
QueryKzzxRole
,
query
:
doQuery
,
/* 基础增*/
apiAdd
:
AddKzzxRole
,
apiAdd
:
doAdd
,
/* 基础更新*/
apiUpdate
:
UpdateKzzxRol
e
,
apiUpdate
:
doUpdat
e
,
/* 删除操作*/
apiDelete
:
DeleteKzzxRol
e
,
apiDelete
:
doDelet
e
,
/* 初始化赋值操作*/
init
()
{
},
/* 启用停用*/
setEnable
(
id
)
{
this
.
$confirm
(
'是否启用/停用该角色, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
let
params
=
{
id
:
id
}
QtKzzxRole
(
params
).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
this
.
app
.
$refs
[
'TablePager'
].
reLoad
()
}
else
{
this
.
$error
(
res
.
message
||
'操作失败'
)
}
})
})
}
},
...
...
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