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
5e5f0897
Commit
5e5f0897
authored
Nov 07, 2022
by
dingyoujian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日常管理部分
parent
7fa82e46
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
666 additions
and
383 deletions
+666
-383
nroa.js
src/api/daily/nroa.js
+75
-0
nros.js
src/api/daily/nros.js
+38
-0
edit.vue
src/views/daily/nroa/new/edit.vue
+208
-0
index.vue
src/views/daily/nroa/new/index.vue
+17
-5
edit.vue
src/views/daily/nros/edit.vue
+133
-85
index.vue
src/views/daily/nros/index.vue
+59
-96
edit.vue
src/views/daily/nrtm/edit.vue
+83
-85
index.vue
src/views/daily/nrtm/index.vue
+53
-112
No files found.
src/api/daily/nroa.js
0 → 100644
View file @
5e5f0897
import
request
from
'common/src/utils/request'
/* 角色管理query */
export
function
doQuery
(
query
)
{
return
request
({
url
:
'/aqgl/rcgl/fcgzy/query'
,
method
:
'post'
,
data
:
query
||
{}
})
}
/* 角色管理更新 */
export
function
doUpdate
(
query
)
{
return
request
({
url
:
'/aqgl/rcgl/fcgzy/update'
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
doAdd
(
query
)
{
return
request
({
url
:
'/aqgl/rcgl/fcgzy/add'
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
doDelete
(
query
)
{
return
request
({
url
:
'/aqgl/rcgl/fcgzy/delete'
,
method
:
'post'
,
data
:
query
||
{}
})
}
/**
* 加载作业类型
* @param query
*/
export
function
doInitZylx
(
query
)
{
return
request
({
url
:
'/aqgl/rcgl/fcgzy/init/zylx'
,
method
:
'post'
,
data
:
query
||
{}
})
}
/**
* 加载申请项
* @param query
*/
export
function
doInitSqx
(
query
)
{
return
request
({
url
:
'/aqgl/rcgl/fcgzy/init/sqx'
,
method
:
'post'
,
data
:
query
||
{}
})
}
/**
* 风险等级
* @param query
* @returns {*}
*/
export
function
doInitWxdj
(
query
)
{
return
request
({
url
:
'/aqgl/fxyk/fxpc/init/wxdj'
,
method
:
'post'
,
data
:
query
||
{}
})
}
src/api/daily/nros.js
0 → 100644
View file @
5e5f0897
import
request
from
'common/src/utils/request'
/* 角色管理query */
export
function
doQuery
(
query
)
{
return
request
({
url
:
'/aqgl/rcgl/fcgzybz/query'
,
method
:
'post'
,
data
:
query
||
{}
})
}
/* 角色管理更新 */
export
function
doUpdate
(
query
)
{
return
request
({
url
:
'/aqgl/rcgl/fcgzybz/update'
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
doAdd
(
query
)
{
return
request
({
url
:
'/aqgl/rcgl/fcgzybz/add'
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
doDelete
(
query
)
{
return
request
({
url
:
'/aqgl/rcgl/fcgzybz/delete'
,
method
:
'post'
,
data
:
query
||
{}
})
}
src/views/daily/nr
tm
/new/edit.vue
→
src/views/daily/nr
oa
/new/edit.vue
View file @
5e5f0897
...
@@ -3,30 +3,94 @@
...
@@ -3,30 +3,94 @@
<!-- 填写表单内容,slot=form必写-->
<!-- 填写表单内容,slot=form必写-->
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"80px"
:rules=
"rules"
>
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"80px"
:rules=
"rules"
>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"序号"
ref=
"xh"
prop=
"xh"
>
<el-form-item
label=
"申请单号"
ref=
"djid"
prop=
"djid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.xh"
></el-input>
<el-input
:readonly=
"readonly"
v-model=
"form.djid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"申请日期"
ref=
"sqrq"
prop=
"sqrq"
>
<el-date-picker
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
v-model=
"form.sqrq"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"作业类型"
ref=
"flid"
prop=
"flid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.flid"
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"名称"
ref=
"name"
prop=
"name"
>
<el-form-item
label=
"开始时间"
ref=
"kssj"
prop=
"kssj"
>
<el-input
:readonly=
"readonly"
v-model=
"form.name"
></el-input>
<el-date-picker
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
v-model=
"form.kssj"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"结束时间"
ref=
"jssj"
prop=
"jssj"
>
<el-date-picker
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
v-model=
"form.jssj"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"作业时长"
ref=
"zysc"
prop=
"zysc"
>
<el-input
:readonly=
"readonly"
v-model=
"form.zysc"
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"备注"
ref=
"bz"
prop=
"bz"
>
<el-form-item
label=
"作业项目"
ref=
"zyxm"
prop=
"zyxm"
>
<el-input
:readonly=
"readonly"
v-model=
"form.bz"
></el-input>
<el-input
:readonly=
"readonly"
v-model=
"form.zyxm"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"作业地点"
ref=
"zydd"
prop=
"zydd"
>
<el-input
:readonly=
"readonly"
v-model=
"form.zydd"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"施工单位"
ref=
"sgdw"
prop=
"sgdw"
>
<el-input
:readonly=
"readonly"
v-model=
"form.sgdw"
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"系统版本"
ref=
"sysversion"
prop=
"sysversion"
>
<el-form-item
label=
"风险级别"
ref=
"fxjb"
prop=
"fxjb"
>
<el-input
:readonly=
"readonly"
v-model=
"form.sysversion"
></el-input>
<el-input
:readonly=
"readonly"
v-model=
"form.fxjb"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"危害因素"
ref=
"whys"
prop=
"whys"
>
<el-input
:readonly=
"readonly"
v-model=
"form.whys"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"管控措施"
ref=
"gkcs"
prop=
"gkcs"
>
<el-input
:readonly=
"readonly"
v-model=
"form.gkcs"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"备注"
ref=
"bz"
prop=
"bz"
>
<el-input
:readonly=
"readonly"
v-model=
"form.bz"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<!--多选-->
<el-form-item
label=
"申请项"
ref=
"sqx"
prop=
"sqx"
>
<el-input
:readonly=
"readonly"
v-model=
"form.sqx"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"工作流状态"
ref=
"wfpname"
prop=
"wfpname"
>
<el-input
:readonly=
"readonly"
v-model=
"form.wfpname"
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -42,7 +106,7 @@
...
@@ -42,7 +106,7 @@
},
},
/* 组件名称*/
/* 组件名称*/
name
:
"aqgl
RcglFcgzylx
Edit"
,
name
:
"aqgl
/rcglFcgzy
Edit"
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data
()
{
data
()
{
...
@@ -57,10 +121,32 @@
...
@@ -57,10 +121,32 @@
form
:
{
form
:
{
//ID
//ID
id
:
''
,
id
:
''
,
//序号
//申请单号
xh
:
''
,
djid
:
''
,
//名称
//申请日期
name
:
''
,
sqrq
:
new
Date
().
getTime
(),
//作业类型
flid
:
''
,
//申请项
sqx
:
''
,
//开始时间
kssj
:
new
Date
().
getTime
(),
//结束时间
jssj
:
new
Date
().
getTime
(),
//作业时长
zysc
:
''
,
//作业项目
zyxm
:
''
,
//作业地点
zydd
:
''
,
//施工单位
sgdw
:
''
,
//风险级别
fxjb
:
''
,
//危害因素
whys
:
''
,
//管控措施
gkcs
:
''
,
//备注
//备注
bz
:
''
,
bz
:
''
,
//维护人编码
//维护人编码
...
@@ -77,6 +163,24 @@
...
@@ -77,6 +163,24 @@
cjsj
:
new
Date
().
getTime
(),
cjsj
:
new
Date
().
getTime
(),
//系统版本
//系统版本
sysversion
:
''
,
sysversion
:
''
,
//状态
zt
:
''
,
//工作流ID
wfid
:
''
,
//工作流实例号
wfinstid
:
''
,
//工作流状态ID
wfpid
:
''
,
//工作流状态
wfpname
:
''
,
//待处理人id
wfwuserid
:
''
,
//待处理人
wfwusername
:
''
,
//已处理人id
wfhuserid
:
''
,
//已处理人
wfhusername
:
''
,
},
},
/* form提交时的规则,具体规则参考官网*/
/* form提交时的规则,具体规则参考官网*/
rules
:
{
rules
:
{
...
...
src/views/daily/nr
tm
/new/index.vue
→
src/views/daily/nr
oa
/new/index.vue
View file @
5e5f0897
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
doAdd
,
doAdd
,
doUpdate
,
doUpdate
,
doDelete
doDelete
}
from
'@/api/
daily/nrtm
.js'
;
}
from
'@/api/
aqgl/rcgl/fcgzy
.js'
;
/* edit页面*/
/* edit页面*/
import
Edit
from
'./edit'
import
Edit
from
'./edit'
import
{
import
{
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
}
from
'common'
}
from
'common'
export
default
{
export
default
{
mixins
:
[
tableMixin
],
mixins
:
[
tableMixin
],
name
:
'aqgl
RcglFcgzylx
'
,
name
:
'aqgl
/rcglFcgzy
'
,
/* 初始额外赋值*/
/* 初始额外赋值*/
async
mounted
()
{
async
mounted
()
{
...
@@ -67,20 +67,32 @@
...
@@ -67,20 +67,32 @@
type
:
''
,
type
:
''
,
DialogTitle
:
''
,
DialogTitle
:
''
,
/* 基础url*/
/* 基础url*/
baseUrl
:
'/aqgl/rcgl/fcgzy
lx
'
,
baseUrl
:
'/aqgl/rcgl/fcgzy'
,
/* 查询参数*/
/* 查询参数*/
queryParams
:
{
queryParams
:
{
info
:
''
info
:
''
},
},
/* 表格标题对应参数*/
/* 表格标题对应参数*/
tableTitle
:
[
tableTitle
:
[
{
label
:
"序号"
,
prop
:
"xh"
,
fieldType
:
"int"
},
{
label
:
"申请单号"
,
prop
:
"djid"
,
fieldType
:
"ftString"
,
width
:
120
},
{
label
:
"名称"
,
prop
:
"name"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"申请日期"
,
prop
:
"sqrq"
,
fieldType
:
"ftDateTime"
},
{
label
:
"作业类型"
,
prop
:
"flid"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"开始时间"
,
prop
:
"kssj"
,
fieldType
:
"ftDateTime"
},
{
label
:
"结束时间"
,
prop
:
"jssj"
,
fieldType
:
"ftDateTime"
},
{
label
:
"作业时长"
,
prop
:
"zysc"
,
fieldType
:
"float"
},
{
label
:
"作业项目"
,
prop
:
"zyxm"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"作业地点"
,
prop
:
"zydd"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"施工单位"
,
prop
:
"sgdw"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"风险级别"
,
prop
:
"fxjb"
,
fieldType
:
"ftString"
,
width
:
120
},
{
label
:
"危害因素"
,
prop
:
"whys"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"管控措施"
,
prop
:
"gkcs"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"备注"
,
prop
:
"bz"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"备注"
,
prop
:
"bz"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"维护人"
,
prop
:
"whr"
,
fieldType
:
"ftString"
},
{
label
:
"维护人"
,
prop
:
"whr"
,
fieldType
:
"ftString"
},
{
label
:
"维护时间"
,
prop
:
"whsj"
,
fieldType
:
"ftDateTime"
},
{
label
:
"维护时间"
,
prop
:
"whsj"
,
fieldType
:
"ftDateTime"
},
{
label
:
"创建人"
,
prop
:
"cjr"
,
fieldType
:
"ftString"
},
{
label
:
"创建人"
,
prop
:
"cjr"
,
fieldType
:
"ftString"
},
{
label
:
"创建时间"
,
prop
:
"cjsj"
,
fieldType
:
"ftDateTime"
},
{
label
:
"创建时间"
,
prop
:
"cjsj"
,
fieldType
:
"ftDateTime"
},
{
label
:
"状态"
,
prop
:
"zt"
,
fieldType
:
"ftString"
,
width
:
6
},
{
label
:
"工作流状态"
,
prop
:
"wfpname"
,
fieldType
:
"ftString"
,
width
:
300
},
]
]
}
}
},
},
...
...
src/views/daily/nros/edit.vue
View file @
5e5f0897
...
@@ -4,52 +4,66 @@
...
@@ -4,52 +4,66 @@
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"80px"
:rules=
"rules"
>
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"80px"
:rules=
"rules"
>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"活动时间"
ref=
"roleid"
prop=
"rolei
d"
>
<el-form-item
label=
"作业活动"
ref=
"zyhd"
prop=
"zyh
d"
>
<el-input
:readonly=
"readonly"
v-model=
"form.roleid"
></el-input>
<el-input
:readonly=
"readonly"
v-model=
"form.zyhd"
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"活动名称"
ref=
"roleid"
prop=
"roleid
"
>
<el-form-item
label=
"事故后果"
ref=
"sghg"
prop=
"sghg
"
>
<el-input
:readonly=
"readonly"
v-model=
"form.roleid"
></el-input>
<el-input
:readonly=
"readonly"
v-model=
"form.sghg"
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"活动周期"
ref=
"roleid"
prop=
"roleid
"
>
<el-form-item
label=
"风险登记"
ref=
"fxdj"
prop=
"fxdj
"
>
<el-input
:readonly=
"readonly"
v-model=
"form.roleid"
></el-input>
<el-input
:readonly=
"readonly"
v-model=
"form.fxdj"
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"组织单位"
ref=
"roleid"
prop=
"rolei
d"
>
<el-form-item
label=
"作业地点"
ref=
"zydd"
prop=
"zyd
d"
>
<el-input
:readonly=
"readonly"
v-model=
"form.roleid"
></el-input>
<el-input
:readonly=
"readonly"
v-model=
"form.zydd"
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"活动内容"
>
<el-form-item
label=
"排查岗位"
ref=
"pcgwid"
prop=
"pcgwid"
>
<el-input
type=
"textarea"
></el-input>
<RelSelect
src=
'/aqgl/jcsj/scgw/query'
clearable
:match=
"
{value:'id',label:'name'}" v-model='form.pcgwid' >
</RelSelect>
</el-form-item>
</el-col>
<el-form-item
label=
"风险类型"
ref=
"fxlx"
prop=
"fxlx"
>
<RelSelect
src=
'/aqgl/fxyk/shlx/query'
clearable
:match=
"
{value:'id',label:'name'}" v-model='form.fxlx' >
</RelSelect>
<!--
<el-input
:readonly=
"readonly"
v-model=
"form.fxlx"
></el-input>
-->
</el-form-item>
<el-col
:span=
"12"
>
<el-form-item
label=
"危害因素"
ref=
"whys"
prop=
"whys"
>
<el-input
:readonly=
"readonly"
v-model=
"form.whys"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"管控措施"
ref=
"gkcs"
prop=
"gkcs"
>
<el-input
:readonly=
"readonly"
v-model=
"form.gkcs"
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"24
"
>
<el-col
:span=
"12
"
>
<el-form-item
label=
"活动结论
"
>
<el-form-item
label=
"备注"
ref=
"bz"
prop=
"bz
"
>
<el-input
type=
"textarea"
></el-input>
<el-input
:readonly=
"readonly"
v-model=
"form.bz"
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"24"
>
</el-row>
<el-form-item
label=
"改进措施"
>
<el-row
:gutter=
"20"
>
<el-input
type=
"textarea"
></el-input>
<el-col
:span=
"12"
>
<el-form-item
label=
"系统版本"
ref=
"sysversion"
prop=
"sysversion"
>
<el-input
:readonly=
"readonly"
v-model=
"form.sysversion"
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
</el-form>
</el-form>
<!-- 按钮重写, -->
<!--
<div
slot=
"reFooter"
>
<span
slot=
"footer"
>
重写按钮写在这里,根据需要重写 slot(reFooter,foorer) 节点样式 重写方法需要在此页重新定义
</span>
</div>
-->
</RelDialog>
</RelDialog>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -58,9 +72,10 @@
...
@@ -58,9 +72,10 @@
mixins
:
[
editMixin
],
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
/* 存放index页面传递的额外参数*/
mounted
()
{
mounted
()
{
},
},
/* 组件名称*/
/* 组件名称*/
name
:
'roleManagementEdit'
,
name
:
"nrosEdit"
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data
()
{
data
()
{
...
@@ -69,11 +84,42 @@
...
@@ -69,11 +84,42 @@
/* 额外初始化,根据需求*/
/* 额外初始化,根据需求*/
systemType
:
[],
systemType
:
[],
bmList
:
[],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
form
:
{
roleid
:
''
,
//ID
rolename
:
''
,
id
:
''
,
bz
:
""
,
//作业活动
zyhd
:
''
,
//事故后果
sghg
:
''
,
//风险登记
fxdj
:
''
,
//作业地点
zydd
:
''
,
//排查岗位ID
pcgwid
:
''
,
//危害因素
whys
:
''
,
//管控措施
gkcs
:
''
,
//备注
bz
:
''
,
//维护人编码
whrid
:
''
,
//维护人
whr
:
''
,
//维护时间
whsj
:
new
Date
().
getTime
(),
//创建人编码
cjrid
:
''
,
//创建人
cjr
:
''
,
//创建时间
cjsj
:
new
Date
().
getTime
(),
//系统版本
sysversion
:
''
,
},
},
/* form提交时的规则,具体规则参考官网*/
/* form提交时的规则,具体规则参考官网*/
rules
:
{
rules
:
{
...
@@ -97,3 +143,5 @@
...
@@ -97,3 +143,5 @@
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
</
style
>
</
style
>
src/views/daily/nros/index.vue
View file @
5e5f0897
<
template
>
<
template
>
<div
class=
"min_full"
>
<div
class=
"min_full"
>
<!-- 查询条件-->
<!-- 查询条件-->
<div
class=
"search"
v-condition
>
<div
class=
"search"
v-condition
>
<SearchButton
:app=
'app'
></SearchButton>
<SearchButton
:app=
'app'
></SearchButton>
<el-row
:gutter=
"20"
class=
"search-row-1"
>
<el-row
:gutter=
"20"
class=
"search-row-1"
>
<el-col
:span=
"
8
"
class=
"search-col"
>
<el-col
:span=
"
12
"
class=
"search-col"
>
<div
class=
"search-item"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
日期:
</span>
<span
class=
"search-span"
>
名称:
</span>
<el-date-picker></el-date-picker>
<el-input
v-model=
"queryParams.info"
></el-input>
</div>
</el-col>
<el-col
:span=
"8"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
部门:
</span>
<el-input></el-input>
</div>
</div>
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -36,29 +29,23 @@
...
@@ -36,29 +29,23 @@
</el-row>
</el-row>
<!-- 表格-->
<!-- 表格-->
<div
class=
"tablePagers"
>
<div
class=
"tablePagers"
>
<TablePager
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
:isFontPage=
"true"
:allData=
"allData"
<TablePager
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
:showOverflowTooltip=
"false"
@
getRow=
'getRow'
>
@
getRow=
'getRow'
:cellStyle=
"cellStyle"
>
<template
slot=
"tabCustom"
>
</
template
>
</TablePager>
</TablePager>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
/* 引入需要的接口*/
/* 引入需要的接口*/
import
{
import
{
QueryKzzxRole
,
doQuery
,
QueryApptype
,
doAdd
,
AddKzzxRole
,
doUpdate
,
DeleteKzzxRole
,
doDelete
UpdateKzzxRole
,
}
from
'@/api/daily/nros.js'
;
QtKzzxRole
}
from
"common/src/api/system/dmgSystem.js"
;
/* edit页面*/
/* edit页面*/
import
Edit
from
'./edit'
import
Edit
from
'./edit'
import
{
import
{
...
@@ -66,7 +53,7 @@
...
@@ -66,7 +53,7 @@
}
from
'common'
}
from
'common'
export
default
{
export
default
{
mixins
:
[
tableMixin
],
mixins
:
[
tableMixin
],
name
:
'
appVersion
'
,
name
:
'
nros
'
,
/* 初始额外赋值*/
/* 初始额外赋值*/
async
mounted
()
{
async
mounted
()
{
...
@@ -80,66 +67,41 @@
...
@@ -80,66 +67,41 @@
type
:
''
,
type
:
''
,
DialogTitle
:
''
,
DialogTitle
:
''
,
/* 基础url*/
/* 基础url*/
baseUrl
:
'kzzx/role
'
,
baseUrl
:
'/aqgl/rcgl/fcgzybz
'
,
/* 查询参数*/
/* 查询参数*/
queryParams
:
{
queryParams
:
{
ksrq
:
''
,
info
:
''
jsrq
:
''
},
},
allData
:[{
"gkcs"
:
"技术措施:安装声光报警器;管理措施:开口时,指挥人员站位于安全区域,无关人员禁止进入工作区域;操作设备前开启声光报警器,安全确认到位,专人指挥操作;教育措施:培训吊运风口套及直吹管SOP、危险因素辨识及预防控制措施、岗位禁令、岗位安全操作规程;个体防护措施:安全帽、工作服、劳保鞋、阻燃手套、防护面罩、防尘口罩;应急措施:发现有人受伤后,立即救治伤员,向上级上报,严重时送医院治疗;发现有人受伤后,创伤出血者迅速包扎止血,向上级上报,严重时送医院治疗"
}],
/* 表格标题对应参数*/
/* 表格标题对应参数*/
tableTitle
:
[
tableTitle
:
[
{
{
label
:
"作业活动"
,
prop
:
"zyhd"
,
fieldType
:
"ftString"
,
width
:
300
},
prop
:
'gkcs'
,
{
label
:
"事故后果"
,
prop
:
"sghg"
,
fieldType
:
"ftString"
,
width
:
300
},
label
:
'作业活动'
,
{
label
:
"风险登记"
,
prop
:
"fxdj"
,
fieldType
:
"ftString"
,
width
:
60
},
},
{
label
:
"作业地点"
,
prop
:
"zydd"
,
fieldType
:
"ftString"
,
width
:
300
},
],
// {label: "排查岗位ID", prop: "pcgwid", fieldType: "ftString",width:192},
cellStyle
:{},
{
label
:
"排查岗位"
,
prop
:
"pcgwName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"危害因素"
,
prop
:
"whys"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"管控措施"
,
prop
:
"gkcs"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"备注"
,
prop
:
"bz"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"维护人"
,
prop
:
"whr"
,
fieldType
:
"ftString"
},
{
label
:
"维护时间"
,
prop
:
"whsj"
,
fieldType
:
"ftDateTime"
}
]
}
}
},
},
methods
:
{
methods
:
{
tybz
(
a
)
{
let
nTy
=
false
nTy
=
(
a
.
row
.
tybz
==
'N'
?
true
:
false
)
return
nTy
},
/* 基础查询*/
/* 基础查询*/
query
:
QueryKzzxRole
,
query
:
doQuery
,
/* 基础增*/
/* 基础增*/
apiAdd
:
AddKzzxRole
,
apiAdd
:
doAdd
,
/* 基础更新*/
/* 基础更新*/
apiUpdate
:
UpdateKzzxRol
e
,
apiUpdate
:
doUpdat
e
,
/* 删除操作*/
/* 删除操作*/
apiDelete
:
DeleteKzzxRol
e
,
apiDelete
:
doDelet
e
,
/* 初始化赋值操作*/
/* 初始化赋值操作*/
init
()
{
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
||
'操作失败'
)
}
})
})
}
}
},
},
components
:
{
components
:
{
Edit
,
Edit
,
...
@@ -152,3 +114,4 @@
...
@@ -152,3 +114,4 @@
<
style
scoped
>
<
style
scoped
>
</
style
>
</
style
>
src/views/daily/nrtm/edit.vue
View file @
5e5f0897
...
@@ -3,53 +3,27 @@
...
@@ -3,53 +3,27 @@
<!-- 填写表单内容,slot=form必写-->
<!-- 填写表单内容,slot=form必写-->
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"80px"
:rules=
"rules"
>
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"80px"
:rules=
"rules"
>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"作业活动"
ref=
"roleid"
prop=
"roleid"
>
<el-form-item
label=
"序号"
ref=
"xh"
prop=
"xh"
>
<el-input
:readonly=
"readonly"
v-model=
"form.roleid"
></el-input>
<el-input
:readonly=
"readonly"
v-model=
"form.xh"
></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>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"风险等级"
ref=
"roleid"
prop=
"roleid"
>
<el-form-item
label=
"名称"
ref=
"name"
prop=
"name"
>
<el-input
:readonly=
"readonly"
v-model=
"form.roleid"
></el-input>
<el-input
:readonly=
"readonly"
v-model=
"form.name"
></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>
</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>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"危害因素"
>
<el-form-item
label=
"备注"
ref=
"bz"
prop=
"bz"
>
<el-input
type=
"textarea"
></el-input>
<el-input
:readonly=
"readonly"
v-model=
"form.bz"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"管控措施"
>
<el-input
type=
"textarea"
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
</el-form>
</el-form>
<!-- 按钮重写, -->
<!--
<div
slot=
"reFooter"
>
<span
slot=
"footer"
>
重写按钮写在这里,根据需要重写 slot(reFooter,foorer) 节点样式 重写方法需要在此页重新定义
</span>
</div>
-->
</RelDialog>
</RelDialog>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -58,9 +32,10 @@
...
@@ -58,9 +32,10 @@
mixins
:
[
editMixin
],
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
/* 存放index页面传递的额外参数*/
mounted
()
{
mounted
()
{
},
},
/* 组件名称*/
/* 组件名称*/
name
:
'roleManagementEdit'
,
name
:
"nrtmEdit"
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data
()
{
data
()
{
...
@@ -69,11 +44,32 @@
...
@@ -69,11 +44,32 @@
/* 额外初始化,根据需求*/
/* 额外初始化,根据需求*/
systemType
:
[],
systemType
:
[],
bmList
:
[],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
form
:
{
roleid
:
''
,
//ID
rolename
:
''
,
id
:
''
,
bz
:
""
,
//序号
xh
:
''
,
//名称
name
:
''
,
//备注
bz
:
''
,
//维护人编码
whrid
:
''
,
//维护人
whr
:
''
,
//维护时间
whsj
:
new
Date
().
getTime
(),
//创建人编码
cjrid
:
''
,
//创建人
cjr
:
''
,
//创建时间
cjsj
:
new
Date
().
getTime
(),
//系统版本
sysversion
:
''
,
},
},
/* form提交时的规则,具体规则参考官网*/
/* form提交时的规则,具体规则参考官网*/
rules
:
{
rules
:
{
...
@@ -97,3 +93,5 @@
...
@@ -97,3 +93,5 @@
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
</
style
>
</
style
>
src/views/daily/nrtm/index.vue
View file @
5e5f0897
<
template
>
<
template
>
<div
class=
"min_full"
>
<div
class=
"min_full"
>
<!-- 查询条件-->
<!-- 查询条件-->
<div
class=
"search"
v-condition
>
<div
class=
"search"
v-condition
>
<SearchButton
:app=
'app'
></SearchButton>
<SearchButton
:app=
'app'
></SearchButton>
<el-row
:gutter=
"20"
class=
"search-row-1"
>
<el-row
:gutter=
"20"
class=
"search-row-1"
>
<el-col
:span=
"
8
"
class=
"search-col"
>
<el-col
:span=
"
12
"
class=
"search-col"
>
<div
class=
"search-item"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
日期:
</span>
<span
class=
"search-span"
>
名称:
</span>
<el-date-picker></el-date-picker>
<el-input
v-model=
"queryParams.info"
></el-input>
</div>
</el-col>
<el-col
:span=
"8"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
部门:
</span>
<el-input></el-input>
</div>
</div>
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -36,33 +29,23 @@
...
@@ -36,33 +29,23 @@
</el-row>
</el-row>
<!-- 表格-->
<!-- 表格-->
<div
class=
"tablePagers"
>
<div
class=
"tablePagers"
>
<TablePager
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
@
selectItem=
'selectItem'
<TablePager
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
@
getRow=
'getRow'
>
@
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>
</TablePager>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
/* 引入需要的接口*/
/* 引入需要的接口*/
import
{
import
{
QueryKzzxRole
,
doQuery
,
QueryApptype
,
doAdd
,
AddKzzxRole
,
doUpdate
,
DeleteKzzxRole
,
doDelete
UpdateKzzxRole
,
}
from
'@/api/daily/nrtm.js'
;
QtKzzxRole
}
from
"common/src/api/system/dmgSystem.js"
;
/* edit页面*/
/* edit页面*/
import
Edit
from
'./edit'
import
Edit
from
'./edit'
import
{
import
{
...
@@ -70,7 +53,7 @@
...
@@ -70,7 +53,7 @@
}
from
'common'
}
from
'common'
export
default
{
export
default
{
mixins
:
[
tableMixin
],
mixins
:
[
tableMixin
],
name
:
'
appVersion
'
,
name
:
'
nrtm
'
,
/* 初始额外赋值*/
/* 初始额外赋值*/
async
mounted
()
{
async
mounted
()
{
...
@@ -78,84 +61,41 @@
...
@@ -78,84 +61,41 @@
},
},
data
()
{
data
()
{
return
{
return
{
/*需要的额外参数 */
/*需要的额外参数 */
showDialog
:
false
,
showDialog
:
false
,
DialogName
:
''
,
DialogName
:
''
,
type
:
''
,
type
:
''
,
DialogTitle
:
''
,
DialogTitle
:
''
,
/* 基础url*/
/* 基础url*/
baseUrl
:
'kzzx/role
'
,
baseUrl
:
'/aqgl/rcgl/fcgzylx
'
,
/* 查询参数*/
/* 查询参数*/
queryParams
:
{
queryParams
:
{
ksrq
:
''
,
info
:
''
jsrq
:
''
},
},
allData
:[
],
/* 表格标题对应参数*/
/* 表格标题对应参数*/
tableTitle
:
[
tableTitle
:
[
{
{
label
:
"序号"
,
prop
:
"xh"
,
fieldType
:
"int"
},
prop
:
'whsj'
,
{
label
:
"名称"
,
prop
:
"name"
,
fieldType
:
"ftString"
,
width
:
300
},
label
:
'作业类型'
,
{
label
:
"备注"
,
prop
:
"bz"
,
fieldType
:
"ftString"
,
width
:
300
},
...
this
.
$common
(
'ftDateTime'
)
{
label
:
"维护人"
,
prop
:
"whr"
,
fieldType
:
"ftString"
},
},
{
label
:
"维护时间"
,
prop
:
"whsj"
,
fieldType
:
"ftDateTime"
}
{
prop
:
'whsj'
,
label
:
'维护日期'
,
...
this
.
$common
(
'ftDateTime'
)
},
{
prop
:
'whsj'
,
label
:
'维护人'
,
...
this
.
$common
(
'ftDateTime'
)
}
]
]
}
}
},
},
methods
:
{
methods
:
{
tybz
(
a
)
{
let
nTy
=
false
nTy
=
(
a
.
row
.
tybz
==
'N'
?
true
:
false
)
return
nTy
},
/* 基础查询*/
/* 基础查询*/
query
:
QueryKzzxRole
,
query
:
doQuery
,
/* 基础增*/
/* 基础增*/
apiAdd
:
AddKzzxRole
,
apiAdd
:
doAdd
,
/* 基础更新*/
/* 基础更新*/
apiUpdate
:
UpdateKzzxRol
e
,
apiUpdate
:
doUpdat
e
,
/* 删除操作*/
/* 删除操作*/
apiDelete
:
DeleteKzzxRol
e
,
apiDelete
:
doDelet
e
,
/* 初始化赋值操作*/
/* 初始化赋值操作*/
init
()
{
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
||
'操作失败'
)
}
})
})
}
}
},
},
components
:
{
components
:
{
Edit
,
Edit
,
...
@@ -168,3 +108,4 @@
...
@@ -168,3 +108,4 @@
<
style
scoped
>
<
style
scoped
>
</
style
>
</
style
>
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