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
b6c3fb5e
Commit
b6c3fb5e
authored
Nov 11, 2024
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: 优化应用黑名单产品列表获取
parent
bbec0661
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
25 deletions
+22
-25
base-manager-ui/admin/src/pages/basicset/appmarket/components/BlackApp.vue
...dmin/src/pages/basicset/appmarket/components/BlackApp.vue
+22
-25
No files found.
base-manager-ui/admin/src/pages/basicset/appmarket/components/BlackApp.vue
View file @
b6c3fb5e
...
...
@@ -57,7 +57,7 @@
<a-space>
<a-select
style=
"min-width: 120px"
v-model=
"siteDevTable.searchForm.
typ
e"
v-model=
"siteDevTable.searchForm.
productNam
e"
showSearch
optionFilterProp=
"label"
>
...
...
@@ -65,12 +65,12 @@
>
全部类型
</a-select-option>
<a-select-option
v-for=
"(v, i) in
devType
"
v-for=
"(v, i) in
productList
"
:key=
"i"
:value=
"v"
:label=
"v"
:value=
"v
.productName
"
:label=
"v
.productName
"
>
{{ v }}
{{ v
.productName
}}
</a-select-option>
</a-select>
<a-input-search
...
...
@@ -136,32 +136,15 @@ import {
getBlackAppList
,
deleteBlackapp
,
}
from
"
@/services/market
"
;
import
{
getProductList
}
from
"
@/services/surface
"
;
import
local
from
"
@/utils/local
"
;
import
DevToBlack
from
"
../modal/DevToBlack.vue
"
;
import
YTable
from
"
@/components/YTable.vue
"
;
const
devType
=
[
"
排队机
"
,
"
窗口屏
"
,
"
呼叫器
"
,
"
集中显示屏
"
,
"
评价器
"
,
"
信息发布屏
"
,
"
导视机
"
,
"
自助服务终端
"
,
"
填单机
"
,
"
一码通
"
,
"
LED通屏
"
,
"
取件柜
"
,
"
背靠背评价设备
"
,
"
存取件
"
,
"
桌面式自助服务终端
"
,
];
export
default
{
components
:
{
DevToBlack
,
YTable
},
data
()
{
return
{
devType
,
blackAppTable
:
{
page
:
1
,
size
:
10
,
...
...
@@ -206,7 +189,7 @@ export default {
data
:
[],
searchForm
:
{
deviceCode
:
""
,
typ
e
:
""
,
productNam
e
:
""
,
},
columns
:
[
{
...
...
@@ -247,13 +230,27 @@ export default {
selectedRows
:
[],
visible
:
false
,
siteId
:
local
.
getLocal
(
"
siteId
"
),
// 站点id
productList
:
[],
// 产品列表
};
},
created
()
{
this
.
getProductList
();
this
.
getBlackAppList
();
this
.
getDeviceList
();
},
methods
:
{
// 获取产品列表
async
getProductList
()
{
let
res
=
await
getProductList
({
siteId
:
this
.
siteId
,
page
:
1
,
size
:
-
1
});
if
(
res
.
data
.
code
===
1
)
{
let
{
data
}
=
res
.
data
.
data
;
this
.
productList
=
data
}
},
// 获取设备黑名单
async
getBlackAppList
()
{
this
.
blackAppTable
.
loading
=
true
;
...
...
@@ -282,7 +279,7 @@ export default {
size
:
this
.
siteDevTable
.
size
,
siteId
:
this
.
siteId
,
deviceCode
:
`%
${
this
.
siteDevTable
.
searchForm
.
deviceCode
}
%`
,
productName
:
`%
${
this
.
siteDevTable
.
searchForm
.
typ
e
}
%`
,
productName
:
`%
${
this
.
siteDevTable
.
searchForm
.
productNam
e
}
%`
,
});
if
(
res
.
data
.
code
==
1
)
{
let
{
data
,
total
}
=
res
.
data
.
data
;
...
...
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