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
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
31 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
...
...
@@ -3,11 +3,11 @@
<list-page>
<!-- 查询表单插槽 -->
<template
#
formWrap
>
<SearchForm
@
onSearch=
"querySearch"
:form-options=
"formOptions"
/>
<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
>
<el-button
type=
"primary"
icon=
"el-icon-document-add"
size=
"medium"
plain
@
click=
"fnAdd"
>
新建
</el-button
>
</
template
>
<!-- 表格插槽 -->
<
template
#
tableWrap
>
...
...
@@ -18,8 +18,8 @@
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>
<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>
...
...
@@ -43,14 +43,14 @@ 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
},
components
:
{
ListPage
,
SearchForm
,
TableConfig
,
Add
,
AddTabelList
,
Detail
},
computed
:
{
formOptions
()
{
return
[
...
...
@@ -64,15 +64,14 @@ export default {
},
columns
()
{
return
[
{
label
:
'序号'
,
type
:
'index'
,
width
:
'80px'
},
{
label
:
'督查方案名称'
,
prop
:
'supervName'
,
},
{
label
:
'创建时间'
,
prop
:
'createTime'
,
width
:
'120px'
},
{
label
:
'材料类型'
,
prop
:
'materialType'
,
{
label
:
'序号'
,
type
:
'index'
,
width
:
'80px'
},
{
label
:
'督查方案名称'
,
prop
:
'supervName'
,
},
{
label
:
'材料类型'
,
prop
:
'materialType'
,
collectionType
:
'materialTypeList'
,
options
:
materialTypeList
},
{
label
:
'截止时间'
,
prop
:
'endTime'
,
width
:
'120px'
},
{
label
:
'督查清单'
,
prop
:
'supervision'
,
__slotName
:
'supervision'
,
},
{
label
:
'督查清单'
,
prop
:
'supervision'
,
__slotName
:
'supervision'
,},
{
label
:
'状态'
,
prop
:
'state'
,
...
...
@@ -80,7 +79,9 @@ export default {
collectionType
:
'stateCode'
,
options
:
stateCode
,
},
{
label
:
'备注'
,
prop
:
'notes'
,
width
:
'100px'
},
{
label
:
'备注'
,
prop
:
'notes'
,
width
:
'100px'
},
{
label
:
'创建时间'
,
prop
:
'createTime'
,
width
:
'120px'
},
{
label
:
'截止时间'
,
prop
:
'endTime'
,
width
:
'120px'
},
{
label
:
'操作'
,
type
:
'operation'
,
...
...
@@ -124,7 +125,7 @@ export default {
]
},
},
data
()
{
data
()
{
return
{
query
:
{
url
:
collectDataSearch
,
...
...
@@ -192,7 +193,7 @@ export default {
...
row
,
state
:
2
,
}
this
.
$postRequest
(
'/C
ollect/fb'
,
{...
row
}).
then
(
res
=>
{
this
.
$postRequest
(
'/c
ollect/fb'
,
{...
row
}).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
$message
.
success
(
'发布成功'
)
this
.
$refs
.
searchTable
.
queryData
()
...
...
@@ -201,7 +202,8 @@ export default {
}
})
})
.
catch
(()
=>
{})
.
catch
(()
=>
{
})
},
fnDel
(
row
)
{
this
.
$confirm
(
'是否确认删除?'
,
'提示'
,
{
...
...
@@ -214,7 +216,7 @@ export default {
...
row
,
delFlag
:
1
,
}
this
.
$postRequest
(
'/C
ollect/del'
,
{
supervId
:
row
.
supervId
}).
then
(
res
=>
{
this
.
$postRequest
(
'/c
ollect/del'
,
{
supervId
:
row
.
supervId
}).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
$message
.
success
(
'删除成功'
)
this
.
$refs
.
searchTable
.
queryData
()
...
...
@@ -223,7 +225,8 @@ export default {
}
})
})
.
catch
(()
=>
{})
.
catch
(()
=>
{
})
},
fnEdit
(
row
)
{
this
.
dialogTitle
=
'收集资料配置'
...
...
@@ -231,18 +234,18 @@ export default {
this
.
visible
=
true
this
.
isEdit
=
true
},
addList
()
{
addList
()
{
this
.
detailTitle
=
'督查清单'
this
.
detailPrjCode
=
''
this
.
visibleDetail
=
true
},
// 督查清单 详情
detailBtn
(
v
)
{
detailBtn
(
v
)
{
this
.
detailTitle
=
'详情'
this
.
detailPrjCode
=
v
.
supervision
this
.
visibleDetail
=
true
},
selectTabel
(
v
)
{
selectTabel
(
v
)
{
let
id
=
this
.
rowData
.
supervision
let
arrV
=
v
.
split
(
','
)
let
arrId
=
id
.
split
(
','
)
...
...
@@ -255,7 +258,7 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
.detailBtn
{
.detailBtn
{
border
:
none
;
background
:
none
;
color
:
#0d867f
;
...
...
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