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
ee9ff0b0
Commit
ee9ff0b0
authored
Nov 07, 2022
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
维护风险排查任务
parent
cea2252e
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
288 additions
and
291 deletions
+288
-291
maintenanceRiskTask.js
src/api/riskPrecontrol/maintenanceRiskTask.js
+6
-6
details.vue
src/views/riskPrecontrol/maintenanceRiskTask/details.vue
+70
-64
index.vue
src/views/riskPrecontrol/maintenanceRiskTask/dtl/index.vue
+1
-1
edit.vue
src/views/riskPrecontrol/maintenanceRiskTask/edit.vue
+132
-83
index.vue
src/views/riskPrecontrol/maintenanceRiskTask/index.vue
+69
-132
index.vue
src/views/riskPrecontrol/maintenanceRiskTask/main/index.vue
+1
-1
edit.vue
src/views/riskPrecontrol/screeningCriteria/edit.vue
+6
-3
index.vue
src/views/riskPrecontrol/screeningCriteria/index.vue
+3
-1
No files found.
src/api/riskPrecontrol/maintenanceRiskTask.js
View file @
ee9ff0b0
...
...
@@ -37,7 +37,7 @@ export function doDelete(query) {
*/
/* query */
export
function
doQueryDtl
(
query
)
{
return
request
Dtl
({
return
request
({
url
:
'/aqgl/fxyk/fxpcmx/query'
,
method
:
'post'
,
data
:
query
||
{}
...
...
@@ -45,21 +45,21 @@ export function doQueryDtl(query) {
}
/* 更新 */
export
function
doUpdateDtl
(
query
)
{
return
request
Dtl
({
return
request
({
url
:
'/aqgl/fxyk/fxpcmx/update'
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
doAddDtl
(
query
)
{
return
request
Dtl
({
return
request
({
url
:
'/aqgl/fxyk/fxpcmx/add'
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
doDeleteDtl
(
query
)
{
return
request
Dtl
({
return
request
({
url
:
'/aqgl/fxyk/fxpcmx/delete'
,
method
:
'post'
,
data
:
query
||
{}
...
...
@@ -73,7 +73,7 @@ export function doDeleteDtl(query) {
* @returns {*}
*/
export
function
doQueryFxbz
(
query
)
{
return
request
Dtl
({
return
request
({
url
:
'/aqgl/fxyk/fxpc/queryFxbz'
,
method
:
'post'
,
data
:
query
||
{}
...
...
@@ -86,7 +86,7 @@ export function doQueryFxbz(query) {
* @returns {*}
*/
export
function
doInitZt
(
query
)
{
return
request
Dtl
({
return
request
({
url
:
'/aqgl/fxyk/fxpc/init/zt'
,
method
:
'post'
,
data
:
query
||
{}
...
...
src/views/riskPrecontrol/maintenanceRiskTask/details.vue
View file @
ee9ff0b0
<
template
>
<div
class=
"form-detail"
>
<div
class=
"form-detail"
v-show=
'queryParams.fxbzid'
>
<el-form
ref=
"form"
label-width=
'auto'
:model=
"form"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"部门或分厂"
>
<el-input
>
<el-input
:value=
"details.bmName||'暂无'"
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"车间"
>
<el-input
>
<el-input
:value=
"details.cjName||'暂无'"
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"岗位"
>
<el-input
>
<el-input
:value=
"details.gwName||'暂无'"
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"地点"
>
<el-input
>
<el-input
:value=
"details.fxpcdd||'暂无'"
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"作业活动设施风险点"
>
<el-input
>
<el-input
:value=
"details.fxd||'暂无'"
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"事故类型"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"危险等级"
>
<el-input
>
<el-input
:value=
"details.sglx||'暂无'"
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"危险分值"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
" 风险类型"
>
<el-input
>
<el-col
:span=
"24"
>
<el-form-item
label=
"作业步骤"
>
<el-input
type=
"textarea"
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"管控措施落实后等级"
>
<el-input
>
<el-col
:span=
"24"
>
<el-form-item
label=
"危害因素"
>
<el-input
type=
"textarea"
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"
8
"
>
<el-form-item
label=
"
管理层级
"
>
<el-input
>
<el-col
:span=
"
24
"
>
<el-form-item
label=
"
事故后果
"
>
<el-input
type=
"textarea"
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"
拍照选项
"
>
<el-form-item
label=
"
危险等级
"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"检查要点"
>
<el-input
type=
"textarea"
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"24"
>
<el-form-item
label=
"危害因素"
>
<el-form-item
label=
"检查措施描述"
>
<el-input
type=
"textarea"
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"
24
"
>
<el-form-item
label=
"
事故后果
"
>
<el-input
type=
"textarea"
>
<el-col
:span=
"
8
"
>
<el-form-item
label=
"
管控措施落实后等级
"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"
24
"
>
<el-form-item
label=
"
检查措施描述
"
>
<el-input
type=
"textarea"
>
<el-col
:span=
"
8
"
>
<el-form-item
label=
"
分值l
"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"
24
"
>
<el-form-item
label=
"
备注
"
>
<el-input
type=
"textarea"
>
<el-col
:span=
"
8
"
>
<el-form-item
label=
"
分值e
"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"
序号
"
>
<el-form-item
label=
"
分值d
"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"
图形编号
"
>
<el-form-item
label=
"
整改后分值l
"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"
措施类型
"
>
<el-form-item
label=
"
整改后分值e
"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"
基准精度
"
>
<el-form-item
label=
"
整改后分值c
"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"
基准维度
"
>
<el-form-item
label=
"
整改后分值d
"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"8"
>
<el-form-item
label=
"
责任人
"
>
<el-form-item
label=
"
是否拍照
"
>
<el-input
>
</el-input>
</el-form-item>
</el-col>
<!-- -->
</el-row>
</el-form>
...
...
@@ -151,13 +133,37 @@
</
template
>
<
script
>
import
{
doQueryFxbz
,
doAddDtl
,
doUpdateDtl
,
doDeleteDtl
}
from
"@/api/riskPrecontrol/maintenanceRiskTask.js"
;
export
default
{
data
()
{
return
{
details
:{},
queryParams
:{
fxbzid
:
''
}
methods
:
{
}
},
mounted
()
{
this
.
$nextTick
(()
=>
{
$
(
this
.
$el
).
find
(
'input'
).
attr
(
'readonly'
,
'readonly'
)
$
(
this
.
$el
).
find
(
'textarea'
).
attr
(
'readonly'
,
'readonly'
)
})
},
methods
:
{
query
:
function
(){
let
params
=
this
.
queryParams
doQueryFxbz
(
params
).
then
(
res
=>
{
if
(
res
.
data
.
records
){
this
.
details
=
res
.
data
.
records
}
})
}
}
}
...
...
src/views/riskPrecontrol/maintenanceRiskTask/dtl/index.vue
View file @
ee9ff0b0
...
...
@@ -45,7 +45,7 @@
doAddDtl
,
doUpdateDtl
,
doDeleteDtl
}
from
"
src
/api/riskPrecontrol/maintenanceRiskTask.js"
;
}
from
"
@
/api/riskPrecontrol/maintenanceRiskTask.js"
;
/* edit页面*/
import
Edit
from
'./edit'
import
{
...
...
src/views/riskPrecontrol/maintenanceRiskTask/edit.vue
View file @
ee9ff0b0
<
template
>
<RelDialog
:type=
'type'
:editApp=
'editApp'
:app=
'app'
:buttonApp=
'buttonApp'
>
<!-- 填写表单内容,slot=form必写-->
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"8
0px"
:rules=
"rules"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24
"
>
<el-form-item
label=
"标题"
ref=
"roleid"
prop=
"roleid
"
>
<el-input
:readonly=
"readonly"
v-model=
"form.roleid"
></el-input>
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"12
0px"
:rules=
"rules"
>
<!--
<el-row
:gutter=
"20"
>
<el-col
:span=
"12
"
>
<el-form-item
label=
"单据来源"
ref=
"djly"
prop=
"djly
"
>
<el-input
:readonly=
"readonly"
v-model=
"form.djly"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"风险排查标准编码"
ref=
"fxbzid"
prop=
"fxbzid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.fxbzid"
></el-input>
</el-form-item>
</el-col>
</el-row>
-->
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"内容"
ref=
"roleid"
prop=
"roleid"
>
<el-input
:readonly=
"readonly"
type=
"textarea"
v-model=
"form.roleid"
></el-input>
<el-col
:span=
"12"
>
<el-form-item
label=
"下达日期"
ref=
"xdrq"
prop=
"xdrq"
>
<el-date-picker
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
v-model=
"form.xdrq"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"截止日期"
ref=
"jzrq"
prop=
"jzrq"
>
<el-date-picker
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
v-model=
"form.jzrq"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"实际检查时间"
ref=
"sjjcsj"
prop=
"sjjcsj"
>
<el-date-picker
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
v-model=
"form.sjjcsj"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"检查岗位"
ref=
"gwid"
prop=
"gwid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.gwid"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"有效期至"
>
<el-date-picker
style=
"width: 100%;"
type=
"date"
placeholder=
"选择日期"
>
</el-date-picker>
<el-form-item
label=
"检查人"
ref=
"jcrid"
prop=
"jcrid"
>
<!--
<el-input
:readonly=
"readonly"
v-model=
"form.jcrid"
></el-input>
-->
<personSelector
:label=
"form.jcrName||form.jcrid||'暂无'"
@
selected=
'jcrSelected'
></personSelector>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"编制单位"
>
<el-select
placeholder=
"请选择"
style=
"width: 100%;"
>
<!--
<el-option
v-for=
"item in options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
-->
</el-select>
<el-form-item
label=
"班次"
ref=
"bcid"
prop=
"bcid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.bcid"
></el-input>
</el-form-item>
</el-col>
<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>
<!-- 按钮重写, -->
<!--
<div
slot=
"reFooter"
>
<span
slot=
"footer"
>
重写按钮写在这里,根据需要重写 slot(reFooter,foorer) 节点样式 重写方法需要在此页重新定义
</span>
</div>
-->
</RelDialog>
</
template
>
<
script
>
...
...
@@ -53,9 +71,10 @@
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
mounted
()
{
},
/* 组件名称*/
name
:
'roleManagementEdit'
,
name
:
"aqgl/fxykFxpcEdit"
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data
()
{
...
...
@@ -64,27 +83,57 @@
/* 额外初始化,根据需求*/
systemType
:
[],
bmList
:
[],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
roleid
:
''
,
rolename
:
''
,
bz
:
""
,
id
:
''
,
djly
:
''
,
fxbzid
:
''
,
zt
:
''
,
xdrq
:
new
Date
().
getTime
(),
jzrq
:
new
Date
().
getTime
(),
sjjcsj
:
new
Date
().
getTime
(),
gwid
:
''
,
jcrid
:
''
,
bz
:
''
,
whrid
:
''
,
whr
:
''
,
whsj
:
new
Date
().
getTime
(),
cjrid
:
''
,
cjr
:
''
,
cjsj
:
new
Date
().
getTime
(),
sysversion
:
''
,
bcid
:
''
,
},
/* form提交时的规则,具体规则参考官网*/
rules
:
{
roleid
:
[{
required
:
true
,
trigger
:
'blur'
},
],
rolename
:
[{
required
:
true
,
trigger
:
'blur'
},
]
}
}
},
methods
:
{
jcrSelected
(
row
){
this
.
form
.
jcrid
=
row
.
code
},
}
}
</
script
>
...
...
src/views/riskPrecontrol/maintenanceRiskTask/index.vue
View file @
ee9ff0b0
...
...
@@ -9,14 +9,26 @@
<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
style=
"width:60% ;"
></el-inpu
t>
<span
class=
"search-span"
>
状态
:
</span>
<
RelSelect
src=
'aqgl/fxyk/fxpc/init/zt'
clearable
:match=
"
{value:'id',label:'name'}" v-model='queryParams.zt' >
</RelSelec
t>
</div>
</el-col>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
设备设施风险点:
</span>
<el-input></el-input>
<span
class=
"search-span"
>
检查岗位:
</span>
<RelSelect
src=
'kzzx/bm/query'
:match=
"
{value:'id',label:'bmmc'}" v-model='queryParams.jcgw' >
</RelSelect>
</div>
</el-col>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
开始日期:
</span>
<el-date-picker
v-model=
"queryParams.ksrq"
></el-date-picker>
</div>
</el-col>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
结束日期:
</span>
<el-date-picker
v-model=
"queryParams.jsrq"
></el-date-picker>
</div>
</el-col>
...
...
@@ -47,9 +59,9 @@
</div>
<div
class=
"min_full"
style=
"height: 60%;padding: 10px;"
>
<!-- tabs -->
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tabs
v-model=
"activeName"
>
<el-tab-pane
label=
"检查标准"
name=
"first"
>
<Details
/>
<Details
ref=
"Details"
/>
</el-tab-pane>
<el-tab-pane
label=
"检查项"
name=
"second"
>
<Content
/>
...
...
@@ -63,15 +75,14 @@
<
script
>
/* 引入需要的接口*/
/* 引入需要的接口*/
import
{
QueryKzzxRole
,
QueryApptype
,
AddKzzxRole
,
DeleteKzzxRole
,
UpdateKzzxRole
,
QtKzzxRole
}
from
"common/src/api/system/dmgSystem.js"
;
doQuery
,
doAdd
,
doUpdate
,
doDelete
}
from
"@/api/riskPrecontrol/maintenanceRiskTask.js"
;
/* edit页面*/
import
Edit
from
'./edit'
import
Details
from
'./details.vue'
...
...
@@ -79,31 +90,14 @@
import
{
tableMixin
}
from
'common'
let
fdcs
=
function
(){
let
timer
=
false
let
a
=
function
(){
if
(
timer
){
clearTimeout
(
timer
)
timer
=
setTimeout
(()
=>
{
console
.
log
(
'防抖方法'
)
},
500
)
}
else
{
timer
=
setTimeout
(()
=>
{
console
.
log
(
'防抖方法'
)
},
500
)
}
}
return
a
}
export
default
{
mixins
:
[
tableMixin
],
name
:
'appVersion'
,
/* 初始额外赋值*/
async
mounted
()
{
this
.
fdcs
=
fdcs
(
)
this
.
$refs
[
'TablePager'
].
pageQuery
()
this
.
$refs
[
'TablePager'
].
pageQuery
({
setFirstCurrent
:
true
}
)
},
data
()
{
...
...
@@ -115,119 +109,62 @@
type
:
''
,
DialogTitle
:
''
,
/* 基础url*/
baseUrl
:
'
kzzx/role
'
,
baseUrl
:
'
/aqgl/fxyk/fxpc
'
,
/* 查询参数*/
queryParams
:
{
ksrq
:
''
,
jsrq
:
''
zt
:
''
,
jcgw
:
''
,
ksrq
:
new
Date
().
getTime
()
-
1000
*
60
*
60
*
24
*
30
,
jsrq
:
new
Date
().
getTime
()
},
/* 表格标题对应参数*/
tableTitle
:
[
{
prop
:
'whsj'
,
label
:
'下达日期'
,
fieldType
:
'ftDateTime'
,
width
:
'100'
,
align
:
'left'
},
{
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'
}
// {label: "ID", prop: "id", fieldType: "ftString",width:192},
// {label: "单据来源", prop: "djly", fieldType: "ftString",width:60},
// {label: "风险排查标准编码", prop: "fxbzid", fieldType: "ftString",width:192},
{
label
:
"状态"
,
prop
:
"zt"
,
fieldType
:
"ftString"
,
width
:
50
},
{
label
:
"下达日期"
,
prop
:
"xdrq"
,
fieldType
:
"ftDateTime"
},
{
label
:
"截止日期"
,
prop
:
"jzrq"
,
fieldType
:
"ftDateTime"
},
{
label
:
"实际检查时间"
,
prop
:
"sjjcsj"
,
fieldType
:
"ftDateTime"
},
{
label
:
"检查岗位"
,
prop
:
"gwid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"检查人"
,
prop
:
"jcrName"
,
fieldType
:
"ftString"
,
width
:
192
},
/* 新增*/
{
label
:
"地点"
,
prop
:
"fxpcdd"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"作业活动"
,
prop
:
"fxd"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"车间"
,
prop
:
"cjName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"维护方式"
,
prop
:
"jcrName"
,
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"},
{
label
:
"班次"
,
prop
:
"bcid"
,
fieldType
:
"ftString"
,
width
:
192
},
],
timer
:
false
,
}
},
methods
:
{
fdcs
:()
=>
{},
handleClick
(
val
){
console
.
log
(
val
,
'val'
)
getRow
:
function
(
e
)
{
this
.
rowItem
=
e
this
.
$refs
.
Details
.
queryParams
.
fxbzid
=
e
.
fxbzid
this
.
$nextTick
(()
=>
{
this
.
$refs
.
Details
.
query
()
})
},
/* 基础查询*/
query
:
QueryKzzxRole
,
/* 基础查询*/
query
:
doQuery
,
/* 基础增*/
apiAdd
:
AddKzzxRole
,
apiAdd
:
doAdd
,
/* 基础更新*/
apiUpdate
:
UpdateKzzxRol
e
,
apiUpdate
:
doUpdat
e
,
/* 删除操作*/
apiDelete
:
DeleteKzzxRole
,
/* 初始化赋值操作*/
apiDelete
:
doDelete
,
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/riskPrecontrol/maintenanceRiskTask/main/index.vue
View file @
ee9ff0b0
...
...
@@ -45,7 +45,7 @@
doAdd
,
doUpdate
,
doDelete
}
from
"
src
/api/riskPrecontrol/maintenanceRiskTask.js"
;
}
from
"
@
/api/riskPrecontrol/maintenanceRiskTask.js"
;
/* edit页面*/
import
Edit
from
'./edit'
import
{
...
...
src/views/riskPrecontrol/screeningCriteria/edit.vue
View file @
ee9ff0b0
...
...
@@ -38,7 +38,8 @@
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"危险等级"
ref=
"wxdj"
prop=
"wxdj"
>
<el-input
:readonly=
"readonly"
v-model=
"form.wxdj"
></el-input>
<RelSelect
style=
"width: 100%;"
src=
'aqgl/fxyk/fxpc/init/wxdj'
:match=
"
{value:'id',label:'name'}" v-model='form.wxdj' >
</RelSelect>
<!--
<el-input
:readonly=
"readonly"
v-model=
"form.wxdj"
></el-input>
-->
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
...
...
@@ -65,12 +66,14 @@
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"管理层级"
ref=
"glcj"
prop=
"glcj"
>
<el-input
:readonly=
"readonly"
v-model=
"form.glcj"
></el-input>
<RelSelect
style=
"width: 100%;"
src=
'aqgl/fxyk/fxpc/init/glcj'
:match=
"
{value:'id',label:'name'}" v-model='form.glcj' >
</RelSelect>
<!--
<el-input
:readonly=
"readonly"
v-model=
"form.glcj"
></el-input>
-->
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"拍照选项"
ref=
"pzxx"
prop=
"pzxx"
>
<el-input
:readonly=
"readonly"
v-model=
"form.pzxx"
></el-input>
<RelSelect
style=
"width: 100%;"
src=
'aqgl/fxyk/fxpc/init/pzxx'
:match=
"
{value:'id',label:'name'}" v-model='form.pzxx' >
</RelSelect>
<!--
<el-input
:readonly=
"readonly"
v-model=
"form.pzxx"
></el-input>
-->
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
...
...
src/views/riskPrecontrol/screeningCriteria/index.vue
View file @
ee9ff0b0
...
...
@@ -120,7 +120,9 @@
{
label
:
"分值"
,
prop
:
"fz"
,
fieldType
:
"float"
},
{
label
:
"风险类型"
,
prop
:
"fxlx"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"管控落实后等级"
,
prop
:
"lsdj"
,
fieldType
:
"ftString"
,
width
:
160
},
{
label
:
"管理层级"
,
prop
:
"glcj"
,
fieldType
:
"ftString"
,
width
:
160
},
{
label
:
"管理层级"
,
prop
:
"glcj"
,
fieldType
:
"ftString"
,
width
:
160
,
transform
:{
url
:
'/aqgl/fxyk/fxpc/init/glcj'
,
label
:
'name'
,
value
:
'id'
}},
{
label
:
"拍照选项"
,
prop
:
"pzxx"
,
fieldType
:
"ftString"
,
width
:
160
},
{
label
:
"序号"
,
prop
:
"xh"
,
fieldType
:
"int"
},
{
label
:
"图形编号"
,
prop
:
"txcode"
,
fieldType
:
"ftString"
,
width
:
180
},
...
...
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