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
Hide 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 @@
}
from
"@/api/basicData/operationDcManagement.js"
;
import
Edit
from
'./lessEdit.vue'
import
{
tableMixin
}
from
'common'
import
MainIndex
from
'./mainIndex.vue'
import
LessIndex
from
'./lessIndex.vue'
//
import MainIndex from './mainIndex.vue'
//
import LessIndex from './lessIndex.vue'
export
default
{
mixins
:
[
tableMixin
],
name
:
'securityDocumentManagementDtl'
,
name
:
'securityDocumentManagement'
,
components
:{
MainIndex
,
LessIndex
,
//
MainIndex,
//
LessIndex,
Edit
},
data
()
{
...
...
@@ -255,14 +254,12 @@
document
.
body
.
appendChild
(
a
);
a
.
click
();
document
.
body
.
removeChild
(
a
);
this
.
closeAll
()
},
downLoad
(
row
){
let
title
=
row
.
fileName
autoAttachDownload
({},
'aqgl/jcsj/bzzywd'
,
row
.
fileId
).
then
(
res
=>
{
this
.
down
(
res
,
row
.
type
,
title
)
})
},
selectedTree
(
val
){
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 @@
// {label: "整改完成时间", prop: "clsj", fieldType: "ftDateTime"},
{
label
:
"发现日期"
,
prop
:
"fxrq"
,
fieldType
:
"ftDateTime"
},
{
label
:
"发现日期"
,
prop
:
"fxrq"
,
fieldType
:
"ftDateTime"
,
width
:
300
},
/* */
{
label
:
"整改日期"
,
prop
:
"clsj"
,
fieldType
:
"ftDateTime"
},
{
label
:
"复查日期"
,
prop
:
"fcsj"
,
fieldType
:
"ftDateTime"
},
{
label
:
"要求整改完成时间"
,
prop
:
"yqzgsj"
,
fieldType
:
"ftDateTime"
,
width
:
300
},
{
label
:
"整改日期"
,
prop
:
"clsj"
,
fieldType
:
"ftDateTime"
,
width
:
300
},
{
label
:
"复查日期"
,
prop
:
"fcsj"
,
fieldType
:
"ftDateTime"
,
width
:
300
},
/* */
{
label
:
"风险点"
,
prop
:
"fxdName"
,
fieldType
:
"ftString"
,
width
:
300
},
{
label
:
"隐患地点"
,
prop
:
"yhdd"
,
fieldType
:
"ftString"
,
width
:
300
},
...
...
@@ -173,7 +174,7 @@
{
label
:
"责任人"
,
prop
:
"zrrName"
,
fieldType
:
"ftString"
,
width
:
192
},
{
label
:
"整改方案"
,
prop
:
"zgfa"
,
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
:
"clrName"
,
fieldType
:
"ftString"
,
width
:
192
},
// {label: "处理时间", prop: "clsj", fieldType: "ftDateTime"},
...
...
src/views/login.vue
View file @
a65bae6f
...
...
@@ -82,7 +82,7 @@
</el-form>
<!-- 底部 -->
<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>
</
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
>
<div
class=
"min_full"
>
<!-- 查询条件-->
<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.code"
></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>
</el-col>
</el-row>
<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>
<!-- 按钮操作-->
<el-row
class=
"tool-bar"
>
<PrintButton
:app=
"app"
></PrintButton>
<ViewButton
ref=
"view"
:app=
"app"
></ViewButton>
<AttachFileButton
:app=
"app"
></AttachFileButton>
<FieldButton
:app=
"app"
></FieldButton>
<ExcelButton
:app=
"app"
></ExcelButton>
<workFlowButton
:app=
"app"
></workFlowButton>
<!-- 额外按钮-->
</el-row>
<!-- 表格-->
<div
class=
"tablePagers"
>
<el-row
:gutter=
"20"
style=
"height:100%"
>
<el-col
:span=
"16"
class=
"full-h"
>
<div
class=
"grid-content bg-purple full-h"
>
<TablePager
@
getData=
"getData"
:ref=
"'TablePager'"
:app=
"app"
:query=
"query"
@
selectItem=
"selectItem"
@
getRow=
"getRow"
>
<template
slot=
"tabCustom"
></
template
>
</TablePager>
</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>
</el-col>
<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
{
doQuery
,
doAdd
,
doUpdate
,
doDelete
,
initDwlx
}
from
"@/api/outsourcingDirector/wxdwda"
;
/* edit页面*/
import
Edit
from
"./edit"
;
import
{
tableMixin
}
from
"common"
;
export
default
{
mixins
:
[
tableMixin
],
name
:
"appVersion"
,
import
{
doQuerytree
}
from
"@/api/outsourcingDirector/approve.js"
;
import
{
autoAttach
,
autoAttachDownload
,
deleteAttachDownload
,
uploadAttachDownload
,
aqglUploadUpdate
}
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'
/* 初始额外赋值*/
async
mounted
()
{
await
this
.
$asRun
(
[
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
()
export
default
{
mixins
:
[
tableMixin
],
name
:
'securityDocumentManagement'
,
components
:{
// MainIndex,
// LessIndex,
Edit
},
data
()
{
return
{
/*需要的额外参数 */
systemType
:[],
showDialog
:
false
,
DialogName
:
""
,
type
:
""
,
DialogTitle
:
""
,
readonly
:
true
,
powerList
:
[
{
name
:
"分配"
},
{
name
:
"复制"
},
{
name
:
"查看"
}
],
/* 基础url*/
baseUrl
:
"aqgl/wxgl/wxdwsp"
,
/* 查询参数*/
queryParams
:
{
operatype
:
'W'
,
code
:
''
,
name
:
''
,
dwlx
:
''
},
/* 表格标题对应参数*/
tableTitle
:
[
{
prop
:
"ztName"
,
label
:
"状态"
,
width
:
"120"
},
{
prop
:
"code"
,
label
:
"档案编号"
,
width
:
"120"
},
{
prop
:
"name"
,
label
:
"名称"
,
width
:
"160"
},
{
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"
},
{
prop
:
"fzrid"
,
label
:
"负责人"
,
width
:
"160"
,
show
:
false
},
{
prop
:
"fzrName"
,
label
:
"负责人"
,
width
:
"160"
data
()
{
return
{
show
:
false
,
isupLoad
:
false
,
treeTitle
:
'文档目录'
,
treeDefaultProps
:
{
children
:
'children'
,
label
:
'name'
},
{
prop
:
"address"
,
label
:
"单位地址"
,
width
:
"160"
// 额外
typeMap
:
[],
systemType
:
[],
baseUrl
:
'aqgl/jcsj/approve'
,
/* 查询参数*/
queryParams
:
{
mlid
:
''
,
title
:
''
,
gsid
:
''
},
{
prop
:
"email"
,
label
:
"电子邮箱"
,
width
:
"160"
},
{
prop
:
"lxr"
,
label
:
"联系人"
,
width
:
"120"
},
{
prop
:
"phone"
,
label
:
"联系电话"
,
width
:
"120"
treeQueryParams
:{
},
{
prop
:
"bz"
,
label
:
"备注"
/* 表格标题对应参数*/
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/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
(){
/* 清除老节点 */
$
(
'#approvefileAdd'
).
find
(
'input'
).
remove
()
let
lineEl
=
document
.
createElement
(
'input'
);
let
$lineEl
=
$
(
lineEl
)
$lineEl
.
attr
(
'type'
,
'file'
)
$lineEl
.
attr
(
'ref'
,
'upload'
)
$lineEl
.
attr
(
'id'
,
'aqglfilesonadd'
)
$lineEl
.
hide
()
$lineEl
.
change
(()
=>
{
this
.
beginUpload
()
})
// $lineEl
$
(
'#approvefileAdd'
).
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/approve'
).
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
}
],
form
:
{}
};
},
methods
:
{
/* 基础查询*/
query
:
doQuery
,
apiAdd
:
doAdd
,
apiUpdate
:
doUpdate
,
apiDelete
:
doDelete
,
init
()
{},
getRow
(
currentRow
,
oldCurrentRow
){
this
.
form
=
currentRow
;
this
.
rowItem
=
currentRow
}
},
components
:
{
Edit
}
};
</
script
>
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
);
},
downLoad
(
row
){
let
title
=
row
.
fileName
autoAttachDownload
({},
'aqgl/jcsj/approve'
,
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
=
''
}
<
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
;
this
.
$refs
[
'TablePager'
].
pageQuery
()
},
/* 基础查询*/
query
:
doQueryDtl
,
/* 基础增*/
apiAdd
:
doAddDtl
,
/* 基础更新*/
apiUpdate
:
doUpdateDtl
,
/* 删除操作*/
apiDelete
:
doDeleteDtl
,
apiTreeQuery
:
doQuerytree
,
}
::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
+
1
)
.padding-right-sm
{
padding-right
:
10px
!
important
;
}
.el-row
.el-col
:nth-child
(
2n
)
{
padding-left
:
0
!
important
;
}
}
</
script
>
<
style
>
</
style
>
src/views/
basicData/operationDcManagement/main
Edit.vue
→
src/views/
outsourcingDirector/approve/less
Edit.vue
View file @
a65bae6f
...
...
@@ -4,23 +4,12 @@
<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
label=
"标题"
ref=
"title"
prop=
"title"
>
<el-input
:readonly=
"readonly"
v-model=
"form.title"
></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</RelDialog>
</
template
>
...
...
@@ -30,10 +19,11 @@
mixins
:
[
editMixin
],
/* 存放index页面传递的额外参数*/
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之间的组件通信*/
data
()
{
...
...
@@ -44,32 +34,19 @@
/* 当前表单初始值,默认由RelDialog查询indexQuery赋值,copy时不赋值id,初始化时所有query的值都会赋值给form*/
form
:
{
pid
:
''
,
xh
:
''
,
name
:
''
,
bz
:
""
mlid
:
''
,
gsid
:
''
,
title
:
''
,
sytk
:
''
,
bz
:
""
,
fbrq
:
new
Date
().
getTime
(),
ssrq
:
new
Date
().
getTime
(),
mlid
:
''
},
/* 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'
gsid
:
[{
required
:
true
,
},
],
}
}
...
...
src/views/riskPrecontrol/queryRisk/index.vue
View file @
a65bae6f
...
...
@@ -35,7 +35,7 @@
</el-row>
<!-- 表格-->
<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'
>
</TablePager>
</div>
...
...
src/views/riskPrecontrol/riskAnalysis/cycle.vue
View file @
a65bae6f
<
template
>
<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"
>
<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>
<ExcelButton
:app=
'app'
></ExcelButton>
</el-row>
<!-- 表格-->
<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'
>
<!-- 自定义列 slot="tabCustom",格式参照elementUi,自定义事件用this.$refs['TablePager']调用/或者v-slot通信/-->
</TablePager>
...
...
@@ -25,23 +20,33 @@
<
script
>
/* 引入需要的接口*/
import
{
QueryAppversion
,
QueryApptype
,
AddAppversion
,
DelAppversion
,
UpdateAppversion
}
from
"common/src/api/system/dmgSystem.js"
;
doQuery
}
from
"@/api/riskPrecontrol/riskAnalysis.js"
;
/* edit页面*/
import
{
tableMixin
}
from
'common'
import
Details
from
'./cycleDetails'
export
default
{
mixins
:
[
tableMixin
],
name
:
'appVersion'
,
/* 初始额外赋值*/
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
()
{
return
{
showDialog
:
false
,
...
...
@@ -50,86 +55,90 @@
/*需要的额外参数 */
typeMap
:
[],
systemType
:
[],
baseUrl
:
'kzzx/appversion'
,
//
baseUrl: 'kzzx/appversion',
/* 查询参数*/
queryParams
:
{},
queryParams
:
{
rwlx
:
''
},
/* 表格标题对应参数*/
tableTitle
:
[{
prop
:
'appid'
,
label
:
'统计日期'
,
width
:
'120'
},
tableTitle
:
[
{
prop
:
'
n
ame'
,
label
:
'
班组
'
,
width
:
'12
0'
prop
:
'
bzN
ame'
,
label
:
'
部门
'
,
width
:
'25
0'
},
{
prop
:
'type'
,
label
:
'日数量'
,
width
:
'120'
,
formatter
:
(
row
,
column
,
cellValue
,
index
)
=>
{
var
text
=
this
.
typeMap
[
cellValue
]
return
text
;
}
prop
:
'allCount'
,
label
:
'工单数量'
,
width
:
'250'
},
{
prop
:
'version
'
,
label
:
'末排查日
数量'
,
width
:
'12
0'
prop
:
'wclCount
'
,
label
:
'未排查
数量'
,
width
:
'15
0'
},
{
prop
:
'url
'
,
label
:
'日完成率(%)
'
,
width
:
'3
50'
prop
:
'wcPercent
'
,
label
:
'完成率(%)
'
,
width
:
'1
50'
},
/* 周*/
{
prop
:
'bz'
,
label
:
'月数量'
,
width
:
'140'
prop
:
'weekBegin'
,
label
:
'周开始时间'
,
width
:
'250'
,
fieldType
:
'ftDate'
,
show
:
false
},
{
prop
:
'whr'
,
label
:
'月末排查数量'
,
width
:
'100'
},
{
prop
:
'whsj'
,
label
:
'月完成率(%)'
,
...
this
.
$common
(
'ftDateTime'
)
prop
:
'weekEnd'
,
label
:
'周结束时间'
,
width
:
'250'
,
fieldType
:
'ftDate'
,
show
:
false
},
/* 月份*/
{
prop
:
'
whsj
'
,
label
:
'
周数量
'
,
...
this
.
$common
(
'ftDateTime'
)
prop
:
'
year
'
,
label
:
'
统计年份
'
,
width
:
'250'
},
{
prop
:
'
whsj
'
,
label
:
'
周末排查数量
'
,
...
this
.
$common
(
'ftDateTime'
)
prop
:
'
month
'
,
label
:
'
统计月份
'
,
width
:
'250'
},
/* 统计日期*/
{
prop
:
'whsj'
,
label
:
'周完成率(%)'
,
...
this
.
$common
(
'ftDateTime'
)
},
prop
:
'tjrq'
,
label
:
'统计日期'
,
width
:
'250'
,
fieldType
:
'ftDate'
,
show
:
false
}
]
}
},
methods
:
{
details
(){
this
.
showDialog
=
true
if
(
this
.
tabData
.
length
>
0
&&
this
.
app
.
selectOne
||
this
.
app
.
clickOne
){
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
:
{
...
...
src/views/riskPrecontrol/riskAnalysis/cycleDetails.vue
View file @
a65bae6f
<
template
>
<DefaultDialog
:app=
'app'
>
<div
slot=
"form"
class=
"min_full"
style=
"height: 70vh;border: 0px;"
>
<el-row
class=
"tool-bar"
>
</el-row>
<!-- 表格-->
<div
class=
"tablePagers"
>
<TablePager
:delButton=
'false'
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'this'
:query=
'query'
@
selectItem=
'selectItem'
<div
class=
"tablePagers"
style=
"height: 100%;"
>
<TablePager
:
showPagination=
'false'
:
delButton=
'false'
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'this'
:query=
'query'
@
selectItem=
'selectItem'
@
getRow=
'getRow'
>
</TablePager>
</div>
...
...
@@ -14,20 +12,32 @@
</
template
>
<
script
>
/* 引入需要的接口*/
/* 引入需要的接口*/
import
{
QueryAppversion
,
QueryApptype
,
AddAppversion
,
DelAppversion
,
UpdateAppversion
}
from
"common/src/api/system/dmgSystem.js"
;
doQuery
}
from
"@/api/riskPrecontrol/riskAnalysis.js"
;
/* edit页面*/
import
{
tableMixin_noapp
}
from
'common'
export
default
{
mixins
:
[
tableMixin_noapp
],
/* 初始额外赋值*/
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
:{
...
...
@@ -37,95 +47,87 @@
},
type
:
Object
}
},
computed
:{
},
watch
:{
},
data
()
{
return
{
showDialog
:
false
,
dialogTitle
:
'班组详情'
,
/*需要的额外参数 */
typeMap
:
[],
systemType
:
[],
baseUrl
:
'kzzx/appversion'
,
/* 查询参数*/
queryParams
:
{},
queryParams
:
{
rwlx
:
''
},
/* 表格标题对应参数*/
tableTitle
:
[
{
prop
:
'name'
,
label
:
'班组'
,
width
:
'120'
},
{
prop
:
'name'
,
label
:
'人员'
,
width
:
'120'
},
{
prop
:
'type'
,
label
:
'日数量'
,
width
:
'120'
,
formatter
:
(
row
,
column
,
cellValue
,
index
)
=>
{
var
text
=
this
.
typeMap
[
cellValue
]
return
text
;
}
},
{
prop
:
'version'
,
label
:
'末排查日数量'
,
width
:
'120'
},
{
prop
:
'url'
,
label
:
'日完成率(%)'
,
width
:
'350'
},
{
prop
:
'bz'
,
label
:
'月数量'
,
width
:
'140'
},
{
prop
:
'whr'
,
label
:
'月末排查数量'
,
width
:
'100'
},
{
prop
:
'whsj'
,
label
:
'月完成率(%)'
,
...
this
.
$common
(
'ftDateTime'
)
},
{
prop
:
'whsj'
,
label
:
'周数量'
,
...
this
.
$common
(
'ftDateTime'
)
},
{
prop
:
'whsj'
,
label
:
'周末排查数量'
,
...
this
.
$common
(
'ftDateTime'
)
},
{
prop
:
'whsj'
,
label
:
'周完成率(%)'
,
...
this
.
$common
(
'ftDateTime'
)
},
{
prop
:
'jcrName'
,
label
:
'姓名'
,
width
:
'250'
},
{
prop
:
'allCount'
,
label
:
'工单数量'
,
width
:
'250'
},
{
prop
:
'wclCount'
,
label
:
'未排查数量'
,
width
:
'150'
},
{
prop
:
'wcPercent'
,
label
:
'完成率(%)'
,
width
:
'150'
},
/* 周*/
{
prop
:
'weekBegin'
,
label
:
'周开始时间'
,
width
:
'250'
,
fieldType
:
'ftDate'
,
show
:
false
},
{
prop
:
'weekEnd'
,
label
:
'周结束时间'
,
width
:
'250'
,
fieldType
:
'ftDate'
,
show
:
false
},
/* 月份*/
{
prop
:
'year'
,
label
:
'统计年份'
,
width
:
'250'
},
{
prop
:
'month'
,
label
:
'统计月份'
,
width
:
'250'
},
/* 统计日期*/
{
prop
:
'tjrq'
,
label
:
'统计日期'
,
width
:
'250'
,
fieldType
:
'ftDate'
,
show
:
false
}
]
}
},
methods
:
{
details
(){
this
.
showDialog
=
true
/* 选中查看班组人员*/
},
/* 基础查询*/
query
:
QueryAppversion
,
/* 基础增*/
apiAdd
:
AddAppversion
,
/* 基础更新*/
apiUpdate
:
UpdateAppversion
,
/* 删除操作*/
apiDelete
:
DelAppversion
,
/* 初始化赋值操作*/
query
:
doQuery
,
},
/* 注册组件*/
components
:
{
...
...
src/views/riskPrecontrol/riskAnalysis/index.vue
View file @
a65bae6f
...
...
@@ -7,12 +7,6 @@
<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>
<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"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
开始日期:
</span>
...
...
@@ -25,29 +19,22 @@
<el-date-picker
value-format=
"timestamp"
v-model=
"queryParams.jsrq"
></el-date-picker>
</div>
</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>
</div>
<!-- 按钮操作-->
<el-row
class=
"tool-bar"
>
<PrintButton
:app=
'app'
></PrintButton>
<!--
<ViewButton
ref=
"view"
:app=
'app'
></ViewButton>
<AddButton
ref=
"add"
:app=
'app'
></AddButton>
<CopyButton
ref=
"copy"
:app=
'app'
></CopyButton>
<EditButton
ref=
"edit"
:app=
'app'
></EditButton>
<AttachFileButton
:app=
'app'
></AttachFileButton>
-->
<FieldButton
:app=
'app'
></FieldButton>
<ExcelButton
:app=
'app'
></ExcelButton>
<!-- 额外按钮-->
<!-- 表头设置 -->
<!-- 权限-->
</el-row>
<!-- 表格-->
<div
class=
"tablePagers"
>
<TablePager
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
<TablePager
:showPagination=
'false'
:delButton=
'false'
@
getData=
'getData'
:ref=
"'TablePager'"
:app=
'app'
:query=
'query'
@
selectItem=
'selectItem'
@
getRow=
'getRow'
>
</TablePager>
</div>
</div>
...
...
@@ -55,7 +42,7 @@
<!-- tabs -->
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tab-pane
label=
"班组统计"
name=
"first"
>
<Cycle
/>
<Cycle
ref=
'cycle'
:vMain=
'this'
v-show=
'tabData.length>0&&rowItem'
/>
</el-tab-pane>
<!--
<el-tab-pane
label=
"详细"
name=
"first"
>
<Details
/>
...
...
@@ -76,13 +63,8 @@
<
script
>
/* 引入需要的接口*/
import
{
QueryKzzxRole
,
QueryApptype
,
AddKzzxRole
,
DeleteKzzxRole
,
UpdateKzzxRole
,
QtKzzxRole
}
from
"common/src/api/system/dmgSystem.js"
;
doQuery
}
from
"@/api/riskPrecontrol/riskAnalysis.js"
;
import
{
doQueryScgw
}
from
"@/api/riskPrecontrol/screeningCriteria.js"
;
...
...
@@ -97,11 +79,13 @@
}
from
'common'
export
default
{
mixins
:
[
tableMixin
],
name
:
'appVersion'
,
/* 初始额外赋值*/
async
mounted
()
{
this
.
$refs
[
'TablePager'
].
pageQuery
()
this
.
$nextTick
(()
=>
{
this
.
$refs
[
'TablePager'
].
pageQuery
({
setFirstCurrent
:
true
})
})
},
data
()
{
return
{
...
...
@@ -113,126 +97,112 @@
type
:
''
,
DialogTitle
:
''
,
/* 基础url*/
baseUrl
:
'
kzzx/role
'
,
baseUrl
:
'
aqgl/fxyk/fxpc/fxpcfx
'
,
/* 查询参数*/
queryParams
:
{
rwlx
:
''
,
ksrq
:
new
Date
().
getTime
()
-
1000
*
60
*
60
*
24
*
30
,
grouptype
:
'GS'
,
rwlx
:
'D'
,
ksrq
:
new
Date
().
getTime
()
-
1000
*
60
*
60
*
24
,
jsrq
:
new
Date
().
getTime
()
},
/* 表格标题对应参数*/
tableTitle
:
[
{
prop
:
'whsj'
,
label
:
'统计日期'
,
show
:
false
,
fieldType
:
'ftDateTime'
,
width
:
'100'
,
align
:
'left'
},
{
prop
:
'whsj'
,
prop
:
'gsName'
,
label
:
'公司'
,
...
this
.
$common
(
'ftDateTime'
)
},
{
prop
:
'whr'
,
label
:
'工单日数量'
,
width
:
'100'
width
:
'250'
},
{
prop
:
'whr
'
,
label
:
'末排查日
数量'
,
width
:
'10
0'
prop
:
'allCount
'
,
label
:
'工单
数量'
,
width
:
'25
0'
},
{
prop
:
'whr
'
,
label
:
'日完成率(%)
'
,
width
:
'1
50'
prop
:
'wclCount
'
,
label
:
'未排查数量
'
,
width
:
'2
50'
},
{
prop
:
'whr
'
,
label
:
'月数量
'
,
width
:
'10
0'
prop
:
'wcPercent
'
,
label
:
'完成率(%)
'
,
width
:
'25
0'
},
/* 周*/
{
prop
:
'whr'
,
label
:
'月末排查数量'
,
width
:
'100'
prop
:
'weekBegin'
,
label
:
'周开始时间'
,
width
:
'250'
,
fieldType
:
'ftDate'
,
show
:
false
},
{
prop
:
'whr'
,
label
:
'月完成率(%)'
,
width
:
'150'
prop
:
'weekEnd'
,
label
:
'周结束时间'
,
width
:
'250'
,
fieldType
:
'ftDate'
,
show
:
false
},
/* 月份*/
{
prop
:
'whr'
,
label
:
'周数量'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'周末排查数量'
,
width
:
'100'
},
{
prop
:
'whr'
,
label
:
'周完成率(%)'
,
width
:
'150'
},
{
prop
:
'whr'
,
prop
:
'year'
,
label
:
'统计年份'
,
width
:
'100'
width
:
'250'
,
show
:
false
},
{
prop
:
'
whr
'
,
prop
:
'
month
'
,
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
:
{
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
){
console
.
log
(
val
,
'val'
)
},
/* 基础查询*/
query
:
QueryKzzxRole
,
/* 基础增*/
apiAdd
:
AddKzzxRole
,
/* 基础更新*/
apiUpdate
:
UpdateKzzxRole
,
/* 删除操作*/
apiDelete
:
DeleteKzzxRole
,
/* 初始化赋值操作*/
query
:
doQuery
,
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