Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
BCDH-APP
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
首开风险隐患双控平台
BCDH-APP
Commits
7e679160
Commit
7e679160
authored
Oct 29, 2021
by
王李辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
督办和重大隐患提交页面
parent
78872a16
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
141 additions
and
53 deletions
+141
-53
src/router/index.js
src/router/index.js
+10
-0
src/views/danger/majorDanger/index.vue
src/views/danger/majorDanger/index.vue
+6
-6
src/views/danger/majorDanger/majorSurvey.vue
src/views/danger/majorDanger/majorSurvey.vue
+2
-2
src/views/danger/managerDanger/index.vue
src/views/danger/managerDanger/index.vue
+9
-9
src/views/danger/managerDanger/managerSurvey.vue
src/views/danger/managerDanger/managerSurvey.vue
+0
-2
src/views/danger/standBook/normalDetail.vue
src/views/danger/standBook/normalDetail.vue
+7
-13
src/views/danger/superviseDanger/index.vue
src/views/danger/superviseDanger/index.vue
+19
-21
src/views/danger/superviseDanger/superSurvey.vue
src/views/danger/superviseDanger/superSurvey.vue
+88
-0
No files found.
src/router/index.js
View file @
7e679160
...
...
@@ -377,6 +377,16 @@ const routes = [{
},
component
:
()
=>
import
(
/* webpackChunkName: "SaveWorkbench" */
'
../views/danger/superviseDanger
'
),
},
// 隐患督办批示
{
path
:
'
/super-survey
'
,
name
:
'
super-survey
'
,
meta
:
{
title
:
'
隐患督办
'
,
index
:
1
},
component
:
()
=>
import
(
/* webpackChunkName: "SaveWorkbench" */
'
../views/danger/superviseDanger/superSurvey
'
),
},
// 重大隐患列表
{
path
:
'
/major-danger
'
,
...
...
src/views/danger/majorDanger/index.vue
View file @
7e679160
...
...
@@ -40,7 +40,7 @@
>
详情
</van-button
>
<van-button
round
type=
"info"
@
touchstart=
"goConfirm(item)"
>
确认
</van-button
>
审批
</van-button
>
</div>
...
...
@@ -131,11 +131,11 @@ export default {
// 详情
goDetail
(
data
)
{
console
.
log
(
data
);
this
.
$router
.
push
({
name
:
"
risk-big
-detail
"
,
params
:
{
id
:
data
.
business
Id
}
this
.
$router
.
push
({
name
:
"
normal
-detail
"
,
params
:
{
id
:
data
.
task
Id
}
});
this
.
showIndex
=
null
;
},
...
...
src/views/danger/majorDanger/majorSurvey.vue
View file @
7e679160
...
...
@@ -37,7 +37,7 @@
<van-field
readonly
clickable
name=
"
proId
"
name=
"
level
"
:value=
"thinkLevel"
label=
"认为隐患级别"
placeholder=
"请选择"
...
...
@@ -95,7 +95,7 @@ export default {
disagreeOpinion
:
""
,
thinkLevel
:
''
,
//因为隐患级别
showThinkLevel
:
false
,
columnsThinkLevel
:[]
columnsThinkLevel
:[
"
重大隐患
"
,
"
一般隐患A
"
,
"
一般隐患B
"
,
"
一般隐患C
"
,
]
};
},
...
...
src/views/danger/managerDanger/index.vue
View file @
7e679160
...
...
@@ -16,7 +16,7 @@
<van-row
gutter=
""
>
<van-col
span=
"7"
>
隐患编号:
</van-col>
<van-col
span=
"17"
>
{{
item
.
processInstance
Id
}}
</van-col>
<van-col
span=
"17"
>
{{
item
.
hdProject
Id
}}
</van-col>
</van-row>
<van-row
gutter=
""
>
<van-col
span=
"7"
>
隐患项目名称:
</van-col>
...
...
@@ -39,7 +39,7 @@
>
详情
</van-button
>
<van-button
round
type=
"info"
@
touchstart=
"goConfirm(item)"
>
确认
</van-button
>
批示
</van-button
>
</div>
</van-overlay>
...
...
@@ -95,10 +95,10 @@ export default {
loadingType
:
"
spinner
"
,
duration
:
0
});
superviseSABList
(
"
/supervise/
SAB
list
"
)
superviseSABList
(
"
/supervise/list
"
)
.
then
(
res
=>
{
this
.
$toast
.
clear
();
this
.
messageList
=
res
.
rows
this
.
messageList
=
res
.
data
})
.
catch
(()
=>
{
...
...
@@ -129,11 +129,11 @@ export default {
// 详情
goDetail
(
data
)
{
console
.
log
(
data
);
this
.
$router
.
push
({
name
:
"
risk-big
-detail
"
,
params
:
{
id
:
data
.
businessI
d
}
this
.
$router
.
push
({
name
:
"
normal
-detail
"
,
params
:
{
id
:
data
.
pi
d
}
});
this
.
showIndex
=
null
;
},
...
...
src/views/danger/managerDanger/managerSurvey.vue
View file @
7e679160
...
...
@@ -7,7 +7,6 @@
:scroll-to-error=
"true"
validate-trigger=
"onSubmit"
>
<div
class=
"agree"
v-if=
"radio == 1"
>
<van-field
v-model=
"opinion"
label=
"批示内容"
...
...
@@ -16,7 +15,6 @@
type=
"textarea"
placeholder=
"请输入"
/>
</div>
<div
style=
"margin: 16px;"
>
<van-button
round
block
type=
"info"
native-type=
"submit"
>
保存
</van-button
...
...
src/views/danger/standBook/normalDetail.vue
View file @
7e679160
...
...
@@ -265,7 +265,7 @@
<div
class=
"step-wrap"
>
<van-row>
<van-col
span=
"24"
><div
class=
"info-title"
>
日志
信息
</div></van-col
><div
class=
"info-title"
>
督办
信息
</div></van-col
>
</van-row>
<van-row>
...
...
@@ -274,17 +274,11 @@
>
<van-col
span=
"19"
>
{{
item
.
userName
}}
</van-col>
</van-row>
<van-row>
<van-col
span=
"5"
><span
class=
"field-title"
>
节点:
</span></van-col
>
<van-col
span=
"19"
>
{{
item
.
logNode
}}
</van-col>
</van-row>
<van-row>
<van-row>
<van-col
span=
"5"
><span
class=
"field-title"
>
结果
:
</span></van-col
><span
class=
"field-title"
>
时间
:
</span></van-col
>
<van-col
span=
"19"
>
{{
item
.
logResult
}}
</van-col>
<van-col
span=
"19"
>
{{
item
.
createTime
}}
</van-col>
</van-row>
<van-row>
<van-col
span=
"5"
...
...
@@ -292,11 +286,11 @@
>
<van-col
span=
"19"
>
{{
item
.
deptName
}}
</van-col>
</van-row>
<van-row>
<van-row>
<van-col
span=
"5"
><span
class=
"field-title"
>
时间
:
</span></van-col
><span
class=
"field-title"
>
结果
:
</span></van-col
>
<van-col
span=
"19"
>
{{
item
.
createTime
}}
</van-col>
<van-col
span=
"19"
>
{{
item
.
instructionsContent
}}
</van-col>
</van-row>
</div>
</van-step>
...
...
src/views/danger/superviseDanger/index.vue
View file @
7e679160
...
...
@@ -37,6 +37,9 @@
<van-button
round
type=
"primary"
@
touchstart=
"goDetail(item)"
>
详情
</van-button
>
<van-button
round
type=
"info"
@
touchstart=
"goConfirm(item)"
>
批示
</van-button
>
</div>
</van-overlay>
</van-cell-group>
...
...
@@ -84,23 +87,7 @@ export default {
methods
:
{
getList
()
{
/*接口对接3 START*/
// 例子:
this
.
$toast
.
loading
({
message
:
"
加载中...
"
,
forbidClick
:
true
,
loadingType
:
"
spinner
"
,
duration
:
0
});
superviseList
(
"
/supervise/list
"
)
.
then
(
res
=>
{
this
.
$toast
.
clear
();
this
.
messageList
=
res
.
data
})
.
catch
(()
=>
{
this
.
$toast
.
clear
();
this
.
$toast
.
fail
(
"
加载失败,请稍后再试
"
);
});
/*接口对接3 END*/
},
onSearch
(
val
)
{
...
...
@@ -124,15 +111,26 @@ export default {
// 详情
goDetail
(
data
)
{
console
.
log
(
data
);
this
.
$router
.
push
({
name
:
"
normal-detail
"
,
params
:{
id
:
data
.
pid
}
});
this
.
showIndex
=
null
;
},
// 确认
goConfirm
(
data
)
{
console
.
log
(
data
);
this
.
$router
.
push
({
name
:
"
risk-big-detail
"
,
params
:
{
id
:
data
.
business
Id
name
:
"
super-survey
"
,
params
:{
"
taskId
"
:
data
.
task
Id
}
});
this
.
showIndex
=
null
;
}
,
}
}
};
</
script
>
...
...
src/views/danger/superviseDanger/superSurvey.vue
0 → 100644
View file @
7e679160
<
template
>
<div>
<LHeader
:text=
"text"
></LHeader>
<van-form
@
submit=
"onSubmit"
:show-error=
'false'
:scroll-to-error=
"true"
validate-trigger=
"onSubmit"
>
<div
class=
"agree"
v-if=
"radio == 1"
>
<van-field
v-model=
"opinion"
label=
"批示内容"
name=
"reviewDetails"
rows=
"3"
type=
"textarea"
placeholder=
"请输入"
/>
</div>
<div
style=
"margin: 16px;"
>
<van-button
round
block
type=
"info"
native-type=
"submit"
>
保存
</van-button
>
</div>
</van-form>
<div
style=
"margin:10px 16px 0px;padding-bottom:16px"
>
<van-button
round
block
type=
"warning"
@
click.native=
"cancel"
>
取消
</van-button
>
</div>
</div>
</
template
>
<
script
>
import
LHeader
from
"
@/components/header.vue
"
;
import
{
dangerReviewAdd
}
from
"
@/service/danger
"
;
export
default
{
components
:
{
LHeader
},
data
()
{
return
{
taskId
:
""
,
text
:
"
隐患督办批示
"
,
opinion
:
""
,
};
},
created
()
{
this
.
taskId
=
this
.
$route
.
params
.
taskId
;
},
methods
:
{
onSubmit
(
values
)
{
console
.
log
(
"
submit
"
,
values
);
this
.
$toast
.
loading
({
message
:
"
提交中...
"
,
forbidClick
:
true
,
loadingType
:
"
spinner
"
,
duration
:
0
});
// let formdata = new FormData()
// formdata.append('reviewResult', this.radio)
// formdata.append('reviewDetails', values.reviewDetails)
// dangerReviewAdd(`/review/add1/${this.taskId}`,formdata)
// .then(res => {
// this.$toast.clear();
// this.$toast.success({
// message: "提交成功",
// duration: 2000
// });
// history.go(-1);
// })
// .catch(() => {
// this.$toast.clear();
// this.$toast.fail("提交失败,请稍后再试");
// });
},
cancel
()
{
this
.
$router
.
go
(
-
1
);
}
}
};
</
script
>
<
style
lang=
"less"
scoped
>
/* @import url(); 引入css类 */
</
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