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
ed5cb8bb
Commit
ed5cb8bb
authored
Dec 07, 2022
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
eba745b9
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
790 additions
and
492 deletions
+790
-492
operationDcManagement.js
src/api/basicData/operationDcManagement.js
+13
-5
edit.vue
src/views/basicData/operationDcManagement/edit.vue
+44
-38
index.vue
src/views/basicData/operationDcManagement/index.vue
+269
-5
lessEdit.vue
src/views/basicData/operationDcManagement/lessEdit.vue
+50
-59
lessIndex.vue
src/views/basicData/operationDcManagement/lessIndex.vue
+105
-107
mainEdit.vue
src/views/basicData/operationDcManagement/mainEdit.vue
+86
-0
mainIndex.vue
src/views/basicData/operationDcManagement/mainIndex.vue
+114
-107
edit.vue
src/views/dangerManagement/cxcqyh/edit.vue
+3
-3
edit.vue
...views/dangerManagement/dangerRectificationRecord/edit.vue
+7
-39
edit.vue
src/views/dangerManagement/dangerReviewRecord/edit.vue
+10
-10
edit.vue
src/views/dangerManagement/enterSafetyRecords/edit.vue
+20
-46
edit.vue
src/views/dangerManagement/maintenanceDg/edit.vue
+0
-5
edit.vue
src/views/dangerManagement/queryDangerRecords/edit.vue
+6
-8
edit.vue
src/views/dangerManagement/safetyDisposalRecord/edit.vue
+19
-46
zdzrr.vue
src/views/dangerManagement/safetyDisposalRecord/zdzrr.vue
+4
-0
edit.vue
src/views/dangerManagement/yhbzfl/edit.vue
+2
-2
edit.vue
src/views/dangerManagement/yhfl/edit.vue
+1
-2
index.vue
src/views/dangerManagement/yhslhz/index.vue
+1
-1
index.vue
src/views/dangerManagement/yhtj/index.vue
+36
-9
No files found.
src/api/basicData/operationDcManagement.js
View file @
ed5cb8bb
...
...
@@ -3,7 +3,7 @@ import request from 'common/src/utils/request'
/* query */
export
function
doQuery
(
query
)
{
return
request
({
url
:
'/aqgl/jcsj/bzzywd
ml
/query'
,
url
:
'/aqgl/jcsj/bzzywd/query'
,
method
:
'post'
,
data
:
query
||
{}
})
...
...
@@ -11,28 +11,28 @@ export function doQuery(query) {
/* 更新 */
export
function
doUpdate
(
query
)
{
return
request
({
url
:
'/aqgl/jcsj/bzzywd
ml
/update'
,
url
:
'/aqgl/jcsj/bzzywd/update'
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
doAdd
(
query
)
{
return
request
({
url
:
'/aqgl/jcsj/bzzywd
ml
/add'
,
url
:
'/aqgl/jcsj/bzzywd/add'
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
doDelete
(
query
)
{
return
request
({
url
:
'/aqgl/jcsj/bzzywd
ml
/delete'
,
url
:
'/aqgl/jcsj/bzzywd/delete'
,
method
:
'post'
,
data
:
query
||
{}
})
}
/* query */
export
function
doQueryDtl
(
query
)
{
return
request
({
url
:
'/aqgl/jcsj/bzzywd/query'
,
...
...
@@ -63,6 +63,14 @@ export function doDeleteDtl(query) {
})
}
/* 树节点查询 */
export
function
doQuerytree
(
query
)
{
return
request
({
url
:
'/aqgl/jcsj/aqwd/query/tree'
,
method
:
'post'
,
data
:
query
||
{}
})
}
...
...
src/views/basicData/operationDcManagement/edit.vue
View file @
ed5cb8bb
...
...
@@ -3,27 +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=
"name"
prop=
"name
"
>
<el-input
:readonly=
"readonly"
v-model=
"form.name"
></el-input>
<!--
<el-col
:span=
"12
"
>
<el-form-item
label=
"
序号"
ref=
"appid"
prop=
"appid
"
>
<el-input
:readonly=
"readonly"
v-model=
"form.appid"
></el-input>
</el-form-item>
</el-col>
</el-row>
<!--
<el-row
:gutter=
"20"
>
</el-col>
-->
<el-col
:span=
"24"
>
<el-form-item
label=
"
序号"
ref=
"xh"
prop=
"xh
"
>
<el-input
:readonly=
"readonly"
v-model=
"form.xh"
></el-input>
<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-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
label=
"备注"
>
<el-input
type=
"textarea"
: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
>
...
...
@@ -32,10 +36,11 @@
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
mounted
()
{
console
.
log
(
this
.
$router
)
this
.
systemType
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
app
.
systemType
))
},
/* 组件名称*/
name
:
"aqglBzzywdmlEdit"
,
name
:
'appVersionEdit'
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data
()
{
...
...
@@ -44,40 +49,41 @@
/* 额外初始化,根据需求*/
systemType
:
[],
bmList
:
[],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
id
:
''
,
name
:
''
,
xh
:
''
,
bz
:
''
,
whrid
:
''
,
whr
:
''
,
whsj
:
new
Date
().
getTime
(),
cjrid
:
''
,
cjr
:
''
,
cjsj
:
new
Date
().
getTime
(),
sysversion
:
''
,
appid
:
''
,
name
:
''
,
version
:
""
,
url
:
""
,
bz
:
''
},
/* form提交时的规则,具体规则参考官网*/
rules
:
{
appid
:
[{
required
:
true
,
trigger
:
'blur'
},
],
name
:
[{
required
:
true
,
trigger
:
'blur'
},
],
type
:
[{
required
:
true
,
trigger
:
'change'
},
],
version
:
[{
required
:
true
,
trigger
:
'blur'
},
],
url
:
[{
required
:
true
,
trigger
:
'blur'
},
],
}
}
},
methods
:
{
/* 重写方法,this.app来调用index页面定义的api*/
}
}
...
...
src/views/basicData/operationDcManagement/index.vue
View file @
ed5cb8bb
<
template
>
<div
class=
"min_full"
style=
"overflow: auto;height: 140vh;"
>
<MainIndex
:vMain=
'this'
ref=
"mainIndex"
></MainIndex>
<LessIndex
:vMain=
'this'
ref=
"lessIndex"
></LessIndex>
<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=
'aqwdfileAdd'
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-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
文档标题:
</span>
<el-input
v-model=
"queryParams.title"
></el-input>
</div>
</el-col>
</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
{
doQuerytree
}
from
"@/api/basicData/operationDcManagement.js"
;
import
{
autoAttach
,
autoAttachDownload
,
deleteAttachDownload
,
uploadAttachDownload
,
aqglUploadUpdate
}
from
"common/src/api/system/dmgSystem.js"
;
import
{
doQueryDtl
,
doAddDtl
,
doUpdateDtl
,
doDeleteDtl
}
from
"@/api/basicData/operationDcManagement.js"
;
import
Edit
from
'./lessEdit.vue'
import
{
tableMixin
}
from
'common'
import
MainIndex
from
'./mainIndex.vue'
import
LessIndex
from
'./lessIndex.vue'
export
default
{
name
:
'operationDcManagement'
,
mixins
:
[
tableMixin
],
name
:
'securityDocumentManagementDtl'
,
name
:
'securityDocumentManagement'
,
components
:{
MainIndex
,
LessIndex
LessIndex
,
Edit
},
data
()
{
return
{
show
:
false
,
isupLoad
:
false
,
treeTitle
:
'文档目录'
,
treeDefaultProps
:
{
children
:
'children'
,
label
:
'name'
},
// 额外
typeMap
:
[],
systemType
:
[],
baseUrl
:
'aqgl/jcsj/bzzywd'
,
/* 查询参数*/
queryParams
:
{
mlid
:
''
,
title
:
''
,
gsid
:
''
},
/* 表格标题对应参数*/
tableTitle
:
[
{
prop
:
'title'
,
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
));
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
({},
'aqgl/jcsj/aqwd'
,
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
(){
/* 清除老节点 */
$
(
'#aqwdfileAdd'
).
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
(()
=>
{
console
.
log
(
'触发beginUpload'
)
this
.
beginUpload
()
})
// $lineEl
$
(
'#aqwdfileAdd'
).
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
.
mlid
)
this
.
creatFile
()
uploadAttachDownload
(
formData
,
'aqgl/jcsj/aqwd'
).
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
.
mlid
){
$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
);
this
.
closeAll
()
},
downLoad
(
row
){
let
title
=
row
.
fileName
autoAttachDownload
({},
'aqgl/jcsj/aqwd'
,
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
=
''
}
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
/* 基础查询*/
query
:
doQueryDtl
,
/* 基础增*/
apiAdd
:
doAddDtl
,
/* 基础更新*/
apiUpdate
:
doUpdateDtl
,
/* 删除操作*/
apiDelete
:
doDeleteDtl
,
apiTreeQuery
:
doQuerytree
,
}
}
...
...
src/views/basicData/operationDcManagement/lessEdit.vue
View file @
ed5cb8bb
<
template
>
<RelDialog
:type=
'type'
:editApp=
'editApp'
:app=
'app'
:buttonApp=
'buttonApp'
>
<!-- 填写表单内容,slot=form必写-->
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"
10
0px"
:rules=
"rules"
>
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"
8
0px"
:rules=
"rules"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"
12
"
>
<el-form-item
label=
"
管理项目"
ref=
"glxm"
prop=
"glxm
"
>
<el-input
:readonly=
"readonly"
v-model=
"form.glxm"
></el-input>
<el-col
:span=
"
24
"
>
<el-form-item
label=
"
标题"
ref=
"title"
prop=
"title
"
>
<el-input
:readonly=
"readonly"
v-model=
"form.title"
></el-input>
</el-form-item>
</el-col>
</el-row>
<!--
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"管理标准"
ref=
"glbz"
prop=
"glbz"
>
<el-input
:readonly=
"readonly"
v-model=
"form.glbz"
></el-input>
<el-form-item
label=
"发布日期"
ref=
"fbrq"
prop=
"fbrq"
>
<el-date-picker
value-format=
"timestamp"
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
v-model=
"form.fbrq"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"发布日期"
ref=
"fbrq"
prop=
"fbrq"
>
<el-date-picker
value-format=
"timestamp"
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
v-model=
"form.fbrq"
placeholder=
"选择日期"
>
<el-form-item
label=
"实施日期"
ref=
"ssrq"
prop=
"ssrq"
>
<el-date-picker
value-format=
"timestamp"
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
v-model=
"form.ssrq"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"实施日期"
ref=
"ssrq"
prop=
"ssrq"
>
<el-date-picker
value-format=
"timestamp"
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
v-model=
"form.ssrq"
placeholder=
"选择日期"
>
</el-date-picker>
<el-form-item
label=
"发布公司"
ref=
"gsid"
prop=
"gsid"
>
<RelSelect
:readonly=
"readonly"
style=
"width: 100%;"
src=
'jcsj/common/bm/queryGs'
:match=
"
{value:'id',label:'bmmc'}" v-model='form.gsid' >
</RelSelect>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"目录"
ref=
"mlid"
prop=
"mlid"
>
<RelSelect
:readonly=
"readonly"
style=
"width: 100%;"
linkage
:linkParams=
"
{pid:form.gsid}" src='aqgl/jcsj/aqwdml/query' :match="{value:'id',label:'name'}" v-model='form.mlid' >
</RelSelect>
</el-form-item>
</el-col>
</el-row>
-->
<!--
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"
异常处理方法"
ref=
"yccl"
prop=
"yccl
"
>
<el-input
:readonly=
"readonly"
v-model=
"form.yccl"
></el-input>
<el-form-item
label=
"
适用条款"
ref=
"sytk"
prop=
"content
"
>
<el-input
:readonly=
"readonly"
type=
"textarea"
v-model=
"form.sytk"
></el-input>
</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
label=
"备注"
ref=
"bz"
prop=
"
content
"
>
<el-input
:readonly=
"readonly"
type=
"textarea"
v-model=
"form.bz"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-row>
-->
</el-form>
</RelDialog>
</
template
>
...
...
@@ -53,10 +68,11 @@
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
mounted
()
{
this
.
form
.
mlid
=
this
.
app
.
queryParams
.
mlid
this
.
form
.
mlid
=
this
.
app
.
queryParams
.
mlid
this
.
form
.
gsid
=
this
.
app
.
queryParams
.
gsid
},
/* 组件名称*/
name
:
"aqglBzzywdEdit"
,
name
:
'appVersionEdit'
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data
()
{
...
...
@@ -65,52 +81,27 @@
/* 额外初始化,根据需求*/
systemType
:
[],
bmList
:
[],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
id
:
''
,
glxm
:
''
,
glbz
:
''
,
mlid
:
''
,
gsid
:
''
,
title
:
''
,
sytk
:
''
,
bz
:
""
,
fbrq
:
new
Date
().
getTime
(),
ssrq
:
new
Date
().
getTime
(),
bmid
:
''
,
yccl
:
''
,
mlid
:
''
,
attachcount
:
''
,
bz
:
''
,
whrid
:
''
,
whr
:
''
,
whsj
:
new
Date
().
getTime
(),
cjrid
:
''
,
cjr
:
''
,
cjsj
:
new
Date
().
getTime
(),
sysversion
:
''
,
mlid
:
''
},
/* form提交时的规则,具体规则参考官网*/
rules
:
{
mlid
:
[{
required
:
true
,
},
],
}
}
},
methods
:
{
/* 重写方法,this.app来调用index页面定义的api*/
}
}
...
...
src/views/basicData/operationDcManagement/lessIndex.vue
View file @
ed5cb8bb
<
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"
v-show=
"queryParams.mlid"
>
<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=
"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.title"
></el-input
>
</div>
</el-col
>
</TablePager>
</div>
</div>
</el-row>
</div>
<!-- 按钮操作-->
<el-row
class=
"tool-bar"
v-show=
"queryParams.mlid"
>
<PrintButton
:app=
'this'
></PrintButton>
<ViewButton
ref=
"view"
:app=
'this'
></ViewButton>
<AddButton
ref=
"add"
:app=
'this'
></AddButton>
<CopyButton
ref=
"copy"
:app=
'this'
></CopyButton>
<EditButton
ref=
"edit"
:app=
'this'
></EditButton>
<FieldButton
:app=
'this'
></FieldButton>
<ExcelButton
:app=
'this'
></ExcelButton>
<AttachFileButton
:app=
'this'
></AttachFileButton>
</el-row>
<!-- 表格-->
<div
class=
"tablePagers"
>
<TablePager
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'this'
:query=
'query'
@
selectItem=
'selectItem'
@
getRow=
'getRow'
>
<!-- 自定义列 slot="tabCustom",格式参照elementUi,自定义事件用this.$refs['TablePager']调用/或者v-slot通信/-->
</TablePager>
</div>
</div>
</
template
>
<
script
>
/* 引入需要的接口*/
import
{
doQueryDtl
,
doAddDtl
,
doUpdateDtl
,
doDeleteDtl
}
from
'@/api/basicData/operationDcManagement.js'
;
/* edit页面*/
import
Edit
from
'./lessEdit'
import
{
tableMixin
}
from
'common'
export
default
{
mixins
:
[
tableMixin
],
name
:
'aqgl/jcsjBzzywd'
,
/* 初始额外赋值*/
async
mounted
()
{
},
data
()
{
return
{
/*需要的额外参数 */
showDialog
:
false
,
DialogName
:
''
,
type
:
''
,
DialogTitle
:
''
,
/* 基础url*/
baseUrl
:
'/aqgl/jcsj/bzzywd'
,
/* 查询参数*/
queryParams
:
{
info
:
''
,
mlid
:
''
},
/* 表格标题对应参数*/
tableTitle
:
[
{
label
:
"管理项目"
,
prop
:
"glxm"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"管理标准"
,
prop
:
"glbz"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"发布日期"
,
prop
:
"fbrq"
,
fieldType
:
"ftDateTime"
},
{
label
:
"实施日期"
,
prop
:
"ssrq"
,
fieldType
:
"ftDateTime"
},
{
label
:
"发布部门"
,
prop
:
"bmid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"异常处理方法"
,
prop
:
"yccl"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"目录"
,
prop
:
"mlid"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"附件数"
,
prop
:
"attachcount"
,
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"
},
]
}
},
methods
:
{
/* 基础查询*/
query
:
doQueryDtl
,
/* 基础增*/
apiAdd
:
doAddDtl
,
/* 基础更新*/
apiUpdate
:
doUpdateDtl
,
/* 删除操作*/
apiDelete
:
doDeleteDtl
,
/* 初始化赋值操作*/
init
()
{
}
},
components
:
{
Edit
,
}
/* 引入需要的接口*/
import
{
doQueryDtl
,
doAddDtl
,
doUpdateDtl
,
doDeleteDtl
}
from
"@/api/basicData/securityDocumentManagement.js"
;
/* edit页面*/
import
Edit
from
'./lessEdit.vue'
console
.
log
(
Edit
,
'lessEdit'
)
import
{
tableMixin
}
from
'common'
export
default
{
mixins
:
[
tableMixin
],
name
:
'securityDocumentManagementDtl'
,
/* 初始额外赋值*/
async
mounted
()
{
}
},
data
()
{
return
{
/*需要的额外参数 */
typeMap
:
[],
systemType
:
[],
baseUrl
:
'aqgl/jcsj/aqwd'
,
/* 查询参数*/
queryParams
:
{
mlid
:
''
,
title
:
''
},
/* 表格标题对应参数*/
tableTitle
:
[
{
prop
:
'title'
,
label
:
'标题'
,
width
:
'120'
},
{
prop
:
'fbrq'
,
label
:
'发布日期'
,
...
this
.
$common
(
'ftDateTime'
)
},
{
prop
:
'ssrq'
,
label
:
'实施日期'
,
...
this
.
$common
(
'ftDateTime'
)
},
{
prop
:
'sytk'
,
label
:
'适用条款'
,
width
:
'120'
},
{
prop
:
'bz'
,
label
:
'备注'
,
width
:
'120'
},
]
}
},
methods
:
{
/* 基础查询*/
query
:
doQueryDtl
,
/* 基础增*/
apiAdd
:
doAddDtl
,
/* 基础更新*/
apiUpdate
:
doUpdateDtl
,
/* 删除操作*/
apiDelete
:
doDeleteDtl
},
/* 注册组件*/
components
:
{
Edit
}
}
</
script
>
<
style
scoped
>
...
...
src/views/basicData/operationDcManagement/mainEdit.vue
0 → 100644
View file @
ed5cb8bb
<
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=
"pid"
prop=
"pid"
>
<RelSelect
:readonly=
"readonly"
filterable
clearable
style=
"width: 100%;"
src=
'kzzx/bm/query'
:match=
"
{value:'id',label:'bmmc'}" v-model='form.pid' >
</RelSelect>
</el-form-item>
</el-col>
<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-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"备注"
ref=
"bz"
prop=
"content"
>
<el-input
:readonly=
"readonly"
type=
"textarea"
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
()
{
this
.
form
.
pid
=
this
.
app
.
queryParams
.
pid
},
/* 组件名称*/
name
:
'mainEdit'
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data
()
{
return
{
/* 额外初始化,根据需求*/
systemType
:
[],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
pid
:
''
,
xh
:
''
,
name
:
''
,
bz
:
""
},
/* form提交时的规则,具体规则参考官网*/
rules
:
{
appid
:
[{
required
:
true
,
trigger
:
'blur'
},
],
name
:
[{
required
:
true
,
trigger
:
'blur'
},
],
type
:
[{
required
:
true
,
trigger
:
'change'
},
],
version
:
[{
required
:
true
,
trigger
:
'blur'
},
],
url
:
[{
required
:
true
,
trigger
:
'blur'
},
],
}
}
},
methods
:
{
/* 重写方法,this.app来调用index页面定义的api*/
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
</
style
>
src/views/basicData/operationDcManagement/mainIndex.vue
View file @
ed5cb8bb
<
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
class=
"min_full"
style=
" height: 40%"
>
<!-- 查询条件-->
<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-select
placeholder=
"请选择"
></el-select>
</div>
</el-col>
-->
<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>
<!--
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
状态:
</span>
<el-select
placeholder=
"请选择"
></el-select>
</div>
</el-col>
-->
<!-- 权限-->
</el-row>
<!-- 表格-->
<div
class=
"tablePagers"
>
<TablePager
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
@
getRow=
'getRow'
>
</TablePager>
</div>
</div>
</el-row>
</div>
<!-- 按钮操作-->
<el-row
class=
"tool-bar"
>
<PrintButton
:app=
'this'
></PrintButton>
<ViewButton
ref=
"view"
:app=
'this'
></ViewButton>
<AddButton
ref=
"add"
:app=
'this'
></AddButton>
<CopyButton
ref=
"copy"
:app=
'this'
></CopyButton>
<EditButton
ref=
"edit"
:app=
'this'
></EditButton>
<FieldButton
:app=
'this'
></FieldButton>
<ExcelButton
:app=
'this'
></ExcelButton>
<WorkFlowButton
:app=
'this'
></WorkFlowButton>
</el-row>
<!-- 表格-->
<div
class=
"tablePagers"
>
<TablePager
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'this'
:query=
'query'
@
selectItem=
'selectItem'
@
getRow=
'getRow'
>
<!-- 自定义列 slot="tabCustom",格式参照elementUi,自定义事件用this.$refs['TablePager']调用/或者v-slot通信/-->
</TablePager>
</div>
</div>
</
template
>
<
script
>
/* 引入需要的接口*/
import
{
doQuery
,
doAdd
,
doUpdate
,
doDelete
}
from
'@/api/basicData/operationDcManagement.js'
;
/* edit页面*/
import
Edit
from
'./edit'
import
{
tableMixin
}
from
'common'
export
default
{
mixins
:
[
tableMixin
],
name
:
'aqgl/jcsjBzzywdml'
,
props
:{
/* 引入需要的接口*/
import
{
doQuery
,
doAdd
,
doUpdate
,
doDelete
}
from
"@/api/basicData/securityDocumentManagement.js"
;
/* edit页面*/
import
Edit
from
'./mainEdit.vue'
console
.
log
(
Edit
,
'mainEdit'
)
import
{
tableMixin
}
from
'common'
export
default
{
mixins
:
[
tableMixin
],
name
:
'mainIndex'
,
/* 初始额外赋值*/
async
mounted
()
{
this
.
$refs
[
'TablePager'
].
pageQuery
({
setFirstCurrent
:
true
})
},
props
:{
vMain
:{
type
:
Object
,
default
:
function
(){
...
...
@@ -61,63 +73,58 @@
}
}
},
/* 初始额外赋值*/
async
mounted
()
{
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
data
()
{
return
{
/*需要的额外参数 */
showDialog
:
false
,
DialogName
:
''
,
type
:
''
,
DialogTitle
:
''
,
/* 基础url*/
baseUrl
:
'/aqgl/jcsj/bzzywdml'
,
/* 查询参数*/
queryParams
:
{
name
:
''
},
/* 表格标题对应参数*/
tableTitle
:
[
{
label
:
"名称"
,
prop
:
"name"
,
fieldType
:
"ftString"
,
width
:
300
},
{
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"
},
]
}
},
methods
:
{
/* 基础查询*/
query
:
doQuery
,
/* 基础增*/
apiAdd
:
doAdd
,
/* 基础更新*/
apiUpdate
:
doUpdate
,
/* 删除操作*/
apiDelete
:
doDelete
,
/* 点击主表事件*/
getRow
:
function
(
e
)
{
this
.
rowItem
=
e
let
lessIndex
=
this
.
vMain
.
$refs
.
lessIndex
lessIndex
.
queryParams
.
mlid
=
this
.
rowItem
.
id
lessIndex
.
$refs
[
'TablePager'
].
pageQuery
()
data
()
{
return
{
/*需要的额外参数 */
typeMap
:
[],
systemType
:
[],
baseUrl
:
'aqgl/jcsj/aqwdml'
,
/* 查询参数*/
queryParams
:
{
name
:
''
},
/* 初始化赋值操作*/
init
()
{
}
},
components
:
{
Edit
,
}
}
/* 表格标题对应参数*/
tableTitle
:
[
{
prop
:
'xh'
,
label
:
'序号'
,
width
:
'80'
},
{
prop
:
'name'
,
label
:
'目录名称'
,
width
:
'200'
},
{
prop
:
'bz'
,
label
:
'备注'
,
width
:
'300'
}
]
}
},
methods
:
{
/* 基础查询*/
query
:
doQuery
,
/* 基础增*/
apiAdd
:
doAdd
,
/* 基础更新*/
apiUpdate
:
doUpdate
,
/* 删除操作*/
apiDelete
:
doDelete
,
/* 点击主表事件*/
getRow
:
function
(
e
)
{
this
.
rowItem
=
e
let
lessIndex
=
this
.
vMain
.
$refs
.
lessIndex
lessIndex
.
queryParams
.
mlid
=
this
.
rowItem
.
id
lessIndex
.
$refs
[
'TablePager'
].
pageQuery
()
}
},
/* 注册组件*/
components
:
{
Edit
}
}
</
script
>
<
style
scoped
>
...
...
src/views/dangerManagement/cxcqyh/edit.vue
View file @
ed5cb8bb
...
...
@@ -69,8 +69,8 @@
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"整改完成
日期
"
ref=
"yqzgsj"
prop=
"yqzgsj"
>
<el-date-picker
value-format=
"timestamp"
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
<el-form-item
label=
"整改完成
时间
"
ref=
"yqzgsj"
prop=
"yqzgsj"
>
<el-date-picker
value-format=
"timestamp"
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date
time
"
v-model=
"form.yqzgsj"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
...
...
@@ -147,7 +147,7 @@
flid
:
''
,
clr
:
''
,
yqzgsj
:
new
Date
().
getTime
()
,
yqzgsj
:
''
,
clsj
:
new
Date
().
getTime
(),
clff
:
''
,
...
...
src/views/dangerManagement/dangerRectificationRecord/edit.vue
View file @
ed5cb8bb
...
...
@@ -64,8 +64,8 @@
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"整改完成
日期
"
ref=
"yqzgsj"
prop=
"yqzgsj"
>
<el-date-picker
value-format=
"timestamp"
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
<el-form-item
label=
"整改完成
时间
"
ref=
"yqzgsj"
prop=
"yqzgsj"
>
<el-date-picker
value-format=
"timestamp"
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date
time
"
v-model=
"form.yqzgsj"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
...
...
@@ -141,59 +141,27 @@
flid
:
''
,
clr
:
''
,
yqzgsj
:
new
Date
().
getTime
(),
clsj
:
new
Date
().
getTime
(),
yqzgsj
:
''
,
clff
:
''
,
fcr
:
''
,
fcsj
:
new
Date
().
getTime
(),
fcjg
:
''
,
czr
:
''
,
czsj
:
new
Date
().
getTime
(),
czyj
:
''
,
zt
:
''
,
attachcount
:
''
,
bz
:
''
,
wfid
:
''
,
wfinstid
:
''
,
wfpid
:
''
,
wfpname
:
''
,
wfwuserid
:
''
,
wfwusername
:
''
,
wfhuserid
:
''
,
wfhusername
:
''
,
whrid
:
''
,
whr
:
''
,
whsj
:
new
Date
().
getTime
(),
cjrid
:
''
,
cjr
:
''
,
cjsj
:
new
Date
().
getTime
(),
sysversion
:
''
,
},
/* form提交时的规则,具体规则参考官网*/
...
...
src/views/dangerManagement/dangerReviewRecord/edit.vue
View file @
ed5cb8bb
...
...
@@ -69,8 +69,8 @@
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"整改完成
日期
"
ref=
"yqzgsj"
prop=
"yqzgsj"
>
<el-date-picker
value-format=
"timestamp"
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
<el-form-item
label=
"整改完成
时间
"
ref=
"yqzgsj"
prop=
"yqzgsj"
>
<el-date-picker
value-format=
"timestamp"
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date
time
"
v-model=
"form.yqzgsj"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
...
...
@@ -148,24 +148,24 @@
flid
:
''
,
clr
:
''
,
yqzgsj
:
new
Date
().
getTime
()
,
clsj
:
new
Date
().
getTime
(),
yqzgsj
:
''
,
clff
:
''
,
fcr
:
''
,
fcsj
:
new
Date
().
getTime
(),
fcjg
:
''
,
czr
:
''
,
czsj
:
new
Date
().
getTime
(),
czyj
:
''
,
zt
:
''
,
attachcount
:
''
,
...
...
@@ -191,13 +191,13 @@
whr
:
''
,
whsj
:
new
Date
().
getTime
(),
cjrid
:
''
,
cjr
:
''
,
cjsj
:
new
Date
().
getTime
(),
sysversion
:
''
,
...
...
src/views/dangerManagement/enterSafetyRecords/edit.vue
View file @
ed5cb8bb
...
...
@@ -17,7 +17,7 @@
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"风险点"
ref=
"fxd"
prop=
"fxd"
>
<RelSelect
linkage
:linkParams=
"
{gsid:form.gsid}" style="width: 100%;" :readonly="readonly" src='aqgl/fxyk/fxd/init/fxd' :match="{value:'id',label:'fxdName'}" v-model='form.fxd' >
</RelSelect>
<RelSelect
linkage
ref=
'fxds'
:linkParams=
"
{gsid:form.gsid}" style="width: 100%;" :readonly="readonly" src='aqgl/fxyk/fxd/init/fxd' :match="{value:'id',label:'fxdName'}" v-model='form.fxd' >
</RelSelect>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
...
...
@@ -59,8 +59,8 @@
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"整改完成
日期
"
ref=
"yqzgsj"
prop=
"yqzgsj"
>
<el-date-picker
value-format=
"timestamp"
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
<el-form-item
label=
"整改完成
时间
"
ref=
"yqzgsj"
prop=
"yqzgsj"
>
<el-date-picker
value-format=
"timestamp"
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date
time
"
v-model=
"form.yqzgsj"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
...
...
@@ -88,9 +88,24 @@
export
default
{
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
computed
:{
fxd
:
function
(){
return
this
.
form
.
fxd
}
},
watch
:{
fxd
(
val
){
// console.log(val)
this
.
$refs
.
fxds
.
options
.
forEach
(
e
=>
{
if
(
e
.
id
==
this
.
form
.
fxd
){
this
.
form
.
yhdd
=
e
.
fxpcdd
}
})
}
},
mounted
()
{
/* 赋值*/
this
.
form
.
sbr
=
localStorage
.
getItem
(
'userid'
)
this
.
form
.
sbr
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'allUserInfo'
)).
userkey
this
.
form
.
sbrName
=
localStorage
.
getItem
(
'username'
)
},
/* 组件名称*/
...
...
@@ -137,58 +152,17 @@
flid
:
''
,
clr
:
''
,
yqzgsj
:
new
Date
().
getTime
(),
clsj
:
new
Date
().
getTime
(),
clff
:
''
,
fcr
:
''
,
fcsj
:
new
Date
().
getTime
(),
yqzgsj
:
''
,
fcjg
:
''
,
czr
:
''
,
czsj
:
new
Date
().
getTime
(),
czyj
:
''
,
zt
:
''
,
attachcount
:
''
,
bz
:
''
,
wfid
:
''
,
wfinstid
:
''
,
wfpid
:
''
,
wfpname
:
''
,
wfwuserid
:
''
,
wfwusername
:
''
,
wfhuserid
:
''
,
wfhusername
:
''
,
whrid
:
''
,
whr
:
''
,
whsj
:
new
Date
().
getTime
(),
cjrid
:
''
,
cjr
:
''
,
cjsj
:
new
Date
().
getTime
(),
sysversion
:
''
,
},
/* form提交时的规则,具体规则参考官网*/
...
...
src/views/dangerManagement/maintenanceDg/edit.vue
View file @
ed5cb8bb
...
...
@@ -88,14 +88,9 @@
whr
:
''
,
whsj
:
new
Date
().
getTime
(),
cjrid
:
''
,
cjr
:
''
,
cjsj
:
new
Date
().
getTime
(),
sysversion
:
''
,
},
...
...
src/views/dangerManagement/queryDangerRecords/edit.vue
View file @
ed5cb8bb
...
...
@@ -69,8 +69,8 @@
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"整改完成
日期
"
ref=
"yqzgsj"
prop=
"yqzgsj"
>
<el-date-picker
value-format=
"timestamp"
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date"
<el-form-item
label=
"整改完成
时间
"
ref=
"yqzgsj"
prop=
"yqzgsj"
>
<el-date-picker
value-format=
"timestamp"
style=
"width: 100%;"
:readonly=
"readonly"
type=
"date
time
"
v-model=
"form.yqzgsj"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
...
...
@@ -146,20 +146,19 @@
flid
:
''
,
clr
:
''
,
yqzgsj
:
new
Date
().
getTime
(),
clsj
:
new
Date
().
getTime
(),
yqzgsj
:
''
,
clff
:
''
,
fcr
:
''
,
fcsj
:
new
Date
().
getTime
(),
fcjg
:
''
,
czr
:
''
,
czsj
:
new
Date
().
getTime
(),
czyj
:
''
,
...
...
@@ -189,13 +188,12 @@
whr
:
''
,
whsj
:
new
Date
().
getTime
(),
cjrid
:
''
,
cjr
:
''
,
cjsj
:
new
Date
().
getTime
(),
sysversion
:
''
,
...
...
src/views/dangerManagement/safetyDisposalRecord/edit.vue
View file @
ed5cb8bb
...
...
@@ -19,9 +19,9 @@
<el-col
:span=
"12"
>
<el-form-item
label=
"风险点"
ref=
"fxd"
prop=
"fxd"
>
<el-form-item
label=
"风险点"
ref=
"fxd"
prop=
"fxd"
>
<RelSelect
linkage
:linkParams=
"
{gsid:form.gsid}" style="width: 100%;" :readonly="readonly" src='aqgl/fxyk/fxd/init/fxd' :match="{value:'id',label:'fxdName'}" v-model='form.fxd' >
</RelSelect>
</el-form-item>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
...
...
@@ -64,7 +64,7 @@
<el-col
:span=
"12"
>
<el-form-item
label=
"整改完成日期"
ref=
"yqzgsj"
prop=
"yqzgsj"
>
<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
time
"
v-model=
"form.yqzgsj"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
...
...
@@ -125,13 +125,13 @@
yhdd
:
''
,
sbjb
:
''
,
nr
:
''
,
bmid
:
''
,
zdzgfa
:
''
,
zrr
:
''
,
...
...
@@ -139,59 +139,32 @@
flid
:
''
,
clr
:
''
,
yqzgsj
:
new
Date
().
getTime
()
,
clsj
:
new
Date
().
getTime
(),
yqzgsj
:
''
,
clff
:
''
,
fcr
:
''
,
fcsj
:
new
Date
().
getTime
(),
fcjg
:
''
,
czr
:
''
,
czsj
:
new
Date
().
getTime
(),
czyj
:
''
,
zt
:
''
,
attachcount
:
''
,
bz
:
''
,
wfid
:
''
,
wfinstid
:
''
,
wfpid
:
''
,
wfpname
:
''
,
wfwuserid
:
''
,
wfwusername
:
''
,
wfhuserid
:
''
,
wfhusername
:
''
,
whrid
:
''
,
whr
:
''
,
whsj
:
new
Date
().
getTime
(),
cjrid
:
''
,
cjr
:
''
,
cjsj
:
new
Date
().
getTime
(),
sysversion
:
''
,
},
/* form提交时的规则,具体规则参考官网*/
...
...
src/views/dangerManagement/safetyDisposalRecord/zdzrr.vue
View file @
ed5cb8bb
...
...
@@ -57,6 +57,10 @@ save(){
fcr
:
this
.
singleItem
.
fcr
,
zrr
:
this
.
singleItem
.
zrr
,
}
if
(
!
params
.
fcr
||!
params
.
zrr
){
this
.
$warning
(
'请设置责任人和负责人'
)
return
}
doFp
(
params
).
then
(
res
=>
{
if
(
res
.
success
){
this
.
$success
(
'分配成功'
)
...
...
src/views/dangerManagement/yhbzfl/edit.vue
View file @
ed5cb8bb
...
...
@@ -72,13 +72,13 @@
whr
:
''
,
whsj
:
new
Date
().
getTime
(),
cjrid
:
''
,
cjr
:
''
,
cjsj
:
new
Date
().
getTime
(),
sysversion
:
''
,
...
...
src/views/dangerManagement/yhfl/edit.vue
View file @
ed5cb8bb
...
...
@@ -67,7 +67,7 @@
whr
:
''
,
whsj
:
new
Date
().
getTime
(),
cjrid
:
''
,
...
...
@@ -77,7 +77,6 @@
cjid
:
''
,
cjsj
:
new
Date
().
getTime
(),
sysversion
:
''
,
...
...
src/views/dangerManagement/yhslhz/index.vue
View file @
ed5cb8bb
...
...
@@ -112,7 +112,7 @@
width
:
100
},
{
prop
:
'
record
Count'
,
prop
:
'
wcl
Count'
,
label
:
'未处理完毕数量'
,
width
:
300
},
...
...
src/views/dangerManagement/yhtj/index.vue
View file @
ed5cb8bb
...
...
@@ -25,7 +25,8 @@
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
班组:
</span>
<RelSelect
linkage
:linkParams=
"
{pid:queryParams.gsid}" style="width: 100%;" src='jcsj/common/bm/queryBz' filterable clearable :match="{value:'id',label:'bmmc'}" v-model='queryParams.bmid' >
</RelSelect>
<RelSelect
linkage
:linkParams=
"
{gsid:queryParams.gsid}" style="width: 100%;" src='/aqgl/jcsj/scgw/query' clearable :match="{value:'id',label:'name'}" v-model='queryParams.gwid' >
</RelSelect>
<!--
<RelSelect
linkage
:linkParams=
"
{pid:queryParams.gsid}" style="width: 100%;" src='jcsj/common/bm/queryBz' filterable clearable :match="{value:'id',label:'bmmc'}" v-model='queryParams.bmid' >
</RelSelect>
-->
</div>
</el-col>
</el-row>
...
...
@@ -89,10 +90,10 @@
baseUrl
:
'/aqgl/yhbzfl'
,
/* 查询参数*/
queryParams
:
{
gwid
:
''
,
gsid
:
''
,
ksrq
:
new
Date
().
getTime
()
-
1000
*
60
*
60
*
24
*
30
,
jsrq
:
new
Date
().
getTime
(),
bmid
:
''
},
/* 表格标题对应参数*/
tableTitle
:
[
...
...
@@ -126,15 +127,41 @@
})
var
option
=
{
dataZoom
:
[
{
show
:
true
,
start
:
0
,
end
:
10
},
{
type
:
'inside'
,
start
:
0
,
end
:
10
},
{
show
:
false
,
yAxisIndex
:
0
,
filterMode
:
'empty'
,
width
:
20
,
height
:
'80%'
,
showDataShadow
:
false
,
left
:
'93%'
}
],
grid
:
{
left
:
'3%'
,
right
:
'4%'
,
bottom
:
'10%'
,
top
:
'10%'
,
left
:
'6%'
,
right
:
'3%'
,
bottom
:
'25%'
,
// containLabel: true
},
xAxis
:
{
type
:
'category'
,
data
:
fxdList
data
:
fxdList
,
axisLabel
:
{
interval
:
0
,
//代表显示所有x轴标签显示
rotate
:
45
,
//代表逆时针旋转45度
}
},
yAxis
:
{
type
:
'value'
...
...
@@ -153,7 +180,7 @@
name
:
'隐患数量'
,
data
:
wclCountList
,
type
:
'bar'
,
barWidth
:
'20px'
,
bar
Max
Width
:
'20px'
,
itemStyle
:
{
color
:
'#f00000'
,
shadowColor
:
'#f00000'
,
...
...
@@ -172,7 +199,7 @@
borderType
:
'dashed'
,
},
barWidth
:
'20px'
,
bar
Max
Width
:
'20px'
,
}
]
};
...
...
@@ -206,7 +233,7 @@
border
:
1px
solid
#eee
;
}
.chartsbody
{
height
:
25
0px
;
height
:
33
0px
;
padding
:
5px
;
}
</
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