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
8bd4a3e5
Commit
8bd4a3e5
authored
Nov 04, 2022
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
人员选择器,增人员Name属性
parent
6e37ffd4
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
78 additions
and
49 deletions
+78
-49
edit.vue
...views/dangerManagement/dangerRectificationRecord/edit.vue
+7
-2
index.vue
...iews/dangerManagement/dangerRectificationRecord/index.vue
+2
-2
edit.vue
src/views/dangerManagement/dangerReviewRecord/edit.vue
+20
-7
index.vue
src/views/dangerManagement/dangerReviewRecord/index.vue
+4
-4
edit.vue
src/views/dangerManagement/queryDangerRecords/edit.vue
+26
-6
index.vue
src/views/dangerManagement/queryDangerRecords/index.vue
+5
-14
edit.vue
src/views/dangerManagement/safetyDisposalRecord/edit.vue
+12
-12
index.vue
src/views/dangerManagement/safetyDisposalRecord/index.vue
+2
-2
No files found.
src/views/dangerManagement/dangerRectificationRecord/edit.vue
View file @
8bd4a3e5
...
...
@@ -40,7 +40,7 @@
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"责任人"
ref=
"zrr"
prop=
"zrr"
>
<
el-input
:readonly=
"readonly"
v-model=
"form.zrr"
></el-input
>
<
personSelector
:label=
"form.zrrName||'暂无'"
@
selected=
'zrrSelected'
></personSelector
>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
...
...
@@ -84,6 +84,8 @@
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
sbr
:
""
,
sbrName
:
''
,
zrrName
:
''
,
id
:
''
,
fxrq
:
new
Date
().
getTime
(),
...
...
@@ -170,6 +172,9 @@
methods
:
{
sbrSelected
(
row
){
this
.
form
.
sbr
=
row
.
code
},
zrrSelected
(
row
){
this
.
form
.
zrr
=
row
.
code
}
}
}
...
...
src/views/dangerManagement/dangerRectificationRecord/index.vue
View file @
8bd4a3e5
...
...
@@ -134,7 +134,7 @@
// {label: "内容", prop: "nr", fieldType: "ftString",width:300},
{
label
:
"责任部门"
,
prop
:
"bmid"
,
fieldType
:
"ftString"
,
width
:
192
},
// {label: "制定整改方案", prop: "zdzgfa", fieldType: "ftString",width:6},
{
label
:
"责任人"
,
prop
:
"zrr"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"责任人"
,
prop
:
"zrr
Name
"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"隐患等级"
,
prop
:
"dj"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"隐患分类"
,
prop
:
"flid"
,
fieldType
:
"ftString"
,
width
:
192
},
// {label: "处理人", prop: "clr", fieldType: "ftString",width:192},
...
...
@@ -152,7 +152,7 @@
// {label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300},
// {label: "维护人", prop: "whr", fieldType: "ftString"},
// {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
{
label
:
"上报人"
,
prop
:
"sbr"
,
fieldType
:
"ftString"
},
{
label
:
"上报人"
,
prop
:
"sbr
Name
"
,
fieldType
:
"ftString"
},
// {label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
]
}
...
...
src/views/dangerManagement/dangerReviewRecord/edit.vue
View file @
8bd4a3e5
...
...
@@ -64,14 +64,14 @@
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"复查人"
ref=
"fcr"
prop=
"fcr"
>
<el-input
:readonly=
"readonly"
v-model=
"form.fcr"
></el-input
>
<personSelector
:label=
"form.fcrName||'暂无'"
@
selected=
'fcrSelected'
></personSelector
>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"处理人"
ref=
"clr"
prop=
"clr"
>
<el-input
:readonly=
"readonly"
v-model=
"form.clr"
></el-input
>
<personSelector
:label=
"form.clrName||'暂无'"
@
selected=
'clrSelected'
></personSelector
>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
...
...
@@ -104,7 +104,8 @@
</el-col>
-->
<el-col
:span=
"12"
>
<el-form-item
label=
"处置人"
ref=
"czr"
prop=
"czr"
>
<el-input
:readonly=
"readonly"
v-model=
"form.czr"
></el-input>
<personSelector
:label=
"form.czrName||'暂无'"
@
selected=
'czrSelected'
></personSelector>
<!--
<el-input
:readonly=
"readonly"
v-model=
"form.czr"
></el-input>
-->
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
...
...
@@ -151,9 +152,8 @@
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
mounted
()
{
// this.form.sbr=localStorage.getItem('userid')
// this.form.sbrName=localStorage.getItem('username')
this
.
form
.
sbr
=
'TEST01'
this
.
form
.
sbr
=
localStorage
.
getItem
(
'userid'
)
this
.
form
.
sbrName
=
localStorage
.
getItem
(
'username'
)
},
/* 组件名称*/
name
:
"yhglYhjlEdit"
,
...
...
@@ -169,6 +169,10 @@
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
czrName
:
''
,
clrName
:
''
,
fcrName
:
''
,
sbrName
:
''
,
sbr
:
''
,
id
:
''
,
...
...
@@ -256,6 +260,15 @@
methods
:
{
sbrSelected
(
row
){
this
.
form
.
sbr
=
row
.
code
},
fcrSelected
(
row
){
this
.
form
.
fcr
=
row
.
code
},
clrSelected
(
row
){
this
.
form
.
clr
=
row
.
code
},
czrSelected
(
row
){
this
.
form
.
czr
=
row
.
code
}
}
}
...
...
src/views/dangerManagement/dangerReviewRecord/index.vue
View file @
8bd4a3e5
...
...
@@ -121,13 +121,13 @@
// {label: "责任人", prop: "zrr", fieldType: "ftString",width:192},
{
label
:
"隐患等级"
,
prop
:
"dj"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"隐患分类"
,
prop
:
"flid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"处理人"
,
prop
:
"clr"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"处理人"
,
prop
:
"clr
Name
"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"处理时间"
,
prop
:
"clsj"
,
fieldType
:
"ftDateTime"
},
// {label: "处理方法", prop: "clff", fieldType: "ftString",width:300},
{
label
:
"复查人"
,
prop
:
"fcr"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"复查人"
,
prop
:
"fcr
Name
"
,
fieldType
:
"ftString"
,
width
:
192
},
// {label: "复查时间", prop: "fcsj", fieldType: "ftDateTime"},
// {label: "复查结果", prop: "fcjg", fieldType: "ftString",width:300},
{
label
:
"处置人"
,
prop
:
"czr"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"处置人"
,
prop
:
"czr
Name
"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"处置时间"
,
prop
:
"czsj"
,
fieldType
:
"ftDateTime"
},
// {label: "处置意见", prop: "czyj", fieldType: "ftString",width:300},
// {label: "状态", prop: "zt", fieldType: "ftString",width:6},
...
...
@@ -136,7 +136,7 @@
// {label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300},
// {label: "维护人", prop: "whr", fieldType: "ftString"},
// {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
{
label
:
"上报人"
,
prop
:
"sbr"
,
fieldType
:
"ftString"
},
{
label
:
"上报人"
,
prop
:
"sbr
Name
"
,
fieldType
:
"ftString"
},
{
label
:
"创建时间"
,
prop
:
"cjsj"
,
fieldType
:
"ftDateTime"
},
]
}
...
...
src/views/dangerManagement/queryDangerRecords/edit.vue
View file @
8bd4a3e5
...
...
@@ -39,7 +39,8 @@
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"责任人"
ref=
"zrr"
prop=
"zrr"
>
<el-input
:readonly=
"readonly"
v-model=
"form.zrr"
></el-input>
<personSelector
:label=
"form.zrrName||'暂无'"
@
selected=
'zrrSelected'
></personSelector>
<!--
<el-input
:readonly=
"readonly"
v-model=
"form.zrr"
></el-input>
-->
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
...
...
@@ -57,7 +58,7 @@
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"处理人"
ref=
"clr"
prop=
"clr"
>
<
el-input
:readonly=
"readonly"
v-model=
"form.clr"
></el-input
>
<
personSelector
:label=
"form.clrName||'暂无'"
@
selected=
'clrSelected'
></personSelector
>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
...
...
@@ -85,7 +86,8 @@
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"复查人"
ref=
"fcr"
prop=
"fcr"
>
<el-input
:readonly=
"readonly"
v-model=
"form.fcr"
></el-input>
<personSelector
:label=
"form.fcrName||'暂无'"
@
selected=
'fcrSelected'
></personSelector>
<!--
<el-input
:readonly=
"readonly"
v-model=
"form.fcr"
></el-input>
-->
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
...
...
@@ -118,7 +120,8 @@
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"处置人"
ref=
"czr"
prop=
"czr"
>
<el-input
:readonly=
"readonly"
v-model=
"form.czr"
></el-input>
<!--
<el-input
:readonly=
"readonly"
v-model=
"form.czr"
></el-input>
-->
<personSelector
:label=
"form.czrName||'暂无'"
@
selected=
'czrSelected'
></personSelector>
</el-form-item>
</el-col>
...
...
@@ -141,7 +144,7 @@
this
.
form
.
sbrName
=
localStorage
.
getItem
(
'username'
)
},
/* 组件名称*/
name
:
"
aqgl/
yhglYhjlEdit"
,
name
:
"yhglYhjlEdit"
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data
()
{
...
...
@@ -154,6 +157,11 @@
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
zrrName
:
''
,
czrName
:
''
,
clrName
:
''
,
fcrName
:
''
,
sbrName
:
''
,
yqzgsj
:
''
,
sbr
:
""
,
cfje
:
''
,
...
...
@@ -243,6 +251,18 @@
methods
:
{
sbrSelected
(
row
){
this
.
form
.
sbr
=
row
.
code
},
fcrSelected
(
row
){
this
.
form
.
fcr
=
row
.
code
},
clrSelected
(){
this
.
form
.
clr
=
row
.
code
},
czrSelected
(){
this
.
form
.
czr
=
row
.
code
},
zrrSelected
(){
this
.
form
.
zrr
=
row
.
code
}
}
}
...
...
src/views/dangerManagement/queryDangerRecords/index.vue
View file @
8bd4a3e5
...
...
@@ -62,15 +62,6 @@
<div
class=
"tablePagers"
>
<TablePager
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
@
getRow=
'getRow'
>
<template
slot=
"tabCustom"
>
<el-table-column
label=
"启用/停用"
width=
"90"
header-align=
"center"
>
<template
slot-scope=
"scope"
>
<el-switch
@
click
.
native=
"setEnable(scope.row.id)"
:value=
'tybz(scope)'
style=
"width: 80px;justify-content: center;"
active-color=
"#13ce66"
inactive-color=
"#eee"
>
</el-switch>
</
template
>
</el-table-column>
</template>
</TablePager>
</div>
...
...
@@ -134,16 +125,16 @@
{
label
:
"内容"
,
prop
:
"nr"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"责任部门"
,
prop
:
"bmid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"制定整改方案"
,
prop
:
"zdzgfa"
,
fieldType
:
"ftString"
,
width
:
120
},
{
label
:
"责任人"
,
prop
:
"zrr"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"责任人"
,
prop
:
"zrr
Name
"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"隐患等级"
,
prop
:
"dj"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"隐患分类"
,
prop
:
"flid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"处理人"
,
prop
:
"clr"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"处理人"
,
prop
:
"clr
Name
"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"处理时间"
,
prop
:
"clsj"
,
fieldType
:
"ftDateTime"
},
{
label
:
"处理方法"
,
prop
:
"clff"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"复查人"
,
prop
:
"fcr"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"复查人"
,
prop
:
"fcr
Name
"
,
fieldType
:
"ftString"
,
width
:
192
},
// {label: "复查时间", prop: "fcsj", fieldType: "ftDateTime"},
// {label: "复查结果", prop: "fcjg", fieldType: "ftString",width:300},
{
label
:
"处置人"
,
prop
:
"czr"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"处置人"
,
prop
:
"czr
Name
"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"处置时间"
,
prop
:
"czsj"
,
fieldType
:
"ftDateTime"
},
// {label: "处置意见", prop: "czyj", fieldType: "ftString",width:300},
// {label: "状态", prop: "zt", fieldType: "ftString",width:6},
...
...
@@ -152,7 +143,7 @@
// {label: "工作流状态", prop: "wfpname", fieldType: "ftString",width:300},
// {label: "维护人", prop: "whr", fieldType: "ftString"},
// {label: "维护时间", prop: "whsj", fieldType: "ftDateTime"},
{
label
:
"上报人"
,
prop
:
"sbr"
,
fieldType
:
"ftString"
},
{
label
:
"上报人"
,
prop
:
"sbr
Name
"
,
fieldType
:
"ftString"
},
{
label
:
"要求整改日期"
,
prop
:
"yqzgsj"
,
fieldType
:
"ftString"
},
{
label
:
"处罚金额"
,
prop
:
"cfje"
,
fieldType
:
"ftString"
},
// {label: "创建时间", prop: "cjsj", fieldType: "ftDateTime"},
...
...
src/views/dangerManagement/safetyDisposalRecord/edit.vue
View file @
8bd4a3e5
...
...
@@ -39,7 +39,7 @@
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"责任人"
ref=
"zrr"
prop=
"zrr"
>
<
el-input
:readonly=
"readonly"
v-model=
"form.zrr"
></el-input
>
<
personSelector
:label=
"form.zrrName||'暂无'"
@
selected=
'zrrSelected'
></personSelector
>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
...
...
@@ -51,7 +51,7 @@
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"处理人"
ref=
"clr"
prop=
"clr"
>
<el-input
:readonly=
"readonly"
v-model=
"form.clr"
></el-input
>
<personSelector
:label=
"form.clrName||'暂无'"
@
selected=
'clrSelected'
></personSelector
>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
...
...
@@ -95,6 +95,8 @@
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
clrName
:
''
,
zrrName
:
''
,
id
:
''
,
fxrq
:
new
Date
().
getTime
(),
...
...
@@ -174,19 +176,17 @@
},
/* form提交时的规则,具体规则参考官网*/
rules
:
{
roleid
:
[{
required
:
true
,
trigger
:
'blur'
},
],
rolename
:
[{
required
:
true
,
trigger
:
'blur'
},
]
}
}
},
methods
:
{
zrrSelected
(
row
){
this
.
form
.
zrr
=
row
.
code
},
clrSelected
(
row
){
this
.
form
.
clr
=
row
.
code
}
}
}
</
script
>
...
...
src/views/dangerManagement/safetyDisposalRecord/index.vue
View file @
8bd4a3e5
...
...
@@ -117,10 +117,10 @@
{
label
:
"内容"
,
prop
:
"nr"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"责任部门"
,
prop
:
"bmid"
,
fieldType
:
"ftString"
,
width
:
192
},
// {label: "制定整改方案", prop: "zdzgfa", fieldType: "ftString",width:6},
{
label
:
"责任人"
,
prop
:
"zrr"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"责任人"
,
prop
:
"zrr
Name
"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"隐患等级"
,
prop
:
"dj"
,
fieldType
:
"ftString"
,
width
:
192
},
// {label: "隐患分类", prop: "flid", fieldType: "ftString",width:192},
{
label
:
"处理人"
,
prop
:
"clr"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"处理人"
,
prop
:
"clr
Name
"
,
fieldType
:
"ftString"
,
width
:
192
},
// {label: "处理时间", prop: "clsj", fieldType: "ftDateTime"},
// {label: "处理方法", prop: "clff", fieldType: "ftString",width:300},
// {label: "复查人", prop: "fcr", fieldType: "ftString",width:192},
...
...
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