Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
liangzhen
/
framework-tools-web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e933a4dd
authored
Jun 20, 2024
by
xiehao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:删除了试用范围
1 parent
fdac565e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
242 additions
and
240 deletions
src/api/architectureInspection.js
src/views/collectDataConfiguration/Add.vue
src/views/collectDataConfiguration/AddTabelList.vue
src/views/collectDataConfiguration/index.vue
src/api/architectureInspection.js
View file @
e933a4d
...
...
@@ -4,11 +4,11 @@
import
{
EADC_ARRCHITECTURE
,
EADC_KNOWLEDGE_POOL
,
EADC_SHARED_ABILITY
}
from
'@/config/micromodule'
// 收集资料配置 查询
export
const
collectDataSearch
=
EADC_ARRCHITECTURE
+
'/
Collect/C
ollectInformation/'
export
const
collectDataSearch
=
EADC_ARRCHITECTURE
+
'/
collect/c
ollectInformation/'
// 弹框内表格查询 prjCode: 不传 查全部 选择传,拼接的id
export
const
collectDataConfiguration
=
EADC_ARRCHITECTURE
+
'/
C
ollect/information/'
export
const
collectDataConfiguration
=
EADC_ARRCHITECTURE
+
'/
c
ollect/information/'
// 督查材料收集 查询
export
const
supervisionData
=
EADC_ARRCHITECTURE
+
'/
C
ollect/supervisionData/'
export
const
supervisionData
=
EADC_ARRCHITECTURE
+
'/
c
ollect/supervisionData/'
// 架构督查分析 查询 tab1 tab2
export
const
architectureInspectionAnalysis
=
EADC_ARRCHITECTURE
+
'/supervIndex/selectSupervIndex'
export
const
selectSupervAnalysis
=
EADC_ARRCHITECTURE
+
'/supervAnalysis/selectSupervAnalysis'
...
...
src/views/collectDataConfiguration/Add.vue
View file @
e933a4d
...
...
@@ -208,7 +208,7 @@ export default {
materialType
,
supervision
:
this
.
rowData
.
supervision
}
let
url
=
!
this
.
edit
?
'/
Collect/ad'
:
'/C
ollect/upd'
// 编辑
let
url
=
!
this
.
edit
?
'/
collect/ad'
:
'/c
ollect/upd'
// 编辑
this
.
$postRequest
(
url
,
params
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
loading
.
close
()
...
...
src/views/collectDataConfiguration/AddTabelList.vue
View file @
e933a4d
...
...
@@ -46,19 +46,17 @@ export default {
if
(
v
){
this
.
columns
=
[
{
label
:
'序号'
,
type
:
'index'
,
width
:
'80px'
},
{
label
:
'单位'
,
prop
:
'manageDept
Id
'
,
width
:
'150px'
},
{
label
:
'单位'
,
prop
:
'manageDept
Name
'
,
width
:
'150px'
},
{
label
:
'项目名称'
,
prop
:
'prjName'
,
},
{
label
:
'项目经理'
,
prop
:
'projectManager'
,
width
:
'200px'
},
{
label
:
'创建人'
,
prop
:
'createMan'
,
width
:
'150px'
},
]
}
else
{
this
.
columns
=
[
{
type
:
'selection'
,
width
:
'55px'
},
{
label
:
'序号'
,
type
:
'index'
,
width
:
'80px'
},
{
label
:
'单位'
,
prop
:
'manageDept
Id
'
,
width
:
'150px'
},
{
label
:
'单位'
,
prop
:
'manageDept
Name
'
,
width
:
'150px'
},
{
label
:
'项目名称'
,
prop
:
'prjName'
,
},
{
label
:
'项目经理'
,
prop
:
'projectManager'
,
width
:
'200px'
},
{
label
:
'创建人'
,
prop
:
'createMan'
,
width
:
'150px'
},
]
}
},
...
...
src/views/collectDataConfiguration/index.vue
View file @
e933a4d
<
template
>
<div
class=
"searchTable"
>
<list-page>
<!-- 查询表单插槽 -->
<template
#
formWrap
>
<SearchForm
@
onSearch=
"querySearch"
:form-options=
"formOptions"
/>
</
template
>
<!-- 中部操作按钮 -->
<
template
#
operationWrap
>
<el-button
type=
"primary"
icon=
"el-icon-document-add"
size=
"medium"
plain
@
click=
"fnAdd"
>
新建
</el-button
>
</
template
>
<!-- 表格插槽 -->
<
template
#
tableWrap
>
<table-config
ref=
"searchTable"
:query=
"query"
:columns=
"columns"
id-key=
"elementId"
>
<template
#
supervision=
"
{ data }">
<el-button
v-if=
"data.row.supervision"
class=
"detailBtn"
size=
"medium"
@
click=
"detailBtn( data.row)"
>
{{
data
.
row
.
supervision
}}
</el-button
>
<span
v-else
>
{{
data
.
row
.
supervision
}}
</span>
</
template
>
</table-config>
</template>
<!-- 查询表单插槽 -->
<template
#
formWrap
>
<SearchForm
@
onSearch=
"querySearch"
:form-options=
"formOptions"
/>
</
template
>
<!-- 中部操作按钮 -->
<
template
#
operationWrap
>
<el-button
type=
"primary"
icon=
"el-icon-document-add"
size=
"medium"
plain
@
click=
"fnAdd"
>
新建
</el-button
>
</
template
>
<!-- 表格插槽 -->
<
template
#
tableWrap
>
<table-config
ref=
"searchTable"
:query=
"query"
:columns=
"columns"
id-key=
"elementId"
>
<template
#
supervision=
"
{ data }">
<el-button
v-if=
"data.row.supervision"
class=
"detailBtn"
size=
"medium"
@
click=
"detailBtn( data.row)"
>
{{
data
.
row
.
supervision
}}
</el-button
>
<span
v-else
>
{{
data
.
row
.
supervision
}}
</span>
</
template
>
</table-config>
</template>
</list-page>
<!-- 新增弹窗 -->
<Add
@
querySearch=
"querySearch"
:visible
.
sync=
"visible"
:row-data=
"rowData"
:title=
"dialogTitle"
@
addList=
'addList'
:edit=
'isEdit'
@
querySearch=
"querySearch"
:visible
.
sync=
"visible"
:row-data=
"rowData"
:title=
"dialogTitle"
@
addList=
'addList'
:edit=
'isEdit'
></Add>
<!-- 详情 -->
<Detail
ref=
"Detail"
:prjCodeDetail=
'detailPrjCode'
:visible
.
sync=
"visibleDetail"
@
selectTabel=
'selectTabel'
:title=
"detailTitle"
/>
...
...
@@ -43,225 +43,228 @@ import AddTabelList from './AddTabelList.vue'
import
ListPage
from
'@/components/ListPage.vue'
import
SearchForm
from
'@/components/SearchForm.vue'
import
TableConfig
from
'./TableConfig.vue'
import
{
collectDataSearch
}
from
'@/api/architectureInspection'
import
{
collectDataSearch
}
from
'@/api/architectureInspection'
import
Add
from
'./Add.vue'
import
Detail
from
'./Detail.vue'
import
{
materialTypeList
,
stateCode
}
from
'@/utils/architectureInspectionDis'
import
{
materialTypeList
,
stateCode
}
from
'@/utils/architectureInspectionDis'
export
default
{
name
:
'collectDataConfiguration'
,
components
:
{
ListPage
,
SearchForm
,
TableConfig
,
Add
,
AddTabelList
,
Detail
},
computed
:
{
formOptions
()
{
return
[
{
label
:
'督查方案名称'
,
// label文字
prop
:
'prjCode'
,
// 字段名
element
:
'el-input'
,
// 指定elementui组件
placeholder
:
'请输入内容'
,
// elementui组件属性
},
]
name
:
'collectDataConfiguration'
,
components
:
{
ListPage
,
SearchForm
,
TableConfig
,
Add
,
AddTabelList
,
Detail
},
computed
:
{
formOptions
()
{
return
[
{
label
:
'督查方案名称'
,
// label文字
prop
:
'prjCode'
,
// 字段名
element
:
'el-input'
,
// 指定elementui组件
placeholder
:
'请输入内容'
,
// elementui组件属性
},
columns
()
{
return
[
{
label
:
'序号'
,
type
:
'index'
,
width
:
'80px'
},
{
label
:
'督查方案名称'
,
prop
:
'supervName'
,
},
{
label
:
'创建时间'
,
prop
:
'createTime'
,
width
:
'120px'
},
{
label
:
'材料类型'
,
prop
:
'materialType'
,
collectionType
:
'materialTypeList'
,
options
:
materialTypeList
},
{
label
:
'截止时间'
,
prop
:
'endTime'
,
width
:
'120px'
},
{
label
:
'督查清单'
,
prop
:
'supervision'
,
__slotName
:
'supervision'
,
},
{
label
:
'状态'
,
prop
:
'state'
,
width
:
'120px'
,
collectionType
:
'stateCode'
,
options
:
stateCode
,
},
{
label
:
'备注'
,
prop
:
'notes'
,
width
:
'100px'
},
{
label
:
'操作'
,
type
:
'operation'
,
width
:
'360px'
,
actionButtons
:
[
{
title
:
'编辑'
,
type
:
'primary'
,
size
:
'mini'
,
plain
:
true
,
icon
:
'el-icon-edit'
,
disabledCallback
:
(
row
,
title
)
=>
{
return
row
.
state
==
'1'
?
true
:
false
},
},
{
title
:
'删除'
,
type
:
'danger'
,
size
:
'mini'
,
plain
:
true
,
icon
:
'el-icon-delete'
,
disabledCallback
:
(
row
,
title
)
=>
{
return
row
.
state
==
'1'
?
true
:
false
},
},
{
title
:
'发布'
,
size
:
'mini'
,
icon
:
'el-icon-circle-check'
,
type
:
'primary'
,
plain
:
true
,
disabledCallback
:
(
row
,
title
)
=>
{
return
row
.
state
==
'1'
?
true
:
false
},
},
],
callback
:
(
row
,
title
)
=>
{
this
.
fnOperation
(
row
,
title
)
},
},
]
},
},
data
(){
return
{
query
:
{
url
:
collectDataSearch
,
method
:
'post'
,
queryParam
:
{
supervName
:
''
},
},
visible
:
false
,
rowData
:
{},
dialogTitle
:
''
,
approvalVisible
:
false
,
selectRows
:
[],
selectId
:
''
,
prjCode
:
''
,
detailTitle
:
'详情'
,
visibleDetail
:
false
,
detailPrjCode
:
''
,
isEdit
:
false
}
]
},
methods
:
{
querySearch
(
data
)
{
this
.
query
.
queryParam
=
{
...
this
.
query
.
queryParam
,
...
data
,
}
this
.
$refs
.
searchTable
.
queryData
()
columns
()
{
return
[
{
label
:
'序号'
,
type
:
'index'
,
width
:
'80px'
},
{
label
:
'督查方案名称'
,
prop
:
'supervName'
,},
{
label
:
'材料类型'
,
prop
:
'materialType'
,
collectionType
:
'materialTypeList'
,
options
:
materialTypeList
},
fnAdd
()
{
this
.
visible
=
true
this
.
rowData
=
{}
this
.
dialogTitle
=
'收集资料配置'
this
.
isEdit
=
false
{
label
:
'督查清单'
,
prop
:
'supervision'
,
__slotName
:
'supervision'
,},
{
label
:
'状态'
,
prop
:
'state'
,
width
:
'120px'
,
collectionType
:
'stateCode'
,
options
:
stateCode
,
},
/**
* @description: 操作按钮
* @param {Object} row 当前操作行数据
* @param {String} title 当前操作按钮名称
* @author: pan
*/
fnOperation
(
row
,
title
)
{
switch
(
title
)
{
case
'编辑'
:
this
.
fnEdit
(
row
)
break
case
'删除'
:
this
.
fnDel
(
row
)
break
case
'发布'
:
this
.
fnSubmit
(
row
)
default
:
break
}
{
label
:
'备注'
,
prop
:
'notes'
,
width
:
'100px'
},
{
label
:
'创建时间'
,
prop
:
'createTime'
,
width
:
'120px'
},
{
label
:
'截止时间'
,
prop
:
'endTime'
,
width
:
'120px'
},
{
label
:
'操作'
,
type
:
'operation'
,
width
:
'360px'
,
actionButtons
:
[
{
title
:
'编辑'
,
type
:
'primary'
,
size
:
'mini'
,
plain
:
true
,
icon
:
'el-icon-edit'
,
disabledCallback
:
(
row
,
title
)
=>
{
return
row
.
state
==
'1'
?
true
:
false
},
},
{
title
:
'删除'
,
type
:
'danger'
,
size
:
'mini'
,
plain
:
true
,
icon
:
'el-icon-delete'
,
disabledCallback
:
(
row
,
title
)
=>
{
return
row
.
state
==
'1'
?
true
:
false
},
},
{
title
:
'发布'
,
size
:
'mini'
,
icon
:
'el-icon-circle-check'
,
type
:
'primary'
,
plain
:
true
,
disabledCallback
:
(
row
,
title
)
=>
{
return
row
.
state
==
'1'
?
true
:
false
},
},
],
callback
:
(
row
,
title
)
=>
{
this
.
fnOperation
(
row
,
title
)
},
},
fnSubmit
(
row
)
{
this
.
$confirm
(
'是否确认发布?'
,
'提示'
,
{
confirmButtonText
:
'确认'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
})
.
then
(()
=>
{
const
params
=
{
...
row
,
state
:
2
,
}
this
.
$postRequest
(
'/Collect/fb'
,
{...
row
}).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
$message
.
success
(
'发布成功'
)
this
.
$refs
.
searchTable
.
queryData
()
}
else
{
this
.
$message
.
error
(
res
.
msg
)
}
})
})
.
catch
(()
=>
{})
]
},
},
data
()
{
return
{
query
:
{
url
:
collectDataSearch
,
method
:
'post'
,
queryParam
:
{
supervName
:
''
},
fnDel
(
row
)
{
this
.
$confirm
(
'是否确认删除?'
,
'提示'
,
{
confirmButtonText
:
'确认'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
},
visible
:
false
,
rowData
:
{},
dialogTitle
:
''
,
approvalVisible
:
false
,
selectRows
:
[],
selectId
:
''
,
prjCode
:
''
,
detailTitle
:
'详情'
,
visibleDetail
:
false
,
detailPrjCode
:
''
,
isEdit
:
false
}
},
methods
:
{
querySearch
(
data
)
{
this
.
query
.
queryParam
=
{
...
this
.
query
.
queryParam
,
...
data
,
}
this
.
$refs
.
searchTable
.
queryData
()
},
fnAdd
()
{
this
.
visible
=
true
this
.
rowData
=
{}
this
.
dialogTitle
=
'收集资料配置'
this
.
isEdit
=
false
},
/**
* @description: 操作按钮
* @param {Object} row 当前操作行数据
* @param {String} title 当前操作按钮名称
* @author: pan
*/
fnOperation
(
row
,
title
)
{
switch
(
title
)
{
case
'编辑'
:
this
.
fnEdit
(
row
)
break
case
'删除'
:
this
.
fnDel
(
row
)
break
case
'发布'
:
this
.
fnSubmit
(
row
)
default
:
break
}
},
fnSubmit
(
row
)
{
this
.
$confirm
(
'是否确认发布?'
,
'提示'
,
{
confirmButtonText
:
'确认'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
})
.
then
(()
=>
{
const
params
=
{
...
row
,
state
:
2
,
}
this
.
$postRequest
(
'/collect/fb'
,
{...
row
}).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
$message
.
success
(
'发布成功'
)
this
.
$refs
.
searchTable
.
queryData
()
}
else
{
this
.
$message
.
error
(
res
.
msg
)
}
})
.
then
(()
=>
{
const
params
=
{
...
row
,
delFlag
:
1
,
}
this
.
$postRequest
(
'/Collect/del'
,
{
supervId
:
row
.
supervId
}).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
$message
.
success
(
'删除成功'
)
this
.
$refs
.
searchTable
.
queryData
()
}
else
{
this
.
$message
.
error
(
'删除失败'
)
}
})
})
.
catch
(()
=>
{
})
},
fnDel
(
row
)
{
this
.
$confirm
(
'是否确认删除?'
,
'提示'
,
{
confirmButtonText
:
'确认'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
})
.
then
(()
=>
{
const
params
=
{
...
row
,
delFlag
:
1
,
}
this
.
$postRequest
(
'/collect/del'
,
{
supervId
:
row
.
supervId
}).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
$message
.
success
(
'删除成功'
)
this
.
$refs
.
searchTable
.
queryData
()
}
else
{
this
.
$message
.
error
(
'删除失败'
)
}
})
.
catch
(()
=>
{})
},
fnEdit
(
row
)
{
this
.
dialogTitle
=
'收集资料配置'
this
.
rowData
=
row
this
.
visible
=
true
this
.
isEdit
=
true
},
addList
(){
this
.
detailTitle
=
'督查清单'
this
.
detailPrjCode
=
''
this
.
visibleDetail
=
true
},
// 督查清单 详情
detailBtn
(
v
){
this
.
detailTitle
=
'详情'
this
.
detailPrjCode
=
v
.
supervision
this
.
visibleDetail
=
true
},
selectTabel
(
v
){
let
id
=
this
.
rowData
.
supervision
let
arrV
=
v
.
split
(
','
)
let
arrId
=
id
.
split
(
','
)
let
arr
=
[...
arrV
,
...
arrId
]
this
.
rowData
.
supervision
=
!!
v
?
Array
.
from
(
new
Set
(
arr
)).
join
(
','
)
:
id
// this.rowData.supervision = !!v ? v +','+id : id
},
}
})
.
catch
(()
=>
{
})
},
fnEdit
(
row
)
{
this
.
dialogTitle
=
'收集资料配置'
this
.
rowData
=
row
this
.
visible
=
true
this
.
isEdit
=
true
},
addList
()
{
this
.
detailTitle
=
'督查清单'
this
.
detailPrjCode
=
''
this
.
visibleDetail
=
true
},
// 督查清单 详情
detailBtn
(
v
)
{
this
.
detailTitle
=
'详情'
this
.
detailPrjCode
=
v
.
supervision
this
.
visibleDetail
=
true
},
selectTabel
(
v
)
{
let
id
=
this
.
rowData
.
supervision
let
arrV
=
v
.
split
(
','
)
let
arrId
=
id
.
split
(
','
)
let
arr
=
[...
arrV
,
...
arrId
]
this
.
rowData
.
supervision
=
!!
v
?
Array
.
from
(
new
Set
(
arr
)).
join
(
','
)
:
id
// this.rowData.supervision = !!v ? v +','+id : id
},
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.detailBtn
{
border
:
none
;
background
:
none
;
color
:
#0d867f
;
width
:
100%
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
.detailBtn
{
border
:
none
;
background
:
none
;
color
:
#0d867f
;
width
:
100%
;
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
}
</
style
>
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
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 post a comment