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
1078b778
Commit
1078b778
authored
Nov 03, 2022
by
dingyoujian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分类
parent
67f05ad5
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
1417 additions
and
178 deletions
+1417
-178
yhbzfl.js
src/api/dangerManagement/yhbzfl.js
+38
-0
yhfl.js
src/api/dangerManagement/yhfl.js
+38
-0
screeningCriteria.js
src/api/riskPrecontrol/screeningCriteria.js
+74
-0
index.js
src/router/index.js
+28
-0
edit.vue
src/views/dangerManagement/yhbzfl/edit.vue
+116
-0
index.vue
src/views/dangerManagement/yhbzfl/index.vue
+114
-0
edit.vue
src/views/dangerManagement/yhfl/edit.vue
+108
-0
index.vue
src/views/dangerManagement/yhfl/index.vue
+113
-0
index.vue
src/views/riskPrecontrol/screeningCriteria/index.vue
+181
-178
edit.vue
src/views/riskPrecontrol/screeningCriteria/jcnr/edit.vue
+114
-0
index.vue
src/views/riskPrecontrol/screeningCriteria/jcnr/index.vue
+114
-0
edit.vue
src/views/riskPrecontrol/screeningCriteria/main/edit.vue
+245
-0
index.vue
src/views/riskPrecontrol/screeningCriteria/main/index.vue
+134
-0
No files found.
src/api/dangerManagement/yhbzfl.js
0 → 100644
View file @
1078b778
import
request
from
'common/src/utils/request'
/* 角色管理query */
export
function
doQuery
(
query
)
{
return
request
({
url
:
'/aqgl/yhgl/yhbzfl/query'
,
method
:
'post'
,
data
:
query
||
{}
})
}
/* 角色管理更新 */
export
function
doUpdate
(
query
)
{
return
request
({
url
:
'/aqgl/yhgl/yhbzfl/update'
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
doAdd
(
query
)
{
return
request
({
url
:
'/aqgl/yhgl/yhbzfl/add'
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
doDelete
(
query
)
{
return
request
({
url
:
'/aqgl/yhgl/yhbzfl/delete'
,
method
:
'post'
,
data
:
query
||
{}
})
}
src/api/dangerManagement/yhfl.js
0 → 100644
View file @
1078b778
import
request
from
'common/src/utils/request'
/* 角色管理query */
export
function
doQuery
(
query
)
{
return
request
({
url
:
'/aqgl/yhgl/yhfl/query'
,
method
:
'post'
,
data
:
query
||
{}
})
}
/* 角色管理更新 */
export
function
doUpdate
(
query
)
{
return
request
({
url
:
'/aqgl/yhgl/yhfl/update'
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
doAdd
(
query
)
{
return
request
({
url
:
'/aqgl/yhgl/yhfl/add'
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
doDelete
(
query
)
{
return
request
({
url
:
'/aqgl/yhgl/yhfl/delete'
,
method
:
'post'
,
data
:
query
||
{}
})
}
src/api/riskPrecontrol/screeningCriteria.js
0 → 100644
View file @
1078b778
import
request
from
'common/src/utils/request'
/* 角色管理query */
export
function
doQuery
(
query
)
{
return
request
({
url
:
'/aqgl/fxyk/fxbz/query'
,
method
:
'post'
,
data
:
query
||
{}
})
}
/* 角色管理更新 */
export
function
doUpdate
(
query
)
{
return
request
({
url
:
'/aqgl/fxyk/fxbz/update'
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
doAdd
(
query
)
{
return
request
({
url
:
'/aqgl/fxyk/fxbz/add'
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
doDelete
(
query
)
{
return
request
({
url
:
'/aqgl/fxyk/fxbz/delete'
,
method
:
'post'
,
data
:
query
||
{}
})
}
/* 角色管理query */
export
function
doQueryJcnr
(
query
)
{
return
request
({
url
:
'/aqgl/fxyk/fxjcnr/query'
,
method
:
'post'
,
data
:
query
||
{}
})
}
/* 角色管理更新 */
export
function
doUpdateJcnr
(
query
)
{
return
request
({
url
:
'/aqgl/fxyk/fxjcnr/update'
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
doAddJcnr
(
query
)
{
return
request
({
url
:
'/aqgl/fxyk/fxjcnr/add'
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
doDeleteJcnr
(
query
)
{
return
request
({
url
:
'/aqgl/fxyk/fxjcnr/delete'
,
method
:
'post'
,
data
:
query
||
{}
})
}
src/router/index.js
View file @
1078b778
...
...
@@ -165,6 +165,34 @@ export const constantRoutes = [
redirect
:
'maintenanceDg'
,
meta
:
{
title
:
"隐患管理"
,
icon
:
"fa-cog"
,
noCache
:
false
,
link
:
null
,
mkid
:
105000000
},
children
:
[
{
commonComponent
:
'yhfl'
,
component
:()
=>
import
(
"@/views/dangerManagement/yhfl/index"
),
hidden
:
false
,
meta
:{
"title"
:
"隐患分类"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
101001300
,
},
name
:
'yhfl'
,
path
:
"yhfl"
},
{
commonComponent
:
'yhbzfl'
,
component
:()
=>
import
(
"@/views/dangerManagement/yhbzfl/index"
),
hidden
:
false
,
meta
:{
"title"
:
"隐患标准分类"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
101001300
,
},
name
:
'yhbzfl'
,
path
:
"yhbzfl"
},
{
commonComponent
:
'maintenanceDg'
,
component
:()
=>
import
(
"@/views/dangerManagement/maintenanceDg/index"
),
...
...
src/views/dangerManagement/yhbzfl/edit.vue
0 → 100644
View file @
1078b778
<
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=
"24"
>
<el-form-item
label=
"序号"
ref=
"xh"
prop=
"xh"
>
<el-input
:readonly=
"readonly"
v-model=
"form.xh"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"父ID"
ref=
"pid"
prop=
"pid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.pid"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"名称"
ref=
"name"
prop=
"name"
>
<el-input
:readonly=
"readonly"
v-model=
"form.name"
></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
:readonly=
"readonly"
v-model=
"form.bz"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"系统版本"
ref=
"sysversion"
prop=
"sysversion"
>
<el-input
:readonly=
"readonly"
v-model=
"form.sysversion"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-row>
</el-form>
</RelDialog>
</
template
>
<
script
>
import
{
editMixin
}
from
'common'
export
default
{
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
mounted
()
{
},
/* 组件名称*/
name
:
"aqglYhbzflEdit"
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data
()
{
return
{
/* 额外初始化,根据需求*/
systemType
:
[],
bmList
:
[],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
id
:
''
,
xh
:
''
,
pid
:
''
,
cjid
:
''
,
name
:
''
,
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"
>
</
style
>
src/views/dangerManagement/yhbzfl/index.vue
0 → 100644
View file @
1078b778
<
template
>
<div
class=
"min_full"
>
<!-- 查询条件-->
<div
class=
"search"
v-condition
>
<SearchButton
:app=
'app'
></SearchButton>
<el-row
:gutter=
"20"
class=
"search-row-1"
>
<el-col
:span=
"12"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
名称:
</span>
<el-input
v-model=
"queryParams.info"
></el-input>
</div>
</el-col>
</el-row>
</div>
<!-- 按钮操作-->
<el-row
class=
"tool-bar"
>
<PrintButton
:app=
'app'
></PrintButton>
<ViewButton
ref=
"view"
:app=
'app'
></ViewButton>
<AddButton
ref=
"add"
:app=
'app'
></AddButton>
<CopyButton
ref=
"copy"
:app=
'app'
></CopyButton>
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
<AttachFileButton
:app=
'app'
></AttachFileButton>
<FieldButton
:app=
'app'
></FieldButton>
<ExcelButton
:app=
'app'
></ExcelButton>
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<!-- 表格-->
<div
class=
"tablePagers"
>
<TablePager
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
@
getRow=
'getRow'
>
</TablePager>
</div>
</div>
</
template
>
<
script
>
/* 引入需要的接口*/
import
{
doQuery
,
doAdd
,
doUpdate
,
doDelete
}
from
'@/api/dangerManagement/yhbzfl.js'
;
/* edit页面*/
import
Edit
from
'./edit'
import
{
tableMixin
}
from
'common'
export
default
{
mixins
:
[
tableMixin
],
name
:
'aqglYhbzfl'
,
/* 初始额外赋值*/
async
mounted
()
{
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
data
()
{
return
{
/*需要的额外参数 */
showDialog
:
false
,
DialogName
:
''
,
type
:
''
,
DialogTitle
:
''
,
/* 基础url*/
baseUrl
:
'/aqgl/yhbzfl'
,
/* 查询参数*/
queryParams
:
{
info
:
''
},
/* 表格标题对应参数*/
tableTitle
:
[
{
label
:
"序号"
,
prop
:
"xh"
,
fieldType
:
"int"
},
{
label
:
"父ID"
,
prop
:
"pid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"名称"
,
prop
:
"name"
,
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"
},
]
}
},
methods
:
{
/* 基础查询*/
query
:
doQuery
,
/* 基础增*/
apiAdd
:
doAdd
,
/* 基础更新*/
apiUpdate
:
doUpdate
,
/* 删除操作*/
apiDelete
:
doDelete
,
/* 初始化赋值操作*/
init
()
{
}
},
components
:
{
Edit
,
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/dangerManagement/yhfl/edit.vue
0 → 100644
View file @
1078b778
<
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=
"24"
>
<el-form-item
label=
"序号"
ref=
"xh"
prop=
"xh"
>
<el-input
:readonly=
"readonly"
v-model=
"form.xh"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"名称"
ref=
"name"
prop=
"name"
>
<el-input
:readonly=
"readonly"
v-model=
"form.name"
></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
:readonly=
"readonly"
v-model=
"form.bz"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"系统版本"
ref=
"sysversion"
prop=
"sysversion"
>
<el-input
:readonly=
"readonly"
v-model=
"form.sysversion"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</RelDialog>
</
template
>
<
script
>
import
{
editMixin
}
from
'common'
export
default
{
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
mounted
()
{
},
/* 组件名称*/
name
:
"aqglYhflEdit"
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data
()
{
return
{
/* 额外初始化,根据需求*/
systemType
:
[],
bmList
:
[],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
id
:
''
,
xh
:
''
,
name
:
''
,
bz
:
''
,
whrid
:
''
,
whr
:
''
,
whsj
:
new
Date
().
getTime
(),
cjrid
:
''
,
cjr
:
''
,
pid
:
''
,
cjid
:
''
,
cjsj
:
new
Date
().
getTime
(),
sysversion
:
''
,
},
/* form提交时的规则,具体规则参考官网*/
rules
:
{
roleid
:
[{
required
:
true
,
trigger
:
'blur'
},
],
rolename
:
[{
required
:
true
,
trigger
:
'blur'
},
]
}
}
},
methods
:
{
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
</
style
>
src/views/dangerManagement/yhfl/index.vue
0 → 100644
View file @
1078b778
<
template
>
<div
class=
"min_full"
>
<!-- 查询条件-->
<div
class=
"search"
v-condition
>
<SearchButton
:app=
'app'
></SearchButton>
<el-row
:gutter=
"20"
class=
"search-row-1"
>
<el-col
:span=
"12"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
名称:
</span>
<el-input
v-model=
"queryParams.info"
></el-input>
</div>
</el-col>
</el-row>
</div>
<!-- 按钮操作-->
<el-row
class=
"tool-bar"
>
<PrintButton
:app=
'app'
></PrintButton>
<ViewButton
ref=
"view"
:app=
'app'
></ViewButton>
<AddButton
ref=
"add"
:app=
'app'
></AddButton>
<CopyButton
ref=
"copy"
:app=
'app'
></CopyButton>
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
<AttachFileButton
:app=
'app'
></AttachFileButton>
<FieldButton
:app=
'app'
></FieldButton>
<ExcelButton
:app=
'app'
></ExcelButton>
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<!-- 表格-->
<div
class=
"tablePagers"
>
<TablePager
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
@
getRow=
'getRow'
>
</TablePager>
</div>
</div>
</
template
>
<
script
>
/* 引入需要的接口*/
import
{
doQuery
,
doAdd
,
doUpdate
,
doDelete
}
from
'@/api/dangerManagement/yhfl.js'
;
/* edit页面*/
import
Edit
from
'./edit'
import
{
tableMixin
}
from
'common'
export
default
{
mixins
:
[
tableMixin
],
name
:
'aqglYhfl'
,
/* 初始额外赋值*/
async
mounted
()
{
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
data
()
{
return
{
/*需要的额外参数 */
showDialog
:
false
,
DialogName
:
''
,
type
:
''
,
DialogTitle
:
''
,
/* 基础url*/
baseUrl
:
'/aqgl/yhfl'
,
/* 查询参数*/
queryParams
:
{
info
:
''
},
/* 表格标题对应参数*/
tableTitle
:
[
{
label
:
"序号"
,
prop
:
"xh"
,
fieldType
:
"int"
},
{
label
:
"名称"
,
prop
:
"name"
,
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"
},
]
}
},
methods
:
{
/* 基础查询*/
query
:
doQuery
,
/* 基础增*/
apiAdd
:
doAdd
,
/* 基础更新*/
apiUpdate
:
doUpdate
,
/* 删除操作*/
apiDelete
:
doDelete
,
/* 初始化赋值操作*/
init
()
{
}
},
components
:
{
Edit
,
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/riskPrecontrol/screeningCriteria/index.vue
View file @
1078b778
...
...
@@ -67,18 +67,21 @@
<
script
>
/* 引入需要的接口*/
import
{
QueryKzzxRole
,
QueryApptype
,
AddKzzxRole
,
DeleteKzzxRole
,
UpdateKzzxRole
,
QtKzzxRole
}
from
"common/src/api/system/dmgSystem.js"
;
doQuery
,
doAdd
,
doUpdate
,
doDelete
,
doQueryJcnr
,
doAddJcnr
,
doUpdateJcnr
,
doDeleteJcnr
}
from
"@/api/riskPrecontrol/screeningCriteria.js"
;
/* edit页面*/
import
Edit
from
'./edit'
import
Details
from
'./details.vue'
import
Cycle
from
'./cycle.vue'
import
Content
from
'./content.vue'
import
PersonLiable
from
'./personLiable.vue'
import
Content
from
'./content.vue'
import
PersonLiable
from
'./personLiable.vue'
import
{
tableMixin
}
from
'common'
...
...
src/views/riskPrecontrol/screeningCriteria/jcnr/edit.vue
0 → 100644
View file @
1078b778
<
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=
"24"
>
<el-form-item
label=
"标准ID"
ref=
"mid"
prop=
"mid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.mid"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"检查内容"
ref=
"nr"
prop=
"nr"
>
<el-input
:readonly=
"readonly"
v-model=
"form.nr"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"检查分值"
ref=
"jcfz"
prop=
"jcfz"
>
<el-input
:readonly=
"readonly"
v-model=
"form.jcfz"
></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
:readonly=
"readonly"
v-model=
"form.bz"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"系统版本"
ref=
"sysversion"
prop=
"sysversion"
>
<el-input
:readonly=
"readonly"
v-model=
"form.sysversion"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-row>
</el-form>
</RelDialog>
</
template
>
<
script
>
import
{
editMixin
}
from
'common'
export
default
{
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
mounted
()
{
},
/* 组件名称*/
name
:
"aqgl/fxykFxjcnrEdit"
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data
()
{
return
{
/* 额外初始化,根据需求*/
systemType
:
[],
bmList
:
[],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
id
:
''
,
mid
:
''
,
nr
:
''
,
jcfz
:
''
,
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"
>
</
style
>
src/views/riskPrecontrol/screeningCriteria/jcnr/index.vue
0 → 100644
View file @
1078b778
<
template
>
<div
class=
"min_full"
>
<!-- 查询条件-->
<div
class=
"search"
v-condition
>
<SearchButton
:app=
'app'
></SearchButton>
<el-row
:gutter=
"20"
class=
"search-row-1"
>
<el-col
:span=
"12"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
名称:
</span>
<el-input
v-model=
"queryParams.info"
></el-input>
</div>
</el-col>
</el-row>
</div>
<!-- 按钮操作-->
<el-row
class=
"tool-bar"
>
<PrintButton
:app=
'app'
></PrintButton>
<ViewButton
ref=
"view"
:app=
'app'
></ViewButton>
<AddButton
ref=
"add"
:app=
'app'
></AddButton>
<CopyButton
ref=
"copy"
:app=
'app'
></CopyButton>
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
<AttachFileButton
:app=
'app'
></AttachFileButton>
<FieldButton
:app=
'app'
></FieldButton>
<ExcelButton
:app=
'app'
></ExcelButton>
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<!-- 表格-->
<div
class=
"tablePagers"
>
<TablePager
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
@
getRow=
'getRow'
>
</TablePager>
</div>
</div>
</
template
>
<
script
>
/* 引入需要的接口*/
import
{
doQueryJcnr
,
doAddJcnr
,
doUpdateJcnr
,
doDeleteJcnr
}
from
'@/api/riskPrecontrol/screeningCriteria'
;
/* edit页面*/
import
Edit
from
'./edit'
import
{
tableMixin
}
from
'common'
export
default
{
mixins
:
[
tableMixin
],
name
:
'aqgl/fxykFxjcnr'
,
/* 初始额外赋值*/
async
mounted
()
{
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
data
()
{
return
{
/*需要的额外参数 */
showDialog
:
false
,
DialogName
:
''
,
type
:
''
,
DialogTitle
:
''
,
/* 基础url*/
baseUrl
:
'/aqgl/fxyk/fxjcnr'
,
/* 查询参数*/
queryParams
:
{
info
:
''
},
/* 表格标题对应参数*/
tableTitle
:
[
{
label
:
"标准ID"
,
prop
:
"mid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"检查内容"
,
prop
:
"nr"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"检查分值"
,
prop
:
"jcfz"
,
fieldType
:
"float"
},
{
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"
},
]
}
},
methods
:
{
/* 基础查询*/
query
:
doQuery
,
/* 基础增*/
apiAdd
:
doAdd
,
/* 基础更新*/
apiUpdate
:
doUpdate
,
/* 删除操作*/
apiDelete
:
doDelete
,
/* 初始化赋值操作*/
init
()
{
}
},
components
:
{
Edit
,
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/riskPrecontrol/screeningCriteria/main/edit.vue
0 → 100644
View file @
1078b778
<
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=
"4.8"
>
<el-form-item
label=
"部门ID"
ref=
"bmid"
prop=
"bmid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.bmid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"4.8"
>
<el-form-item
label=
"车间ID"
ref=
"cjid"
prop=
"cjid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.cjid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"4.8"
>
<el-form-item
label=
"岗位ID"
ref=
"gwid"
prop=
"gwid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.gwid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"4.8"
>
<el-form-item
label=
"风险地点"
ref=
"fxpcdd"
prop=
"fxpcdd"
>
<el-input
:readonly=
"readonly"
v-model=
"form.fxpcdd"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"4.8"
>
<el-form-item
label=
"风险点"
ref=
"fxd"
prop=
"fxd"
>
<el-input
:readonly=
"readonly"
v-model=
"form.fxd"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"4.8"
>
<el-form-item
label=
"事故类型"
ref=
"sglx"
prop=
"sglx"
>
<el-input
:readonly=
"readonly"
v-model=
"form.sglx"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"4.8"
>
<el-form-item
label=
"危险等级"
ref=
"wxdj"
prop=
"wxdj"
>
<el-input
:readonly=
"readonly"
v-model=
"form.wxdj"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"4.8"
>
<el-form-item
label=
"分值"
ref=
"fz"
prop=
"fz"
>
<el-input
:readonly=
"readonly"
v-model=
"form.fz"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"4.8"
>
<el-form-item
label=
"风险类型"
ref=
"fxlx"
prop=
"fxlx"
>
<el-input
:readonly=
"readonly"
v-model=
"form.fxlx"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"4.8"
>
<el-form-item
label=
"管控落实后等级"
ref=
"lsdj"
prop=
"lsdj"
>
<el-input
:readonly=
"readonly"
v-model=
"form.lsdj"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"4.8"
>
<el-form-item
label=
"管理层级"
ref=
"glcj"
prop=
"glcj"
>
<el-input
:readonly=
"readonly"
v-model=
"form.glcj"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"4.8"
>
<el-form-item
label=
"拍照选项"
ref=
"pzxx"
prop=
"pzxx"
>
<el-input
:readonly=
"readonly"
v-model=
"form.pzxx"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"4.8"
>
<el-form-item
label=
"序号"
ref=
"xh"
prop=
"xh"
>
<el-input
:readonly=
"readonly"
v-model=
"form.xh"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"4.8"
>
<el-form-item
label=
"图形编号"
ref=
"txcode"
prop=
"txcode"
>
<el-input
:readonly=
"readonly"
v-model=
"form.txcode"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"4.8"
>
<el-form-item
label=
"措施类型"
ref=
"cslx"
prop=
"cslx"
>
<el-input
:readonly=
"readonly"
v-model=
"form.cslx"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"4.8"
>
<el-form-item
label=
"基准精度"
ref=
"jzjd"
prop=
"jzjd"
>
<el-input
:readonly=
"readonly"
v-model=
"form.jzjd"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"4.8"
>
<el-form-item
label=
"基准维度"
ref=
"jzwd"
prop=
"jzwd"
>
<el-input
:readonly=
"readonly"
v-model=
"form.jzwd"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"4.8"
>
<el-form-item
label=
"检查要点"
ref=
"jcyd"
prop=
"jcyd"
>
<el-input
:readonly=
"readonly"
v-model=
"form.jcyd"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"4.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=
"4.8"
>
<el-form-item
label=
"事故后果"
ref=
"sghg"
prop=
"sghg"
>
<el-input
:readonly=
"readonly"
v-model=
"form.sghg"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"4.8"
>
<el-form-item
label=
"检查措施描述"
ref=
"jccsms"
prop=
"jccsms"
>
<el-input
:readonly=
"readonly"
v-model=
"form.jccsms"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"4.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=
"4.8"
>
<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=
"4.8"
>
<el-form-item
label=
"系统版本"
ref=
"sysversion"
prop=
"sysversion"
>
<el-input
:readonly=
"readonly"
v-model=
"form.sysversion"
></el-input>
</el-form-item>
</el-col>
</el-form>
</RelDialog>
</
template
>
<
script
>
import
{
editMixin
}
from
'common'
export
default
{
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
mounted
()
{
},
/* 组件名称*/
name
:
"aqgl/fxykFxbzEdit"
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data
()
{
return
{
/* 额外初始化,根据需求*/
systemType
:
[],
bmList
:
[],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
id
:
''
,
bmid
:
''
,
cjid
:
''
,
gwid
:
''
,
fxpcdd
:
''
,
fxd
:
''
,
sglx
:
''
,
wxdj
:
''
,
fz
:
''
,
fxlx
:
''
,
lsdj
:
''
,
glcj
:
''
,
pzxx
:
''
,
xh
:
''
,
txcode
:
''
,
cslx
:
''
,
jzjd
:
''
,
jzwd
:
''
,
jcyd
:
''
,
whys
:
''
,
sghg
:
''
,
jccsms
:
''
,
bz
:
''
,
zrr
:
''
,
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"
>
</
style
>
src/views/riskPrecontrol/screeningCriteria/main/index.vue
0 → 100644
View file @
1078b778
<
template
>
<div
class=
"min_full"
>
<!-- 查询条件-->
<div
class=
"search"
v-condition
>
<SearchButton
:app=
'app'
></SearchButton>
<el-row
:gutter=
"20"
class=
"search-row-1"
>
<el-col
:span=
"12"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
名称:
</span>
<el-input
v-model=
"queryParams.info"
></el-input>
</div>
</el-col>
</el-row>
</div>
<!-- 按钮操作-->
<el-row
class=
"tool-bar"
>
<PrintButton
:app=
'app'
></PrintButton>
<ViewButton
ref=
"view"
:app=
'app'
></ViewButton>
<AddButton
ref=
"add"
:app=
'app'
></AddButton>
<CopyButton
ref=
"copy"
:app=
'app'
></CopyButton>
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
<AttachFileButton
:app=
'app'
></AttachFileButton>
<FieldButton
:app=
'app'
></FieldButton>
<ExcelButton
:app=
'app'
></ExcelButton>
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<!-- 表格-->
<div
class=
"tablePagers"
>
<TablePager
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
@
getRow=
'getRow'
>
</TablePager>
</div>
</div>
</
template
>
<
script
>
/* 引入需要的接口*/
import
{
doQuery
,
doAdd
,
doUpdate
,
doDelete
,
doExport
}
from
"@/api/riskPrecontrol/screeningCriteria.js"
;
/* edit页面*/
import
Edit
from
'./edit'
import
{
tableMixin
}
from
'common'
export
default
{
mixins
:
[
tableMixin
],
name
:
'aqgl/fxykFxbz'
,
/* 初始额外赋值*/
async
mounted
()
{
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
data
()
{
return
{
/*需要的额外参数 */
showDialog
:
false
,
DialogName
:
''
,
type
:
''
,
DialogTitle
:
''
,
/* 基础url*/
baseUrl
:
'/aqgl/fxyk/fxbz'
,
/* 查询参数*/
queryParams
:
{
info
:
''
},
/* 表格标题对应参数*/
tableTitle
:
[
{
label
:
"部门ID"
,
prop
:
"bmid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"车间ID"
,
prop
:
"cjid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"岗位ID"
,
prop
:
"gwid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"风险地点"
,
prop
:
"fxpcdd"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"风险点"
,
prop
:
"fxd"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"事故类型"
,
prop
:
"sglx"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"危险等级"
,
prop
:
"wxdj"
,
fieldType
:
"ftString"
,
width
:
60
},
{
label
:
"分值"
,
prop
:
"fz"
,
fieldType
:
"float"
},
{
label
:
"风险类型"
,
prop
:
"fxlx"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"管控落实后等级"
,
prop
:
"lsdj"
,
fieldType
:
"ftString"
,
width
:
60
},
{
label
:
"管理层级"
,
prop
:
"glcj"
,
fieldType
:
"ftString"
,
width
:
60
},
{
label
:
"拍照选项"
,
prop
:
"pzxx"
,
fieldType
:
"ftString"
,
width
:
60
},
{
label
:
"序号"
,
prop
:
"xh"
,
fieldType
:
"int"
},
{
label
:
"图形编号"
,
prop
:
"txcode"
,
fieldType
:
"ftString"
,
width
:
180
},
{
label
:
"措施类型"
,
prop
:
"cslx"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"基准精度"
,
prop
:
"jzjd"
,
fieldType
:
"ftString"
,
width
:
60
},
{
label
:
"基准维度"
,
prop
:
"jzwd"
,
fieldType
:
"ftString"
,
width
:
60
},
{
label
:
"检查要点"
,
prop
:
"jcyd"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"危害因素"
,
prop
:
"whys"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"事故后果"
,
prop
:
"sghg"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"检查措施描述"
,
prop
:
"jccsms"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"备注"
,
prop
:
"bz"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"责任人"
,
prop
:
"zrr"
,
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
:
doQuery
,
/* 基础增*/
apiAdd
:
doAdd
,
/* 基础更新*/
apiUpdate
:
doUpdate
,
/* 删除操作*/
apiDelete
:
doDelete
,
/* 初始化赋值操作*/
init
()
{
}
},
components
:
{
Edit
,
}
}
</
script
>
<
style
scoped
>
</
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