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
fe23bba1
Commit
fe23bba1
authored
Dec 02, 2022
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
风险维护和设置
parent
87f43934
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
64 additions
and
29 deletions
+64
-29
maintenanceRiskTask.js
src/api/riskPrecontrol/maintenanceRiskTask.js
+8
-0
edit.vue
src/views/riskPrecontrol/maintenanceRiskTask/edit.vue
+11
-6
index.vue
src/views/riskPrecontrol/maintenanceRiskTask/index.vue
+7
-7
zdzrr.vue
src/views/riskPrecontrol/maintenanceRiskTask/zdzrr.vue
+6
-12
edit.vue
src/views/riskPrecontrol/riskSet/edit.vue
+12
-1
selecter.vue
src/views/riskPrecontrol/riskSet/selecter.vue
+5
-1
content.vue
src/views/riskPrecontrol/screeningCriteria/content.vue
+14
-1
index.vue
src/views/riskPrecontrol/screeningCriteria/index.vue
+1
-1
No files found.
src/api/riskPrecontrol/maintenanceRiskTask.js
View file @
fe23bba1
...
@@ -107,6 +107,14 @@ export function doQueryFxjcnr(query) {
...
@@ -107,6 +107,14 @@ export function doQueryFxjcnr(query) {
})
})
}
}
/* 责任人分配 */
export
function
doFp
(
query
)
{
return
request
({
url
:
'/aqgl/fxyk/fxpc/doFp'
,
method
:
'post'
,
data
:
query
||
{}
})
}
...
...
src/views/riskPrecontrol/maintenanceRiskTask/edit.vue
View file @
fe23bba1
...
@@ -10,13 +10,13 @@
...
@@ -10,13 +10,13 @@
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<!--
<el-col
:span=
"12"
>
<el-form-item
label=
"截止日期"
ref=
"jzrq"
prop=
"jzrq"
>
<el-form-item
label=
"截止日期"
ref=
"jzrq"
prop=
"jzrq"
>
<el-date-picker
value-format=
"timestamp"
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
<el-date-picker
value-format=
"timestamp"
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
v-model=
"form.jzrq"
placeholder=
"选择日期"
>
v-model=
"form.jzrq"
placeholder=
"选择日期"
>
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
-->
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"检查时间"
ref=
"sjjcsj"
prop=
"sjjcsj"
>
<el-form-item
label=
"检查时间"
ref=
"sjjcsj"
prop=
"sjjcsj"
>
<el-date-picker
value-format=
"timestamp"
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
<el-date-picker
value-format=
"timestamp"
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
...
@@ -39,8 +39,13 @@
...
@@ -39,8 +39,13 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"班次"
ref=
"bcid"
prop=
"bcid"
>
<el-form-item
label=
"公司"
ref=
"bcid"
prop=
"bcid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.bcid"
></el-input>
<el-input
:readonly=
"readonly"
v-model=
"form.gsName"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"班组"
ref=
"bcid"
prop=
"bcid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.bzName"
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<!-- 标准带出数据-->
<!-- 标准带出数据-->
...
@@ -50,8 +55,8 @@
...
@@ -50,8 +55,8 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"
作业活动
"
ref=
"fxd"
prop=
"fxd"
>
<el-form-item
label=
"
风险点
"
ref=
"fxd"
prop=
"fxd"
>
<el-input
:readonly=
"true"
v-model=
"form.fxd"
></el-input>
<el-input
:readonly=
"true"
v-model=
"form.fxd
Name
"
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"24"
>
<el-col
:span=
"24"
>
...
...
src/views/riskPrecontrol/maintenanceRiskTask/index.vue
View file @
fe23bba1
...
@@ -116,7 +116,7 @@ import Zdzrr from './zdzrr'
...
@@ -116,7 +116,7 @@ import Zdzrr from './zdzrr'
},
},
data
()
{
data
()
{
return
{
return
{
DialogTitle
:
'指定
责任
人'
,
DialogTitle
:
'指定
检查
人'
,
/*需要的额外参数 */
/*需要的额外参数 */
showDialog
:
false
,
showDialog
:
false
,
doQueryScgw
:[],
doQueryScgw
:[],
...
@@ -125,7 +125,6 @@ import Zdzrr from './zdzrr'
...
@@ -125,7 +125,6 @@ import Zdzrr from './zdzrr'
showDialog
:
false
,
showDialog
:
false
,
DialogName
:
''
,
DialogName
:
''
,
type
:
''
,
type
:
''
,
DialogTitle
:
''
,
/* 基础url*/
/* 基础url*/
baseUrl
:
'/aqgl/fxyk/fxpc'
,
baseUrl
:
'/aqgl/fxyk/fxpc'
,
/* 查询参数*/
/* 查询参数*/
...
@@ -142,20 +141,21 @@ import Zdzrr from './zdzrr'
...
@@ -142,20 +141,21 @@ import Zdzrr from './zdzrr'
// {label: "风险排查标准编码", prop: "fxbzid", fieldType: "ftString",width:192},
// {label: "风险排查标准编码", prop: "fxbzid", fieldType: "ftString",width:192},
{
label
:
"状态"
,
prop
:
"ztName"
,
fieldType
:
"ftString"
,
width
:
50
},
{
label
:
"状态"
,
prop
:
"ztName"
,
fieldType
:
"ftString"
,
width
:
50
},
{
label
:
"下达时间"
,
prop
:
"xdrq"
,
fieldType
:
"ftDateTime"
},
{
label
:
"下达时间"
,
prop
:
"xdrq"
,
fieldType
:
"ftDateTime"
},
{
label
:
"截止日期"
,
prop
:
"jzrq"
,
fieldType
:
"ftDateTime"
},
//
{label: "截止日期", prop: "jzrq", fieldType: "ftDateTime"},
{
label
:
"检查时间"
,
prop
:
"sjjcsj"
,
fieldType
:
"ftDateTime"
},
{
label
:
"检查时间"
,
prop
:
"sjjcsj"
,
fieldType
:
"ftDateTime"
},
{
label
:
"检查岗位"
,
prop
:
"gwName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"检查岗位"
,
prop
:
"gwName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"检查人"
,
prop
:
"jcrName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"检查人"
,
prop
:
"jcrName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"地点"
,
prop
:
"fxpcdd"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"地点"
,
prop
:
"fxpcdd"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"作业活动"
,
prop
:
"fxd"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"风险点"
,
prop
:
"fxd"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"车间"
,
prop
:
"cjName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"公司"
,
prop
:
"gsName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"维护方式"
,
prop
:
"jcrName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"班组"
,
prop
:
"bzName"
,
fieldType
:
"ftString"
,
width
:
192
},
// {label: "维护方式", prop: "jcrName", fieldType: "ftString",width:192},
// {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
:
"bcid"
,
fieldType
:
"ftString"
,
width
:
192
},
//
{label: "班次", prop: "bcid", fieldType: "ftString",width:192},
],
],
timer
:
false
,
timer
:
false
,
}
}
...
...
src/views/riskPrecontrol/maintenanceRiskTask/zdzrr.vue
View file @
fe23bba1
...
@@ -3,15 +3,9 @@
...
@@ -3,15 +3,9 @@
<el-form
slot=
"form"
ref=
"form"
label-width=
"100px"
>
<el-form
slot=
"form"
ref=
"form"
label-width=
"100px"
>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"责任人"
ref=
"zrr"
prop=
"zrr"
>
<el-form-item
label=
"检查人"
ref=
"jcrid"
prop=
"jcrid"
>
<personSelector
:label=
"singleItem.zrrName||'暂无'"
@
selected=
'zrrSelected'
></personSelector>
<personSelector
:label=
"singleItem.jcrName||'暂无'"
@
selected=
'jcrSelected'
></personSelector>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"复查人"
ref=
"fcr"
prop=
"fcr"
>
<!--
<el-input
:readonly=
"readonly"
v-model=
"form.zrr"
></el-input>
-->
<personSelector
:label=
"singleItem.fcrName||'暂无'"
@
selected=
'fcrSelected'
></personSelector>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
@@ -28,7 +22,7 @@
...
@@ -28,7 +22,7 @@
<
script
>
<
script
>
import
{
import
{
doFp
doFp
}
from
"@/api/
dangerManagement/common
.js"
}
from
"@/api/
riskPrecontrol/maintenanceRiskTask
.js"
export
default
{
export
default
{
props
:
{
props
:
{
app
:
{
app
:
{
...
@@ -66,8 +60,8 @@ save(){
...
@@ -66,8 +60,8 @@ save(){
}
}
})
})
},
},
zr
rSelected
(
row
){
jc
rSelected
(
row
){
this
.
singleItem
.
zrr
=
row
.
id
this
.
singleItem
.
jcrid
=
row
.
id
},
},
fcrSelected
(
row
){
fcrSelected
(
row
){
this
.
singleItem
.
fcr
=
row
.
id
this
.
singleItem
.
fcr
=
row
.
id
...
...
src/views/riskPrecontrol/riskSet/edit.vue
View file @
fe23bba1
...
@@ -6,10 +6,19 @@
...
@@ -6,10 +6,19 @@
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"任务名称"
ref=
"name"
prop=
"name"
>
<el-form-item
label=
"任务名称"
ref=
"name"
prop=
"name"
>
<el-input
:readonly=
"readonly"
v-model=
"form.name"
></el-input>
<el-input
:readonly=
"readonly"
v-model=
"form.name"
></el-input>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"所属公司"
ref=
"gsid"
prop=
"gsid"
>
<RelSelect
style=
"width: 100%;"
:readonly=
"readonly"
src=
'jcsj/common/bm/queryGs'
filterable
clearable
:match=
"
{value:'id',label:'bmmc'}" v-model='form.gsid' >
</RelSelect>
</el-form-item>
</el-col>
<!--
<el-col
:span=
"24"
>
<el-form-item
label=
"所属班组"
ref=
"bmid"
prop=
"bmid"
>
<RelSelect
linkage
:linkParams=
"
{pid:form.gsid}" style="width: 100%;" src='jcsj/common/bm/queryBz' filterable clearable :match="{value:'id',label:'bmmc'}" v-model='form.bmid' >
</RelSelect>
</el-form-item>
</el-col>
-->
</el-row>
</el-row>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
...
@@ -144,6 +153,8 @@
...
@@ -144,6 +153,8 @@
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
form
:
{
// bmid:'',
gsid
:
''
,
table
:
'FXSZMX'
,
table
:
'FXSZMX'
,
name
:
''
,
name
:
''
,
jldw
:
''
,
jldw
:
''
,
...
...
src/views/riskPrecontrol/riskSet/selecter.vue
View file @
fe23bba1
...
@@ -44,6 +44,8 @@
...
@@ -44,6 +44,8 @@
},
},
async
mounted
()
{
async
mounted
()
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
queryParams
.
gsid
=
this
.
app
.
form
.
gsid
// this.queryParams.bmid=this.app.form.bmid
this
.
$refs
[
'TablePager'
].
pageQuery
()
this
.
$refs
[
'TablePager'
].
pageQuery
()
})
})
...
@@ -85,7 +87,9 @@
...
@@ -85,7 +87,9 @@
},
},
data
()
{
data
()
{
return
{
return
{
queryParams
:{},
queryParams
:{
gwid
:
''
},
tableTitle
:
[
tableTitle
:
[
{
label
:
"检查内容"
,
prop
:
"nr"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"检查内容"
,
prop
:
"nr"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"岗位"
,
prop
:
"scgwName"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"岗位"
,
prop
:
"scgwName"
,
fieldType
:
"ftString"
,
width
:
300
},
...
...
src/views/riskPrecontrol/screeningCriteria/content.vue
View file @
fe23bba1
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
<FieldButton
:app=
'app'
></FieldButton>
<FieldButton
:app=
'app'
></FieldButton>
<ExcelButton
:app=
'app'
></ExcelButton>
<ExcelButton
:app=
'app'
></ExcelButton>
<el-button
size=
'mini'
@
click
.
native=
"autoGen()"
type=
"primary"
>
生成作业
</el-button>
</el-row>
</el-row>
<!-- 表格-->
<!-- 表格-->
<div
class=
"tablePagers"
>
<div
class=
"tablePagers"
>
...
@@ -28,7 +29,8 @@
...
@@ -28,7 +29,8 @@
doAddJcnr
,
doAddJcnr
,
doUpdateJcnr
,
doUpdateJcnr
,
doDeleteJcnr
,
doDeleteJcnr
,
doQueryFpgw
doQueryFpgw
,
doAutoGen
,
}
from
'@/api/riskPrecontrol/screeningCriteria'
;
}
from
'@/api/riskPrecontrol/screeningCriteria'
;
/* edit页面*/
/* edit页面*/
import
Edit
from
'./contentEdit.vue'
import
Edit
from
'./contentEdit.vue'
...
@@ -83,6 +85,17 @@
...
@@ -83,6 +85,17 @@
}
}
},
},
methods
:
{
methods
:
{
autoGen
()
{
if
(
this
.
app
.
selectOne
||
this
.
app
.
clickOne
)
{
doAutoGen
(
this
.
singleItem
).
then
(
res
=>
{
if
(
res
.
success
){
this
.
$success
(
'生成作业成功!'
)
}
})
}
else
{
this
.
$warning
(
'请选中标准进行操作!'
);
}
},
query
:
doQueryJcnr
,
query
:
doQueryJcnr
,
/* 基础增*/
/* 基础增*/
apiAdd
:
doAddJcnr
,
apiAdd
:
doAddJcnr
,
...
...
src/views/riskPrecontrol/screeningCriteria/index.vue
View file @
fe23bba1
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
<FieldButton
:app=
'app'
></FieldButton>
<FieldButton
:app=
'app'
></FieldButton>
<ExcelButton
:app=
'app'
></ExcelButton>
<ExcelButton
:app=
'app'
></ExcelButton>
<!-- 额外按钮-->
<!-- 额外按钮-->
<el-button
size=
'mini'
@
click
.
native=
"autoGen()"
type=
"primary"
>
生成作业
</el-button>
<!-- 表头设置 -->
<!-- 表头设置 -->
<!-- 权限-->
<!-- 权限-->
...
...
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