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
f2d5ea73
Commit
f2d5ea73
authored
Dec 07, 2022
by
zhoumaotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
应急管理模块
parent
1b327d6f
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
350 additions
and
63 deletions
+350
-63
planManage.js
src/api/contingency/planManage.js
+19
-6
index.js
src/router/index.js
+51
-30
edit.vue
src/views/contingency/contingencyManager/edit.vue
+0
-0
index.vue
src/views/contingency/contingencyManager/index.vue
+1
-1
edit.vue
src/views/contingency/contingencyplan/edit.vue
+31
-13
index.vue
src/views/contingency/contingencyplan/index.vue
+15
-13
edit.vue
src/views/contingency/contingencystudy/edit.vue
+117
-0
index.vue
src/views/contingency/contingencystudy/index.vue
+116
-0
No files found.
src/api/
daily/yjyafj
.js
→
src/api/
contingency/planManage
.js
View file @
f2d5ea73
import
request
from
'common/src/utils/request'
/*
查询
*/
/*
query
*/
export
function
doQuery
(
query
)
{
return
request
({
url
:
'/aqgl/rcgl/yjya
fj
/query'
,
url
:
'/aqgl/rcgl/yjya/query'
,
method
:
'post'
,
data
:
query
||
{}
})
}
/*
更新 */
/*更新 */
export
function
doUpdate
(
query
)
{
return
request
({
url
:
'/aqgl/rcgl/yjya
fj
/update'
,
url
:
'/aqgl/rcgl/yjya/update'
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
doAdd
(
query
)
{
return
request
({
url
:
'/aqgl/rcgl/yjya
fj
/add'
,
url
:
'/aqgl/rcgl/yjya/add'
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
doDelete
(
query
)
{
return
request
({
url
:
'/aqgl/rcgl/yjya
fj
/delete'
,
url
:
'/aqgl/rcgl/yjya/delete'
,
method
:
'post'
,
data
:
query
||
{}
})
}
/**
* 分级
* @param query
* @returns {*}
*/
export
function
doInitGlcj
(
query
)
{
return
request
({
url
:
'/aqgl/rcgl/yjya/init/glcj'
,
method
:
'post'
,
data
:
query
||
{}
})
}
...
...
src/router/index.js
View file @
f2d5ea73
...
...
@@ -490,43 +490,65 @@ export const powerRoutes=[
}
]
},
/* 应急管理*/
{
path
:
'/contingency'
,
component
:
'Layout'
,
hidden
:
false
,
alwaysShow
:
true
,
redirect
:
'contingencyManager'
,
meta
:
{
title
:
"应急管理"
,
icon
:
"fa-cog"
,
noCache
:
false
,
link
:
null
,
mkid
:
904100000
},
children
:
[
{
component
:
'contingency/contingencyManager/index'
,
hidden
:
false
,
meta
:{
"title"
:
"应急预案管理"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
904100200
,
},
name
:
'contingencyManager'
,
path
:
"contingencyManager"
},
{
component
:
'contingency/contingencyplan/index'
,
hidden
:
false
,
meta
:{
"title"
:
"应急演练计划"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
904100400
,
},
name
:
'contingencyplan'
,
path
:
"contingencyplan"
},
{
component
:
'contingency/contingencystudy/index'
,
hidden
:
false
,
meta
:{
"title"
:
"应急演练"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
904100600
,
},
name
:
'contingencystudy'
,
path
:
"contingencystudy"
}
]
},
/* 日差管理*/
{
path
:
'/daily'
,
component
:
'Layout'
,
hidden
:
false
,
alwaysShow
:
true
,
redirect
:
'
planManage
'
,
redirect
:
'
zsfl
'
,
meta
:
{
title
:
"日常管理"
,
icon
:
"fa-cog"
,
noCache
:
false
,
link
:
null
,
mkid
:
905000000
},
children
:
[
// 分级暂时统一由后台设置
// {
// commonComponent:'planClassification',
// component:() => import( "@/views/daily/planClassification/index"),
// hidden:false,
// meta:{
// "title": "应急预案分级",
// "icon": "",
// "noCache": false,
// "link": null,
// "mkid":1010013009,
// },
// name:'planClassification',
// path:"planClassification"
// },
{
component
:
'daily/planManage/index'
,
hidden
:
false
,
meta
:{
"title"
:
"应急预案管理"
,
"icon"
:
""
,
"noCache"
:
false
,
"link"
:
null
,
"mkid"
:
905000400
,
},
name
:
'planManage'
,
path
:
"planManage"
},
{
component
:
'daily/zsfl/index'
,
hidden
:
false
,
...
...
@@ -740,7 +762,6 @@ export const powerRoutes=[
]
},
/* 培训管理*/
/* 三违管理*/
{
path
:
'/train'
,
component
:
'Layout'
,
...
...
src/views/
daily/planManage
/edit.vue
→
src/views/
contingency/contingencyManager
/edit.vue
View file @
f2d5ea73
File moved
src/views/
daily/planManage
/index.vue
→
src/views/
contingency/contingencyManager
/index.vue
View file @
f2d5ea73
...
...
@@ -46,7 +46,7 @@
doUpdate
,
doDelete
,
doInitGlcj
}
from
'@/api/
dail
y/planManage.js'
;
}
from
'@/api/
contingenc
y/planManage.js'
;
/* edit页面*/
import
Edit
from
'./edit'
import
{
...
...
src/views/
daily/planClassificatio
n/edit.vue
→
src/views/
contingency/contingencypla
n/edit.vue
View file @
f2d5ea73
...
...
@@ -3,25 +3,31 @@
<!-- 填写表单内容,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=
"cod
e"
>
<el-input
:readonly=
"readonly"
v-model=
"form.
cod
e"
></el-input>
<el-col
:span=
"
12
"
>
<el-form-item
label=
"
名称"
ref=
"name"
prop=
"nam
e"
>
<el-input
:readonly=
"readonly"
v-model=
"form.
nam
e"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"分级"
ref=
"fjid"
prop=
"fjid"
>
<RelSelect
:readonly=
"readonly"
style=
"width: 100%;"
src=
'/aqgl/rcgl/yjya/init/glcj'
filterable
clearable
:match=
"
{value:'id',label:'name'}" v-model='form.fjid' >
</RelSelect>
</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
label=
"
内容"
ref=
"content"
prop=
"content
"
>
<el-input
:readonly=
"readonly"
v-model=
"form.
content
"
></el-input>
</el-form-item>
</el-col>
</el-row>
<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-inpu
t>
<el-form-item
label=
"
部门"
ref=
"bmid"
prop=
"bmid
"
>
<RelSelect
:readonly=
"readonly"
style=
"width: 100%;"
src=
'/kzzx/bm/query'
filterable
clearable
:match=
"
{value:'id',label:'bmmc'}" v-model='form.bmid' >
</RelSelec
t>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
...
...
@@ -30,6 +36,7 @@
</el-form-item>
</el-col>
</el-row>
</el-form>
</RelDialog>
</
template
>
...
...
@@ -42,7 +49,7 @@
},
/* 组件名称*/
name
:
"aqgl
Yjyafj
Edit"
,
name
:
"aqgl
RcglYjya
Edit"
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data
()
{
...
...
@@ -57,10 +64,14 @@
form
:
{
//ID
id
:
''
,
//编码
code
:
''
,
//名称
name
:
''
,
//内容
content
:
''
,
//部门ID
bmid
:
''
,
//分级ID
fjid
:
''
,
//序号
xh
:
''
,
//备注
...
...
@@ -82,7 +93,14 @@
},
/* form提交时的规则,具体规则参考官网*/
rules
:
{
roleid
:
[{
required
:
true
,
trigger
:
'blur'
},
],
rolename
:
[{
required
:
true
,
trigger
:
'blur'
},
]
}
}
},
...
...
src/views/
daily/planClassificatio
n/index.vue
→
src/views/
contingency/contingencypla
n/index.vue
View file @
f2d5ea73
...
...
@@ -7,7 +7,7 @@
<el-col
:span=
"12"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
名称:
</span>
<el-input
v-model=
"queryParams.
info
"
></el-input>
<el-input
v-model=
"queryParams.
name
"
></el-input>
</div>
</el-col>
</el-row>
...
...
@@ -44,8 +44,9 @@
doQuery
,
doAdd
,
doUpdate
,
doDelete
}
from
'@/api/daily/yjyafj.js'
;
doDelete
,
doInitGlcj
}
from
'@/api/contingency/planManage.js'
;
/* edit页面*/
import
Edit
from
'./edit'
import
{
...
...
@@ -53,7 +54,7 @@
}
from
'common'
export
default
{
mixins
:
[
tableMixin
],
name
:
'aqgl
Yjyafj
'
,
name
:
'aqgl
RcglYjya
'
,
/* 初始额外赋值*/
async
mounted
()
{
...
...
@@ -67,21 +68,22 @@
type
:
''
,
DialogTitle
:
''
,
/* 基础url*/
baseUrl
:
'/aqgl/rcgl/yjya
fj
'
,
baseUrl
:
'/aqgl/rcgl/yjya'
,
/* 查询参数*/
queryParams
:
{
info
:
''
name
:
''
},
/* 表格标题对应参数*/
tableTitle
:
[
{
label
:
"编码"
,
prop
:
"code"
,
fieldType
:
"ftString"
,
width
:
120
},
{
label
:
"名称"
,
prop
:
"name"
,
fieldType
:
"ftString"
,
width
:
180
},
{
label
:
"序号"
,
prop
:
"xh"
,
fieldType
:
"int"
,
width
:
80
},
{
label
:
"备注"
,
prop
:
"bz"
,
fieldType
:
"ftString"
,
width
:
260
},
{
label
:
"名称"
,
prop
:
"name"
,
fieldType
:
"ftString"
,
width
:
160
},
{
label
:
"内容"
,
prop
:
"content"
,
fieldType
:
"ftString"
,
width
:
180
},
{
label
:
"部门"
,
prop
:
"bmName"
,
fieldType
:
"ftString"
,
width
:
180
},
// {label: "分级ID", prop: "fjid", fieldType: "ftString",width:192},
{
label
:
"分级"
,
prop
:
"fjName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"序号"
,
prop
:
"xh"
,
fieldType
:
"int"
},
{
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
:
"whsj"
,
fieldType
:
"ftDateTime"
}
]
}
},
...
...
src/views/contingency/contingencystudy/edit.vue
0 → 100644
View file @
f2d5ea73
<
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=
"12"
>
<el-form-item
label=
"名称"
ref=
"name"
prop=
"name"
>
<el-input
:readonly=
"readonly"
v-model=
"form.name"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"分级"
ref=
"fjid"
prop=
"fjid"
>
<RelSelect
:readonly=
"readonly"
style=
"width: 100%;"
src=
'/aqgl/rcgl/yjya/init/glcj'
filterable
clearable
:match=
"
{value:'id',label:'name'}" v-model='form.fjid' >
</RelSelect>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"内容"
ref=
"content"
prop=
"content"
>
<el-input
:readonly=
"readonly"
v-model=
"form.content"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"部门"
ref=
"bmid"
prop=
"bmid"
>
<RelSelect
:readonly=
"readonly"
style=
"width: 100%;"
src=
'/kzzx/bm/query'
filterable
clearable
:match=
"
{value:'id',label:'bmmc'}" v-model='form.bmid' >
</RelSelect>
</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
:
"aqglRcglYjyaEdit"
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data
()
{
return
{
/* 额外初始化,根据需求*/
systemType
:
[],
bmList
:
[],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
//ID
id
:
''
,
//名称
name
:
''
,
//内容
content
:
''
,
//部门ID
bmid
:
''
,
//分级ID
fjid
:
''
,
//序号
xh
:
''
,
//备注
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/contingency/contingencystudy/index.vue
0 → 100644
View file @
f2d5ea73
<
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.name"
></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
,
doInitGlcj
}
from
'@/api/contingency/planManage.js'
;
/* edit页面*/
import
Edit
from
'./edit'
import
{
tableMixin
}
from
'common'
export
default
{
mixins
:
[
tableMixin
],
name
:
'aqglRcglYjya'
,
/* 初始额外赋值*/
async
mounted
()
{
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
data
()
{
return
{
/*需要的额外参数 */
showDialog
:
false
,
DialogName
:
''
,
type
:
''
,
DialogTitle
:
''
,
/* 基础url*/
baseUrl
:
'/aqgl/rcgl/yjya'
,
/* 查询参数*/
queryParams
:
{
name
:
''
},
/* 表格标题对应参数*/
tableTitle
:
[
{
label
:
"名称"
,
prop
:
"name"
,
fieldType
:
"ftString"
,
width
:
160
},
{
label
:
"内容"
,
prop
:
"content"
,
fieldType
:
"ftString"
,
width
:
180
},
{
label
:
"部门"
,
prop
:
"bmName"
,
fieldType
:
"ftString"
,
width
:
180
},
// {label: "分级ID", prop: "fjid", fieldType: "ftString",width:192},
{
label
:
"分级"
,
prop
:
"fjName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"序号"
,
prop
:
"xh"
,
fieldType
:
"int"
},
{
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