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
eb127e56
Commit
eb127e56
authored
Jan 07, 2023
by
dingyoujian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
三违
parent
02660b01
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
1265 additions
and
376 deletions
+1265
-376
planManage.js
src/api/contingency/planManage.js
+7
-2
index.vue
src/views/contingency/contingencyManager/index.vue
+268
-101
lessEdit.vue
src/views/contingency/contingencyManager/lessEdit.vue
+62
-0
edit.vue
src/views/contingency/contingencystudy/edit.vue
+158
-164
index.vue
src/views/contingency/contingencystudy/index.vue
+145
-109
report.vue
src/views/contingency/contingencystudy/report.vue
+134
-0
reportEdit.vue
src/views/contingency/contingencystudy/reportEdit.vue
+183
-0
edit.vue
src/views/contingency/contingencystudy1/edit.vue
+183
-0
index.vue
src/views/contingency/contingencystudy1/index.vue
+125
-0
No files found.
src/api/contingency/planManage.js
View file @
eb127e56
...
...
@@ -45,7 +45,12 @@ export function doInitGlcj(query) {
})
}
export
function
doQuerytree
(
query
)
{
return
request
({
url
:
'/aqgl/yjgl/yjya/query/tree'
,
method
:
'post'
,
data
:
query
||
{}
})
}
src/views/contingency/contingencyManager/index.vue
View file @
eb127e56
<
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>
<!-- 额外按钮-->
<!-- 表头设置 -->
<div
style=
"display: flex;"
>
<el-dialog
:fullscreen=
'true'
append-to-body
:visible
.
sync=
"show"
width=
"100%"
>
<div
v-if=
"show"
style=
"height: 85vh;width: 100%"
>
<iframe
v-if=
"showType=='pdf'"
:src=
"url"
width=
"100%"
height=
"100%"
border=
"0"
></iframe>
<img
v-if=
"['gif','jpg','jpeg','png','bmp'].indexOf(showType)!=-1"
:src=
"url"
width=
"100%"
height=
"100%"
border=
"0"
>
</div>
</el-dialog>
<div
id=
'approvefileAdd'
style=
"display: none;"
>
<input
@
change=
'beginUpload'
id=
'aqglfilesonadd'
ref=
"upload"
type=
"file"
style=
"display: none;"
>
</div>
<div
class=
"min_full"
style=
"width: 200px;border-right: 0px;"
>
<TreeBase
:dgtype=
'3'
:app=
'this'
@
selected=
'selectedTree'
></TreeBase>
</div>
<div
class=
"min_full"
style=
"overflow: auto;width: calc(100% - 200px)"
>
<div
class=
"min_full"
style=
"calc(60vh - 42px)"
>
<!-- 查询条件-->
<div
class=
"search"
v-condition
>
<SearchButton
:app=
'app'
></SearchButton>
<el-row
:gutter=
"20"
class=
"search-row-1"
>
<!-- 权限--
>
</el-row
>
<!-- 表格--
>
<div
class=
"tablePagers"
>
<TablePager
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
@
getRow=
'getRow'
>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
文档标题:
</span
>
<el-input
v-model=
"queryParams.name"
></el-input
>
</div>
</el-col
>
</TablePager>
</div>
</div>
</
template
>
</el-row>
</div>
<!-- 按钮操作-->
<el-row
class=
"tool-bar"
>
<PrintButton
:app=
'this'
></PrintButton>
<EditButton
ref=
"add"
:app=
'this'
></EditButton>
<!--
<ViewButton
ref=
"view"
:app=
'this'
></ViewButton>
<CopyButton
ref=
"copy"
:app=
'this'
></CopyButton>
<FieldButton
:app=
'this'
></FieldButton>
<ExcelButton
:app=
'this'
></ExcelButton>
-->
<!--
<AttachFileButton
:app=
'this'
></AttachFileButton>
-->
<el-button
@
click=
"upload"
size=
'mini'
type=
"primary"
>
新增
</el-button>
</el-row>
<!-- 表格-->
<div
class=
"tablePagers"
>
<TablePager
v-loading=
'isupLoad'
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'this'
:query=
'query'
@
selectItem=
'selectItem'
@
getRow=
'getRow'
>
<template
slot=
"tabCustom"
>
<el-table-column
label=
"附件操作"
width=
"160"
header-align=
"center"
fixed=
"right"
>
<template
slot-scope=
"scope"
>
<div
style=
"width: 100%;display: flex;"
>
<el-button
style=
"text-align: center;color: #3399ff;width: 33.3%;"
@
click
.
native
.
prevent=
"preview(scope.row)"
type=
"text"
size=
"small"
>
<i
class=
"el-icon-view"
></i>
预览
</el-button>
<el-button
v-show=
"scope.row.fileType!='pdf'"
style=
"text-align: center;color: #3399ff;width: 33.3%;"
@
click
.
native
.
prevent=
"downLoad(scope.row)"
type=
"text"
size=
"small"
>
<i
class=
"el-icon-download"
></i>
下载
</el-button>
<el-button
style=
"text-align: center;color: #3399ff;width: 33.3%;"
@
click
.
native
.
prevent=
"upload('update',scope.row)"
type=
"text"
size=
"small"
>
<i
class=
"el-icon-upload2"
></i>
更新
</el-button>
</div>
</
template
>
</el-table-column>
</template>
</TablePager>
</div>
</div>
<!-- <MainIndex :vMain='this' ref="mainIndex" ></MainIndex>
<LessIndex :vMain='this' ref="lessIndex" ></LessIndex> -->
</div>
</div>
</template>
<
script
>
/* 引入需要的接口*/
import
{
doQuery
,
doAdd
,
doUpdate
,
doDelete
,
doInitGlcj
}
from
'@/api/contingency/planManage.js'
;
/* edit页面*/
import
Edit
from
'./edit'
import
{
doQuery
,
doDelete
,
doUpdate
,
doQuerytree
}
from
"@/api/contingency/planManage.js"
;
import
{
tableMixin
}
from
'common'
export
default
{
mixins
:
[
tableMixin
],
name
:
'aqglRcglYjya'
,
autoAttach
,
autoAttachDownload
,
deleteAttachDownload
,
uploadAttachDownload
,
aqglUploadUpdate
}
from
"common/src/api/system/dmgSystem.js"
;
import
Edit
from
'./lessEdit.vue'
import
{
tableMixin
}
from
'common'
// import MainIndex from './mainIndex.vue'
// import LessIndex from './lessIndex.vue'
/* 初始额外赋值*/
async
mounted
()
{
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
data
()
{
return
{
/*需要的额外参数 */
showDialog
:
false
,
DialogName
:
''
,
type
:
''
,
DialogTitle
:
''
,
/* 基础url*/
baseUrl
:
'/aqgl/yjgl/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
:
{
export
default
{
mixins
:
[
tableMixin
],
name
:
'securityDocumentManagement'
,
components
:{
// MainIndex,
// LessIndex,
Edit
},
data
()
{
return
{
show
:
false
,
isupLoad
:
false
,
treeTitle
:
'目录'
,
treeDefaultProps
:
{
children
:
'children'
,
label
:
'bmmc'
},
// 额外
typeMap
:
[],
systemType
:
[],
baseUrl
:
'aqgl/yjgl/yjya'
,
/* 查询参数*/
queryParams
:
{
mlid
:
''
,
name
:
''
,
gsid
:
''
},
treeQueryParams
:{
/* 基础查询*/
query
:
doQuery
,
/* 基础增*/
apiAdd
:
doAdd
,
/* 基础更新*/
apiUpdate
:
doUpdate
,
/* 删除操作*/
apiDelete
:
doDelete
,
/* 初始化赋值操作*/
init
()
{
},
/* 表格标题对应参数*/
tableTitle
:
[
{
prop
:
'name'
,
label
:
'文档名称'
,
width
:
'340'
},
{
prop
:
'fileVersion'
,
label
:
'版本'
,
width
:
'60'
},
{
prop
:
'createTime'
,
label
:
'上传时间'
,
fieldType
:
"ftDateTime"
},
{
prop
:
'updUserName'
,
label
:
'上传人'
,
width
:
"80"
},
{
prop
:
'fileSize'
,
label
:
'大小'
,
width
:
'70'
,
formatter
:
function
(
a
,
b
,
bytes
){
if
(
!
bytes
){
return
'未上传文件'
}
if
(
bytes
===
0
)
return
'0 B'
;
var
k
=
1000
,
// or 1024
sizes
=
[
'B'
,
'KB'
,
'MB'
,
'GB'
,
'TB'
,
'PB'
,
'EB'
,
'ZB'
,
'YB'
],
i
=
Math
.
floor
(
Math
.
log
(
bytes
)
/
Math
.
log
(
k
));
}
},
components
:
{
Edit
,
}
return
(
bytes
/
Math
.
pow
(
k
,
i
)).
toPrecision
(
3
)
+
' '
+
sizes
[
i
];
}
}
]
}
},
methods
:{
/* 预览 */
preview
(
row
){
console
.
log
(
row
)
this
.
showType
=
row
.
fileType
let
canShow
=
[
'gif'
,
'jpg'
,
'jpeg'
,
'png'
,
'bmp'
,
'pdf'
].
indexOf
(
row
.
fileType
)
==-
1
if
(
canShow
){
this
.
$warning
(
'该文件不支持预览,请直接下载'
)
return
}
autoAttachDownload
({},
this
.
baseUrl
,
row
.
fileId
).
then
(
res
=>
{
let
blob
=
new
Blob
([
res
],
{
type
:
'application/'
+
row
.
fileType
+
';charset=UTF-8'
,
});
this
.
url
=
URL
.
createObjectURL
(
blob
)
this
.
show
=
true
})
},
creatFile
(){
/* 清除老节点 */
$
(
'#yjyaFileAdd'
).
find
(
'input'
).
remove
()
let
lineEl
=
document
.
createElement
(
'input'
);
let
$lineEl
=
$
(
lineEl
)
$lineEl
.
attr
(
'type'
,
'file'
)
$lineEl
.
attr
(
'ref'
,
'upload'
)
$lineEl
.
attr
(
'id'
,
'aqglfilesonadd'
)
$lineEl
.
hide
()
$lineEl
.
change
(()
=>
{
this
.
beginUpload
()
})
// $lineEl
$
(
'#yjyaFileAdd'
).
append
(
$lineEl
)
},
beginUpload
(){
this
.
isupLoad
=
true
let
uploadDom
=
document
.
getElementById
(
'aqglfilesonadd'
)
var
filec
=
uploadDom
.
files
[
0
];
var
name
=
filec
.
name
var
type
=
filec
.
type
let
updateId
=
$
(
uploadDom
).
attr
(
'inputId'
)
updateId
&&
$
(
uploadDom
).
attr
(
'inputId'
,
null
)
if
(
filec
)
{
let
formData
=
new
FormData
();
formData
.
append
(
'file'
,
filec
)
formData
.
append
(
'type'
,
type
)
formData
.
append
(
'folder'
,
''
)
formData
.
append
(
'name'
,
name
)
if
(
updateId
){
formData
.
append
(
'id'
,
updateId
)
this
.
creatFile
()
aqglUploadUpdate
(
formData
).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'更新成功'
)
this
.
isupLoad
=
false
this
.
$refs
[
'TablePager'
].
reLoad
()
}
}).
catch
(
e
=>
{
console
.
error
(
e
)
this
.
isupLoad
=
false
})
return
}
formData
.
append
(
'groupid'
,
this
.
queryParams
.
gsid
)
this
.
creatFile
()
uploadAttachDownload
(
formData
,
this
.
baseUrl
).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'添加成功'
)
this
.
isupLoad
=
false
this
.
$refs
[
'TablePager'
].
reLoad
()
}
}).
catch
(
e
=>
{
console
.
error
(
e
)
this
.
isupLoad
=
false
})
}
},
upload
(){
let
$upload
=
$
(
'#aqglfilesonadd'
)
arguments
[
0
]
==
'update'
&&
$upload
.
attr
(
'inputId'
,
arguments
[
1
].
fileId
)
&&
$upload
.
click
()
if
(
arguments
[
0
]
==
'update'
){
return
}
else
if
(
this
.
queryParams
.
gsid
){
$upload
.
click
()
/* 上传*/
}
else
{
this
.
$warning
(
'请选中公司操作操作'
);
}
},
down
(
data
,
type
,
title
)
{
let
a
=
document
.
createElement
(
'a'
);
a
.
download
=
title
;
a
.
style
.
display
=
'none'
;
let
blob
=
new
Blob
([
data
],
{
type
:
'application/'
+
type
+
';charset=UTF-8'
,
});
a
.
href
=
URL
.
createObjectURL
(
blob
);
document
.
body
.
appendChild
(
a
);
a
.
click
();
document
.
body
.
removeChild
(
a
);
},
downLoad
(
row
){
let
title
=
row
.
fileName
autoAttachDownload
({},
this
.
baseUrl
,
row
.
fileId
).
then
(
res
=>
{
this
.
down
(
res
,
row
.
type
,
title
)
})
},
selectedTree
(
val
){
if
(
val
.
type
==
'ML'
){
this
.
queryParams
.
gsid
=
val
.
gsid
this
.
queryParams
.
mlid
=
val
.
id
}
else
{
this
.
queryParams
.
gsid
=
val
.
id
this
.
queryParams
.
mlid
=
''
}
}
</
script
>
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
/* 基础查询*/
query
:
doQuery
,
apiDelete
:
doDelete
,
apiUpdate
:
doUpdate
,
apiTreeQuery
:
doQuerytree
,
}
<
style
scoped
>
}
</
script
>
<
style
>
</
style
>
src/views/contingency/contingencyManager/lessEdit.vue
0 → 100644
View file @
eb127e56
<
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=
"name"
prop=
"name"
>
<el-input
:readonly=
"readonly"
v-model=
"form.name"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</RelDialog>
</
template
>
<
script
>
import
{
editMixin
}
from
'common'
export
default
{
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
mounted
()
{
// this.form.mlid=this.app.queryParams.mlid
this
.
form
.
gsid
=
this
.
app
.
queryParams
.
gsid
},
/* 组件名称*/
name
:
'appVersionEdit'
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data
()
{
return
{
/* 额外初始化,根据需求*/
systemType
:
[],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
mlid
:
''
,
gsid
:
''
,
name
:
''
,
bz
:
""
,
// fbrq:new Date().getTime(),
// ssrq:new Date().getTime(),
mlid
:
''
},
/* form提交时的规则,具体规则参考官网*/
rules
:
{
gsid
:
[{
required
:
true
,
},
],
}
}
},
methods
:
{
/* 重写方法,this.app来调用index页面定义的api*/
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
</
style
>
src/views/contingency/contingencystudy/edit.vue
View file @
eb127e56
<
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=
"6"
>
<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=
"6"
>
<el-form-item
label=
"分公司ID"
ref=
"gsid"
prop=
"gsid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.gsid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"演练组织单位ID"
ref=
"yldwid"
prop=
"yldwid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.yldwid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"演练计划ID"
ref=
"yljhid"
prop=
"yljhid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.yljhid"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"6"
>
<el-form-item
label=
"培训人数"
ref=
"pxrs"
prop=
"pxrs"
>
<el-input
:readonly=
"readonly"
v-model=
"form.pxrs"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"演练目标"
ref=
"ylmb"
prop=
"ylmb"
>
<el-input
:readonly=
"readonly"
v-model=
"form.ylmb"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"演练方式"
ref=
"ylfs"
prop=
"ylfs"
>
<el-input
:readonly=
"readonly"
v-model=
"form.ylfs"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"演练时间"
ref=
"ylrq"
prop=
"ylrq"
>
<el-date-picker
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
v-model=
"form.ylrq"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"6"
>
<el-form-item
label=
"演练责任人"
ref=
"ylzrrid"
prop=
"ylzrrid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.ylzrrid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"演练时长"
ref=
"ylsc"
prop=
"ylsc"
>
<el-input
:readonly=
"readonly"
v-model=
"form.ylsc"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"主(协)办单位"
ref=
"zbdwid"
prop=
"zbdwid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.zbdwid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"演练负责人ID"
ref=
"ylfzrid"
prop=
"ylfzrid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.ylfzrid"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"6"
>
<el-form-item
label=
"质量负责人ID"
ref=
"zlfzrid"
prop=
"zlfzrid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.zlfzrid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"估计费用"
ref=
"gjfy"
prop=
"gjfy"
>
<el-input
:readonly=
"readonly"
v-model=
"form.gjfy"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<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=
"6"
>
<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>
<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=
"24"
>
<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=
"zzdw"
prop=
"zzdw"
>
<el-input
:readonly=
"readonly"
v-model=
"form.zzdw"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"24"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"培训人数"
ref=
"pxrs"
prop=
"pxrs"
>
<el-input
:readonly=
"readonly"
v-model=
"form.pxrs"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"24"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"演练目标"
ref=
"ylmb"
prop=
"ylmb"
>
<el-input
type=
'textarea'
:readonly=
"readonly"
v-model=
"form.ylmb"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"24"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"演练方式"
ref=
"ylfs"
prop=
"ylfs"
>
<el-input
:readonly=
"readonly"
v-model=
"form.ylfs"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"演练季度"
ref=
"quarter"
prop=
"quarter"
>
<RelSelect
style=
"width: 100%;"
:readonly=
"readonly"
src=
'aqgl/yjgl/yjyljh/init/quarter'
filterable
clearable
:match=
"
{value:'id',label:'name'}" v-model='form.quarter' >
</RelSelect>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"24"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"演练责任人"
ref=
"ylzrr"
prop=
"ylzrr"
>
<el-input
:readonly=
"readonly"
v-model=
"form.ylzrr"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"演练时长"
ref=
"ylsc"
prop=
"ylsc"
>
<el-input
:readonly=
"readonly"
v-model=
"form.ylsc"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"24"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"主(协)办单位"
ref=
"zbdw"
prop=
"zbdw"
>
<el-input
:readonly=
"readonly"
v-model=
"form.zbdw"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"24"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"目标完成标准"
ref=
"mbwcbz"
prop=
"mbwcbz"
>
<el-input
type=
'textarea'
:readonly=
"readonly"
v-model=
"form.mbwcbz"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"24"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"演练负责人"
ref=
"ylfzr"
prop=
"ylfzr"
>
<el-input
:readonly=
"readonly"
v-model=
"form.ylfzr"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"质量负责人"
ref=
"zlfzr"
prop=
"zlfzr"
>
<el-input
:readonly=
"readonly"
v-model=
"form.zlfzr"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"24"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"估计费用"
ref=
"gjfy"
prop=
"gjfy"
>
<el-input
:readonly=
"readonly"
v-model=
"form.gjfy"
></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
:
"aqglYjylEdit"
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
import
{
editMixin
}
from
'common'
export
default
{
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
mounted
()
{
data
()
{
return
{
},
/* 组件名称*/
name
:
"aqglYjyljhEdit"
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
/* 额外初始化,根据需求*/
systemType
:
[],
data
()
{
return
{
bmList
:
[],
/* 额外初始化,根据需求*/
systemType
:
[],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
//ID
id
:
''
,
//演练名称
name
:
''
,
//分公司ID
gsid
:
''
,
//演练组织单位ID
yldwid
:
''
,
//演练计划ID
yljhid
:
''
,
//培训人数
pxrs
:
''
,
//演练目标
ylmb
:
''
,
//演练方式
ylfs
:
''
,
//演练时间
ylrq
:
new
Date
().
getTime
(),
//演练责任人
ylzrrid
:
''
,
//演练时长
ylsc
:
''
,
//主(协)办单位
zbdwid
:
''
,
//演练负责人ID
ylfzrid
:
''
,
//质量负责人ID
zlfzrid
:
''
,
//估计费用
gjfy
:
''
,
//备注
bz
:
''
,
//维护人编码
whrid
:
''
,
//维护人
whr
:
''
,
//维护时间
whsj
:
new
Date
().
getTime
(),
//创建人编码
cjrid
:
''
,
//创建人
cjr
:
''
,
//创建时间
cjsj
:
new
Date
().
getTime
(),
//系统版本
sysversion
:
''
,
},
/* form提交时的规则,具体规则参考官网*/
rules
:
{
bmList
:
[],
}
}
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
//ID
id
:
''
,
//演练名称
name
:
''
,
//演练组织单位
zzdw
:
''
,
//培训人数
pxrs
:
''
,
//演练目标
ylmb
:
''
,
//演练方式
ylfs
:
''
,
//年度
year
:
''
,
//季度
quarter
:
''
,
//演练责任人
ylzrr
:
''
,
//演练时长
ylsc
:
''
,
//主(协)办单位
zbdw
:
''
,
//目标完成标准
mbwcbz
:
''
,
//演练负责人
ylfzr
:
''
,
//质量负责人
zlfzr
:
''
,
//估计费用
gjfy
:
''
,
//备注
bz
:
''
,
//维护人编码
whrid
:
''
,
//维护人
whr
:
''
,
//维护时间
whsj
:
new
Date
().
getTime
(),
//创建人编码
cjrid
:
''
,
//创建人
cjr
:
''
,
//创建时间
cjsj
:
new
Date
().
getTime
(),
//系统版本
sysversion
:
''
,
},
methods
:
{
/* form提交时的规则,具体规则参考官网*/
rules
:
{
}
}
},
methods
:
{
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
...
...
src/views/contingency/contingencystudy/index.vue
View file @
eb127e56
<
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>
<!-- 额外按钮-->
<!-- 表头设置 -->
<div
class=
"min_full"
style=
"height: 140vh;"
>
<!-- 权限-->
</el-row>
<!-- 表格-->
<div
class=
"tablePagers"
>
<TablePager
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
@
getRow=
'getRow'
>
<div
class=
"min_full"
style=
"height: 40%;"
>
</TablePager>
</div>
</div>
</
template
>
<!-- 查询条件-->
<div
class=
"search"
v-condition
>
<SearchButton
:app=
'app'
></SearchButton>
<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-date-picker
value-format=
"timestamp"
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
value-format=
"timestamp"
v-model=
'queryParams.jsrq'
></el-date-picker>
</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>
<WorkFlowButton
:app=
'this'
></WorkFlowButton>
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<!-- 表格-->
<div
class=
"tablePagers"
>
<TablePager
:delButton=
'false'
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
@
getRow=
'getRow'
>
</TablePager>
</div>
</div>
<div
class=
"min_full"
style=
"height: 60%;padding: 10px;"
>
<!-- tabs -->
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tab-pane
label=
"应急演练"
name=
"first"
>
<Report
ref=
"report"
/>
</el-tab-pane>
</el-tabs>
</div>
</div>
</
template
>
<
script
>
/* 引入需要的接口*/
/* 引入需要的接口*/
import
{
doQuery
,
doAdd
,
doUpdate
,
doDelete
}
from
'@/api/contingency/yjyl.js'
;
/* edit页面*/
import
Edit
from
'./edit'
import
{
tableMixin
}
from
'common'
export
default
{
mixins
:
[
tableMixin
],
name
:
'aqglYjyl'
,
import
{
doQuery
,
doAdd
,
doUpdate
,
doDelete
}
from
'@/api/contingency/yjyljh.js'
;
/* edit页面*/
import
Edit
from
'./edit'
import
Report
from
'./report.vue'
import
{
tableMixin
}
from
'common'
export
default
{
mixins
:
[
tableMixin
],
name
:
'appVersion'
,
/* 初始额外赋值*/
async
mounted
()
{
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
data
()
{
return
{
/*需要的额外参数 */
showDialog
:
false
,
DialogName
:
''
,
type
:
''
,
DialogTitle
:
''
,
/* 基础url*/
baseUrl
:
'/aqgl/yjgl/yjyl'
,
/* 查询参数*/
queryParams
:
{
info
:
''
},
/* 表格标题对应参数*/
tableTitle
:
[
{
label
:
"演练名称"
,
prop
:
"name"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"分公司ID"
,
prop
:
"gsid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"演练组织单位ID"
,
prop
:
"yldwid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"演练计划ID"
,
prop
:
"yljhid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"培训人数"
,
prop
:
"pxrs"
,
fieldType
:
"int"
},
{
label
:
"演练目标"
,
prop
:
"ylmb"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"演练方式"
,
prop
:
"ylfs"
,
fieldType
:
"ftString"
,
width
:
60
},
{
label
:
"演练时间"
,
prop
:
"ylrq"
,
fieldType
:
"ftDateTime"
},
{
label
:
"演练责任人"
,
prop
:
"ylzrrid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"演练时长"
,
prop
:
"ylsc"
,
fieldType
:
"float"
},
{
label
:
"主(协)办单位"
,
prop
:
"zbdwid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"演练负责人ID"
,
prop
:
"ylfzrid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"质量负责人ID"
,
prop
:
"zlfzrid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"估计费用"
,
prop
:
"gjfy"
,
fieldType
:
"float"
},
{
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
:
{
/* 初始额外赋值*/
async
mounted
()
{
this
.
$refs
[
'TablePager'
].
pageQuery
({
setFirstCurrent
:
true
})
},
data
()
{
return
{
activeName
:
'first'
,
/*需要的额外参数 */
showDialog
:
false
,
DialogName
:
''
,
type
:
''
,
DialogTitle
:
''
,
/* 基础url*/
baseUrl
:
'/aqgl/yjgl/yjyljh'
,
/* 查询参数*/
queryParams
:
{
info
:
''
,
ksrq
:
new
Date
().
getTime
()
-
1000
*
60
*
60
*
24
*
30
,
jsrq
:
new
Date
().
getTime
()
},
/* 表格标题对应参数*/
tableTitle
:
[
{
label
:
"年度"
,
prop
:
"year"
,
fieldType
:
"int"
},
//{label: "季度", prop: "quarter", fieldType: "ftString",width:80},
{
label
:
"季度"
,
prop
:
"quarterName"
,
fieldType
:
"ftString"
,
width
:
80
},
{
label
:
"演练名称"
,
prop
:
"name"
,
fieldType
:
"ftString"
,
width
:
180
},
{
label
:
"演练组织单位"
,
prop
:
"zzdw"
,
fieldType
:
"ftString"
,
width
:
180
},
{
label
:
"培训人数"
,
prop
:
"pxrs"
,
fieldType
:
"int"
},
{
label
:
"演练目标"
,
prop
:
"ylmb"
,
fieldType
:
"ftString"
,
width
:
180
},
{
label
:
"演练方式"
,
prop
:
"ylfs"
,
fieldType
:
"ftString"
,
width
:
100
},
{
label
:
"演练责任人"
,
prop
:
"ylzrr"
,
fieldType
:
"ftString"
,
width
:
180
},
{
label
:
"演练时长"
,
prop
:
"ylsc"
,
fieldType
:
"int"
},
{
label
:
"主(协)办单位"
,
prop
:
"zbdw"
,
fieldType
:
"ftString"
,
width
:
180
},
{
label
:
"目标完成标准"
,
prop
:
"mbwcbz"
,
fieldType
:
"ftString"
,
width
:
180
},
{
label
:
"演练负责人"
,
prop
:
"ylfzr"
,
fieldType
:
"ftString"
,
width
:
180
},
{
label
:
"质量负责人"
,
prop
:
"zlfzr"
,
fieldType
:
"ftString"
,
width
:
180
},
{
label
:
"估计费用"
,
prop
:
"gjfy"
,
fieldType
:
"money"
},
{
label
:
"备注"
,
prop
:
"bz"
,
fieldType
:
"ftString"
,
width
:
180
},
{
label
:
"维护人"
,
prop
:
"whr"
,
fieldType
:
"ftString"
},
{
label
:
"维护时间"
,
prop
:
"whsj"
,
fieldType
:
"ftDateTime"
}
]
}
},
methods
:
{
getRow
:
function
(
e
)
{
this
.
rowItem
=
e
this
.
$refs
.
report
.
queryParams
.
yljhid
=
e
.
id
this
.
$refs
.
report
.
$refs
.
TablePager
.
pageQuery
()
/* 基础查询*/
query
:
doQuery
,
/* 基础增*/
apiAdd
:
doAdd
,
/* 基础更新*/
apiUpdate
:
doUpdate
,
/* 删除操作*/
apiDelete
:
doDelete
,
/* 初始化赋值操作*/
init
()
{
},
handleClick
(
val
){
console
.
log
(
val
,
'val'
)
},
/* 基础查询*/
query
:
doQuery
,
/* 基础增*/
apiAdd
:
doAdd
,
/* 基础更新*/
apiUpdate
:
doUpdate
,
/* 删除操作*/
apiDelete
:
doDelete
,
/* 初始化赋值操作*/
/* 启用停用*/
}
},
components
:
{
Edit
,
}
},
components
:
{
Edit
,
Report
,
}
}
}
</
script
>
<
style
scoped
>
/
deep
/
.el-tabs__item
{
font-size
:
13px
;
color
:
#666
;
}
</
style
>
src/views/contingency/contingencystudy/report.vue
0 → 100644
View file @
eb127e56
<
template
>
<div
class=
"min_full"
style=
"height: 72vh;overflow: auto;"
v-show=
'queryParams.yljhid'
>
<!-- 查询条件-->
<!--
<div
class=
"search"
v-condition
>
<SearchButton
:app=
'app'
></SearchButton>
<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></el-input>
</div>
</el-col>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
开始日期:
</span>
<el-date-picker></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></el-date-picker>
</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
,
doUpdate
,
doDelete
,
doAdd
}
from
'@/api/contingency/yjyl.js'
;
/* edit页面*/
import
Edit
from
'./reportEdit'
import
{
tableMixin
}
from
'common'
export
default
{
mixins
:
[
tableMixin
],
name
:
'aqgl/rcgl/lzbg'
,
/* 初始额外赋值*/
async
mounted
()
{
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
data
()
{
return
{
/*需要的额外参数 */
showDialog
:
false
,
DialogName
:
''
,
type
:
''
,
DialogTitle
:
''
,
/* 基础url*/
baseUrl
:
'aqgl/yjgl/yjyl'
,
/* 查询参数*/
queryParams
:
{
yljhid
:
''
},
/* 表格标题对应参数*/
tableTitle
:
[
{
label
:
"演练名称"
,
prop
:
"name"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"分公司ID"
,
prop
:
"gsid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"演练组织单位ID"
,
prop
:
"yldwid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"演练计划ID"
,
prop
:
"yljhid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"培训人数"
,
prop
:
"pxrs"
,
fieldType
:
"int"
},
{
label
:
"演练目标"
,
prop
:
"ylmb"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"演练方式"
,
prop
:
"ylfs"
,
fieldType
:
"ftString"
,
width
:
60
},
{
label
:
"演练时间"
,
prop
:
"ylrq"
,
fieldType
:
"ftDateTime"
},
{
label
:
"演练责任人"
,
prop
:
"ylzrrid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"演练时长"
,
prop
:
"ylsc"
,
fieldType
:
"float"
},
{
label
:
"主(协)办单位"
,
prop
:
"zbdwid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"演练负责人ID"
,
prop
:
"ylfzrid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"质量负责人ID"
,
prop
:
"zlfzrid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"估计费用"
,
prop
:
"gjfy"
,
fieldType
:
"float"
},
{
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
>
src/views/contingency/contingencystudy/reportEdit.vue
0 → 100644
View file @
eb127e56
<
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=
"6"
>
<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=
"6"
>
<el-form-item
label=
"分公司ID"
ref=
"gsid"
prop=
"gsid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.gsid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"演练组织单位ID"
ref=
"yldwid"
prop=
"yldwid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.yldwid"
></el-input>
</el-form-item>
</el-col>
<!--
<el-col
:span=
"6"
>
-->
<!--
<el-form-item
label=
"演练计划ID"
ref=
"yljhid"
prop=
"yljhid"
>
-->
<!--
<el-input
:readonly=
"readonly"
v-model=
"form.yljhid"
></el-input>
-->
<!--
</el-form-item>
-->
<!--
</el-col>
-->
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"6"
>
<el-form-item
label=
"培训人数"
ref=
"pxrs"
prop=
"pxrs"
>
<el-input
:readonly=
"readonly"
v-model=
"form.pxrs"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"演练目标"
ref=
"ylmb"
prop=
"ylmb"
>
<el-input
:readonly=
"readonly"
v-model=
"form.ylmb"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"演练方式"
ref=
"ylfs"
prop=
"ylfs"
>
<el-input
:readonly=
"readonly"
v-model=
"form.ylfs"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"演练时间"
ref=
"ylrq"
prop=
"ylrq"
>
<el-date-picker
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
v-model=
"form.ylrq"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"6"
>
<el-form-item
label=
"演练责任人"
ref=
"ylzrrid"
prop=
"ylzrrid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.ylzrrid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"演练时长"
ref=
"ylsc"
prop=
"ylsc"
>
<el-input
:readonly=
"readonly"
v-model=
"form.ylsc"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"主(协)办单位"
ref=
"zbdwid"
prop=
"zbdwid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.zbdwid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"演练负责人ID"
ref=
"ylfzrid"
prop=
"ylfzrid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.ylfzrid"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"6"
>
<el-form-item
label=
"质量负责人ID"
ref=
"zlfzrid"
prop=
"zlfzrid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.zlfzrid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"估计费用"
ref=
"gjfy"
prop=
"gjfy"
>
<el-input
:readonly=
"readonly"
v-model=
"form.gjfy"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<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=
"6"
>
<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
()
{
this
.
form
.
yljhid
=
this
.
app
.
queryParams
.
yljhid
},
/* 组件名称*/
name
:
"aqglYjylEdit"
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data
()
{
return
{
/* 额外初始化,根据需求*/
systemType
:
[],
bmList
:
[],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
//ID
id
:
''
,
//演练名称
name
:
''
,
//分公司ID
gsid
:
''
,
//演练组织单位ID
yldwid
:
''
,
//演练计划ID
yljhid
:
''
,
//培训人数
pxrs
:
''
,
//演练目标
ylmb
:
''
,
//演练方式
ylfs
:
''
,
//演练时间
ylrq
:
new
Date
().
getTime
(),
//演练责任人
ylzrrid
:
''
,
//演练时长
ylsc
:
''
,
//主(协)办单位
zbdwid
:
''
,
//演练负责人ID
ylfzrid
:
''
,
//质量负责人ID
zlfzrid
:
''
,
//估计费用
gjfy
:
''
,
//备注
bz
:
''
,
//维护人编码
whrid
:
''
,
//维护人
whr
:
''
,
//维护时间
whsj
:
new
Date
().
getTime
(),
//创建人编码
cjrid
:
''
,
//创建人
cjr
:
''
,
//创建时间
cjsj
:
new
Date
().
getTime
(),
//系统版本
sysversion
:
''
,
},
/* form提交时的规则,具体规则参考官网*/
rules
:
{
}
}
},
methods
:
{
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
</
style
>
src/views/contingency/contingency
Manager
/edit.vue
→
src/views/contingency/contingency
study1
/edit.vue
View file @
eb127e56
...
...
@@ -3,40 +3,95 @@
<!-- 填写表单内容,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-col
:span=
"
6
"
>
<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=
"fj
id"
>
<
RelSelect
:readonly=
"readonly"
style=
"width: 100%;"
src=
'/aqgl/yjgl/yjya/init/glcj'
filterable
clearable
:match=
"
{value:'id',label:'name'}" v-model='form.fjid' >
</RelSelec
t>
<el-col
:span=
"
6
"
>
<el-form-item
label=
"分公司ID"
ref=
"gsid"
prop=
"gs
id"
>
<
el-input
:readonly=
"readonly"
v-model=
"form.gsid"
></el-inpu
t>
</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-col
:span=
"6"
>
<el-form-item
label=
"演练组织单位ID"
ref=
"yldwid"
prop=
"yldwid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.yldwid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"演练计划ID"
ref=
"yljhid"
prop=
"yljhid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.yljhid"
></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-col
:span=
"6"
>
<el-form-item
label=
"培训人数"
ref=
"pxrs"
prop=
"pxrs"
>
<el-input
:readonly=
"readonly"
v-model=
"form.pxrs"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"演练目标"
ref=
"ylmb"
prop=
"ylmb"
>
<el-input
:readonly=
"readonly"
v-model=
"form.ylmb"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"演练方式"
ref=
"ylfs"
prop=
"ylfs"
>
<el-input
:readonly=
"readonly"
v-model=
"form.ylfs"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"演练时间"
ref=
"ylrq"
prop=
"ylrq"
>
<el-date-picker
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
v-model=
"form.ylrq"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"6"
>
<el-form-item
label=
"演练责任人"
ref=
"ylzrrid"
prop=
"ylzrrid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.ylzrrid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"演练时长"
ref=
"ylsc"
prop=
"ylsc"
>
<el-input
:readonly=
"readonly"
v-model=
"form.ylsc"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"主(协)办单位"
ref=
"zbdwid"
prop=
"zbdwid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.zbdwid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"演练负责人ID"
ref=
"ylfzrid"
prop=
"ylfzrid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.ylfzrid"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-col
:span=
"6"
>
<el-form-item
label=
"质量负责人ID"
ref=
"zlfzrid"
prop=
"zlfzrid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.zlfzrid"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"估计费用"
ref=
"gjfy"
prop=
"gjfy"
>
<el-input
:readonly=
"readonly"
v-model=
"form.gjfy"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<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=
"6"
>
<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
>
...
...
@@ -49,7 +104,7 @@
},
/* 组件名称*/
name
:
"aqgl
RcglYjya
Edit"
,
name
:
"aqgl
Yjyl
Edit"
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data
()
{
...
...
@@ -64,16 +119,34 @@
form
:
{
//ID
id
:
''
,
//名称
//
演练
名称
name
:
''
,
//内容
content
:
''
,
//部门ID
bmid
:
''
,
//分级ID
fjid
:
''
,
//序号
xh
:
''
,
//分公司ID
gsid
:
''
,
//演练组织单位ID
yldwid
:
''
,
//演练计划ID
yljhid
:
''
,
//培训人数
pxrs
:
''
,
//演练目标
ylmb
:
''
,
//演练方式
ylfs
:
''
,
//演练时间
ylrq
:
new
Date
().
getTime
(),
//演练责任人
ylzrrid
:
''
,
//演练时长
ylsc
:
''
,
//主(协)办单位
zbdwid
:
''
,
//演练负责人ID
ylfzrid
:
''
,
//质量负责人ID
zlfzrid
:
''
,
//估计费用
gjfy
:
''
,
//备注
bz
:
''
,
//维护人编码
...
...
@@ -93,14 +166,7 @@
},
/* form提交时的规则,具体规则参考官网*/
rules
:
{
roleid
:
[{
required
:
true
,
trigger
:
'blur'
},
],
rolename
:
[{
required
:
true
,
trigger
:
'blur'
},
]
}
}
},
...
...
src/views/contingency/contingencystudy1/index.vue
0 → 100644
View file @
eb127e56
<
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/contingency/yjyl.js'
;
/* edit页面*/
import
Edit
from
'./edit'
import
{
tableMixin
}
from
'common'
export
default
{
mixins
:
[
tableMixin
],
name
:
'aqglYjyl'
,
/* 初始额外赋值*/
async
mounted
()
{
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
data
()
{
return
{
/*需要的额外参数 */
showDialog
:
false
,
DialogName
:
''
,
type
:
''
,
DialogTitle
:
''
,
/* 基础url*/
baseUrl
:
'/aqgl/yjgl/yjyl'
,
/* 查询参数*/
queryParams
:
{
info
:
''
},
/* 表格标题对应参数*/
tableTitle
:
[
{
label
:
"演练名称"
,
prop
:
"name"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"分公司ID"
,
prop
:
"gsid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"演练组织单位ID"
,
prop
:
"yldwid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"演练计划ID"
,
prop
:
"yljhid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"培训人数"
,
prop
:
"pxrs"
,
fieldType
:
"int"
},
{
label
:
"演练目标"
,
prop
:
"ylmb"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"演练方式"
,
prop
:
"ylfs"
,
fieldType
:
"ftString"
,
width
:
60
},
{
label
:
"演练时间"
,
prop
:
"ylrq"
,
fieldType
:
"ftDateTime"
},
{
label
:
"演练责任人"
,
prop
:
"ylzrrid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"演练时长"
,
prop
:
"ylsc"
,
fieldType
:
"float"
},
{
label
:
"主(协)办单位"
,
prop
:
"zbdwid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"演练负责人ID"
,
prop
:
"ylfzrid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"质量负责人ID"
,
prop
:
"zlfzrid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"估计费用"
,
prop
:
"gjfy"
,
fieldType
:
"float"
},
{
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
>
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