Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-4
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
office
haoban-4
Commits
6ddbe078
Commit
6ddbe078
authored
Aug 27, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改数值判断
parent
469ad51e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
customer-assign.vue
src/components/app/my-customer/customer-assign.vue
+11
-3
No files found.
src/components/app/my-customer/customer-assign.vue
View file @
6ddbe078
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Author: 无尘
* @Date: 2020-08-25 15:06:31
* @Date: 2020-08-25 15:06:31
* @LastEditors: 无尘
* @LastEditors: 无尘
* @LastEditTime: 2020-08-27 1
0:21:58
* @LastEditTime: 2020-08-27 1
7:10:52
-->
-->
<!--
<!--
* @Descripttion: 当前组件信息
* @Descripttion: 当前组件信息
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
<el-checkbox
:disabled=
"item.disabled"
:label=
"item.clerkId"
@
change=
"changeCell($event, item)"
>
{{
item
.
clerkName
}}
</el-checkbox><span
v-if=
"!item.bindFlag"
class=
"font-14 color-f56c6c p-l-20"
>
未关联企微用户
</span>
<el-checkbox
:disabled=
"item.disabled"
:label=
"item.clerkId"
@
change=
"changeCell($event, item)"
>
{{
item
.
clerkName
}}
</el-checkbox><span
v-if=
"!item.bindFlag"
class=
"font-14 color-f56c6c p-l-20"
>
未关联企微用户
</span>
<span
v-if=
"!checked && checkedClerks.includes(item.clerkId)"
class=
"p-l-20"
>
<span
v-if=
"!checked && checkedClerks.includes(item.clerkId)"
class=
"p-l-20"
>
分配会员
<span
class=
"color-303133"
>
{{
item
.
memberCount
}}
</span>
人
</span>
分配会员
<span
class=
"color-303133"
>
{{
item
.
memberCount
}}
</span>
人
</span>
<span
v-if=
"checked && checkedClerks.includes(item.clerkId)"
class=
"p-l-20 p-r-10"
>
分配会员
</span><el-input-number
v-if=
"checked && checkedClerks.includes(item.clerkId)"
class=
"w-100"
v-model=
"item.memberCount"
controls-position=
"right"
@
blur=
"blurNum"
@
change=
"handleChange"
:step=
"1"
step-strictly
:min=
"1"
:max=
"999999999"
></el-input-number><span
v-if=
"checked && checkedClerks.includes(item.clerkId)"
class=
"p-l-10"
>
人
</span>
<span
v-if=
"checked && checkedClerks.includes(item.clerkId)"
class=
"p-l-20 p-r-10"
>
分配会员
</span><el-input-number
v-if=
"checked && checkedClerks.includes(item.clerkId)"
class=
"w-100"
v-model=
"item.memberCount"
controls-position=
"right"
@
blur=
"blurNum
($event, item)
"
@
change=
"handleChange"
:step=
"1"
step-strictly
:min=
"1"
:max=
"999999999"
></el-input-number><span
v-if=
"checked && checkedClerks.includes(item.clerkId)"
class=
"p-l-10"
>
人
</span>
</li>
</li>
</
template
>
</
template
>
</el-checkbox-group>
</el-checkbox-group>
...
@@ -201,8 +201,16 @@ export default {
...
@@ -201,8 +201,16 @@ export default {
const
that
=
this
;
const
that
=
this
;
that
.
totalCalc
();
that
.
totalCalc
();
},
},
blurNum
()
{
/**
* 手动值改变,计算总数
* @param {Object} e
* @param {Object} item
*/
blurNum
(
e
,
item
)
{
const
that
=
this
;
const
that
=
this
;
if
(
!
item
.
memberCount
)
{
item
.
memberCount
=
1
;
}
that
.
totalCalc
();
that
.
totalCalc
();
},
},
totalCalc
()
{
totalCalc
()
{
...
...
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