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 05cee8b3
authored
Mar 11, 2024
by
liuyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
1 parent
f26b04c2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
408 additions
and
92 deletions
src/api/index.js
src/views/comCenterServeList/pages/page1.vue
src/views/comCenterServeList/pages/page2.vue
src/views/comCenterServeList/pages/page3.vue
src/views/comCenterServeList/pages/page4.vue
src/api/index.js
View file @
05cee8b
...
...
@@ -362,11 +362,15 @@ export function getArchiAssetManageUpdate(params) {
}
// 企业中台服务清单
// 获取列表
// 企业中台服务清单, 获取列表
export
function
getComCenterServeList
(
params
)
{
return
post
(
'/network/arc-aby-iy/selectList'
,
params
);
}
// 企业中台服务清单,发布和取消发
export
function
comCenterServeListRelease
(
params
)
{
return
post
(
'/network/arc-aby-iy/upd'
,
params
);
}
// 查看详情
export
function
getComCenterServeDetail
(
params
)
{
return
post
(
'/network/arc-aby-iy/'
,
params
);
...
...
src/views/comCenterServeList/pages/page1.vue
View file @
05cee8b
...
...
@@ -5,27 +5,27 @@
<div
class=
"search_menu_item_container"
>
<div
class=
"search_menu_item"
>
<span
class=
"search_title"
>
归属部门
</span>
<el-select
v-model=
"
p
arams.departId"
placeholder=
"请选择"
class=
"search_item"
>
<el-select
v-model=
"
searchP
arams.departId"
placeholder=
"请选择"
class=
"search_item"
>
<el-option
v-for=
"item in selectData1"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</div>
<div
class=
"search_menu_item"
>
<span
class=
"search_title"
>
服务来源
</span>
<el-select
v-model=
"
p
arams.abilitySource"
placeholder=
"请选择"
class=
"search_item"
>
<el-select
v-model=
"
searchP
arams.abilitySource"
placeholder=
"请选择"
class=
"search_item"
>
<el-option
v-for=
"item in selectData2"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</div>
<div
class=
"search_menu_item"
>
<span
class=
"search_title"
>
服务名称
</span>
<el-input
v-model=
"
p
arams.inventoryName"
placeholder=
"请输入内容"
class=
"search_item"
></el-input>
<el-input
v-model=
"
searchP
arams.inventoryName"
placeholder=
"请输入内容"
class=
"search_item"
></el-input>
</div>
<div
class=
"search_menu_item"
>
<span
class=
"search_title"
>
获取方式
</span>
<el-input
v-model=
"
p
arams.sourceType"
placeholder=
"请输入内容"
class=
"search_item"
></el-input>
<el-input
v-model=
"
searchP
arams.sourceType"
placeholder=
"请输入内容"
class=
"search_item"
></el-input>
</div>
</div>
<div
class=
"search_menu_btn_container"
>
<div
class=
"query_btn"
@
click=
"
getList
"
>
<div
class=
"query_btn"
@
click=
"
search_table
"
>
<img
class=
"btn_icon"
src=
"@/assets/archi-ele-list/search.png"
alt=
""
/>
<p>
查询
</p>
</div>
...
...
@@ -38,8 +38,8 @@
<div
class=
"search_btn"
>
<!--
<el-button
type=
"primary"
size=
"medium"
icon=
"el-icon-document-add"
@
click=
"operate('add')"
>
启用
</el-button>
<el-button
type=
"primary"
size=
"medium"
icon=
"el-icon-delete"
@
click=
"operate('delMultiple')"
>
停用
</el-button>
-->
<
el-button
type=
"primary"
size=
"medium"
icon=
"el-icon-document-add"
>
启用
</el-button
>
<
el-button
type=
"primary"
size=
"medium"
icon=
"el-icon-delete"
>
停用
</el-button
>
<
!--
<el-button
type=
"primary"
size=
"medium"
icon=
"el-icon-document-add"
>
启用
</el-button>
--
>
<
!--
<el-button
type=
"primary"
size=
"medium"
icon=
"el-icon-delete"
>
停用
</el-button>
--
>
</div>
<el-table
:height=
"tableHeight"
@
selection-change=
"handleSelectionChange"
v-loading=
"loading"
:data=
"tableData"
stripe
border
>
<el-table-column
type=
"selection"
width=
"55"
></el-table-column>
...
...
@@ -70,6 +70,12 @@
<span
v-else-if=
"scope.row.serveState == 2"
>
在运
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"状态"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.state == 0"
>
已停用
</span>
<span
v-if=
"scope.row.state == 1"
>
已发布
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
width=
"250"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<div
style=
"display: flex;align-items: center;justify-content: center;"
>
...
...
@@ -138,13 +144,10 @@
<
script
>
import
{
getComCenterServeList
,
getDianXingAnLiSelectData
,
getTypicalExampleList
,
getTypicalExampleAdd
,
getTypicalExampleUpdate
,
getTypicalExampleDel
,
getTypicalExampleExcel
,
comCenterServeListRelease
}
from
'@/api/index.js'
;
import
{
MessageBox
,
Message
}
from
'element-ui'
;
import
$
from
'jquery'
;
...
...
@@ -169,9 +172,7 @@ export default {
],
selectData4
:
[
],
params
:
{
current
:
1
,
pageSize
:
10
,
searchParams
:
{
departId
:
""
,
abilitySource
:
""
,
inventoryName
:
""
,
...
...
@@ -221,20 +222,101 @@ export default {
},
methods
:
{
releaseItem
(
row
)
{
//发布
MessageBox
.
confirm
(
'确定发布?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
customClass
:
'messageClass'
,
confirmButtonClass
:
'confirmClass'
,
type
:
'warning'
}).
then
(()
=>
{
const
params
=
{
inventoryId
:
row
.
inventoryId
,
state
:
1
,
}
comCenterServeListRelease
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
getList
();
Message
({
type
:
'success'
,
message
:
'发布成功!'
});
}
else
{
Message
({
type
:
'error'
,
message
:
res
.
msg
});
}
});
}).
catch
(()
=>
{
Message
({
type
:
'info'
,
message
:
'已取消'
});
});
},
cancelReleaseItem
(
row
)
{
//取消发布
MessageBox
.
confirm
(
'确定取消发布?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
customClass
:
'messageClass'
,
confirmButtonClass
:
'confirmClass'
,
type
:
'warning'
}).
then
(()
=>
{
const
params
=
{
inventoryId
:
row
.
inventoryId
,
state
:
0
,
}
comCenterServeListRelease
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
getList
();
Message
({
type
:
'success'
,
message
:
'取消发布成功!'
});
}
else
{
Message
({
type
:
'error'
,
message
:
res
.
msg
});
}
});
}).
catch
(()
=>
{
Message
({
type
:
'info'
,
message
:
'已取消'
});
});
},
search_table
()
{
//查询
this
.
pager
.
current
=
1
;
this
.
getList
();
},
// 查询列表
getList
()
{
getComCenterServeList
(
this
.
params
).
then
(
res
=>
{
this
.
loading
=
true
;
const
params
=
{
"departId"
:
this
.
searchParams
.
departId
,
"abilitySource"
:
this
.
searchParams
.
abilitySource
,
"inventoryName"
:
this
.
searchParams
.
inventoryName
,
"sourceType"
:
this
.
searchParams
.
sourceType
,
"abilityType"
:
this
.
searchParams
.
abilityType
,
"current"
:
this
.
pager
.
current
,
"pageSize"
:
this
.
pager
.
size
,
};
getComCenterServeList
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
loading
=
false
;
this
.
pager
.
current
=
res
.
data
.
current
;
this
.
pager
.
total
=
res
.
data
.
total
;
this
.
pager
.
size
=
res
.
data
.
size
;
this
.
tableData
=
res
.
data
.
records
;
}
});
},
// 重置
reset
()
{
this
.
params
=
{
current
:
1
,
pageSize
:
10
,
this
.
searchParams
=
{
departId
:
""
,
abilitySource
:
""
,
inventoryName
:
""
,
...
...
@@ -396,16 +478,12 @@ export default {
// 每页条数改变
handleSizeChange
(
val
)
{
this
.
pager
.
current
=
1
;
this
.
params
.
current
=
1
;
this
.
pager
.
size
=
val
;
this
.
params
.
pageSize
=
val
;
this
.
getList
();
},
//当前页码改变
handleCurrentChange
(
val
)
{
this
.
pager
.
current
=
val
;
this
.
params
.
current
=
val
;
this
.
getList
();
},
}
...
...
src/views/comCenterServeList/pages/page2.vue
View file @
05cee8b
...
...
@@ -5,27 +5,27 @@
<div
class=
"search_menu_item_container"
>
<div
class=
"search_menu_item"
>
<span
class=
"search_title"
>
归属部门
</span>
<el-select
v-model=
"
p
arams.departId"
placeholder=
"请选择"
class=
"search_item"
>
<el-select
v-model=
"
searchP
arams.departId"
placeholder=
"请选择"
class=
"search_item"
>
<el-option
v-for=
"item in selectData1"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</div>
<div
class=
"search_menu_item"
>
<span
class=
"search_title"
>
服务来源
</span>
<el-select
v-model=
"
p
arams.abilitySource"
placeholder=
"请选择"
class=
"search_item"
>
<el-select
v-model=
"
searchP
arams.abilitySource"
placeholder=
"请选择"
class=
"search_item"
>
<el-option
v-for=
"item in selectData2"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</div>
<div
class=
"search_menu_item"
>
<span
class=
"search_title"
>
服务名称
</span>
<el-input
v-model=
"
p
arams.inventoryName"
placeholder=
"请输入内容"
class=
"search_item"
></el-input>
<el-input
v-model=
"
searchP
arams.inventoryName"
placeholder=
"请输入内容"
class=
"search_item"
></el-input>
</div>
<div
class=
"search_menu_item"
>
<span
class=
"search_title"
>
获取方式
</span>
<el-input
v-model=
"
p
arams.sourceType"
placeholder=
"请输入内容"
class=
"search_item"
></el-input>
<el-input
v-model=
"
searchP
arams.sourceType"
placeholder=
"请输入内容"
class=
"search_item"
></el-input>
</div>
</div>
<div
class=
"search_menu_btn_container"
>
<div
class=
"query_btn"
@
click=
"
getList
"
>
<div
class=
"query_btn"
@
click=
"
search_table
"
>
<img
class=
"btn_icon"
src=
"@/assets/archi-ele-list/search.png"
alt=
""
/>
<p>
查询
</p>
</div>
...
...
@@ -38,8 +38,8 @@
<div
class=
"search_btn"
>
<!--
<el-button
type=
"primary"
size=
"medium"
icon=
"el-icon-document-add"
@
click=
"operate('add')"
>
启用
</el-button>
<el-button
type=
"primary"
size=
"medium"
icon=
"el-icon-delete"
@
click=
"operate('delMultiple')"
>
停用
</el-button>
-->
<
el-button
type=
"primary"
size=
"medium"
icon=
"el-icon-document-add"
>
启用
</el-button
>
<
el-button
type=
"primary"
size=
"medium"
icon=
"el-icon-delete"
>
停用
</el-button
>
<
!--
<el-button
type=
"primary"
size=
"medium"
icon=
"el-icon-document-add"
>
启用
</el-button>
--
>
<
!--
<el-button
type=
"primary"
size=
"medium"
icon=
"el-icon-delete"
>
停用
</el-button>
--
>
</div>
<el-table
:height=
"tableHeight"
@
selection-change=
"handleSelectionChange"
v-loading=
"loading"
:data=
"tableData"
stripe
border
>
<el-table-column
type=
"selection"
width=
"55"
></el-table-column>
...
...
@@ -70,6 +70,12 @@
<span
v-else-if=
"scope.row.serveState == 2"
>
在运
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"状态"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.state == 0"
>
已停用
</span>
<span
v-if=
"scope.row.state == 1"
>
已发布
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
width=
"250"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<div
style=
"display: flex;align-items: center;justify-content: center;"
>
...
...
@@ -134,13 +140,10 @@
<
script
>
import
{
getComCenterServeList
,
getDianXingAnLiSelectData
,
getTypicalExampleList
,
getTypicalExampleAdd
,
getTypicalExampleUpdate
,
getTypicalExampleDel
,
getTypicalExampleExcel
,
comCenterServeListRelease
}
from
'@/api/index.js'
;
import
{
MessageBox
,
Message
}
from
'element-ui'
;
import
$
from
'jquery'
;
...
...
@@ -165,9 +168,7 @@ export default {
],
selectData4
:
[
],
params
:
{
current
:
1
,
pageSize
:
10
,
searchParams
:
{
departId
:
""
,
abilitySource
:
""
,
inventoryName
:
""
,
...
...
@@ -217,26 +218,107 @@ export default {
},
methods
:
{
releaseItem
(
row
)
{
//发布
MessageBox
.
confirm
(
'确定发布?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
customClass
:
'messageClass'
,
confirmButtonClass
:
'confirmClass'
,
type
:
'warning'
}).
then
(()
=>
{
const
params
=
{
inventoryId
:
row
.
inventoryId
,
state
:
1
,
}
comCenterServeListRelease
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
getList
();
Message
({
type
:
'success'
,
message
:
'发布成功!'
});
}
else
{
Message
({
type
:
'error'
,
message
:
res
.
msg
});
}
});
}).
catch
(()
=>
{
Message
({
type
:
'info'
,
message
:
'已取消'
});
});
},
cancelReleaseItem
(
row
)
{
//取消发布
MessageBox
.
confirm
(
'确定取消发布?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
customClass
:
'messageClass'
,
confirmButtonClass
:
'confirmClass'
,
type
:
'warning'
}).
then
(()
=>
{
const
params
=
{
inventoryId
:
row
.
inventoryId
,
state
:
0
,
}
comCenterServeListRelease
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
getList
();
Message
({
type
:
'success'
,
message
:
'取消发布成功!'
});
}
else
{
Message
({
type
:
'error'
,
message
:
res
.
msg
});
}
});
}).
catch
(()
=>
{
Message
({
type
:
'info'
,
message
:
'已取消'
});
});
},
search_table
()
{
//查询
this
.
pager
.
current
=
1
;
this
.
getList
();
},
// 查询列表
getList
()
{
getComCenterServeList
(
this
.
params
).
then
(
res
=>
{
this
.
loading
=
true
;
const
params
=
{
"departId"
:
this
.
searchParams
.
departId
,
"abilitySource"
:
this
.
searchParams
.
abilitySource
,
"inventoryName"
:
this
.
searchParams
.
inventoryName
,
"sourceType"
:
this
.
searchParams
.
sourceType
,
"abilityType"
:
this
.
searchParams
.
abilityType
,
"current"
:
this
.
pager
.
current
,
"pageSize"
:
this
.
pager
.
size
,
};
getComCenterServeList
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
loading
=
false
;
this
.
pager
.
current
=
res
.
data
.
current
;
this
.
pager
.
total
=
res
.
data
.
total
;
this
.
pager
.
size
=
res
.
data
.
size
;
this
.
tableData
=
res
.
data
.
records
;
}
});
},
// 重置
reset
()
{
this
.
params
=
{
current
:
1
,
pageSize
:
10
,
this
.
searchParams
=
{
departId
:
""
,
abilitySource
:
""
,
inventoryName
:
""
,
sourceType
:
""
,
// 1:业务中台服务能力,2:数据中台资源目录,3:数据中台资源服务,4:技术中台公共技术能力
abilityType
:
"
1
"
,
abilityType
:
"
2
"
,
}
},
// 所有操作
...
...
@@ -392,16 +474,12 @@ export default {
// 每页条数改变
handleSizeChange
(
val
)
{
this
.
pager
.
current
=
1
;
this
.
params
.
current
=
1
;
this
.
pager
.
size
=
val
;
this
.
params
.
pageSize
=
val
;
this
.
getList
();
},
//当前页码改变
handleCurrentChange
(
val
)
{
this
.
pager
.
current
=
val
;
this
.
params
.
current
=
val
;
this
.
getList
();
},
}
...
...
src/views/comCenterServeList/pages/page3.vue
View file @
05cee8b
...
...
@@ -5,27 +5,27 @@
<div
class=
"search_menu_item_container"
>
<div
class=
"search_menu_item"
>
<span
class=
"search_title"
>
归属部门
</span>
<el-select
v-model=
"
p
arams.departId"
placeholder=
"请选择"
class=
"search_item"
>
<el-select
v-model=
"
searchP
arams.departId"
placeholder=
"请选择"
class=
"search_item"
>
<el-option
v-for=
"item in selectData1"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</div>
<div
class=
"search_menu_item"
>
<span
class=
"search_title"
>
服务来源
</span>
<el-select
v-model=
"
p
arams.abilitySource"
placeholder=
"请选择"
class=
"search_item"
>
<el-select
v-model=
"
searchP
arams.abilitySource"
placeholder=
"请选择"
class=
"search_item"
>
<el-option
v-for=
"item in selectData2"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</div>
<div
class=
"search_menu_item"
>
<span
class=
"search_title"
>
服务名称
</span>
<el-input
v-model=
"
p
arams.inventoryName"
placeholder=
"请输入内容"
class=
"search_item"
></el-input>
<el-input
v-model=
"
searchP
arams.inventoryName"
placeholder=
"请输入内容"
class=
"search_item"
></el-input>
</div>
<div
class=
"search_menu_item"
>
<span
class=
"search_title"
>
获取方式
</span>
<el-input
v-model=
"
p
arams.sourceType"
placeholder=
"请输入内容"
class=
"search_item"
></el-input>
<el-input
v-model=
"
searchP
arams.sourceType"
placeholder=
"请输入内容"
class=
"search_item"
></el-input>
</div>
</div>
<div
class=
"search_menu_btn_container"
>
<div
class=
"query_btn"
@
click=
"
getList
"
>
<div
class=
"query_btn"
@
click=
"
search_table
"
>
<img
class=
"btn_icon"
src=
"@/assets/archi-ele-list/search.png"
alt=
""
/>
<p>
查询
</p>
</div>
...
...
@@ -38,8 +38,8 @@
<div
class=
"search_btn"
>
<!--
<el-button
type=
"primary"
size=
"medium"
icon=
"el-icon-document-add"
@
click=
"operate('add')"
>
启用
</el-button>
<el-button
type=
"primary"
size=
"medium"
icon=
"el-icon-delete"
@
click=
"operate('delMultiple')"
>
停用
</el-button>
-->
<
el-button
type=
"primary"
size=
"medium"
icon=
"el-icon-document-add"
>
启用
</el-button
>
<
el-button
type=
"primary"
size=
"medium"
icon=
"el-icon-delete"
>
停用
</el-button
>
<
!--
<el-button
type=
"primary"
size=
"medium"
icon=
"el-icon-document-add"
>
启用
</el-button>
--
>
<
!--
<el-button
type=
"primary"
size=
"medium"
icon=
"el-icon-delete"
>
停用
</el-button>
--
>
</div>
<el-table
:height=
"tableHeight"
@
selection-change=
"handleSelectionChange"
v-loading=
"loading"
:data=
"tableData"
stripe
border
>
<el-table-column
type=
"selection"
width=
"55"
></el-table-column>
...
...
@@ -70,6 +70,12 @@
<span
v-else-if=
"scope.row.serveState == 2"
>
在运
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"状态"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.state == 0"
>
已停用
</span>
<span
v-if=
"scope.row.state == 1"
>
已发布
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
width=
"250"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<div
style=
"display: flex;align-items: center;justify-content: center;"
>
...
...
@@ -135,13 +141,10 @@
<
script
>
import
{
getComCenterServeList
,
getDianXingAnLiSelectData
,
getTypicalExampleList
,
getTypicalExampleAdd
,
getTypicalExampleUpdate
,
getTypicalExampleDel
,
getTypicalExampleExcel
,
comCenterServeListRelease
}
from
'@/api/index.js'
;
import
{
MessageBox
,
Message
}
from
'element-ui'
;
import
$
from
'jquery'
;
...
...
@@ -166,9 +169,7 @@ export default {
],
selectData4
:
[
],
params
:
{
current
:
1
,
pageSize
:
10
,
searchParams
:
{
departId
:
""
,
abilitySource
:
""
,
inventoryName
:
""
,
...
...
@@ -218,26 +219,107 @@ export default {
},
methods
:
{
releaseItem
(
row
)
{
//发布
MessageBox
.
confirm
(
'确定发布?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
customClass
:
'messageClass'
,
confirmButtonClass
:
'confirmClass'
,
type
:
'warning'
}).
then
(()
=>
{
const
params
=
{
inventoryId
:
row
.
inventoryId
,
state
:
1
,
}
comCenterServeListRelease
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
getList
();
Message
({
type
:
'success'
,
message
:
'发布成功!'
});
}
else
{
Message
({
type
:
'error'
,
message
:
res
.
msg
});
}
});
}).
catch
(()
=>
{
Message
({
type
:
'info'
,
message
:
'已取消'
});
});
},
cancelReleaseItem
(
row
)
{
//取消发布
MessageBox
.
confirm
(
'确定取消发布?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
customClass
:
'messageClass'
,
confirmButtonClass
:
'confirmClass'
,
type
:
'warning'
}).
then
(()
=>
{
const
params
=
{
inventoryId
:
row
.
inventoryId
,
state
:
0
,
}
comCenterServeListRelease
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
getList
();
Message
({
type
:
'success'
,
message
:
'取消发布成功!'
});
}
else
{
Message
({
type
:
'error'
,
message
:
res
.
msg
});
}
});
}).
catch
(()
=>
{
Message
({
type
:
'info'
,
message
:
'已取消'
});
});
},
search_table
()
{
//查询
this
.
pager
.
current
=
1
;
this
.
getList
();
},
// 查询列表
getList
()
{
getComCenterServeList
(
this
.
params
).
then
(
res
=>
{
this
.
loading
=
true
;
const
params
=
{
"departId"
:
this
.
searchParams
.
departId
,
"abilitySource"
:
this
.
searchParams
.
abilitySource
,
"inventoryName"
:
this
.
searchParams
.
inventoryName
,
"sourceType"
:
this
.
searchParams
.
sourceType
,
"abilityType"
:
this
.
searchParams
.
abilityType
,
"current"
:
this
.
pager
.
current
,
"pageSize"
:
this
.
pager
.
size
,
};
getComCenterServeList
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
loading
=
false
;
this
.
pager
.
current
=
res
.
data
.
current
;
this
.
pager
.
total
=
res
.
data
.
total
;
this
.
pager
.
size
=
res
.
data
.
size
;
this
.
tableData
=
res
.
data
.
records
;
}
});
},
// 重置
reset
()
{
this
.
params
=
{
current
:
1
,
pageSize
:
10
,
this
.
searchParams
=
{
departId
:
""
,
abilitySource
:
""
,
inventoryName
:
""
,
sourceType
:
""
,
// 1:业务中台服务能力,2:数据中台资源目录,3:数据中台资源服务,4:技术中台公共技术能力
abilityType
:
"
1
"
,
abilityType
:
"
3
"
,
}
},
// 所有操作
...
...
@@ -393,16 +475,12 @@ export default {
// 每页条数改变
handleSizeChange
(
val
)
{
this
.
pager
.
current
=
1
;
this
.
params
.
current
=
1
;
this
.
pager
.
size
=
val
;
this
.
params
.
pageSize
=
val
;
this
.
getList
();
},
//当前页码改变
handleCurrentChange
(
val
)
{
this
.
pager
.
current
=
val
;
this
.
params
.
current
=
val
;
this
.
getList
();
},
}
...
...
src/views/comCenterServeList/pages/page4.vue
View file @
05cee8b
...
...
@@ -5,27 +5,27 @@
<div
class=
"search_menu_item_container"
>
<div
class=
"search_menu_item"
>
<span
class=
"search_title"
>
归属部门
</span>
<el-select
v-model=
"
p
arams.departId"
placeholder=
"请选择"
class=
"search_item"
>
<el-select
v-model=
"
searchP
arams.departId"
placeholder=
"请选择"
class=
"search_item"
>
<el-option
v-for=
"item in selectData1"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</div>
<div
class=
"search_menu_item"
>
<span
class=
"search_title"
>
服务来源
</span>
<el-select
v-model=
"
p
arams.abilitySource"
placeholder=
"请选择"
class=
"search_item"
>
<el-select
v-model=
"
searchP
arams.abilitySource"
placeholder=
"请选择"
class=
"search_item"
>
<el-option
v-for=
"item in selectData2"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</div>
<div
class=
"search_menu_item"
>
<span
class=
"search_title"
>
服务名称
</span>
<el-input
v-model=
"
p
arams.inventoryName"
placeholder=
"请输入内容"
class=
"search_item"
></el-input>
<el-input
v-model=
"
searchP
arams.inventoryName"
placeholder=
"请输入内容"
class=
"search_item"
></el-input>
</div>
<div
class=
"search_menu_item"
>
<span
class=
"search_title"
>
获取方式
</span>
<el-input
v-model=
"
p
arams.sourceType"
placeholder=
"请输入内容"
class=
"search_item"
></el-input>
<el-input
v-model=
"
searchP
arams.sourceType"
placeholder=
"请输入内容"
class=
"search_item"
></el-input>
</div>
</div>
<div
class=
"search_menu_btn_container"
>
<div
class=
"query_btn"
@
click=
"
getList
"
>
<div
class=
"query_btn"
@
click=
"
search_table
"
>
<img
class=
"btn_icon"
src=
"@/assets/archi-ele-list/search.png"
alt=
""
/>
<p>
查询
</p>
</div>
...
...
@@ -38,8 +38,8 @@
<div
class=
"search_btn"
>
<!--
<el-button
type=
"primary"
size=
"medium"
icon=
"el-icon-document-add"
@
click=
"operate('add')"
>
启用
</el-button>
<el-button
type=
"primary"
size=
"medium"
icon=
"el-icon-delete"
@
click=
"operate('delMultiple')"
>
停用
</el-button>
-->
<
el-button
type=
"primary"
size=
"medium"
icon=
"el-icon-document-add"
>
启用
</el-button
>
<
el-button
type=
"primary"
size=
"medium"
icon=
"el-icon-delete"
>
停用
</el-button
>
<
!--
<el-button
type=
"primary"
size=
"medium"
icon=
"el-icon-document-add"
>
启用
</el-button>
--
>
<
!--
<el-button
type=
"primary"
size=
"medium"
icon=
"el-icon-delete"
>
停用
</el-button>
--
>
</div>
<el-table
:height=
"tableHeight"
@
selection-change=
"handleSelectionChange"
v-loading=
"loading"
:data=
"tableData"
stripe
border
>
<el-table-column
type=
"selection"
width=
"55"
></el-table-column>
...
...
@@ -70,6 +70,12 @@
<span
v-else-if=
"scope.row.serveState == 2"
>
在运
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"状态"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.state == 0"
>
已停用
</span>
<span
v-if=
"scope.row.state == 1"
>
已发布
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
width=
"250"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<div
style=
"display: flex;align-items: center;justify-content: center;"
>
...
...
@@ -135,13 +141,10 @@
<
script
>
import
{
getComCenterServeList
,
getDianXingAnLiSelectData
,
getTypicalExampleList
,
getTypicalExampleAdd
,
getTypicalExampleUpdate
,
getTypicalExampleDel
,
getTypicalExampleExcel
,
comCenterServeListRelease
}
from
'@/api/index.js'
;
import
{
MessageBox
,
Message
}
from
'element-ui'
;
import
$
from
'jquery'
;
...
...
@@ -166,15 +169,13 @@ export default {
],
selectData4
:
[
],
params
:
{
current
:
1
,
pageSize
:
10
,
searchParams
:
{
departId
:
""
,
abilitySource
:
""
,
inventoryName
:
""
,
sourceType
:
""
,
// 1:业务中台服务能力,2:数据中台资源目录,3:数据中台资源服务,4:技术中台公共技术能力
abilityType
:
"
1
"
,
abilityType
:
"
4
"
,
},
pager
:
{
current
:
1
,
...
...
@@ -218,11 +219,94 @@ export default {
},
methods
:
{
releaseItem
(
row
)
{
//发布
MessageBox
.
confirm
(
'确定发布?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
customClass
:
'messageClass'
,
confirmButtonClass
:
'confirmClass'
,
type
:
'warning'
}).
then
(()
=>
{
const
params
=
{
inventoryId
:
row
.
inventoryId
,
state
:
1
,
}
comCenterServeListRelease
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
getList
();
Message
({
type
:
'success'
,
message
:
'发布成功!'
});
}
else
{
Message
({
type
:
'error'
,
message
:
res
.
msg
});
}
});
}).
catch
(()
=>
{
Message
({
type
:
'info'
,
message
:
'已取消'
});
});
},
cancelReleaseItem
(
row
)
{
//取消发布
MessageBox
.
confirm
(
'确定取消发布?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
customClass
:
'messageClass'
,
confirmButtonClass
:
'confirmClass'
,
type
:
'warning'
}).
then
(()
=>
{
const
params
=
{
inventoryId
:
row
.
inventoryId
,
state
:
0
,
}
comCenterServeListRelease
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
getList
();
Message
({
type
:
'success'
,
message
:
'取消发布成功!'
});
}
else
{
Message
({
type
:
'error'
,
message
:
res
.
msg
});
}
});
}).
catch
(()
=>
{
Message
({
type
:
'info'
,
message
:
'已取消'
});
});
},
search_table
()
{
//查询
this
.
pager
.
current
=
1
;
this
.
getList
();
},
// 查询列表
getList
()
{
getComCenterServeList
(
this
.
params
).
then
(
res
=>
{
this
.
loading
=
true
;
const
params
=
{
"departId"
:
this
.
searchParams
.
departId
,
"abilitySource"
:
this
.
searchParams
.
abilitySource
,
"inventoryName"
:
this
.
searchParams
.
inventoryName
,
"sourceType"
:
this
.
searchParams
.
sourceType
,
"abilityType"
:
this
.
searchParams
.
abilityType
,
"current"
:
this
.
pager
.
current
,
"pageSize"
:
this
.
pager
.
size
,
};
getComCenterServeList
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
200
)
{
this
.
loading
=
false
;
this
.
pager
.
current
=
res
.
data
.
current
;
this
.
pager
.
total
=
res
.
data
.
total
;
this
.
pager
.
size
=
res
.
data
.
size
;
this
.
tableData
=
res
.
data
.
records
;
}
});
...
...
@@ -230,8 +314,6 @@ export default {
// 重置
reset
()
{
this
.
params
=
{
current
:
1
,
pageSize
:
10
,
departId
:
""
,
abilitySource
:
""
,
inventoryName
:
""
,
...
...
@@ -393,16 +475,12 @@ export default {
// 每页条数改变
handleSizeChange
(
val
)
{
this
.
pager
.
current
=
1
;
this
.
params
.
current
=
1
;
this
.
pager
.
size
=
val
;
this
.
params
.
pageSize
=
val
;
this
.
getList
();
},
//当前页码改变
handleCurrentChange
(
val
)
{
this
.
pager
.
current
=
val
;
this
.
params
.
current
=
val
;
this
.
getList
();
},
}
...
...
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