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
bbf21cf4
Commit
bbf21cf4
authored
Nov 03, 2022
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
62f68300
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
916 additions
and
1255 deletions
+916
-1255
edit.vue
...views/dangerManagement/dangerRectificationRecord/edit.vue
+159
-115
index.vue
...iews/dangerManagement/dangerRectificationRecord/index.vue
+49
-135
index.vue
src/views/dangerManagement/dangerReviewRecord/index.vue
+40
-110
edit.vue
src/views/dangerManagement/enterSafetyRecords/edit.vue
+175
-123
index.vue
src/views/dangerManagement/enterSafetyRecords/index.vue
+48
-122
edit.vue
src/views/dangerManagement/maintenanceDg/edit.vue
+103
-85
index.vue
src/views/dangerManagement/maintenanceDg/index.vue
+29
-49
edit.vue
src/views/dangerManagement/queryDangerRecords/edit.vue
+217
-201
index.vue
src/views/dangerManagement/queryDangerRecords/index.vue
+50
-172
index.vue
src/views/dangerManagement/safetyDisposalRecord/index.vue
+46
-143
No files found.
src/views/dangerManagement/dangerRectificationRecord/edit.vue
View file @
bbf21cf4
<
template
>
<RelDialog
:type=
'type'
:editApp=
'editApp'
:app=
'app'
:buttonApp=
'buttonApp'
>
<!-- 填写表单内容,slot=form必写-->
<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=
"userid"
prop=
"userid"
>
<el-input
:readonly=
"readonly"
v-toUpperCase
v-model=
"form.userid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"设施风险"
ref=
"username"
prop=
"username"
>
<el-select
style=
"width: 100%;"
>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"隐患地点"
ref=
"userid"
prop=
"userid"
>
<el-input
:readonly=
"readonly"
v-toUpperCase
v-model=
"form.userid"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"上报级别"
ref=
"userid"
prop=
"userid"
>
<el-input
:readonly=
"readonly"
v-toUpperCase
v-model=
"form.userid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"隐患分类"
ref=
"userid"
prop=
"userid"
>
<el-input
:readonly=
"readonly"
v-toUpperCase
v-model=
"form.userid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"责任单位"
ref=
"userid"
prop=
"userid"
>
<el-input
:readonly=
"readonly"
v-toUpperCase
v-model=
"form.userid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"隐患类型"
ref=
"userid"
prop=
"userid"
>
<el-input
:readonly=
"readonly"
v-toUpperCase
v-model=
"form.userid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"责任人"
ref=
"userid"
prop=
"userid"
>
<el-input
:readonly=
"readonly"
v-toUpperCase
v-model=
"form.userid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"隐患等级"
ref=
"userid"
prop=
"userid"
>
<el-input
:readonly=
"readonly"
v-toUpperCase
v-model=
"form.userid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"报告人"
ref=
"userid"
prop=
"userid"
>
<el-input
:readonly=
"readonly"
v-toUpperCase
v-model=
"form.userid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"备注"
ref=
"userid"
prop=
"userid"
>
<el-input
:readonly=
"readonly"
v-toUpperCase
v-model=
"form.userid"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
<!-- 按钮重写, -->
<!--
<div
slot=
"reFooter"
>
<span
slot=
"footer"
>
重写按钮写在这里,根据需要重写 slot(reFooter,foorer) 节点样式 重写方法需要在此页重新定义
</span>
</div>
-->
</RelDialog>
<RelDialog
:type=
'type'
:editApp=
'editApp'
:app=
'app'
:buttonApp=
'buttonApp'
>
<!-- 填写表单内容,slot=form必写-->
<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=
"fxrq"
prop=
"fxrq"
>
<el-date-picker
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
v-model=
"form.fxrq"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"风险点"
ref=
"fxd"
prop=
"fxd"
>
<el-input
:readonly=
"readonly"
v-model=
"form.fxd"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"隐患地点"
ref=
"yhdd"
prop=
"yhdd"
>
<el-input
:readonly=
"readonly"
v-model=
"form.yhdd"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"上报级别"
ref=
"sbjb"
prop=
"sbjb"
>
<el-input
:readonly=
"readonly"
v-model=
"form.sbjb"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"责任部门"
ref=
"bmid"
prop=
"bmid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.bmid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"责任人"
ref=
"zrr"
prop=
"zrr"
>
<el-input
:readonly=
"readonly"
v-model=
"form.zrr"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"隐患等级"
ref=
"dj"
prop=
"dj"
>
<el-input
:readonly=
"readonly"
v-model=
"form.dj"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"隐患分类"
ref=
"flid"
prop=
"flid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.flid"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"备注"
ref=
"bz"
prop=
"bz"
>
<el-input
type=
'textarea'
:readonly=
"readonly"
v-model=
"form.bz"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</RelDialog>
</
template
>
<
script
>
import
{
editMixin
}
from
'common'
export
default
{
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
mounted
()
{
this
.
app
.
apiTreeQuery
({}).
then
(
res
=>
{
this
.
bmList
=
res
.
data
.
records
})
},
/* 组件名称*/
name
:
'roleManagementEdit'
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data
()
{
return
{
/* 额外初始化,根据需求*/
bmList
:
[],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
bmid
:
''
,
userid
:
''
,
username
:
''
,
phone
:
''
,
email
:
''
,
bz
:
""
,
import
{
editMixin
}
from
'common'
export
default
{
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
mounted
()
{
},
/* form提交时的规则,具体规则参考官网*/
rules
:
{
userid
:
[{
required
:
true
,
trigger
:
'blur'
},
],
username
:
[{
required
:
true
,
trigger
:
'blur'
},
]
}
}
},
methods
:
{
/* 组件名称*/
name
:
"aqgl/yhglYhjlEdit"
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data
()
{
return
{
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
id
:
''
,
fxrq
:
new
Date
().
getTime
(),
fxd
:
''
,
yhdd
:
''
,
sbjb
:
''
,
nr
:
''
,
bmid
:
''
,
zdzgfa
:
''
,
zrr
:
''
,
dj
:
''
,
flid
:
''
,
clr
:
''
,
clsj
:
new
Date
().
getTime
(),
clff
:
''
,
fcr
:
''
,
fcsj
:
new
Date
().
getTime
(),
fcjg
:
''
,
czr
:
''
,
czsj
:
new
Date
().
getTime
(),
czyj
:
''
,
zt
:
''
,
attachcount
:
''
,
bz
:
''
,
wfid
:
''
,
wfinstid
:
''
,
wfpid
:
''
,
wfpname
:
''
,
wfwuserid
:
''
,
wfwusername
:
''
,
wfhuserid
:
''
,
wfhusername
:
''
,
whrid
:
''
,
whr
:
''
,
whsj
:
new
Date
().
getTime
(),
cjrid
:
''
,
cjr
:
''
,
cjsj
:
new
Date
().
getTime
(),
sysversion
:
''
,
},
/* form提交时的规则,具体规则参考官网*/
rules
:
{
}
}
},
methods
:
{
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
...
...
src/views/dangerManagement/dangerRectificationRecord/index.vue
View file @
bbf21cf4
<
template
>
<div
style=
"display: flex;"
>
<div
class=
"min_full"
style=
"width: 200px;border-right: 0px;"
>
<TreeBase
:app=
'app'
@
selected=
'selectedTree'
></TreeBase>
</div>
<div
class=
"min_full"
style=
"width: calc(100% - 200px)"
>
<div
class=
"min_full"
>
<!-- 查询条件-->
<!-- 查询条件-->
<div
class=
"search"
v-condition
>
...
...
@@ -78,6 +74,8 @@
<CopyButton
ref=
"copy"
:app=
'app'
></CopyButton>
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
<DeleteButton
:app=
'app'
></DeleteButton>
<AttachFileButton
:app=
'app'
></AttachFileButton>
<WorkFlowButton
:app=
'app'
></WorkFlowButton>
<FieldButton
:app=
'app'
></FieldButton>
<ExcelButton
:app=
'app'
></ExcelButton>
<!-- 权限-->
...
...
@@ -87,37 +85,22 @@
<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>
</div>
</div>
</
template
>
<
script
>
/* 引入需要的接口*/
import
{
QueryUser
,
QueryApptype
,
AddUser
,
DeleteUser
,
UpdateUser
,
QtUser
,
QueryBm
,
Setcanlogin
,
ResetPassword
}
from
"common/src/api/system/dmgSystem.js"
;
doQuery
,
doAdd
,
doUpdate
,
doDelete
,
doExport
}
from
"@/api/dangerManagement/enterSafetyRecords.js"
/* edit页面*/
import
Edit
from
'./edit'
import
{
...
...
@@ -125,36 +108,18 @@
}
from
'common'
export
default
{
mixins
:
[
tableMixin
],
name
:
'appVersion'
,
name
:
'dangerRectificationRecord'
,
/* 初始额外赋值*/
async
mounted
()
{
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
data
()
{
return
{
/*需要的额外参数 */
showDialog
:
false
,
DialogName
:
''
,
type
:
''
,
DialogTitle
:
''
,
powerList
:
[{
name
:
'分配'
},
{
name
:
'复制'
},
{
name
:
'查看'
}],
/* 基础url*/
baseUrl
:
'
kzzx/user
'
,
baseUrl
:
'
/aqgl/yhgl/yhjl
'
,
/* 查询参数*/
queryParams
:
{
bmid
:
''
,
usercx
:
''
,
phone
:
''
,
login
:
'Y'
,
tybz
:
''
},
/* 树的标题 */
treeTitle
:
'隐患检查标准分类'
,
...
...
@@ -164,62 +129,33 @@
},
/* 表格标题对应参数*/
tableTitle
:
[
{
prop
:
'userid'
,
label
:
'隐患日期'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'设施及风险点'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'隐患地点'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'隐患上报级别'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'隐患等级'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'隐患分类'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'隐患类型'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'报告人姓名'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'责任单位'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'责任人'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'备注'
,
width
:
'120'
}
{
label
:
"发现日期"
,
prop
:
"fxrq"
,
fieldType
:
"ftDateTime"
},
{
label
:
"风险点"
,
prop
:
"fxd"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"隐患地点"
,
prop
:
"yhdd"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"上报级别"
,
prop
:
"sbjb"
,
fieldType
:
"ftString"
,
width
:
48
},
{
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
:
"dj"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"隐患分类"
,
prop
:
"flid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"处理人"
,
prop
:
"clr"
,
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
:
"fcsj"
,
fieldType
:
"ftDateTime"
},
{
label
:
"复查结果"
,
prop
:
"fcjg"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"处置人"
,
prop
:
"czr"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"处置时间"
,
prop
:
"czsj"
,
fieldType
:
"ftDateTime"
},
{
label
:
"处置意见"
,
prop
:
"czyj"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"状态"
,
prop
:
"zt"
,
fieldType
:
"ftString"
,
width
:
6
},
{
label
:
"附件数"
,
prop
:
"attachcount"
,
fieldType
:
"int"
},
{
label
:
"备注"
,
prop
:
"bz"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"工作流状态"
,
prop
:
"wfpname"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"维护人"
,
prop
:
"whr"
,
fieldType
:
"ftString"
},
{
label
:
"维护时间"
,
prop
:
"whsj"
,
fieldType
:
"ftDateTime"
},
{
label
:
"创建人"
,
prop
:
"cjr"
,
fieldType
:
"ftString"
},
{
label
:
"创建时间"
,
prop
:
"cjsj"
,
fieldType
:
"ftDateTime"
},
]
}
},
...
...
@@ -233,40 +169,18 @@
nTy
=
(
a
.
row
.
tybz
==
'N'
?
true
:
false
)
return
nTy
},
/* 基础查询*/
query
:
QueryUser
,
/* 基础增*/
apiAdd
:
AddUser
,
/* 基础更新*/
apiUpdate
:
UpdateUser
,
/* 删除操作*/
apiDelete
:
DeleteUser
,
/* treeQuery */
apiTreeQuery
:
QueryBm
,
/* 基础查询*/
query
:
doQuery
,
/* 基础增*/
apiAdd
:
doAdd
,
/* 基础更新*/
apiUpdate
:
doUpdate
,
/* 删除操作*/
apiDelete
:
doDelete
,
apiTreeQuery
:
doQuery
,
/* 初始化赋值操作*/
init
()
{
},
/* 启用停用*/
setEnable
(
id
)
{
this
.
$confirm
(
'是否启用/停用该角色, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
let
params
=
{
id
:
id
}
QtUser
(
params
).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
this
.
app
.
$refs
[
'TablePager'
].
reLoad
()
}
else
{
this
.
$error
(
res
.
message
||
'操作失败'
)
}
})
})
}
...
...
src/views/dangerManagement/dangerReviewRecord/index.vue
View file @
bbf21cf4
...
...
@@ -56,6 +56,7 @@
<AttachFileButton
:app=
'app'
></AttachFileButton>
<FieldButton
:app=
'app'
></FieldButton>
<ExcelButton
:app=
'app'
></ExcelButton>
<WorkFlowButton
:app=
'app'
></WorkFlowButton>
<!-- 额外按钮-->
<!-- 表头设置 -->
...
...
@@ -74,13 +75,12 @@
<
script
>
/* 引入需要的接口*/
import
{
QueryKzzxRole
,
QueryApptype
,
AddKzzxRole
,
DeleteKzzxRole
,
UpdateKzzxRole
,
QtKzzxRole
}
from
"common/src/api/system/dmgSystem.js"
;
doQuery
,
doAdd
,
doUpdate
,
doDelete
,
doExport
}
from
"@/api/dangerManagement/enterSafetyRecords.js"
/* edit页面*/
import
Edit
from
'./edit'
import
{
...
...
@@ -110,120 +110,50 @@
jsrq
:
''
},
/* 表格标题对应参数*/
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'
},
{
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'
}
]
tableTitle
:
[
{
label
:
"发现日期"
,
prop
:
"fxrq"
,
fieldType
:
"ftDateTime"
},
{
label
:
"风险点"
,
prop
:
"fxd"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"隐患地点"
,
prop
:
"yhdd"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"上报级别"
,
prop
:
"sbjb"
,
fieldType
:
"ftString"
,
width
:
48
},
{
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
:
"dj"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"隐患分类"
,
prop
:
"flid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"处理人"
,
prop
:
"clr"
,
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
:
"fcsj"
,
fieldType
:
"ftDateTime"
},
{
label
:
"复查结果"
,
prop
:
"fcjg"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"处置人"
,
prop
:
"czr"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"处置时间"
,
prop
:
"czsj"
,
fieldType
:
"ftDateTime"
},
{
label
:
"处置意见"
,
prop
:
"czyj"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"状态"
,
prop
:
"zt"
,
fieldType
:
"ftString"
,
width
:
6
},
{
label
:
"附件数"
,
prop
:
"attachcount"
,
fieldType
:
"int"
},
{
label
:
"备注"
,
prop
:
"bz"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"工作流状态"
,
prop
:
"wfpname"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"维护人"
,
prop
:
"whr"
,
fieldType
:
"ftString"
},
{
label
:
"维护时间"
,
prop
:
"whsj"
,
fieldType
:
"ftDateTime"
},
{
label
:
"创建人"
,
prop
:
"cjr"
,
fieldType
:
"ftString"
},
{
label
:
"创建时间"
,
prop
:
"cjsj"
,
fieldType
:
"ftDateTime"
},
]
}
},
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
||
'操作失败'
)
}
})
})
}
},
...
...
src/views/dangerManagement/enterSafetyRecords/edit.vue
View file @
bbf21cf4
This diff is collapsed.
Click to expand it.
src/views/dangerManagement/enterSafetyRecords/index.vue
View file @
bbf21cf4
...
...
@@ -65,6 +65,8 @@
<CopyButton
ref=
"copy"
:app=
'app'
></CopyButton>
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
<DeleteButton
:app=
'app'
></DeleteButton>
<AttachFileButton
:app=
'app'
></AttachFileButton>
<WorkFlowButton
:app=
'app'
></WorkFlowButton>
<FieldButton
:app=
'app'
></FieldButton>
<ExcelButton
:app=
'app'
></ExcelButton>
<!-- 权限-->
...
...
@@ -93,18 +95,15 @@
<
script
>
/* 引入需要的接口*/
/* 引入需要的接口*/
import
{
QueryUser
,
QueryApptype
,
AddUser
,
DeleteUser
,
UpdateUser
,
QtUser
,
QueryBm
,
Setcanlogin
,
ResetPassword
}
from
"common/src/api/system/dmgSystem.js"
;
doQuery
,
doAdd
,
doUpdate
,
doDelete
,
doExport
}
from
"@/api/dangerManagement/enterSafetyRecords.js"
/* edit页面*/
import
Edit
from
'./edit'
import
{
...
...
@@ -112,7 +111,7 @@
}
from
'common'
export
default
{
mixins
:
[
tableMixin
],
name
:
'
appVersion
'
,
name
:
'
yhglYhjl
'
,
/* 初始额外赋值*/
async
mounted
()
{
...
...
@@ -120,28 +119,12 @@
},
data
()
{
return
{
/*需要的额外参数 */
showDialog
:
false
,
DialogName
:
''
,
type
:
''
,
DialogTitle
:
''
,
powerList
:
[{
name
:
'分配'
},
{
name
:
'复制'
},
{
name
:
'查看'
}],
/* 基础url*/
baseUrl
:
'
kzzx/user
'
,
baseUrl
:
'
/aqgl/yhgl/yhjl
'
,
/* 查询参数*/
queryParams
:
{
bmid
:
''
,
usercx
:
''
,
phone
:
''
,
login
:
'Y'
,
tybz
:
''
kssj
:
''
,
jssj
:
''
},
/* 树的标题 */
treeTitle
:
'隐患分类'
,
...
...
@@ -151,71 +134,33 @@
},
/* 表格标题对应参数*/
tableTitle
:
[
{
prop
:
'userid'
,
label
:
'发现日期'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'设施及风险点'
,
width
:
'620'
},
{
prop
:
'userid'
,
label
:
'隐患地点'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'隐患类型'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'隐患上报级别'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'隐患等级'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'隐患内容'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'责任单位'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'责任人'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'上报人'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'执行人'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'复查时间'
,
width
:
'120'
},
{
prop
:
'bz'
,
label
:
'备注'
,
width
:
'120'
}
{
label
:
"发现日期"
,
prop
:
"fxrq"
,
fieldType
:
"ftDateTime"
},
{
label
:
"风险点"
,
prop
:
"fxd"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"隐患地点"
,
prop
:
"yhdd"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"上报级别"
,
prop
:
"sbjb"
,
fieldType
:
"ftString"
,
width
:
48
},
{
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
:
"dj"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"隐患分类"
,
prop
:
"flid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"处理人"
,
prop
:
"clr"
,
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
:
"fcsj"
,
fieldType
:
"ftDateTime"
},
{
label
:
"复查结果"
,
prop
:
"fcjg"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"处置人"
,
prop
:
"czr"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"处置时间"
,
prop
:
"czsj"
,
fieldType
:
"ftDateTime"
},
{
label
:
"处置意见"
,
prop
:
"czyj"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"状态"
,
prop
:
"zt"
,
fieldType
:
"ftString"
,
width
:
6
},
{
label
:
"附件数"
,
prop
:
"attachcount"
,
fieldType
:
"int"
},
{
label
:
"备注"
,
prop
:
"bz"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"工作流状态"
,
prop
:
"wfpname"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"维护人"
,
prop
:
"whr"
,
fieldType
:
"ftString"
},
{
label
:
"维护时间"
,
prop
:
"whsj"
,
fieldType
:
"ftDateTime"
},
{
label
:
"创建人"
,
prop
:
"cjr"
,
fieldType
:
"ftString"
},
{
label
:
"创建时间"
,
prop
:
"cjsj"
,
fieldType
:
"ftDateTime"
},
]
}
},
...
...
@@ -230,40 +175,21 @@
return
nTy
},
/* 基础查询*/
query
:
QueryUser
,
/* 基础增*/
apiAdd
:
AddUser
,
/* 基础更新*/
apiUpdate
:
UpdateUser
,
/* 删除操作*/
apiDelete
:
DeleteUser
,
query
:
doQuery
,
/* 基础增*/
apiAdd
:
doAdd
,
/* 基础更新*/
apiUpdate
:
doUpdate
,
/* 删除操作*/
apiDelete
:
doDelete
,
/* treeQuery */
apiTreeQuery
:
QueryBm
,
apiTreeQuery
:
doQuery
,
/* 初始化赋值操作*/
init
()
{
},
/* 启用停用*/
setEnable
(
id
)
{
this
.
$confirm
(
'是否启用/停用该角色, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
let
params
=
{
id
:
id
}
QtUser
(
params
).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
this
.
app
.
$refs
[
'TablePager'
].
reLoad
()
}
else
{
this
.
$error
(
res
.
message
||
'操作失败'
)
}
})
})
}
},
...
...
src/views/dangerManagement/maintenanceDg/edit.vue
View file @
bbf21cf4
<
template
>
<RelDialog
:type=
'type'
:editApp=
'editApp'
:app=
'app'
>
<!-- 填写表单内容,slot=form必写-->
<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=
"userid"
prop=
"userid"
>
<el-input
:readonly=
"readonly"
v-toUpperCase
v-model=
"form.userid"
></el-input>
</el-form-item>
</el-col>
<!--
<el-col
:span=
"12"
>
<el-form-item
label=
"隐患等级"
ref=
"username"
prop=
"username"
>
<el-select
v-model=
"form.userid"
style=
"width: 100%;"
>
</el-select>
</el-form-item>
</el-col>
-->
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
:span=
"12"
label=
"处罚金额"
>
<el-input
:readonly=
"readonly"
v-toUpperCase
v-model=
"form.userid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"考核分数"
>
<el-input
:readonly=
"readonly"
v-model=
"form.phone"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"检验内容"
>
<el-input
type=
"textarea"
:readonly=
"readonly"
v-model=
"form.bz"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
<!-- 按钮重写, -->
<!--
<div
slot=
"reFooter"
>
<span
slot=
"footer"
>
重写按钮写在这里,根据需要重写 slot(reFooter,foorer) 节点样式 重写方法需要在此页重新定义
</span>
</div>
-->
</RelDialog>
<RelDialog
:type=
'type'
:editApp=
'editApp'
:app=
'app'
:buttonApp=
'buttonApp'
>
<!-- 填写表单内容,slot=form必写-->
<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=
"xm"
prop=
"xm"
>
<el-input
:readonly=
"readonly"
v-model=
"form.xm"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"罚款金额"
ref=
"fkje"
prop=
"fkje"
>
<el-input
:readonly=
"readonly"
v-model=
"form.fkje"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"隐患等级"
ref=
"yhdj"
prop=
"yhdj"
>
<el-input
:readonly=
"readonly"
v-model=
"form.yhdj"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"考核分数"
ref=
"khfs"
prop=
"khfs"
>
<el-input
:readonly=
"readonly"
v-model=
"form.khfs"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"内容"
ref=
"content"
prop=
"content"
>
<el-input
type=
"textarea"
:readonly=
"readonly"
v-model=
"form.content"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</RelDialog>
</
template
>
<
script
>
import
{
editMixin
}
from
'common'
export
default
{
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
mounted
()
{
this
.
app
.
apiTreeQuery
({}).
then
(
res
=>
{
this
.
bmList
=
res
.
data
.
records
})
},
/* 组件名称*/
name
:
'roleManagementEdit'
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data
()
{
return
{
/* 额外初始化,根据需求*/
bmList
:
[],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
bmid
:
''
,
userid
:
''
,
username
:
''
,
phone
:
''
,
email
:
''
,
bz
:
""
,
import
{
editMixin
}
from
'common'
export
default
{
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
mounted
()
{
},
/* form提交时的规则,具体规则参考官网*/
rules
:
{
userid
:
[{
required
:
true
,
trigger
:
'blur'
},
],
username
:
[{
required
:
true
,
trigger
:
'blur'
},
]
}
}
},
methods
:
{
/* 组件名称*/
name
:
"aqgl/yhglYhbzEdit"
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data
()
{
return
{
/* 额外初始化,根据需求*/
systemType
:
[],
bmList
:
[],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
id
:
''
,
flid
:
''
,
xm
:
''
,
yhdj
:
''
,
khfs
:
''
,
fkje
:
''
,
content
:
''
,
bz
:
''
,
whrid
:
''
,
whr
:
''
,
whsj
:
new
Date
().
getTime
(),
cjrid
:
''
,
cjr
:
''
,
cjsj
:
new
Date
().
getTime
(),
sysversion
:
''
,
},
/* form提交时的规则,具体规则参考官网*/
rules
:
{
roleid
:
[{
required
:
true
,
trigger
:
'blur'
},
],
rolename
:
[{
required
:
true
,
trigger
:
'blur'
},
]
}
}
},
methods
:
{
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
...
...
src/views/dangerManagement/maintenanceDg/index.vue
View file @
bbf21cf4
...
...
@@ -47,13 +47,14 @@
<
script
>
/* 引入需要的接口*/
import
{
bzflQuery
,
yhglAdd
,
yhglDelete
,
yhglUpdate
,
yhglQuery
}
from
"@/api/dangerManagement/maintenanceDg.js"
/* 引入需要的接口*/
import
{
doQuery
,
doAdd
,
doUpdate
,
doDelete
,
doExport
}
from
"@/api/dangerManagement/maintenanceDg.js"
/* edit页面*/
import
Edit
from
'./edit'
import
{
...
...
@@ -61,7 +62,7 @@
}
from
'common'
export
default
{
mixins
:
[
tableMixin
],
name
:
'
appVersion
'
,
name
:
'
maintenanceDg
'
,
/* 初始额外赋值*/
async
mounted
()
{
...
...
@@ -69,14 +70,8 @@
},
data
()
{
return
{
/*需要的额外参数 */
showDialog
:
false
,
DialogName
:
''
,
type
:
''
,
DialogTitle
:
''
,
/* 基础url*/
baseUrl
:
'aqgl/jcsj/aqwdml
'
,
baseUrl
:
'/aqgl/yhgl/yhbz
'
,
/* 查询参数*/
queryParams
:
{
jcnr
:
''
...
...
@@ -89,27 +84,17 @@
},
/* 表格标题对应参数*/
tableTitle
:
[
{
prop
:
'userid'
,
label
:
'检验项目'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'检查内容'
,
width
:
'620'
},
{
prop
:
'userid'
,
label
:
'隐患等级'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'处罚'
,
width
:
'120'
}
{
label
:
"分类"
,
prop
:
"flid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"项目"
,
prop
:
"xm"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"隐患等级"
,
prop
:
"yhdj"
,
fieldType
:
"ftString"
,
width
:
48
},
{
label
:
"考核分数"
,
prop
:
"khfs"
,
fieldType
:
"int"
},
{
label
:
"罚款金额"
,
prop
:
"fkje"
,
fieldType
:
"int"
},
{
label
:
"内容"
,
prop
:
"content"
,
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"
},
]
}
},
...
...
@@ -118,21 +103,16 @@
this
.
queryParams
.
bmid
=
e
.
id
||
'root'
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
tybz
(
a
)
{
let
nTy
=
false
nTy
=
(
a
.
row
.
tybz
==
'N'
?
true
:
false
)
return
nTy
},
/* 基础查询*/
query
:
yhgl
Query
,
/* 基础增*/
apiAdd
:
yhgl
Add
,
/* 基础更新*/
apiUpdate
:
yhgl
Update
,
/* 删除操作*/
apiDelete
:
yhgl
Delete
,
query
:
do
Query
,
/* 基础增*/
apiAdd
:
do
Add
,
/* 基础更新*/
apiUpdate
:
do
Update
,
/* 删除操作*/
apiDelete
:
do
Delete
,
/* treeQuery */
apiTreeQuery
:
bzfl
Query
,
apiTreeQuery
:
do
Query
,
/* 初始化赋值操作*/
init
()
{
...
...
src/views/dangerManagement/queryDangerRecords/edit.vue
View file @
bbf21cf4
This diff is collapsed.
Click to expand it.
src/views/dangerManagement/queryDangerRecords/index.vue
View file @
bbf21cf4
...
...
@@ -12,7 +12,7 @@
<div
class=
"search-item"
>
<span
class=
"search-span"
>
开始日期:
</span>
<el-date-picker
type=
"date"
placeholder=
"选择日期"
>
</el-date-picker>
...
...
@@ -22,7 +22,7 @@
<div
class=
"search-item"
>
<span
class=
"search-span"
>
结束日期:
</span>
<el-date-picker
type=
"date"
placeholder=
"选择日期"
>
</el-date-picker>
...
...
@@ -41,8 +41,8 @@
</div>
</el-col>
</el-row>
</div>
<!-- 按钮操作-->
<el-row
class=
"tool-bar"
>
...
...
@@ -54,6 +54,7 @@
<DeleteButton
:app=
'app'
></DeleteButton>
<FieldButton
:app=
'app'
></FieldButton>
<ExcelButton
:app=
'app'
></ExcelButton>
<AttachFileButton
:app=
'app'
></AttachFileButton>
<!-- 权限-->
</el-row>
...
...
@@ -82,16 +83,12 @@
/* 引入需要的接口*/
import
{
QueryUser
,
QueryApptype
,
AddUser
,
DeleteUser
,
UpdateUser
,
QtUser
,
QueryBm
,
Setcanlogin
,
ResetPassword
}
from
"common/src/api/system/dmgSystem.js"
;
doQuery
,
doAdd
,
doUpdate
,
doDelete
,
doExport
}
from
"@/api/dangerManagement/enterSafetyRecords.js"
/* edit页面*/
import
Edit
from
'./edit'
import
{
...
...
@@ -113,22 +110,11 @@
DialogName
:
''
,
type
:
''
,
DialogTitle
:
''
,
powerList
:
[{
name
:
'分配'
},
{
name
:
'复制'
},
{
name
:
'查看'
}],
/* 基础url*/
baseUrl
:
'
kzzx/user
'
,
baseUrl
:
'
/aqgl/yhgl/yhjl
'
,
/* 查询参数*/
queryParams
:
{
bmid
:
''
,
usercx
:
''
,
phone
:
''
,
login
:
'Y'
,
tybz
:
''
},
/* 树的标题 */
treeTitle
:
'隐患检查标准分类'
,
...
...
@@ -137,123 +123,35 @@
label
:
'bmmc'
},
/* 表格标题对应参数*/
tableTitle
:
[
{
prop
:
'userid'
,
label
:
'发现时间'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'设施及风险点'
,
width
:
'620'
},
{
prop
:
'userid'
,
label
:
'隐患地点'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'隐患类型'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'隐患上报级别'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'隐患等级'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'隐患内容'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'处理措施'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'责任单位'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'上报人'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'责任人'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'处置时间'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'处理反馈时间'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'处置人'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'执行人'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'复查人'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'复查时间'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'要求整改日期'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'是否制定整改方案'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'处罚金额'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'处理状态'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'备注'
,
width
:
'120'
}
]
tableTitle
:
[
{
label
:
"发现日期"
,
prop
:
"fxrq"
,
fieldType
:
"ftDateTime"
},
{
label
:
"风险点"
,
prop
:
"fxd"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"隐患地点"
,
prop
:
"yhdd"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"上报级别"
,
prop
:
"sbjb"
,
fieldType
:
"ftString"
,
width
:
48
},
{
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
:
"dj"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"隐患分类"
,
prop
:
"flid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"处理人"
,
prop
:
"clr"
,
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
:
"fcsj"
,
fieldType
:
"ftDateTime"
},
{
label
:
"复查结果"
,
prop
:
"fcjg"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"处置人"
,
prop
:
"czr"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"处置时间"
,
prop
:
"czsj"
,
fieldType
:
"ftDateTime"
},
{
label
:
"处置意见"
,
prop
:
"czyj"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"状态"
,
prop
:
"zt"
,
fieldType
:
"ftString"
,
width
:
6
},
{
label
:
"附件数"
,
prop
:
"attachcount"
,
fieldType
:
"int"
},
{
label
:
"备注"
,
prop
:
"bz"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"工作流状态"
,
prop
:
"wfpname"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"维护人"
,
prop
:
"whr"
,
fieldType
:
"ftString"
},
{
label
:
"维护时间"
,
prop
:
"whsj"
,
fieldType
:
"ftDateTime"
},
{
label
:
"创建人"
,
prop
:
"cjr"
,
fieldType
:
"ftString"
},
{
label
:
"创建时间"
,
prop
:
"cjsj"
,
fieldType
:
"ftDateTime"
},
]
}
},
methods
:
{
...
...
@@ -266,41 +164,21 @@
nTy
=
(
a
.
row
.
tybz
==
'N'
?
true
:
false
)
return
nTy
},
/* 基础查询*/
query
:
QueryUser
,
/* 基础增*/
apiAdd
:
AddUser
,
/* 基础更新*/
apiUpdate
:
UpdateUser
,
/* 删除操作*/
apiDelete
:
DeleteUser
,
query
:
doQuery
,
/* 基础增*/
apiAdd
:
doAdd
,
/* 基础更新*/
apiUpdate
:
doUpdate
,
/* 删除操作*/
apiDelete
:
doDelete
,
/* treeQuery */
apiTreeQuery
:
QueryBm
,
apiTreeQuery
:
doQuery
,
/* 初始化赋值操作*/
init
()
{
},
/* 启用停用*/
setEnable
(
id
)
{
this
.
$confirm
(
'是否启用/停用该角色, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
let
params
=
{
id
:
id
}
QtUser
(
params
).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
this
.
app
.
$refs
[
'TablePager'
].
reLoad
()
}
else
{
this
.
$error
(
res
.
message
||
'操作失败'
)
}
})
})
}
},
...
...
src/views/dangerManagement/safetyDisposalRecord/index.vue
View file @
bbf21cf4
...
...
@@ -12,7 +12,6 @@
<div
class=
"search-item"
>
<span
class=
"search-span"
>
开始日期:
</span>
<el-date-picker
type=
"date"
placeholder=
"选择日期"
>
</el-date-picker>
...
...
@@ -41,38 +40,13 @@
</div>
</el-col>
</el-row>
<!-- 测试 -->
<el-row
:gutter=
"20"
class=
"search-row-1"
>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
用户:
</span>
<el-input
v-model=
"queryParams.usercx"
size=
"small"
class=
"search-input"
></el-input>
</div>
</el-col>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
电话:
</span>
<el-input
v-model=
"queryParams.phone"
size=
"small"
class=
"search-input"
></el-input>
</div>
</el-col>
<el-col
:span=
"4"
class=
"search-col"
>
<div
class=
"search-item"
>
<el-checkbox
true-label=
'Y'
false-label=
''
v-model=
"queryParams.login"
>
显示登录用户
</el-checkbox>
</div>
</el-col>
<el-col
:span=
"4"
class=
"search-col"
>
<div
class=
"search-item"
>
<el-checkbox
true-label=
''
false-label=
'N'
v-model=
"queryParams.tybz"
>
显示所有用户
</el-checkbox>
</div>
</el-col>
</el-row>
</div>
<!-- 按钮操作-->
<el-row
class=
"tool-bar"
>
<ViewButton
ref=
"view"
:app=
'app'
></ViewButton>
<
el-button
size=
'mini'
class=
"margin-right-10"
type=
"primary"
>
查看照片
</el-b
utton>
<
AttachFileButton
:app=
'app'
></AttachFileB
utton>
<!-- 权限-->
</el-row>
...
...
@@ -101,16 +75,12 @@
/* 引入需要的接口*/
import
{
QueryUser
,
QueryApptype
,
AddUser
,
DeleteUser
,
UpdateUser
,
QtUser
,
QueryBm
,
Setcanlogin
,
ResetPassword
}
from
"common/src/api/system/dmgSystem.js"
;
doQuery
,
doAdd
,
doUpdate
,
doDelete
,
doExport
}
from
"@/api/dangerManagement/enterSafetyRecords.js"
/* edit页面*/
import
Edit
from
'./edit'
import
{
...
...
@@ -118,7 +88,7 @@
}
from
'common'
export
default
{
mixins
:
[
tableMixin
],
name
:
'
appVersion
'
,
name
:
'
safetyDisposalRecord
'
,
/* 初始额外赋值*/
async
mounted
()
{
...
...
@@ -140,14 +110,10 @@
name
:
'查看'
}],
/* 基础url*/
baseUrl
:
'
kzzx/user
'
,
baseUrl
:
'
/aqgl/yhgl/yhjl
'
,
/* 查询参数*/
queryParams
:
{
bmid
:
''
,
usercx
:
''
,
phone
:
''
,
login
:
'Y'
,
tybz
:
''
},
/* 树的标题 */
treeTitle
:
'隐患检查标准分类'
,
...
...
@@ -156,72 +122,35 @@
label
:
'bmmc'
},
/* 表格标题对应参数*/
/* 表格标题对应参数*/
tableTitle
:
[
{
prop
:
'userid'
,
label
:
'发现日期'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'设施及风险点'
,
width
:
'620'
},
{
prop
:
'userid'
,
label
:
'隐患地点'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'隐患类型'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'隐患上报级别'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'隐患等级'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'隐患内容'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'责任单位'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'责任人'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'上报人'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'执行人'
,
width
:
'120'
},
{
prop
:
'userid'
,
label
:
'复查时间'
,
width
:
'120'
},
{
prop
:
'bz'
,
label
:
'备注'
,
width
:
'120'
}
{
label
:
"发现日期"
,
prop
:
"fxrq"
,
fieldType
:
"ftDateTime"
},
{
label
:
"风险点"
,
prop
:
"fxd"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"隐患地点"
,
prop
:
"yhdd"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"上报级别"
,
prop
:
"sbjb"
,
fieldType
:
"ftString"
,
width
:
48
},
{
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
:
"dj"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"隐患分类"
,
prop
:
"flid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"处理人"
,
prop
:
"clr"
,
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
:
"fcsj"
,
fieldType
:
"ftDateTime"
},
{
label
:
"复查结果"
,
prop
:
"fcjg"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"处置人"
,
prop
:
"czr"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"处置时间"
,
prop
:
"czsj"
,
fieldType
:
"ftDateTime"
},
{
label
:
"处置意见"
,
prop
:
"czyj"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"状态"
,
prop
:
"zt"
,
fieldType
:
"ftString"
,
width
:
6
},
{
label
:
"附件数"
,
prop
:
"attachcount"
,
fieldType
:
"int"
},
{
label
:
"备注"
,
prop
:
"bz"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"工作流状态"
,
prop
:
"wfpname"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"维护人"
,
prop
:
"whr"
,
fieldType
:
"ftString"
},
{
label
:
"维护时间"
,
prop
:
"whsj"
,
fieldType
:
"ftDateTime"
},
{
label
:
"创建人"
,
prop
:
"cjr"
,
fieldType
:
"ftString"
},
{
label
:
"创建时间"
,
prop
:
"cjsj"
,
fieldType
:
"ftDateTime"
},
]
}
},
...
...
@@ -230,46 +159,20 @@
this
.
queryParams
.
bmid
=
e
.
id
||
'root'
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
tybz
(
a
)
{
let
nTy
=
false
nTy
=
(
a
.
row
.
tybz
==
'N'
?
true
:
false
)
return
nTy
},
/* 基础查询*/
query
:
QueryUser
,
/* 基础增*/
apiAdd
:
AddUser
,
/* 基础更新*/
apiUpdate
:
UpdateUser
,
/* 删除操作*/
apiDelete
:
DeleteUser
,
query
:
doQuery
,
/* 基础增*/
apiAdd
:
doAdd
,
/* 基础更新*/
apiUpdate
:
doUpdate
,
/* 删除操作*/
apiDelete
:
doDelete
,
/* treeQuery */
apiTreeQuery
:
QueryBm
,
apiTreeQuery
:
doQuery
,
/* 初始化赋值操作*/
init
()
{
},
/* 启用停用*/
setEnable
(
id
)
{
this
.
$confirm
(
'是否启用/停用该角色, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
let
params
=
{
id
:
id
}
QtUser
(
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