Commit fc2f19bc by 无尘

fix: 修改编辑月指标

parent 1437ce92
.color1[data-v-4456636e]{font-size:16px;padding-right:15px;font-weight:600}.content-data[data-v-4456636e]{position:relative}.content-data .color2[data-v-4456636e]{position:relative;font-size:14px;font-weight:400}.content-data .color2[data-v-4456636e]:not(:first-of-type){padding-left:16px}.content-data .color2[data-v-4456636e]:not(:first-of-type):before{content:"|";position:absolute;left:0;color:#dcdfe6}.target-title[data-v-4456636e]{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-4456636e]{font-weight:600}.target-table[data-v-4456636e]{width:1145px;margin:0 20px 50px}.table-title[data-v-4456636e]{display:-webkit-box;display:-ms-flexbox;display:flex;background-color:#ebecf0}.table-title li[data-v-4456636e]{width:163px;height:48px;line-height:48px;text-indent:35px;font-weight:500}.table-title li[data-v-4456636e]:not(:last-of-type){border-right:1px solid #dcdfe6}.table-content[data-v-4456636e]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.table-content li[data-v-4456636e]{width:163px;height:70px;padding:5px 0 8px 10px;border-bottom:1px solid #dcdfe6}.table-content li[data-v-4456636e]:not(:nth-of-type(7n)){border-right:1px solid #dcdfe6}.el-input-number[data-v-4456636e] .el-input__inner{text-align:left;border:none;background-color:#f5f7fa}.el-form-item[data-v-4456636e]{margin-bottom:10px}[data-v-4456636e] .el-alert--danger{width:456px;margin-bottom:20px;background:#fffbe6;border-radius:2px;border:1px solid #ffe58f}[data-v-4456636e] .el-alert--danger .el-alert__icon{color:#faad14}
\ No newline at end of file
.color1[data-v-57b5ff92]{font-size:16px;padding-right:15px;font-weight:600}.content-data[data-v-57b5ff92]{position:relative}.content-data .color2[data-v-57b5ff92]{position:relative;font-size:14px;font-weight:400}.content-data .color2[data-v-57b5ff92]:not(:first-of-type){padding-left:16px}.content-data .color2[data-v-57b5ff92]:not(:first-of-type):before{content:"|";position:absolute;left:0;color:#dcdfe6}.target-title[data-v-57b5ff92]{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-57b5ff92]{font-weight:600}.target-table[data-v-57b5ff92]{width:1145px;margin:0 20px 50px}.table-title[data-v-57b5ff92]{display:-webkit-box;display:-ms-flexbox;display:flex;background-color:#ebecf0}.table-title li[data-v-57b5ff92]{width:163px;height:48px;line-height:48px;text-indent:35px;font-weight:500}.table-title li[data-v-57b5ff92]:not(:last-of-type){border-right:1px solid #dcdfe6}.table-content[data-v-57b5ff92]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.table-content li[data-v-57b5ff92]{width:163px;height:70px;padding:5px 0 8px 10px;border-bottom:1px solid #dcdfe6}.table-content li[data-v-57b5ff92]:not(:nth-of-type(7n)){border-right:1px solid #dcdfe6}.el-input-number[data-v-57b5ff92] .el-input__inner{text-align:left;border:none;background-color:#f5f7fa}.el-form-item[data-v-57b5ff92]{margin-bottom:10px}[data-v-57b5ff92] .el-alert--danger{width:456px;margin-bottom:20px;background:#fffbe6;border-radius:2px;border:1px solid #ffe58f}[data-v-57b5ff92] .el-alert--danger .el-alert__icon{color:#faad14}
\ No newline at end of file
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-11-12 10:47:17
* @LastEditors: 无尘
* @LastEditTime: 2020-11-23 11:21:46
* @LastEditTime: 2020-11-23 11:45:31
-->
<template>
<div class="common-app-right" style="padding: 20px 0;color: #303133">
......@@ -241,19 +241,30 @@ export default {
},
// 修改日指标
confirm() {
this.loading = true;
const that = this;
let flagTip = true;
that.tableData.forEach(ele => {
if (!ele.performanceValue || ele.performanceValue <= 0 || !Number(ele.performanceValue)) {
flagTip = false;
}
});
if (!flagTip) {
that.$message.error(`每日的${that.$route.query.performanceSubType == 1 ? '权重' : '指标'}不能为空`);
return false;
}
that.loading = true;
let params = {
...this.haoban,
...this.form,
enterpriseId: this.brandId,
dataJson: this.filterJson()
...that.haoban,
...that.form,
enterpriseId: that.brandId,
dataJson: that.filterJson()
};
changeStorePerformanceDay(params, { headers: { sign: this.brandId } })
changeStorePerformanceDay(params, { headers: { sign: that.brandId } })
.then(res => {
this.$message.success('保存成功');
this.$router.go(-1);
that.$message.success('保存成功');
that.$router.go(-1);
})
.finally(() => this.loading = false);
.finally(() => that.loading = false);
},
dialogClose() {
this.$refs.targetForm.resetFields();
......
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