Commit 328a2b5b by 无尘

fix: 修改指标

parent 0122cc32
.color1[data-v-faf594e2]{font-size:16px;padding-right:15px;font-weight:600}.hide-ellipsis[data-v-faf594e2]{max-width:380px;display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.content-data[data-v-faf594e2]{position:relative}.content-data .color2[data-v-faf594e2]{position:relative;font-size:14px;font-weight:400}.content-data .color2[data-v-faf594e2]:not(:first-of-type){padding-left:16px}.content-data .color2[data-v-faf594e2]:not(:first-of-type):before{content:"|";position:absolute;left:0;color:#dcdfe6}.target-title[data-v-faf594e2]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;max-width:100%;margin:20px}.target-title span[data-v-faf594e2]{font-weight:600}.target-table[data-v-faf594e2]{max-width:100%;margin:0 20px 50px}.table-title[data-v-faf594e2]{display:-webkit-box;display:-ms-flexbox;display:flex}.table-title li[data-v-faf594e2]{width:14.28%;max-width:14.28%;min-width:14.28%;height:48px;line-height:48px;text-indent:35px;font-weight:500;background-color:#ebecf0}.table-title li[data-v-faf594e2]:not(:last-of-type){border-right:1px solid #dcdfe6}.table-content[data-v-faf594e2]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.table-content li[data-v-faf594e2]{width:14.28%;max-width:14.28%;min-width:14.28%;height:70px;padding:5px 0 8px 10px;border-bottom:1px solid #dcdfe6}.table-content li[data-v-faf594e2]:not(:nth-of-type(7n)){border-right:1px solid #dcdfe6}.el-input-number[data-v-faf594e2] .el-input__inner{text-align:left;border:none;background-color:#f5f7fa}.el-form-item[data-v-faf594e2]{margin-bottom:10px}[data-v-faf594e2] .el-alert--danger{width:456px;margin-bottom:20px;background:#fffbe6;border-radius:2px;border:1px solid #ffe58f}[data-v-faf594e2] .el-alert--danger .el-alert__icon{color:#faad14}
\ No newline at end of file
.list-content .el-input[data-v-4a220cd0]{width:180px;margin-right:10px}.list-content .el-select[data-v-4a220cd0]{width:148px;margin-right:10px}.list-content .el-date-picker[data-v-4a220cd0]{margin-right:10px}.list-content .w-171[data-v-4a220cd0]{width:171px}.content-search[data-v-4a220cd0]{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:20px}.content-data[data-v-4a220cd0],.content-first[data-v-4a220cd0],.content-search[data-v-4a220cd0]{display:-webkit-box;display:-ms-flexbox;display:flex}.content-data[data-v-4a220cd0]{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:20px}.color1[data-v-4a220cd0]{color:#303133;font-size:16px;padding-right:15px;font-weight:500}.color2[data-v-4a220cd0]{position:relative;color:#606266;font-size:14px;font-weight:400}.color2[data-v-4a220cd0]:not(:first-of-type){padding-left:16px}.color2[data-v-4a220cd0]:not(:first-of-type):before{content:"|";position:absolute;top:0;left:0;color:#dcdfe6}
\ No newline at end of file
.list-content .el-input[data-v-50ff2154]{width:180px;margin-right:10px}.list-content .el-select[data-v-50ff2154]{width:148px;margin-right:10px}.list-content .el-date-picker[data-v-50ff2154]{margin-right:10px}.list-content .w-171[data-v-50ff2154]{width:171px}.content-search[data-v-50ff2154]{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:20px}.content-data[data-v-50ff2154],.content-first[data-v-50ff2154],.content-search[data-v-50ff2154]{display:-webkit-box;display:-ms-flexbox;display:flex}.content-data[data-v-50ff2154]{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:20px}.color1[data-v-50ff2154]{color:#303133;font-size:16px;padding-right:15px;font-weight:500}.color2[data-v-50ff2154]{position:relative;color:#606266;font-size:14px;font-weight:400}.color2[data-v-50ff2154]:not(:first-of-type){padding-left:16px}.color2[data-v-50ff2154]:not(:first-of-type):before{content:"|";position:absolute;top:0;left:0;color:#dcdfe6}
\ No newline at end of file
.task-set-content[data-v-ce8020b0]{-webkit-box-sizing:border-box;box-sizing:border-box}.task-set-content .w-105[data-v-ce8020b0]{width:105px}.task-set-content .w-120[data-v-ce8020b0]{width:120px}.task-set-content .w-161[data-v-ce8020b0]{width:161px}.task-set-content .m-b-15[data-v-ce8020b0]{margin-bottom:15px}.task-set-content .p-l-8[data-v-ce8020b0]{padding-left:8px}.task-set-content .p-l-18[data-v-ce8020b0]{padding-left:18px}.task-set-content .p-l-24[data-v-ce8020b0]{padding-left:24px}.task-set-content .p-l-175[data-v-ce8020b0]{padding-left:175px}.task-set-content .color-1890ff[data-v-ce8020b0]{color:#2f54eb}.task-set-content .color-f5222d[data-v-ce8020b0]{color:#f5222d}.task-set-content .colorFirst[data-v-ce8020b0]{color:#303133;font-weight:600}
\ No newline at end of file
.color1[data-v-1fcd16ea]{font-size:16px;padding-right:15px;font-weight:600}.hide-ellipsis[data-v-1fcd16ea]{max-width:380px;display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.content-data[data-v-1fcd16ea]{position:relative}.content-data .color2[data-v-1fcd16ea]{position:relative;font-size:14px;font-weight:400}.content-data .color2[data-v-1fcd16ea]:not(:first-of-type){padding-left:16px}.content-data .color2[data-v-1fcd16ea]:not(:first-of-type):before{content:"|";position:absolute;left:0;color:#dcdfe6}.target-title[data-v-1fcd16ea]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;max-width:100%;margin:20px}.target-title span[data-v-1fcd16ea]{font-weight:600}.target-table[data-v-1fcd16ea]{max-width:100%;margin:0 20px 50px}.table-title[data-v-1fcd16ea]{display:-webkit-box;display:-ms-flexbox;display:flex}.table-title li[data-v-1fcd16ea]{width:14.28%;max-width:14.28%;min-width:14.28%;height:48px;line-height:48px;text-indent:35px;font-weight:500;background-color:#ebecf0}.table-title li[data-v-1fcd16ea]:not(:last-of-type){border-right:1px solid #dcdfe6}.table-content[data-v-1fcd16ea]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.table-content li[data-v-1fcd16ea]{width:14.28%;max-width:14.28%;min-width:14.28%;height:70px;padding:5px 0 8px 10px;border-bottom:1px solid #dcdfe6}.table-content li[data-v-1fcd16ea]:not(:nth-of-type(7n)){border-right:1px solid #dcdfe6}.el-input-number[data-v-1fcd16ea] .el-input__inner{text-align:left;border:none;background-color:#f5f7fa}.el-form-item[data-v-1fcd16ea]{margin-bottom:10px}[data-v-1fcd16ea] .el-alert--danger{width:456px;margin-bottom:20px;background:#fffbe6;border-radius:2px;border:1px solid #ffe58f}[data-v-1fcd16ea] .el-alert--danger .el-alert__icon{color:#faad14}
\ No newline at end of file
.task-set-content[data-v-52b57c3f]{-webkit-box-sizing:border-box;box-sizing:border-box}.task-set-content .w-105[data-v-52b57c3f]{width:105px}.task-set-content .w-120[data-v-52b57c3f]{width:120px}.task-set-content .w-161[data-v-52b57c3f]{width:161px}.task-set-content .m-b-15[data-v-52b57c3f]{margin-bottom:15px}.task-set-content .p-l-8[data-v-52b57c3f]{padding-left:8px}.task-set-content .p-l-18[data-v-52b57c3f]{padding-left:18px}.task-set-content .p-l-24[data-v-52b57c3f]{padding-left:24px}.task-set-content .p-l-175[data-v-52b57c3f]{padding-left:175px}.task-set-content .color-1890ff[data-v-52b57c3f]{color:#2f54eb}.task-set-content .color-f5222d[data-v-52b57c3f]{color:#f5222d}.task-set-content .colorFirst[data-v-52b57c3f]{color:#303133;font-weight:600}
\ No newline at end of file
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-11-12 10:47:17
* @LastEditors: 无尘
* @LastEditTime: 2020-12-02 11:11:38
* @LastEditTime: 2020-12-02 11:21:42
-->
<template>
<div class="common-app-right" style="padding: 20px 0;color: #303133">
......@@ -36,7 +36,7 @@
<div class="target-title">
<span>{{ form.date[0] }}{{ form.date[1] }}</span>
<!-- 权重编辑时显示 -->
<el-button v-if="form.flag == true && form.performanceSubType == 1" type="text" @click="setDefault" :disabled="disableSetting">设置默认日权重</el-button>
<el-button v-if="form.flag == 1 && form.performanceSubType == 1" type="text" @click="setDefault" :disabled="disableSetting">设置默认日权重</el-button>
</div>
<div class="target-table">
......@@ -128,7 +128,7 @@ export default {
storeInfoId: '',
storeName: '',
performanceValue: 0,
flag: false, // true: 查看, false: 首次完善
flag: 0, // 1: 查看, 0: 首次完善
multOpt: '', // 1:批量,
date: [ '', '' ]
},
......@@ -161,10 +161,9 @@ export default {
}
// 禁用判断
that.disableSetting = checkDisEdit(that.$route.query.performanceYm);
console.log(that.form, that.$route.query, that.$route.query.flag, typeof(that.$route.query.flag));
// 修改面包屑
const { tab, applicationId, performanceYm, flag } = that.$route.query;
let bread = [ { name: '指标管理', path: '/target-list' }, { name: '查看门店', path: '/target-store' }, { name: flag == false ? '完善日指标' : '查看日指标' } ];
let bread = [ { name: '指标管理', path: '/target-list' }, { name: '查看门店', path: '/target-store' }, { name: flag == 0 ? '完善日指标' : '查看日指标' } ];
that.form.date = performanceYm.split('-');
bread[0].path += `?applicationId=${applicationId}&tab=${tab}`;
bread[1].path += `?applicationId=${applicationId}&tab=${tab}&performanceYm=${performanceYm}`;
......@@ -200,7 +199,6 @@ export default {
// 初始化表格
init() {
const that = this;
console.log(that.form, that.$route.query, that.$route.query.flag, typeof(that.$route.query.flag));
if (that.$store.state.storeInfo.length) {
that.form.storeName = JSON.parse(JSON.stringify(that.$store.state.storeInfo)).map(ele=>ele.storeName).join(',');
that.form.storeInfoIds = JSON.parse(JSON.stringify(that.$store.state.storeInfo)).map(ele=>ele.storeInfoId).join(',');
......@@ -221,11 +219,10 @@ export default {
let len = (that.zerofill.length + that.tableData.length) % 7;
if (len) that.zerofillLast = new Array(7 - len).fill(null);
console.log(flag, typeof(flag), that.form, that.$route.query.flag, typeof(that.$route.query.flag));
// 默认值
if (flag == 'false') {
if (flag == 0) {
that.setDefault();
} else if (flag == 'true') {
} else if (flag == 1) {
let par = {
enterpriseId: that.brandId,
performanceType,
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-11-12 10:48:40
* @LastEditors: 无尘
* @LastEditTime: 2020-12-01 14:32:19
* @LastEditTime: 2020-12-02 11:23:12
-->
<template>
<div class="common-app-right">
......@@ -97,7 +97,7 @@ export default {
const that = this;
that.$emit('showTab', '/target-list');
const { tab, applicationId, performanceYm, storeInfoId, storeName, flag } = that.$route.query;
let bread = [ { name: '指标管理', path: `/target-list?tab=${tab}&applicationId=${applicationId}` }, { name: '查看门店', path: `/target-store?tab=${tab}&applicationId=${applicationId}&performanceYm=${performanceYm}` }, { name: flag == false ? '完善导购指标' : '查看导购指标' } ];
let bread = [ { name: '指标管理', path: `/target-list?tab=${tab}&applicationId=${applicationId}` }, { name: '查看门店', path: `/target-store?tab=${tab}&applicationId=${applicationId}&performanceYm=${performanceYm}` }, { name: flag == 0 ? '完善导购指标' : '查看导购指标' } ];
// 修改面包屑
that.$emit('change-nav', bread);
// 禁用判断
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-11-09 10:39:37
* @LastEditors: 无尘
* @LastEditTime: 2020-12-02 09:08:34
* @LastEditTime: 2020-12-02 11:24:02
-->
<template>
<div class="common-app-right">
......@@ -149,7 +149,7 @@
storeInfoId: row.storeInfoId,
storeName: row.storeName,
performanceValue: row.performanceValue,
flag: row.clerkFlag == 1
flag: row.clerkFlag == 1 ? 1 : 0
}
})">
{{ [ '完善', '查看' ][row.clerkFlag || 0] }}导购指标
......@@ -167,7 +167,7 @@
storeInfoId: row.storeInfoId,
storeName: row.storeName,
performanceValue: row.performanceValue,
flag: row.dayFlag == 1
flag: row.dayFlag == 1? 1 : 0
}
})">
{{ [ '完善', '查看' ][row.dayFlag || 0] }}日指标
......
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