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
4c92799f
Commit
4c92799f
authored
Nov 07, 2022
by
dingyoujian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
伤害类型
parent
ee9ff0b0
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
592 additions
and
1 deletion
+592
-1
maintenanceRisk.js
src/api/riskPrecontrol/maintenanceRisk.js
+38
-0
maintenanceRiskTask.js
src/api/riskPrecontrol/maintenanceRiskTask.js
+13
-1
shlx.js
src/api/riskPrecontrol/shlx.js
+38
-0
index.js
src/router/index.js
+14
-0
edit.vue
src/views/riskPrecontrol/maintenanceRisk/new/edit.vue
+160
-0
index.vue
src/views/riskPrecontrol/maintenanceRisk/new/index.vue
+121
-0
edit.vue
src/views/riskPrecontrol/shlx/edit.vue
+97
-0
index.vue
src/views/riskPrecontrol/shlx/index.vue
+111
-0
No files found.
src/api/riskPrecontrol/maintenanceRisk.js
0 → 100644
View file @
4c92799f
import
request
from
'common/src/utils/request'
/* 角色管理query */
export
function
doQuery
(
query
)
{
return
request
({
url
:
'/aqgl/fxsj/query'
,
method
:
'post'
,
data
:
query
||
{}
})
}
/* 角色管理更新 */
export
function
doUpdate
(
query
)
{
return
request
({
url
:
'/aqgl/fxsj/update'
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
doAdd
(
query
)
{
return
request
({
url
:
'/aqgl/fxsj/add'
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
doDelete
(
query
)
{
return
request
({
url
:
'/aqgl/fxsj/delete'
,
method
:
'post'
,
data
:
query
||
{}
})
}
src/api/riskPrecontrol/maintenanceRiskTask.js
View file @
4c92799f
...
@@ -93,7 +93,19 @@ export function doInitZt(query) {
...
@@ -93,7 +93,19 @@ export function doInitZt(query) {
})
})
}
}
/**
* 检查项页面,根据检查标准查询检查内容
* @param query
* in:fxbzid
* @returns {*}
*/
export
function
doQueryFxjcnr
(
query
)
{
return
requestDtl
({
url
:
'/aqgl/fxyk/fxpc/queryFxjcnr'
,
method
:
'post'
,
data
:
query
||
{}
})
}
...
...
src/api/riskPrecontrol/shlx.js
0 → 100644
View file @
4c92799f
import
request
from
'common/src/utils/request'
/* 角色管理query */
export
function
doQuery
(
query
)
{
return
request
({
url
:
'/aqgl/fxyk/shlx/query'
,
method
:
'post'
,
data
:
query
||
{}
})
}
/* 角色管理更新 */
export
function
doUpdate
(
query
)
{
return
request
({
url
:
'/aqgl/fxyk/shlx/update'
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
doAdd
(
query
)
{
return
request
({
url
:
'/aqgl/fxyk/shlx/add'
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
doDelete
(
query
)
{
return
request
({
url
:
'/aqgl/fxyk/shlx/delete'
,
method
:
'post'
,
data
:
query
||
{}
})
}
src/router/index.js
View file @
4c92799f
...
@@ -332,6 +332,20 @@ export const constantRoutes = [
...
@@ -332,6 +332,20 @@ export const constantRoutes = [
name
:
'riskAnalysis'
,
name
:
'riskAnalysis'
,
path
:
"riskAnalysis"
path
:
"riskAnalysis"
},
},
{
commonComponent
:
'shlx'
,
component
:()
=>
import
(
"@/views/riskPrecontrol/shlx/index"
),
hidden
:
false
,
meta
:{
"title"
:
"伤害类型维护"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
101001300
,
},
name
:
'shlx'
,
path
:
"shlx"
},
{
{
commonComponent
:
'maintenanceRisk'
,
commonComponent
:
'maintenanceRisk'
,
component
:()
=>
import
(
"@/views/riskPrecontrol/maintenanceRisk/index"
),
component
:()
=>
import
(
"@/views/riskPrecontrol/maintenanceRisk/index"
),
...
...
src/views/riskPrecontrol/maintenanceRisk/new/edit.vue
0 → 100644
View file @
4c92799f
<
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=
"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=
"8"
>
<el-form-item
label=
"风险性质"
ref=
"fxxz"
prop=
"fxxz"
>
<el-input
:readonly=
"readonly"
v-model=
"form.fxxz"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"死亡人数"
ref=
"swrs"
prop=
"swrs"
>
<el-input
:readonly=
"readonly"
v-model=
"form.swrs"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"重伤人数"
ref=
"zsrs"
prop=
"zsrs"
>
<el-input
:readonly=
"readonly"
v-model=
"form.zsrs"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"轻伤人数"
ref=
"qsrs"
prop=
"qsrs"
>
<el-input
:readonly=
"readonly"
v-model=
"form.qsrs"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"直接经济损失"
ref=
"zjjjss"
prop=
"zjjjss"
>
<el-input
:readonly=
"readonly"
v-model=
"form.zjjjss"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"损失工作日"
ref=
"gzrss"
prop=
"gzrss"
>
<el-input
:readonly=
"readonly"
v-model=
"form.gzrss"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<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=
"8"
>
<el-form-item
label=
"车间编码"
ref=
"cjid"
prop=
"cjid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.cjid"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"登记人编码"
ref=
"djrid"
prop=
"djrid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.djrid"
></el-input>
</el-form-item>
</el-col>
<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=
"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
:
"aqglFxsjEdit"
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data
()
{
return
{
/* 额外初始化,根据需求*/
systemType
:
[],
bmList
:
[],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
//ID
id
:
''
,
//风险类型
fxlx
:
''
,
//风险性质
fxxz
:
''
,
//死亡人数
swrs
:
''
,
//重伤人数
zsrs
:
''
,
//轻伤人数
qsrs
:
''
,
//直接经济损失
zjjjss
:
''
,
//损失工作日
gzrss
:
''
,
//部门编码
bmid
:
''
,
//车间编码
cjid
:
''
,
//登记人编码
djrid
:
''
,
//备注
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/maintenanceRisk/new/index.vue
0 → 100644
View file @
4c92799f
<
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/aqgl/fxsj.js'
;
/* edit页面*/
import
Edit
from
'./edit'
import
{
tableMixin
}
from
'common'
export
default
{
mixins
:
[
tableMixin
],
name
:
'aqglFxsj'
,
/* 初始额外赋值*/
async
mounted
()
{
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
data
()
{
return
{
/*需要的额外参数 */
showDialog
:
false
,
DialogName
:
''
,
type
:
''
,
DialogTitle
:
''
,
/* 基础url*/
baseUrl
:
'/aqgl/fxsj'
,
/* 查询参数*/
queryParams
:
{
info
:
''
},
/* 表格标题对应参数*/
tableTitle
:
[
{
label
:
"风险类型"
,
prop
:
"fxlx"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"风险性质"
,
prop
:
"fxxz"
,
fieldType
:
"ftString"
,
width
:
240
},
{
label
:
"死亡人数"
,
prop
:
"swrs"
,
fieldType
:
"int"
},
{
label
:
"重伤人数"
,
prop
:
"zsrs"
,
fieldType
:
"int"
},
{
label
:
"轻伤人数"
,
prop
:
"qsrs"
,
fieldType
:
"int"
},
{
label
:
"直接经济损失"
,
prop
:
"zjjjss"
,
fieldType
:
"float"
},
{
label
:
"损失工作日"
,
prop
:
"gzrss"
,
fieldType
:
"float"
},
{
label
:
"部门编码"
,
prop
:
"bmid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"车间编码"
,
prop
:
"cjid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"登记人编码"
,
prop
:
"djrid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
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/shlx/edit.vue
0 → 100644
View file @
4c92799f
<
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=
"code"
prop=
"code"
>
<el-input
:readonly=
"readonly"
v-model=
"form.code"
></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-form>
</RelDialog>
</
template
>
<
script
>
import
{
editMixin
}
from
'common'
export
default
{
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
mounted
()
{
},
/* 组件名称*/
name
:
"aqglFxykShlxEdit"
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data
()
{
return
{
/* 额外初始化,根据需求*/
systemType
:
[],
bmList
:
[],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
//ID
id
:
''
,
//类型编码
code
:
''
,
//名称
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/riskPrecontrol/shlx/index.vue
0 → 100644
View file @
4c92799f
<
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/riskPrecontrol/shlx.js'
;
/* edit页面*/
import
Edit
from
'./edit'
import
{
tableMixin
}
from
'common'
export
default
{
mixins
:
[
tableMixin
],
name
:
'aqglFxykShlx'
,
/* 初始额外赋值*/
async
mounted
()
{
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
data
()
{
return
{
/*需要的额外参数 */
showDialog
:
false
,
DialogName
:
''
,
type
:
''
,
DialogTitle
:
''
,
/* 基础url*/
baseUrl
:
'/aqgl/fxyk/shlx'
,
/* 查询参数*/
queryParams
:
{
info
:
''
},
/* 表格标题对应参数*/
tableTitle
:
[
{
label
:
"类型编码"
,
prop
:
"code"
,
fieldType
:
"ftString"
,
width
:
120
},
{
label
:
"名称"
,
prop
:
"name"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"备注"
,
prop
:
"bz"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"维护人"
,
prop
:
"whr"
,
fieldType
:
"ftString"
},
{
label
:
"维护时间"
,
prop
:
"whsj"
,
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