Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
992ed4ec
Commit
992ed4ec
authored
May 15, 2023
by
彭松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
d3d00906
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
7 deletions
+33
-7
portal-manager-ui/admin/src/api/thePlatformIsSet.js
portal-manager-ui/admin/src/api/thePlatformIsSet.js
+10
-1
portal-manager-ui/admin/src/views/thePlatformIsSet/components/productManage/productManage.vue
...ePlatformIsSet/components/productManage/productManage.vue
+23
-6
No files found.
portal-manager-ui/admin/src/api/thePlatformIsSet.js
View file @
992ed4ec
...
...
@@ -2,6 +2,9 @@
import
http
from
"
../request/http
"
;
let
baseURL
=
process
.
env
.
VUE_APP_API_BASE_URL
;
// ----------ps-----------------
// 查询产品信息列表
export
function
getProduct
(
params
)
{
return
http
.
post
(
`
${
baseURL
}
/zwfw/product/list`
,
params
);
...
...
@@ -13,5 +16,11 @@ export function saveProduct(params) {
}
// 产品信息
export
function
deleteProduct
(
params
)
{
return
http
.
pos
t
(
`
${
baseURL
}
/zwfw/product/delete`
,
params
);
return
http
.
ge
t
(
`
${
baseURL
}
/zwfw/product/delete`
,
params
);
}
//-------------xj: --------------------
portal-manager-ui/admin/src/views/thePlatformIsSet/components/productManage/productManage.vue
View file @
992ed4ec
...
...
@@ -4,7 +4,7 @@
<h3>
产品管理
</h3>
<h4>
<a-input
placeholder=
"请输入产品名称关键字查询"
v-model=
"searchVal"
/>
<button
class=
"search_btn btn"
>
<button
class=
"search_btn btn"
@
click=
"getList"
>
<span>
查询
</span>
</button>
</h4>
...
...
@@ -24,9 +24,11 @@
</a-button>
</p>
<p>
<a-button
type=
"link"
size=
"small"
style=
"color: #ff4d4f"
@
click=
"delModal(item)"
>
删除
</a-button>
<a-popconfirm
title=
"确定要删除此产品吗?"
ok-text=
"Yes"
cancel-text=
"No"
@
confirm=
"delModal(item)"
>
<a-button
type=
"link"
size=
"small"
style=
"color: #ff4d4f"
>
删除
</a-button>
</a-popconfirm>
</p>
</div>
</
template
>
...
...
@@ -41,6 +43,8 @@
<li
@
click=
"routerpush3(item)"
>
文档资料
<a-icon
type=
"right"
/></li>
</ul>
</li>
<div
class=
"not-data"
v-if=
"!listData.length"
>
暂无数据
</div>
</ul>
</div>
<AddEditAppName
ref=
"AddEditAppName"
/>
...
...
@@ -66,10 +70,16 @@ export default {
},
methods
:
{
delModal
(
item
)
{
get
Product
({
delete
Product
({
id
:
item
.
id
}).
then
((
res
)
=>
{
let
{
code
,
msg
}
=
res
if
(
code
==
1
)
{
this
.
$message
.
success
(
'
删除成功
'
);
this
.
getList
()
}
else
{
this
.
$message
.
error
(
msg
);
}
})
},
getList
()
{
...
...
@@ -123,6 +133,13 @@ export default {
</
script
>
<
style
lang=
"less"
scoped
>
.not-data{
line-height: 100px;
text-align: center;
width: 100%;
color: #999;
font-size: 14px;
}
@headerH: 4.5rem;
.Container {
...
...
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