Commit 5dbc517d by 无尘

fix: 修改保存导购

parent 99496338
.task-set-content[data-v-dde76140]{-webkit-box-sizing:border-box;box-sizing:border-box}.task-set-content .w-105[data-v-dde76140]{width:105px}.task-set-content .w-120[data-v-dde76140]{width:120px}.task-set-content .w-161[data-v-dde76140]{width:161px}.task-set-content .m-b-15[data-v-dde76140]{margin-bottom:15px}.task-set-content .p-l-8[data-v-dde76140]{padding-left:8px}.task-set-content .p-l-18[data-v-dde76140]{padding-left:18px}.task-set-content .p-l-24[data-v-dde76140]{padding-left:24px}.task-set-content .p-l-175[data-v-dde76140]{padding-left:175px}.task-set-content .color-1890ff[data-v-dde76140]{color:#2f54eb}.task-set-content .color-f5222d[data-v-dde76140]{color:#f5222d}.task-set-content .colorFirst[data-v-dde76140]{color:#303133;font-weight:600}
\ No newline at end of file
.task-set-content[data-v-6cf84b3e]{-webkit-box-sizing:border-box;box-sizing:border-box}.task-set-content .w-105[data-v-6cf84b3e]{width:105px}.task-set-content .w-120[data-v-6cf84b3e]{width:120px}.task-set-content .w-161[data-v-6cf84b3e]{width:161px}.task-set-content .m-b-15[data-v-6cf84b3e]{margin-bottom:15px}.task-set-content .p-l-8[data-v-6cf84b3e]{padding-left:8px}.task-set-content .p-l-18[data-v-6cf84b3e]{padding-left:18px}.task-set-content .p-l-24[data-v-6cf84b3e]{padding-left:24px}.task-set-content .p-l-175[data-v-6cf84b3e]{padding-left:175px}.task-set-content .color-1890ff[data-v-6cf84b3e]{color:#2f54eb}.task-set-content .color-f5222d[data-v-6cf84b3e]{color:#f5222d}.task-set-content .colorFirst[data-v-6cf84b3e]{color:#303133;font-weight:600}
\ No newline at end of file
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-11-12 10:48:40
* @LastEditors: 无尘
* @LastEditTime: 2020-11-27 09:25:05
* @LastEditTime: 2020-11-27 09:37:37
-->
<template>
<div class="common-app-right">
......@@ -30,7 +30,7 @@
<el-table-column label="月指标">
<template slot-scope="scope">
<div>
<el-input class="w-120 p-l-8" maxlength="11" v-model="scope.row.performanceValue" placeholder="请输入" :disabled="disableSetting" @blur="value => inputPerformance(value, scope.$index, scope.row)" @input="inputValue">
<el-input class="w-120 p-l-8" maxlength="11" v-model="scope.row.performanceValue" placeholder="请输入" :disabled="disableSetting" @blur="value => inputPerformance(value, scope.$index, scope.row)" @input="inputValue(value,scope.row)">
<i slot="prefix" style="font-style: normal;position: absolute;top: 4px;left: 12px;"></i>
</el-input>
</div>
......@@ -143,11 +143,10 @@ export default {
});
that.performanceSum = Number(sumData).toFixed(2);
that.diffData();
that.$forceUpdate();
console.log(that.performanceSum);
},
inputValue() {
inputValue(value, row) {
const that = this;
row.performanceValue = !!Number(value.replace(/[^\d.]/g, '')) ? value.replace(/[^\d+(.\d+)]/g, '') : '';
let sumData = 0;
that.tableData.forEach(ele => {
sumData += Number(ele.performanceValue);
......
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