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
a65bae6f
Commit
a65bae6f
authored
Dec 08, 2022
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
风险统计
parent
85ee0f94
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
652 additions
and
1228 deletions
+652
-1228
approve.js
src/api/outsourcingDirector/approve.js
+41
-0
riskAnalysis.js
src/api/riskPrecontrol/riskAnalysis.js
+17
-0
edit.vue
src/views/basicData/operationDcManagement/edit.vue
+0
-94
index.vue
src/views/basicData/operationDcManagement/index.vue
+4
-7
lessIndex.vue
src/views/basicData/operationDcManagement/lessIndex.vue
+0
-117
mainIndex.vue
src/views/basicData/operationDcManagement/mainIndex.vue
+0
-132
index.vue
src/views/dangerManagement/cxcqyh/index.vue
+5
-4
login.vue
src/views/login.vue
+1
-1
edit.vue
src/views/outsourcingDirector/approve/edit.vue
+0
-203
index.vue
src/views/outsourcingDirector/approve/index.vue
+271
-401
lessEdit.vue
src/views/outsourcingDirector/approve/lessEdit.vue
+63
-0
index.vue
src/views/riskPrecontrol/queryRisk/index.vue
+1
-1
cycle.vue
src/views/riskPrecontrol/riskAnalysis/cycle.vue
+78
-69
cycleDetails.vue
src/views/riskPrecontrol/riskAnalysis/cycleDetails.vue
+88
-86
index.vue
src/views/riskPrecontrol/riskAnalysis/index.vue
+83
-113
No files found.
src/api/outsourcingDirector/approve.js
0 → 100644
View file @
a65bae6f
import
request
from
'common/src/utils/request'
/* query */
export
function
doQuery
(
query
)
{
return
request
({
url
:
'/aqgl/wxglxy/query'
,
method
:
'post'
,
data
:
query
||
{}
})
}
/* 更新 */
export
function
doUpdate
(
query
)
{
return
request
({
url
:
'/aqgl/wxglxy/update'
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
doAdd
(
query
)
{
return
request
({
url
:
'/aqgl/wxglxy/add'
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
doDelete
(
query
)
{
return
request
({
url
:
'/aqgl/wxglxy/delete'
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
doQuerytree
(
query
)
{
return
request
({
url
:
'/aqgl/wxglxy/query/tree'
,
method
:
'post'
,
data
:
query
||
{}
})
}
src/api/riskPrecontrol/riskAnalysis.js
0 → 100644
View file @
a65bae6f
import
request
from
'common/src/utils/request'
export
function
doQuery
(
query
)
{
return
request
({
url
:
'/aqgl/fxyk/fxpc/fxpcfx'
,
method
:
'post'
,
data
:
query
||
{}
})
}
export
function
grouptype
(
query
)
{
return
request
({
url
:
'aqgl/fxyk/fxpc/init/grouptype'
,
method
:
'post'
,
data
:
query
||
{}
})
}
\ No newline at end of file
src/views/basicData/operationDcManagement/edit.vue
deleted
100644 → 0
View file @
85ee0f94
<
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=
"appid"
prop=
"appid"
>
<el-input
:readonly=
"readonly"
v-model=
"form.appid"
></el-input>
</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=
"备注"
>
<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
>
import
{
editMixin
}
from
'common'
export
default
{
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
mounted
()
{
console
.
log
(
this
.
$router
)
this
.
systemType
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
app
.
systemType
))
},
/* 组件名称*/
name
:
'appVersionEdit'
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data
()
{
return
{
/* 额外初始化,根据需求*/
systemType
:
[],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
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*/
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
</
style
>
src/views/basicData/operationDcManagement/index.vue
View file @
a65bae6f
...
@@ -98,16 +98,15 @@
...
@@ -98,16 +98,15 @@
}
from
"@/api/basicData/operationDcManagement.js"
;
}
from
"@/api/basicData/operationDcManagement.js"
;
import
Edit
from
'./lessEdit.vue'
import
Edit
from
'./lessEdit.vue'
import
{
tableMixin
}
from
'common'
import
{
tableMixin
}
from
'common'
import
MainIndex
from
'./mainIndex.vue'
//
import MainIndex from './mainIndex.vue'
import
LessIndex
from
'./lessIndex.vue'
//
import LessIndex from './lessIndex.vue'
export
default
{
export
default
{
mixins
:
[
tableMixin
],
mixins
:
[
tableMixin
],
name
:
'securityDocumentManagementDtl'
,
name
:
'securityDocumentManagement'
,
name
:
'securityDocumentManagement'
,
components
:{
components
:{
MainIndex
,
//
MainIndex,
LessIndex
,
//
LessIndex,
Edit
Edit
},
},
data
()
{
data
()
{
...
@@ -255,14 +254,12 @@
...
@@ -255,14 +254,12 @@
document
.
body
.
appendChild
(
a
);
document
.
body
.
appendChild
(
a
);
a
.
click
();
a
.
click
();
document
.
body
.
removeChild
(
a
);
document
.
body
.
removeChild
(
a
);
this
.
closeAll
()
},
},
downLoad
(
row
){
downLoad
(
row
){
let
title
=
row
.
fileName
let
title
=
row
.
fileName
autoAttachDownload
({},
'aqgl/jcsj/bzzywd'
,
row
.
fileId
).
then
(
res
=>
{
autoAttachDownload
({},
'aqgl/jcsj/bzzywd'
,
row
.
fileId
).
then
(
res
=>
{
this
.
down
(
res
,
row
.
type
,
title
)
this
.
down
(
res
,
row
.
type
,
title
)
})
})
},
},
selectedTree
(
val
){
selectedTree
(
val
){
if
(
val
.
type
==
'ML'
){
if
(
val
.
type
==
'ML'
){
...
...
src/views/basicData/operationDcManagement/lessIndex.vue
deleted
100644 → 0
View file @
85ee0f94
<
template
>
<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"
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/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
>
</
style
>
src/views/basicData/operationDcManagement/mainIndex.vue
deleted
100644 → 0
View file @
85ee0f94
<
template
>
<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>
<!-- 按钮操作-->
<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/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
(){
return
{}
}
}
},
data
()
{
return
{
/*需要的额外参数 */
typeMap
:
[],
systemType
:
[],
baseUrl
:
'aqgl/jcsj/aqwdml'
,
/* 查询参数*/
queryParams
:
{
name
:
''
},
/* 表格标题对应参数*/
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
>
</
style
>
src/views/dangerManagement/cxcqyh/index.vue
View file @
a65bae6f
...
@@ -154,10 +154,11 @@
...
@@ -154,10 +154,11 @@
// {label: "整改完成时间", prop: "clsj", fieldType: "ftDateTime"},
// {label: "整改完成时间", prop: "clsj", fieldType: "ftDateTime"},
{
label
:
"发现日期"
,
prop
:
"fxrq"
,
fieldType
:
"ftDateTime"
},
{
label
:
"发现日期"
,
prop
:
"fxrq"
,
fieldType
:
"ftDateTime"
,
width
:
300
},
/* */
/* */
{
label
:
"整改日期"
,
prop
:
"clsj"
,
fieldType
:
"ftDateTime"
},
{
label
:
"要求整改完成时间"
,
prop
:
"yqzgsj"
,
fieldType
:
"ftDateTime"
,
width
:
300
},
{
label
:
"复查日期"
,
prop
:
"fcsj"
,
fieldType
:
"ftDateTime"
},
{
label
:
"整改日期"
,
prop
:
"clsj"
,
fieldType
:
"ftDateTime"
,
width
:
300
},
{
label
:
"复查日期"
,
prop
:
"fcsj"
,
fieldType
:
"ftDateTime"
,
width
:
300
},
/* */
/* */
{
label
:
"风险点"
,
prop
:
"fxdName"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"风险点"
,
prop
:
"fxdName"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"隐患地点"
,
prop
:
"yhdd"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"隐患地点"
,
prop
:
"yhdd"
,
fieldType
:
"ftString"
,
width
:
300
},
...
@@ -173,7 +174,7 @@
...
@@ -173,7 +174,7 @@
{
label
:
"责任人"
,
prop
:
"zrrName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"责任人"
,
prop
:
"zrrName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"整改方案"
,
prop
:
"zgfa"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"整改方案"
,
prop
:
"zgfa"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"管控措施"
,
prop
:
"gkcs"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"管控措施"
,
prop
:
"gkcs"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"要求整改完成时间"
,
prop
:
"yqzgsj"
,
fieldType
:
"ftDateTime"
},
// {label: "隐患分类", prop: "flid", fieldType: "ftString",width:192},
// {label: "隐患分类", prop: "flid", fieldType: "ftString",width:192},
{
label
:
"处理人"
,
prop
:
"clrName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"处理人"
,
prop
:
"clrName"
,
fieldType
:
"ftString"
,
width
:
192
},
// {label: "处理时间", prop: "clsj", fieldType: "ftDateTime"},
// {label: "处理时间", prop: "clsj", fieldType: "ftDateTime"},
...
...
src/views/login.vue
View file @
a65bae6f
...
@@ -82,7 +82,7 @@
...
@@ -82,7 +82,7 @@
</el-form>
</el-form>
<!-- 底部 -->
<!-- 底部 -->
<div
class=
"el-login-footer"
>
<div
class=
"el-login-footer"
>
<span>
Copyright © 2016-2022 gavelinfo All Rights Reserved.
</span
>
<!--
<span>
Copyright © 2016-2022 gavelinfo All Rights Reserved.
</span>
--
>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
...
src/views/outsourcingDirector/approve/edit.vue
deleted
100644 → 0
View file @
85ee0f94
<
template
>
<RelDialog
:type=
"type"
:editApp=
"editApp"
:app=
"app"
:buttonApp=
"buttonApp"
class=
"table-form-border"
>
<!-- 填写表单内容,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=
"code"
>
<el-input
:readonly=
"readonly"
v-toUpperCase
v-model=
"form.code"
:disabled=
"true"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"名称"
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=
"单位类型"
prop=
"type"
>
<RelSelect
src=
"/aqgl/wxgl/wxdwsb/init/dwlx"
:match=
"
{value:'id',label:'bmmc'}"
v-model="form.dwlx"
>
</RelSelect>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"管理责任单位"
prop=
"glzrdw"
>
<RelSelect
style=
"width: 100%;"
src=
"kzzx/bm/query"
:readonly=
"readonly"
:match=
"
{value:'id',label:'bmmc'}"
v-model="form.zrdwid"
>
</RelSelect>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"负责人"
prop=
"fzr"
>
<personSelector
:label=
"form.userName||form.userid||'暂无'"
@
selected=
"userSelected"
></personSelector>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"单位地址"
prop=
"address"
>
<el-input
:readonly=
"readonly"
v-model=
"form.address"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"电子信箱"
prop=
"email"
>
<el-input
:readonly=
"readonly"
v-model=
"form.email"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"联系电话"
prop=
"phone"
>
<el-input
:readonly=
"readonly"
v-model=
"form.phone"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"联系人"
prop=
"lxr"
>
<el-input
:readonly=
"readonly"
v-model=
"form.lxr"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
class=
"padding-right"
>
<el-form-item
label=
"申报日期"
value-format=
"timestamp"
ref=
"sbrq"
prop=
"sbrq"
>
<el-date-picker
v-model=
"form.sbrq"
type=
"date"
placeholder=
"选择日期"
>
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"备注"
>
<el-input
:readonly=
"readonly"
v-model=
"form.bz"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
<!-- 按钮重写, -->
<!--
<div
slot=
"reFooter"
>
<span
slot=
"footer"
>
重写按钮写在这里,根据需要重写 slot(reFooter,foorer) 节点样式 重写方法需要在此页重新定义
</span>
</div>
-->
</RelDialog>
</
template
>
<
script
>
import
{
editMixin
}
from
"common"
;
import
{
initDwlx
}
from
"@/api/outsourcingDirector/wxdwda"
;
export
default
{
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
mounted
()
{},
/* 组件名称*/
name
:
"roleManagementEdit"
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data
()
{
return
{
/* 额外初始化,根据需求*/
systemType
:
[],
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
code
:
""
,
name
:
""
,
sbrq
:
""
,
dwlx
:
""
,
zrdwid
:
""
,
fzrid
:
""
,
pfzrid
:
""
,
address
:
""
,
email
:
""
,
phone
:
""
,
lxr
:
""
,
bz
:
""
},
/* form提交时的规则,具体规则参考官网*/
rules
:
{
email
:[
{
required
:
true
,
message
:
'请输入邮箱地址'
,
trigger
:
'blur'
},
{
type
:
'email'
,
message
:
'请输入正确的邮箱地址'
,
trigger
:
[
'blur'
,
'change'
]
}
]
},
dwlxArray
:
[]
};
},
methods
:
{
userSelected
(
row
)
{
this
.
form
.
fzrid
=
row
.
id
;
},
init
()
{}
},
mounted
()
{
this
.
init
();
}
};
</
script
>
<
style
scoped
lang=
"scss"
>
$color-border-grey
:
#c0c4cc
;
.table-form-border
{
::v-deep
.el-form-item__error
{
z-index
:
99
;
right
:
10px
!
important
;
top
:
25%
;
left
:
auto
;
}
.el-form
{
border-top
:
1px
solid
$color-border-grey
;
border-right
:
1px
solid
$color-border-grey
;
}
.el-row
.el-form-item
{
border-bottom
:
1px
solid
$color-border-grey
;
margin-bottom
:
0
;
::v-deep
.el-form-item__label
{
border-right
:
1px
solid
$color-border-grey
;
border-left
:
1px
solid
$color-border-grey
;
padding
:
0
;
text-align
:
center
;
background
:
#eee
;
}
::v-deep
.el-input__inner
{
border
:
none
;
}
}
.el-row
.el-col
:nth-child
(
2n
+
1
)
{
padding-right
:
0
!
important
;
}
.el-row
.el-col
:nth-child
(
2n
)
{
padding-left
:
0
!
important
;
}
.el-row
.el-col.padding-right
{
padding-right
:
10px
!
important
;
}
.el-row
:last-child
.el-col
,
.el-row
:first-child
.el-col
{
padding-right
:
10px
!
important
;
padding-left
:
10px
!
important
;
}
}
</
style
>
src/views/outsourcingDirector/approve/index.vue
View file @
a65bae6f
<
template
>
<
template
>
<div
class=
"min_full"
>
<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
>
<div
class=
"search"
v-condition
>
<SearchButton
:app=
"app"
></SearchButton>
<SearchButton
:app=
'app'
></SearchButton>
<el-row
:gutter=
"20"
class=
"search-row-1"
>
<el-row
:gutter=
"20"
class=
"search-row-1"
>
<el-col
:span=
"6"
class=
"search-col"
>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
档案编号:
</span>
<span
class=
"search-span"
>
文档标题:
</span>
<el-input
v-model=
"queryParams.code"
></el-input>
<el-input
v-model=
"queryParams.title"
></el-input>
</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
v-model=
"queryParams.dwlx"
clearable
placeholder=
"请选择"
>
<el-option
v-for=
"item in systemType"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
>
</el-option>
</el-select>
</div>
</div>
</el-col>
</el-col>
</el-row>
</el-row>
</div>
</div>
<!-- 按钮操作-->
<!-- 按钮操作-->
<el-row
class=
"tool-bar"
>
<el-row
class=
"tool-bar"
>
<PrintButton
:app=
"app"
></PrintButton>
<PrintButton
:app=
'this'
></PrintButton>
<ViewButton
ref=
"view"
:app=
"app"
></ViewButton>
<EditButton
ref=
"add"
:app=
'this'
></EditButton>
<AttachFileButton
:app=
"app"
></AttachFileButton>
<!--
<ViewButton
ref=
"view"
:app=
'this'
></ViewButton>
<FieldButton
:app=
"app"
></FieldButton>
<ExcelButton
:app=
"app"
></ExcelButton>
<CopyButton
ref=
"copy"
:app=
'this'
></CopyButton>
<workFlowButton
:app=
"app"
></workFlowButton>
<FieldButton
:app=
'this'
></FieldButton>
<!-- 额外按钮-->
<ExcelButton
:app=
'this'
></ExcelButton>
-->
<!--
<AttachFileButton
:app=
'this'
></AttachFileButton>
-->
<el-button
@
click=
"upload"
size=
'mini'
type=
"primary"
>
新增
</el-button>
</el-row>
</el-row>
<!-- 表格-->
<!-- 表格-->
<div
class=
"tablePagers"
>
<div
class=
"tablePagers"
>
<el-row
:gutter=
"20"
style=
"height:100%"
>
<TablePager
v-loading=
'isupLoad'
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'this'
:query=
'query'
@
selectItem=
'selectItem'
<el-col
:span=
"16"
class=
"full-h"
>
@
getRow=
'getRow'
>
<div
class=
"grid-content bg-purple full-h"
>
<template
slot=
"tabCustom"
>
<TablePager
<el-table-column
label=
"附件操作"
width=
"160"
header-align=
"center"
fixed=
"right"
>
@
getData=
"getData"
<template
slot-scope=
"scope"
>
:ref=
"'TablePager'"
<div
style=
"width: 100%;display: flex;"
>
:app=
"app"
<el-button
style=
"text-align: center;color: #3399ff;width: 33.3%;"
:query=
"query"
@
click
.
native
.
prevent=
"preview(scope.row)"
type=
"text"
size=
"small"
>
@
selectItem=
"selectItem"
<i
class=
"el-icon-view"
></i>
预览
@
getRow=
"getRow"
</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
>
<template
slot=
"tabCustom"
></
template
>
</el-table-column>
</template>
</TablePager>
</TablePager>
</div>
</div>
</el-col>
<el-col
:span=
"8"
>
<div
class=
"grid-content bg-purple"
>
<div
class=
"table-form-border"
>
<h5
style=
"text-align:center"
>
外协单位准入审批
</h5>
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"120px"
>
<el-row
:gutter=
"20"
class
>
<el-col
:span=
"24"
class=
"padding-right-sm padding-left-sm"
>
<el-form-item
label=
"档案编号"
>
<el-input
:readonly=
"readonly"
v-model=
"form.code"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"名称"
>
<el-input
:readonly=
"readonly"
v-model=
"form.name"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"单位类型"
>
<el-input
:readonly=
"readonly"
v-model=
"form.dwlx"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"责任单位"
>
<el-input
:readonly=
"readonly"
v-model=
"form.zrbmName"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"负责人"
>
<el-input
:readonly=
"readonly"
v-model=
"form.fzr"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"单位地址"
>
<el-input
:readonly=
"readonly"
v-model=
"form.address"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"电子信箱"
>
<el-input
:readonly=
"readonly"
v-model=
"form.email"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"联系电话"
>
<el-input
:readonly=
"readonly"
v-model=
"form.phone"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"联系人"
>
<el-input
:readonly=
"readonly"
v-model=
"form.lxr"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
class=
"padding-right-sm padding-left-sm"
>
<el-form-item
label=
"备注"
>
<el-input
:readonly=
"readonly"
v-model=
"form.bz"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"评价单位"
>
<el-input
:readonly=
"readonly"
v-model=
"form.phone"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"申报日期"
>
<el-input
:readonly=
"readonly"
v-model=
"form.sbrq"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
class=
"padding-right-sm padding-left-sm"
>
<div
class
style=
"line-height:36px;font-size:14px;text-align:center"
>
审批
</div>
</el-col>
</el-row>
</el-form>
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"120px"
class=
"declare-table-right"
>
<el-row
:gutter=
"20"
class
>
<el-col
:span=
"24"
class=
"padding-right-sm padding-left-sm"
>
<el-form-item
label=
"物业所在单位"
ref=
"xh"
prop=
"xh"
>
<el-input
:readonly=
"readonly"
v-model=
"form.xh"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
class=
"padding-right-sm padding-left-sm"
>
<el-form-item
label=
"申报人"
prop=
"mc"
>
<el-input
:readonly=
"readonly"
v-model=
"form.mc"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
class
>
<el-col
:span=
"24"
class=
"padding-right-sm padding-left-sm"
>
<el-form-item
:label=
"form.zrbmName"
>
<el-input
:readonly=
"readonly"
v-model=
"form.xh"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
class=
"padding-right-sm padding-left-sm"
>
<el-form-item
label=
"负责人"
>
<el-input
:readonly=
"readonly"
v-model=
"form.mc"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</div>
</div>
<!-- <MainIndex :vMain='this' ref="mainIndex" ></MainIndex>
</el-col>
<LessIndex :vMain='this' ref="lessIndex" ></LessIndex> -->
</el-row>
</div>
</div>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
/* 引入需要的接口*/
import
{
import
{
doQuerytree
doQuery
,
}
from
"@/api/outsourcingDirector/approve.js"
;
doAdd
,
import
{
doUpdate
,
autoAttach
,
doDelete
,
autoAttachDownload
,
initDwlx
deleteAttachDownload
,
}
from
"@/api/outsourcingDirector/wxdwda"
;
uploadAttachDownload
,
/* edit页面*/
aqglUploadUpdate
import
Edit
from
"./edit"
;
}
from
"common/src/api/system/dmgSystem.js"
;
import
{
doQueryDtl
,
doAddDtl
,
doUpdateDtl
,
doDeleteDtl
}
from
"@/api/outsourcingDirector/approve.js"
;
import
Edit
from
'./lessEdit.vue'
import
{
tableMixin
}
from
'common'
// import MainIndex from './mainIndex.vue'
// import LessIndex from './lessIndex.vue'
import
{
tableMixin
}
from
"common"
;
export
default
{
export
default
{
mixins
:
[
tableMixin
],
mixins
:
[
tableMixin
],
name
:
"appVersion"
,
name
:
'securityDocumentManagement'
,
components
:{
/* 初始额外赋值*/
// MainIndex,
async
mounted
()
{
// LessIndex,
await
this
.
$asRun
(
Edit
[
initDwlx
(),
res
=>
{
var
data
=
res
[
'data'
][
'records'
];
let
typeMap
=
[]
for
(
var
i
in
data
)
{
typeMap
[
data
[
i
].
id
]
=
data
[
i
].
name
}
this
.
systemType
=
data
this
.
typeMap
=
typeMap
}
]
)
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
},
data
()
{
data
()
{
return
{
return
{
/*需要的额外参数 */
show
:
false
,
systemType
:[],
isupLoad
:
false
,
showDialog
:
false
,
treeTitle
:
'文档目录'
,
DialogName
:
""
,
treeDefaultProps
:
{
type
:
""
,
children
:
'children'
,
DialogTitle
:
""
,
label
:
'name'
readonly
:
true
,
powerList
:
[
{
name
:
"分配"
},
{
name
:
"复制"
},
},
{
// 额外
name
:
"查看"
typeMap
:
[],
}
systemType
:
[],
],
baseUrl
:
'aqgl/jcsj/approve'
,
/* 基础url*/
baseUrl
:
"aqgl/wxgl/wxdwsp"
,
/* 查询参数*/
/* 查询参数*/
queryParams
:
{
queryParams
:
{
operatype
:
'W'
,
mlid
:
''
,
code
:
''
,
title
:
''
,
name
:
''
,
gsid
:
''
dwlx
:
''
},
treeQueryParams
:{
},
},
/* 表格标题对应参数*/
/* 表格标题对应参数*/
tableTitle
:
[
tableTitle
:
[
{
{
prop
:
'title'
,
label
:
'文档名称'
,
width
:
'340'
},
prop
:
"ztName"
,
{
prop
:
'fileVersion'
,
label
:
'版本'
,
width
:
'60'
},
label
:
"状态"
,
{
prop
:
'createTime'
,
label
:
'上传时间'
,
fieldType
:
"ftDateTime"
},
width
:
"120"
{
prop
:
'updUserName'
,
label
:
'上传人'
,
width
:
"80"
},
},
{
prop
:
'fileSize'
,
label
:
'大小'
,
width
:
'70'
,
{
formatter
:
function
(
a
,
b
,
bytes
){
prop
:
"code"
,
if
(
!
bytes
){
label
:
"档案编号"
,
return
'未上传文件'
width
:
"120"
}
},
if
(
bytes
===
0
)
return
'0 B'
;
{
var
k
=
1000
,
// or 1024
prop
:
"name"
,
sizes
=
[
'B'
,
'KB'
,
'MB'
,
'GB'
,
'TB'
,
'PB'
,
'EB'
,
'ZB'
,
'YB'
],
label
:
"名称"
,
i
=
Math
.
floor
(
Math
.
log
(
bytes
)
/
Math
.
log
(
k
));
width
:
"160"
},
return
(
bytes
/
Math
.
pow
(
k
,
i
)).
toPrecision
(
3
)
+
' '
+
sizes
[
i
];
{
}
prop
:
"sbrq"
,
}
label
:
"申报日期"
,
]
width
:
"160"
,
}
fieldType
:
"ftDate"
},
{
prop
:
"dwlx"
,
label
:
"单位类型"
,
width
:
"160"
,
show
:
false
},
{
prop
:
"dwlxName"
,
label
:
"单位类型"
,
width
:
"160"
},
{
prop
:
"zrdwid"
,
label
:
"责任单位ID"
,
width
:
"160"
,
show
:
false
},
{
prop
:
"zrbmName"
,
label
:
"责任单位"
,
width
:
"160"
},
{
prop
:
"pgdwid"
,
label
:
"评估单位ID"
,
width
:
"160"
,
show
:
false
},
{
prop
:
"pgbmName"
,
label
:
"评估单位"
,
width
:
"160"
},
},
{
methods
:{
prop
:
"fzrid"
,
/* 预览 */
label
:
"负责人"
,
preview
(
row
){
width
:
"160"
,
console
.
log
(
row
)
show
:
false
this
.
showType
=
row
.
fileType
let
canShow
=
[
'gif'
,
'jpg'
,
'jpeg'
,
'png'
,
'bmp'
,
'pdf'
].
indexOf
(
row
.
fileType
)
==-
1
if
(
canShow
){
this
.
$warning
(
'该文件不支持预览,请直接下载'
)
return
}
autoAttachDownload
({},
'aqgl/jcsj/approve'
,
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
(){
prop
:
"fzrName"
,
/* 清除老节点 */
label
:
"负责人"
,
$
(
'#approvefileAdd'
).
find
(
'input'
).
remove
()
width
:
"160"
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
$
(
'#approvefileAdd'
).
append
(
$lineEl
)
},
},
{
beginUpload
(){
prop
:
"address"
,
this
.
isupLoad
=
true
label
:
"单位地址"
,
let
uploadDom
=
document
.
getElementById
(
'aqglfilesonadd'
)
width
:
"160"
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/approve'
).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'添加成功'
)
this
.
isupLoad
=
false
this
.
$refs
[
'TablePager'
].
reLoad
()
}
}).
catch
(
e
=>
{
console
.
error
(
e
)
this
.
isupLoad
=
false
})
}
},
},
{
upload
(){
prop
:
"email"
,
let
$upload
=
$
(
'#aqglfilesonadd'
)
label
:
"电子邮箱"
,
arguments
[
0
]
==
'update'
&&
$upload
.
attr
(
'inputId'
,
arguments
[
1
].
fileId
)
&&
$upload
.
click
()
width
:
"160"
if
(
arguments
[
0
]
==
'update'
){
return
}
else
if
(
this
.
queryParams
.
mlid
){
$upload
.
click
()
/* 上传*/
}
else
{
this
.
$warning
(
'请选中目录操作操作'
);
}
},
},
{
down
(
data
,
type
,
title
)
{
prop
:
"lxr"
,
let
a
=
document
.
createElement
(
'a'
);
label
:
"联系人"
,
a
.
download
=
title
;
width
:
"120"
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
){
prop
:
"phone"
,
let
title
=
row
.
fileName
label
:
"联系电话"
,
autoAttachDownload
({},
'aqgl/jcsj/approve'
,
row
.
fileId
).
then
(
res
=>
{
width
:
"120"
this
.
down
(
res
,
row
.
type
,
title
)
})
},
},
{
selectedTree
(
val
){
prop
:
"bz"
,
if
(
val
.
type
==
'ML'
){
label
:
"备注"
this
.
queryParams
.
gsid
=
val
.
gsid
this
.
queryParams
.
mlid
=
val
.
id
}
else
{
this
.
queryParams
.
gsid
=
val
.
id
this
.
queryParams
.
mlid
=
''
}
}
],
form
:
{}
this
.
$refs
[
'TablePager'
].
pageQuery
()
};
},
},
methods
:
{
/* 基础查询*/
/* 基础查询*/
query
:
doQuery
,
query
:
doQueryDtl
,
apiAdd
:
doAdd
,
/* 基础增*/
apiUpdate
:
doUpdate
,
apiAdd
:
doAddDtl
,
apiDelete
:
doDelete
,
/* 基础更新*/
init
()
{},
apiUpdate
:
doUpdateDtl
,
getRow
(
currentRow
,
oldCurrentRow
){
/* 删除操作*/
this
.
form
=
currentRow
;
apiDelete
:
doDeleteDtl
,
this
.
rowItem
=
currentRow
apiTreeQuery
:
doQuerytree
,
}
},
components
:
{
Edit
}
}
};
</
script
>
<
style
scoped
lang=
"scss"
>
.full
{
width
:
100%
;
height
:
100%
;
}
.full-h
{
height
:
100%
;
}
.marin-top-10
{
margin-top
:
10px
;
}
.padding-left-sm
{
padding-left
:
10px
!
important
;
}
.padding-right-sm
{
padding-right
:
10px
!
important
;
}
.declare-table-right
{
height
:
calc
(
100%
-
420px
);
overflow-y
:
auto
;
overflow-x
:
hidden
;
}
$color-border-grey
:
#c0c4cc
;
.table-form-border
{
.el-form
{
border-top
:
1px
solid
$color-border-grey
;
border-right
:
1px
solid
$color-border-grey
;
}
.el-row
.el-form-item
{
border-bottom
:
1px
solid
$color-border-grey
;
margin-bottom
:
0
;
::v-deep
.el-form-item__label
{
border-right
:
1px
solid
$color-border-grey
;
border-left
:
1px
solid
$color-border-grey
;
padding
:
0
;
text-align
:
center
;
background
:
#eee
;
}
}
</
script
>
::v-deep
.el-input__inner
{
<
style
>
border
:
none
;
}
}
.el-row
.el-col
:nth-child
(
2n
+
1
)
{
padding-right
:
0
!
important
;
}
.el-row
.el-col
:nth-child
(
2n
+
1
)
.padding-right-sm
{
padding-right
:
10px
!
important
;
}
.el-row
.el-col
:nth-child
(
2n
)
{
padding-left
:
0
!
important
;
}
}
</
style
>
</
style
>
src/views/
basicData/operationDcManagement/main
Edit.vue
→
src/views/
outsourcingDirector/approve/less
Edit.vue
View file @
a65bae6f
...
@@ -4,23 +4,12 @@
...
@@ -4,23 +4,12 @@
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"80px"
:rules=
"rules"
>
<el-form
slot=
"form"
ref=
"form"
:model=
"form"
label-width=
"80px"
:rules=
"rules"
>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"24"
>
<el-col
:span=
"24"
>
<el-form-item
label=
"组织"
ref=
"pid"
prop=
"pid"
>
<el-form-item
label=
"标题"
ref=
"title"
prop=
"title"
>
<RelSelect
:readonly=
"readonly"
filterable
clearable
style=
"width: 100%;"
src=
'kzzx/bm/query'
:match=
"
{value:'id',label:'bmmc'}" v-model='form.pid' >
</RelSelect>
<el-input
:readonly=
"readonly"
v-model=
"form.title"
></el-input>
</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-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
</el-form>
</el-form>
</RelDialog>
</RelDialog>
</
template
>
</
template
>
...
@@ -30,10 +19,11 @@
...
@@ -30,10 +19,11 @@
mixins
:
[
editMixin
],
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
/* 存放index页面传递的额外参数*/
mounted
()
{
mounted
()
{
this
.
form
.
pid
=
this
.
app
.
queryParams
.
pid
// this.form.mlid=this.app.queryParams.mlid
this
.
form
.
gsid
=
this
.
app
.
queryParams
.
gsid
},
},
/* 组件名称*/
/* 组件名称*/
name
:
'
mai
nEdit'
,
name
:
'
appVersio
nEdit'
,
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
/* 传递props模式一样必填,用于index,button,REdialog之间的组件通信*/
data
()
{
data
()
{
...
@@ -44,32 +34,19 @@
...
@@ -44,32 +34,19 @@
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
form
:
{
pid
:
''
,
mlid
:
''
,
xh
:
''
,
gsid
:
''
,
name
:
''
,
title
:
''
,
bz
:
""
sytk
:
''
,
bz
:
""
,
fbrq
:
new
Date
().
getTime
(),
ssrq
:
new
Date
().
getTime
(),
mlid
:
''
},
},
/* form提交时的规则,具体规则参考官网*/
/* form提交时的规则,具体规则参考官网*/
rules
:
{
rules
:
{
appid
:
[{
gsid
:
[{
required
:
true
,
trigger
:
'blur'
},
],
name
:
[{
required
:
true
,
trigger
:
'blur'
},
],
type
:
[{
required
:
true
,
trigger
:
'change'
},
],
version
:
[{
required
:
true
,
trigger
:
'blur'
},
],
url
:
[{
required
:
true
,
required
:
true
,
trigger
:
'blur'
},
],
},
],
}
}
}
}
...
...
src/views/riskPrecontrol/queryRisk/index.vue
View file @
a65bae6f
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
</el-row>
</el-row>
<!-- 表格-->
<!-- 表格-->
<div
class=
"tablePagers"
>
<div
class=
"tablePagers"
>
<TablePager
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
<TablePager
:delButton=
'false'
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
@
getRow=
'getRow'
>
@
getRow=
'getRow'
>
</TablePager>
</TablePager>
</div>
</div>
...
...
src/views/riskPrecontrol/riskAnalysis/cycle.vue
View file @
a65bae6f
<
template
>
<
template
>
<div
class=
"min_full"
style=
"height: calc(84vh - 75px);"
>
<div
class=
"min_full"
style=
"height: calc(84vh - 75px);"
>
<Details
:app=
'this'
v-if=
'showDialog'
></Details>
<Details
ref=
'cycleDetails'
:app=
'this'
v-if=
'showDialog'
></Details>
<!-- 按钮操作-->
<!-- 按钮操作-->
<el-row
class=
"tool-bar"
>
<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>
<FieldButton
:app=
'app'
></FieldButton>
-->
<el-button
@
click=
"details"
size=
'mini'
type=
"primary"
>
查看详情
</el-button>
<el-button
@
click=
"details"
size=
'mini'
type=
"primary"
>
查看详情
</el-button>
<ExcelButton
:app=
'app'
></ExcelButton>
</el-row>
</el-row>
<!-- 表格-->
<!-- 表格-->
<div
class=
"tablePagers"
>
<div
class=
"tablePagers"
>
<TablePager
:delButton=
'false'
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
<TablePager
:showPagination=
'false'
:delButton=
'false'
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
@
getRow=
'getRow'
>
@
getRow=
'getRow'
>
<!-- 自定义列 slot="tabCustom",格式参照elementUi,自定义事件用this.$refs['TablePager']调用/或者v-slot通信/-->
<!-- 自定义列 slot="tabCustom",格式参照elementUi,自定义事件用this.$refs['TablePager']调用/或者v-slot通信/-->
</TablePager>
</TablePager>
...
@@ -25,22 +20,32 @@
...
@@ -25,22 +20,32 @@
<
script
>
<
script
>
/* 引入需要的接口*/
/* 引入需要的接口*/
import
{
import
{
QueryAppversion
,
doQuery
QueryApptype
,
}
from
"@/api/riskPrecontrol/riskAnalysis.js"
;
AddAppversion
,
DelAppversion
,
UpdateAppversion
}
from
"common/src/api/system/dmgSystem.js"
;
/* edit页面*/
/* edit页面*/
import
{
tableMixin
}
from
'common'
import
{
tableMixin
}
from
'common'
import
Details
from
'./cycleDetails'
import
Details
from
'./cycleDetails'
export
default
{
export
default
{
mixins
:
[
tableMixin
],
mixins
:
[
tableMixin
],
name
:
'appVersion'
,
/* 初始额外赋值*/
/* 初始额外赋值*/
async
mounted
()
{
async
mounted
()
{
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
props
:[
'vMain'
],
computed
:{
radio
(){
let
val
=
this
.
queryParams
.
rwlx
return
val
}
},
watch
:{
radio
(
val
){
val
==
'M'
&&
this
.
$refs
[
'TablePager'
][
'newGridList'
].
forEach
(
item
=>
{
item
.
prop
==
'year'
&&
(
item
.
show
=
true
);
item
.
prop
==
'month'
&&
(
item
.
show
=
true
);
item
.
prop
==
'tjrq'
&&
(
item
.
show
=
false
);
item
.
prop
==
'weekBegin'
&&
(
item
.
show
=
false
);
item
.
prop
==
'weekEnd'
&&
(
item
.
show
=
false
)})
val
==
'W'
&&
this
.
$refs
[
'TablePager'
][
'newGridList'
].
forEach
(
item
=>
{
item
.
prop
==
'year'
&&
(
item
.
show
=
false
);
item
.
prop
==
'month'
&&
(
item
.
show
=
false
);
item
.
prop
==
'tjrq'
&&
(
item
.
show
=
false
);
item
.
prop
==
'weekBegin'
&&
(
item
.
show
=
true
)
&&
(
item
.
width
=
300
);
item
.
prop
==
'weekEnd'
&&
(
item
.
show
=
true
)
&&
(
item
.
width
=
300
)})
val
==
'D'
&&
this
.
$refs
[
'TablePager'
][
'newGridList'
].
forEach
(
item
=>
{
item
.
prop
==
'year'
&&
(
item
.
show
=
false
);
item
.
prop
==
'month'
&&
(
item
.
show
=
false
);
item
.
prop
==
'tjrq'
&&
(
item
.
show
=
true
)
&&
(
item
.
width
=
400
);
item
.
prop
==
'weekBegin'
&&
(
item
.
show
=
false
);
item
.
prop
==
'weekEnd'
&&
(
item
.
show
=
false
)})
this
.
$refs
[
'TablePager'
].
pageQuery
({
setFirstCurrent
:
true
});
}
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -50,86 +55,90 @@
...
@@ -50,86 +55,90 @@
/*需要的额外参数 */
/*需要的额外参数 */
typeMap
:
[],
typeMap
:
[],
systemType
:
[],
systemType
:
[],
baseUrl
:
'kzzx/appversion'
,
//
baseUrl: 'kzzx/appversion',
/* 查询参数*/
/* 查询参数*/
queryParams
:
{},
queryParams
:
{
/* 表格标题对应参数*/
rwlx
:
''
tableTitle
:
[{
prop
:
'appid'
,
label
:
'统计日期'
,
width
:
'120'
},
{
prop
:
'name'
,
label
:
'班组'
,
width
:
'120'
},
},
/* 表格标题对应参数*/
tableTitle
:
[
{
{
prop
:
'type'
,
prop
:
'bzName'
,
label
:
'日数量'
,
label
:
'部门'
,
width
:
'120'
,
width
:
'250'
formatter
:
(
row
,
column
,
cellValue
,
index
)
=>
{
var
text
=
this
.
typeMap
[
cellValue
]
return
text
;
}
},
},
{
{
prop
:
'version
'
,
prop
:
'allCount
'
,
label
:
'末排查日
数量'
,
label
:
'工单
数量'
,
width
:
'12
0'
width
:
'25
0'
},
},
{
{
prop
:
'url
'
,
prop
:
'wclCount
'
,
label
:
'日完成率(%)
'
,
label
:
'未排查数量
'
,
width
:
'3
50'
width
:
'1
50'
},
},
{
{
prop
:
'bz
'
,
prop
:
'wcPercent
'
,
label
:
'月数量
'
,
label
:
'完成率(%)
'
,
width
:
'14
0'
width
:
'15
0'
},
},
/* 周*/
{
{
prop
:
'whr'
,
prop
:
'weekBegin'
,
label
:
'月末排查数量'
,
label
:
'周开始时间'
,
width
:
'100'
width
:
'250'
,
fieldType
:
'ftDate'
,
show
:
false
},
},
{
{
prop
:
'whsj'
,
prop
:
'weekEnd'
,
label
:
'月完成率(%)'
,
label
:
'周结束时间'
,
...
this
.
$common
(
'ftDateTime'
)
width
:
'250'
,
fieldType
:
'ftDate'
,
show
:
false
},
},
/* 月份*/
{
{
prop
:
'
whsj
'
,
prop
:
'
year
'
,
label
:
'
周数量
'
,
label
:
'
统计年份
'
,
...
this
.
$common
(
'ftDateTime'
)
width
:
'250'
},
},
{
{
prop
:
'
whsj
'
,
prop
:
'
month
'
,
label
:
'
周末排查数量
'
,
label
:
'
统计月份
'
,
...
this
.
$common
(
'ftDateTime'
)
width
:
'250'
},
},
/* 统计日期*/
{
{
prop
:
'whsj'
,
prop
:
'tjrq'
,
label
:
'周完成率(%)'
,
label
:
'统计日期'
,
...
this
.
$common
(
'ftDateTime'
)
width
:
'250'
,
},
fieldType
:
'ftDate'
,
show
:
false
}
]
]
}
}
},
},
methods
:
{
methods
:
{
details
(){
details
(){
if
(
this
.
tabData
.
length
>
0
&&
this
.
app
.
selectOne
||
this
.
app
.
clickOne
){
this
.
showDialog
=
true
this
.
showDialog
=
true
this
.
$nextTick
(()
=>
{
this
.
$refs
.
cycleDetails
.
queryParams
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
queryParams
))
this
.
$refs
.
cycleDetails
.
queryParams
.
grouptype
=
'RY'
this
.
$refs
.
cycleDetails
.
queryParams
.
bmid
=
this
.
singleItem
.
bmid
this
.
$refs
.
cycleDetails
.
$refs
[
'TablePager'
].
pageQuery
()
})
}
else
{
this
.
$warning
(
'请选择一条数据'
)
}
/* 选中查看班组人员*/
/* 选中查看班组人员*/
},
},
/* 基础查询*/
/* 基础查询*/
query
:
QueryAppversion
,
query
:
doQuery
,
/* 基础增*/
/* 基础增*/
apiAdd
:
AddAppversion
,
/* 基础更新*/
apiUpdate
:
UpdateAppversion
,
/* 删除操作*/
apiDelete
:
DelAppversion
,
/* 初始化赋值操作*/
},
},
/* 注册组件*/
/* 注册组件*/
components
:
{
components
:
{
...
...
src/views/riskPrecontrol/riskAnalysis/cycleDetails.vue
View file @
a65bae6f
<
template
>
<
template
>
<DefaultDialog
:app=
'app'
>
<DefaultDialog
:app=
'app'
>
<div
slot=
"form"
class=
"min_full"
style=
"height: 70vh;border: 0px;"
>
<div
slot=
"form"
class=
"min_full"
style=
"height: 70vh;border: 0px;"
>
<el-row
class=
"tool-bar"
>
</el-row>
<!-- 表格-->
<!-- 表格-->
<div
class=
"tablePagers"
>
<div
class=
"tablePagers"
style=
"height: 100%;"
>
<TablePager
:delButton=
'false'
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'this'
:query=
'query'
@
selectItem=
'selectItem'
<TablePager
:
showPagination=
'false'
:
delButton=
'false'
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'this'
:query=
'query'
@
selectItem=
'selectItem'
@
getRow=
'getRow'
>
@
getRow=
'getRow'
>
</TablePager>
</TablePager>
</div>
</div>
...
@@ -14,20 +12,32 @@
...
@@ -14,20 +12,32 @@
</
template
>
</
template
>
<
script
>
<
script
>
/* 引入需要的接口*/
/* 引入需要的接口*/
/* 引入需要的接口*/
import
{
import
{
QueryAppversion
,
doQuery
QueryApptype
,
}
from
"@/api/riskPrecontrol/riskAnalysis.js"
;
AddAppversion
,
DelAppversion
,
UpdateAppversion
}
from
"common/src/api/system/dmgSystem.js"
;
/* edit页面*/
/* edit页面*/
import
{
tableMixin_noapp
}
from
'common'
import
{
tableMixin_noapp
}
from
'common'
export
default
{
export
default
{
mixins
:
[
tableMixin_noapp
],
mixins
:
[
tableMixin_noapp
],
/* 初始额外赋值*/
/* 初始额外赋值*/
async
mounted
()
{
async
mounted
()
{
/* 解决插件层级异步问题*/
let
timer
=
0
timer
=
setInterval
(()
=>
{
if
(
this
.
$refs
[
'TablePager'
][
'newGridList'
].
length
!=
0
){
this
.
queryParams
.
rwlx
==
'M'
&&
this
.
$refs
[
'TablePager'
][
'newGridList'
].
forEach
(
item
=>
{
item
.
prop
==
'year'
&&
(
item
.
show
=
true
);
item
.
prop
==
'month'
&&
(
item
.
show
=
true
);
item
.
prop
==
'tjrq'
&&
(
item
.
show
=
false
);
item
.
prop
==
'weekBegin'
&&
(
item
.
show
=
false
);
item
.
prop
==
'weekEnd'
&&
(
item
.
show
=
false
)})
this
.
queryParams
.
rwlx
==
'W'
&&
this
.
$refs
[
'TablePager'
][
'newGridList'
].
forEach
(
item
=>
{
item
.
prop
==
'year'
&&
(
item
.
show
=
false
);
item
.
prop
==
'month'
&&
(
item
.
show
=
false
);
item
.
prop
==
'tjrq'
&&
(
item
.
show
=
false
);
item
.
prop
==
'weekBegin'
&&
(
item
.
show
=
true
)
&&
(
item
.
width
=
300
);
item
.
prop
==
'weekEnd'
&&
(
item
.
show
=
true
)
&&
(
item
.
width
=
300
)})
this
.
queryParams
.
rwlx
==
'D'
&&
this
.
$refs
[
'TablePager'
][
'newGridList'
].
forEach
(
item
=>
{
item
.
prop
==
'year'
&&
(
item
.
show
=
false
);
item
.
prop
==
'month'
&&
(
item
.
show
=
false
);
item
.
prop
==
'tjrq'
&&
(
item
.
show
=
true
)
&&
(
item
.
width
=
400
);
item
.
prop
==
'weekBegin'
&&
(
item
.
show
=
false
);
item
.
prop
==
'weekEnd'
&&
(
item
.
show
=
false
)})
this
.
$refs
[
'TablePager'
].
pageQuery
({});
clearInterval
(
timer
)
}
else
{
console
.
log
(
`this.$refs['TablePager']['newGridList'].length!=0`
)
}
},
100
)
},
},
props
:{
props
:{
...
@@ -37,95 +47,87 @@
...
@@ -37,95 +47,87 @@
},
},
type
:
Object
type
:
Object
}
}
},
computed
:{
},
watch
:{
},
},
data
()
{
data
()
{
return
{
return
{
showDialog
:
false
,
dialogTitle
:
'班组详情'
,
/*需要的额外参数 */
/*需要的额外参数 */
typeMap
:
[],
systemType
:
[],
baseUrl
:
'kzzx/appversion'
,
baseUrl
:
'kzzx/appversion'
,
/* 查询参数*/
/* 查询参数*/
queryParams
:
{},
queryParams
:
{
rwlx
:
''
},
/* 表格标题对应参数*/
/* 表格标题对应参数*/
tableTitle
:
[
tableTitle
:
[
{
{
prop
:
'n
ame'
,
prop
:
'jcrN
ame'
,
label
:
'班组
'
,
label
:
'姓名
'
,
width
:
'12
0'
width
:
'25
0'
},
},
{
{
prop
:
'
name
'
,
prop
:
'
allCount
'
,
label
:
'
人员
'
,
label
:
'
工单数量
'
,
width
:
'
12
0'
width
:
'
25
0'
},
},
{
{
prop
:
'type'
,
prop
:
'wclCount'
,
label
:
'日数量'
,
label
:
'未排查数量'
,
width
:
'120'
,
width
:
'150'
formatter
:
(
row
,
column
,
cellValue
,
index
)
=>
{
var
text
=
this
.
typeMap
[
cellValue
]
return
text
;
}
},
},
{
{
prop
:
'
version
'
,
prop
:
'
wcPercent
'
,
label
:
'
末排查日数量
'
,
label
:
'
完成率(%)
'
,
width
:
'1
2
0'
width
:
'1
5
0'
},
},
/* 周*/
{
{
prop
:
'url'
,
prop
:
'weekBegin'
,
label
:
'日完成率(%)'
,
label
:
'周开始时间'
,
width
:
'350'
width
:
'250'
,
fieldType
:
'ftDate'
,
show
:
false
},
},
{
{
prop
:
'bz'
,
prop
:
'weekEnd'
,
label
:
'月数量'
,
label
:
'周结束时间'
,
width
:
'140'
width
:
'250'
,
},
fieldType
:
'ftDate'
,
{
show
:
false
prop
:
'whr'
,
label
:
'月末排查数量'
,
width
:
'100'
},
{
prop
:
'whsj'
,
label
:
'月完成率(%)'
,
...
this
.
$common
(
'ftDateTime'
)
},
},
/* 月份*/
{
{
prop
:
'whsj
'
,
prop
:
'year
'
,
label
:
'周数量
'
,
label
:
'统计年份
'
,
...
this
.
$common
(
'ftDateTime'
)
width
:
'250'
},
},
{
{
prop
:
'whsj
'
,
prop
:
'month
'
,
label
:
'周末排查数量
'
,
label
:
'统计月份
'
,
...
this
.
$common
(
'ftDateTime'
)
width
:
'250'
},
},
/* 统计日期*/
{
{
prop
:
'whsj'
,
prop
:
'tjrq'
,
label
:
'周完成率(%)'
,
label
:
'统计日期'
,
...
this
.
$common
(
'ftDateTime'
)
width
:
'250'
,
},
fieldType
:
'ftDate'
,
show
:
false
}
]
]
}
}
},
},
methods
:
{
methods
:
{
details
(){
this
.
showDialog
=
true
/* 选中查看班组人员*/
},
/* 基础查询*/
/* 基础查询*/
query
:
QueryAppversion
,
query
:
doQuery
,
/* 基础增*/
apiAdd
:
AddAppversion
,
/* 基础更新*/
apiUpdate
:
UpdateAppversion
,
/* 删除操作*/
apiDelete
:
DelAppversion
,
/* 初始化赋值操作*/
},
},
/* 注册组件*/
/* 注册组件*/
components
:
{
components
:
{
...
...
src/views/riskPrecontrol/riskAnalysis/index.vue
View file @
a65bae6f
...
@@ -7,12 +7,6 @@
...
@@ -7,12 +7,6 @@
<div
class=
"search"
v-condition
>
<div
class=
"search"
v-condition
>
<SearchButton
:app=
'app'
></SearchButton>
<SearchButton
:app=
'app'
></SearchButton>
<el-row
:gutter=
"20"
class=
"search-row-1"
>
<el-row
:gutter=
"20"
class=
"search-row-1"
>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
任务类型:
</span>
<RelSelect
style=
"width: 100%;"
src=
'aqgl/fxyk/fxpc/init/rwlx'
clearable
:match=
"
{value:'id',label:'name'}" v-model='queryParams.rwlx' >
</RelSelect>
</div>
</el-col>
<el-col
:span=
"6"
class=
"search-col"
>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
开始日期:
</span>
<span
class=
"search-span"
>
开始日期:
</span>
...
@@ -25,29 +19,22 @@
...
@@ -25,29 +19,22 @@
<el-date-picker
value-format=
"timestamp"
v-model=
"queryParams.jsrq"
></el-date-picker>
<el-date-picker
value-format=
"timestamp"
v-model=
"queryParams.jsrq"
></el-date-picker>
</div>
</div>
</el-col>
</el-col>
<el-col
:span=
"6"
class=
"search-col"
>
<div
class=
"search-item"
>
<el-radio
v-model=
"queryParams.rwlx"
label=
"M"
>
月任务
</el-radio>
<el-radio
v-model=
"queryParams.rwlx"
label=
"W"
>
周任务
</el-radio>
<el-radio
v-model=
"queryParams.rwlx"
label=
"D"
>
日任务
</el-radio>
</div>
</el-col>
</el-row>
</el-row>
</div>
</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"
>
<div
class=
"tablePagers"
>
<TablePager
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
<TablePager
:showPagination=
'false'
:delButton=
'false'
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
@
getRow=
'getRow'
>
@
getRow=
'getRow'
>
</TablePager>
</TablePager>
</div>
</div>
</div>
</div>
...
@@ -55,7 +42,7 @@
...
@@ -55,7 +42,7 @@
<!-- tabs -->
<!-- tabs -->
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tab-pane
label=
"班组统计"
name=
"first"
>
<el-tab-pane
label=
"班组统计"
name=
"first"
>
<Cycle
/>
<Cycle
ref=
'cycle'
:vMain=
'this'
v-show=
'tabData.length>0&&rowItem'
/>
</el-tab-pane>
</el-tab-pane>
<!--
<el-tab-pane
label=
"详细"
name=
"first"
>
<!--
<el-tab-pane
label=
"详细"
name=
"first"
>
<Details
/>
<Details
/>
...
@@ -76,13 +63,8 @@
...
@@ -76,13 +63,8 @@
<
script
>
<
script
>
/* 引入需要的接口*/
/* 引入需要的接口*/
import
{
import
{
QueryKzzxRole
,
doQuery
QueryApptype
,
}
from
"@/api/riskPrecontrol/riskAnalysis.js"
;
AddKzzxRole
,
DeleteKzzxRole
,
UpdateKzzxRole
,
QtKzzxRole
}
from
"common/src/api/system/dmgSystem.js"
;
import
{
import
{
doQueryScgw
doQueryScgw
}
from
"@/api/riskPrecontrol/screeningCriteria.js"
;
}
from
"@/api/riskPrecontrol/screeningCriteria.js"
;
...
@@ -97,11 +79,13 @@
...
@@ -97,11 +79,13 @@
}
from
'common'
}
from
'common'
export
default
{
export
default
{
mixins
:
[
tableMixin
],
mixins
:
[
tableMixin
],
name
:
'appVersion'
,
/* 初始额外赋值*/
/* 初始额外赋值*/
async
mounted
()
{
async
mounted
()
{
this
.
$refs
[
'TablePager'
].
pageQuery
()
this
.
$nextTick
(()
=>
{
this
.
$refs
[
'TablePager'
].
pageQuery
({
setFirstCurrent
:
true
})
})
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -113,126 +97,112 @@
...
@@ -113,126 +97,112 @@
type
:
''
,
type
:
''
,
DialogTitle
:
''
,
DialogTitle
:
''
,
/* 基础url*/
/* 基础url*/
baseUrl
:
'
kzzx/role
'
,
baseUrl
:
'
aqgl/fxyk/fxpc/fxpcfx
'
,
/* 查询参数*/
/* 查询参数*/
queryParams
:
{
queryParams
:
{
rwlx
:
''
,
grouptype
:
'GS'
,
ksrq
:
new
Date
().
getTime
()
-
1000
*
60
*
60
*
24
*
30
,
rwlx
:
'D'
,
ksrq
:
new
Date
().
getTime
()
-
1000
*
60
*
60
*
24
,
jsrq
:
new
Date
().
getTime
()
jsrq
:
new
Date
().
getTime
()
},
},
/* 表格标题对应参数*/
/* 表格标题对应参数*/
tableTitle
:
[
tableTitle
:
[
{
{
prop
:
'whsj'
,
prop
:
'gsName'
,
label
:
'统计日期'
,
show
:
false
,
fieldType
:
'ftDateTime'
,
width
:
'100'
,
align
:
'left'
},
{
prop
:
'whsj'
,
label
:
'公司'
,
label
:
'公司'
,
...
this
.
$common
(
'ftDateTime'
)
width
:
'250'
},
{
prop
:
'whr'
,
label
:
'工单日数量'
,
width
:
'100'
},
},
{
{
prop
:
'whr
'
,
prop
:
'allCount
'
,
label
:
'末排查日
数量'
,
label
:
'工单
数量'
,
width
:
'10
0'
width
:
'25
0'
},
},
{
{
prop
:
'whr
'
,
prop
:
'wclCount
'
,
label
:
'日完成率(%)
'
,
label
:
'未排查数量
'
,
width
:
'1
50'
width
:
'2
50'
},
},
{
{
prop
:
'whr
'
,
prop
:
'wcPercent
'
,
label
:
'月数量
'
,
label
:
'完成率(%)
'
,
width
:
'10
0'
width
:
'25
0'
},
},
/* 周*/
{
{
prop
:
'whr'
,
prop
:
'weekBegin'
,
label
:
'月末排查数量'
,
label
:
'周开始时间'
,
width
:
'100'
width
:
'250'
,
fieldType
:
'ftDate'
,
show
:
false
},
},
{
{
prop
:
'whr'
,
prop
:
'weekEnd'
,
label
:
'月完成率(%)'
,
label
:
'周结束时间'
,
width
:
'150'
width
:
'250'
,
fieldType
:
'ftDate'
,
show
:
false
},
},
/* 月份*/
{
{
prop
:
'whr'
,
prop
:
'year'
,
label
:
'周数量'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'周末排查数量'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'周完成率(%)'
,
width
:
'150'
},
{
prop
:
'whr'
,
label
:
'统计年份'
,
label
:
'统计年份'
,
width
:
'100'
width
:
'250'
,
show
:
false
},
},
{
{
prop
:
'
whr
'
,
prop
:
'
month
'
,
label
:
'统计月份'
,
label
:
'统计月份'
,
width
:
'100'
width
:
'250'
,
show
:
false
},
/* 统计日期*/
{
prop
:
'tjrq'
,
label
:
'统计日期'
,
fieldType
:
'ftDate'
,
width
:
300
,
}
}
]
]
}
}
},
},
computed
:{
radio
(){
let
val
=
this
.
queryParams
.
rwlx
return
val
}
},
watch
:{
radio
(
val
){
val
==
'M'
&&
this
.
$refs
[
'TablePager'
][
'newGridList'
].
forEach
(
item
=>
{
item
.
prop
==
'year'
&&
(
item
.
show
=
true
);
item
.
prop
==
'month'
&&
(
item
.
show
=
true
);
item
.
prop
==
'tjrq'
&&
(
item
.
show
=
false
);
item
.
prop
==
'weekBegin'
&&
(
item
.
show
=
false
);
item
.
prop
==
'weekEnd'
&&
(
item
.
show
=
false
)})
val
==
'W'
&&
this
.
$refs
[
'TablePager'
][
'newGridList'
].
forEach
(
item
=>
{
item
.
prop
==
'year'
&&
(
item
.
show
=
false
);
item
.
prop
==
'month'
&&
(
item
.
show
=
false
);
item
.
prop
==
'tjrq'
&&
(
item
.
show
=
false
);
item
.
prop
==
'weekBegin'
&&
(
item
.
show
=
true
)
&&
(
item
.
width
=
300
);
item
.
prop
==
'weekEnd'
&&
(
item
.
show
=
true
)
&&
(
item
.
width
=
300
)})
val
==
'D'
&&
this
.
$refs
[
'TablePager'
][
'newGridList'
].
forEach
(
item
=>
{
item
.
prop
==
'year'
&&
(
item
.
show
=
false
);
item
.
prop
==
'month'
&&
(
item
.
show
=
false
);
item
.
prop
==
'tjrq'
&&
(
item
.
show
=
true
)
&&
(
item
.
width
=
400
);
item
.
prop
==
'weekBegin'
&&
(
item
.
show
=
false
);
item
.
prop
==
'weekEnd'
&&
(
item
.
show
=
false
)})
this
.
$refs
[
'TablePager'
].
pageQuery
({
setFirstCurrent
:
true
});
}
},
methods
:
{
methods
:
{
getRow
:
function
(
e
)
{
this
.
rowItem
=
e
this
.
$nextTick
(()
=>
{
this
.
$refs
.
cycle
.
queryParams
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
queryParams
))
this
.
$refs
.
cycle
.
queryParams
.
grouptype
=
'BZ'
this
.
$refs
.
cycle
.
queryParams
.
gsid
=
this
.
singleItem
.
gsid
this
.
$refs
.
cycle
.
$refs
[
'TablePager'
].
pageQuery
({
setFirstCurrent
:
true
})
})
},
handleClick
(
val
){
handleClick
(
val
){
console
.
log
(
val
,
'val'
)
},
},
/* 基础查询*/
/* 基础查询*/
query
:
QueryKzzxRole
,
query
:
doQuery
,
/* 基础增*/
apiAdd
:
AddKzzxRole
,
/* 基础更新*/
apiUpdate
:
UpdateKzzxRole
,
/* 删除操作*/
apiDelete
:
DeleteKzzxRole
,
/* 初始化赋值操作*/
init
()
{
init
()
{
},
},
/* 启用停用*/
/* 启用停用*/
setEnable
(
id
)
{
this
.
$confirm
(
'是否启用/停用该角色, 是否继续?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
let
params
=
{
id
:
id
}
QtKzzxRole
(
params
).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
$success
(
'操作成功'
)
this
.
app
.
$refs
[
'TablePager'
].
reLoad
()
}
else
{
this
.
$error
(
res
.
message
||
'操作失败'
)
}
})
})
}
},
},
...
...
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