Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
f250698a
Commit
f250698a
authored
Aug 02, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化商品选择的全选提示
parent
4a08ff17
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
index.vue
src/components/ProductsSelector/index.vue
+10
-4
No files found.
src/components/ProductsSelector/index.vue
View file @
f250698a
...
...
@@ -13,8 +13,8 @@
<el-button
type=
"primary"
@
click=
"reLoad"
>
{{
$t
(
'
搜索
'
)
}}
</el-button>
<div
v-if=
"showAll"
>
<el-checkbox
:label=
"$t('全选
(最多500)')
"
@
change=
"toggleAll"
:disabled=
"isAllProduct"
></el-checkbox>
<el-checkbox
:label=
"$t('全选库内商品(共
{cnt}个)', {cnt:
t
otal})" v-model="isAllProduct">
</el-checkbox>
<el-checkbox
:label=
"$t('全选
') + `($
{total > 500 ? $t('最多500') : $t('{total}个', {total})})`
" @change="toggleAll" :disabled="isAllProduct">
</el-checkbox>
<el-checkbox
:label=
"$t('全选库内商品(共
{cnt}个)', {cnt:
allT
otal})" v-model="isAllProduct">
</el-checkbox>
</div>
</div>
<div
class=
"list"
>
...
...
@@ -61,7 +61,8 @@ export default {
list
:
[],
page
:
1
,
pages
:
1
,
total
:
0
,
// 商品总数
total
:
0
,
// 当前筛选条件的商品总数
allTotal
:
0
,
// 全库商品总数
queryParams
:
{
pageNo
:
1
,
pageSize
:
500
,
...
...
@@ -115,6 +116,11 @@ export default {
if
(
this
.
defaultIds
.
length
){
this
.
loadDefaultProds
()
}
// 获取全库商品总数
getProductPage
({
pageNo
:
1
,
pageSize
:
1
}
).
then
(
res
=>
{
this
.
allTotal
=
res
.
data
.
total
}
)
}
,
methods
:
{
/* setAllProduct(status){
...
...
@@ -209,4 +215,4 @@ export default {
text
-
overflow
:
ellipsis
;
}
}
<
/style>
\ No newline at end of file
<
/style
>
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