Commit cf0dd634 by 无尘

fix: 修改编辑日指标

parent a31681f6
.color1[data-v-89b11a8a]{font-size:16px;padding-right:15px;font-weight:600}.content-data[data-v-89b11a8a]{position:relative}.content-data .color2[data-v-89b11a8a]{position:relative;font-size:14px;font-weight:400}.content-data .color2[data-v-89b11a8a]:not(:first-of-type){padding-left:16px}.content-data .color2[data-v-89b11a8a]:not(:first-of-type):before{content:"|";position:absolute;left:0;color:#dcdfe6}.target-title[data-v-89b11a8a]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;width:1145px;margin:20px}.target-title span[data-v-89b11a8a]{font-weight:600}.target-table[data-v-89b11a8a]{width:1145px;margin:0 20px 50px}.table-title[data-v-89b11a8a]{display:-webkit-box;display:-ms-flexbox;display:flex;background-color:#ebecf0}.table-title li[data-v-89b11a8a]{width:163px;height:48px;line-height:48px;text-indent:35px;font-weight:500}.table-title li[data-v-89b11a8a]:not(:last-of-type){border-right:1px solid #dcdfe6}.table-content[data-v-89b11a8a]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.table-content li[data-v-89b11a8a]{width:163px;height:70px;padding:5px 0 8px 10px;border-bottom:1px solid #dcdfe6}.table-content li[data-v-89b11a8a]:not(:nth-of-type(7n)){border-right:1px solid #dcdfe6}.el-input-number[data-v-89b11a8a] .el-input__inner{text-align:left;border:none;background-color:#f5f7fa}.el-form-item[data-v-89b11a8a]{margin-bottom:10px}[data-v-89b11a8a] .el-alert--danger{width:456px;margin-bottom:20px;background:#fffbe6;border-radius:2px;border:1px solid #ffe58f}[data-v-89b11a8a] .el-alert--danger .el-alert__icon{color:#faad14}
\ No newline at end of file
.color1[data-v-1f30ac74]{font-size:16px;padding-right:15px;font-weight:600}.content-data[data-v-1f30ac74]{position:relative}.content-data .color2[data-v-1f30ac74]{position:relative;font-size:14px;font-weight:400}.content-data .color2[data-v-1f30ac74]:not(:first-of-type){padding-left:16px}.content-data .color2[data-v-1f30ac74]:not(:first-of-type):before{content:"|";position:absolute;left:0;color:#dcdfe6}.target-title[data-v-1f30ac74]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;width:1145px;margin:20px}.target-title span[data-v-1f30ac74]{font-weight:600}.target-table[data-v-1f30ac74]{width:1145px;margin:0 20px 50px}.table-title[data-v-1f30ac74]{display:-webkit-box;display:-ms-flexbox;display:flex;background-color:#ebecf0}.table-title li[data-v-1f30ac74]{width:163px;height:48px;line-height:48px;text-indent:35px;font-weight:500}.table-title li[data-v-1f30ac74]:not(:last-of-type){border-right:1px solid #dcdfe6}.table-content[data-v-1f30ac74]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.table-content li[data-v-1f30ac74]{width:163px;height:70px;padding:5px 0 8px 10px;border-bottom:1px solid #dcdfe6}.table-content li[data-v-1f30ac74]:not(:nth-of-type(7n)){border-right:1px solid #dcdfe6}.el-input-number[data-v-1f30ac74] .el-input__inner{text-align:left;border:none;background-color:#f5f7fa}.el-form-item[data-v-1f30ac74]{margin-bottom:10px}[data-v-1f30ac74] .el-alert--danger{width:456px;margin-bottom:20px;background:#fffbe6;border-radius:2px;border:1px solid #ffe58f}[data-v-1f30ac74] .el-alert--danger .el-alert__icon{color:#faad14}
\ No newline at end of file
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-11-12 10:47:17 * @Date: 2020-11-12 10:47:17
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-11-23 12:52:27 * @LastEditTime: 2020-11-23 15:43:52
--> -->
<template> <template>
<div class="common-app-right" style="padding: 20px 0;color: #303133"> <div class="common-app-right" style="padding: 20px 0;color: #303133">
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<div class="target-title"> <div class="target-title">
<span>{{ form.date[0] }}{{ form.date[1] }}</span> <span>{{ form.date[0] }}{{ form.date[1] }}</span>
<el-button type="text" @click="setDefault" v-if="form.flag === 'false'">设置默认日权重</el-button> <el-button type="text" @click="setDefault" v-if="form.flag == false && form.performanceSubType == 1">设置默认日权重</el-button>
</div> </div>
<div class="target-table"> <div class="target-table">
...@@ -118,7 +118,7 @@ export default { ...@@ -118,7 +118,7 @@ export default {
storeInfoId: '', storeInfoId: '',
storeName: '', storeName: '',
performanceValue: 0, performanceValue: 0,
flag: 'false', flag: false,
date: [ '', '' ] date: [ '', '' ]
}, },
loading: false, loading: false,
...@@ -148,7 +148,7 @@ export default { ...@@ -148,7 +148,7 @@ export default {
bread[0].path += `?applicationId=${applicationId}&tab=${tab}`; bread[0].path += `?applicationId=${applicationId}&tab=${tab}`;
bread[1].path += `?applicationId=${applicationId}&tab=${tab}&performanceYm=${performanceYm}`; bread[1].path += `?applicationId=${applicationId}&tab=${tab}&performanceYm=${performanceYm}`;
this.$emit('change-nav', bread); this.$emit('change-nav', bread);
console.log(this.form);
this.init(); this.init();
}, },
mounted() { mounted() {
...@@ -282,10 +282,10 @@ export default { ...@@ -282,10 +282,10 @@ export default {
}; };
})); }));
}, },
// 设置默认值 // 设置默认值 1.00
setDefault() { setDefault() {
let defaultV = (this.form.performanceValue / this.days).toString().match(/^\d+(?:\.\d{0,2})?/)[0]; // let defaultV = (this.form.performanceValue / this.days).toString().match(/^\d+(?:\.\d{0,2})?/)[0];
this.tableData.forEach(item => item.performanceValue = Number(defaultV)); this.tableData.forEach(item => item.performanceValue = Number(1).toFixed(2));
} }
}, },
computed: { computed: {
......
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