Commit 6ddbe078 by 无尘

fix: 修改数值判断

parent 469ad51e
...@@ -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 10:21:58 * @LastEditTime: 2020-08-27 17: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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment