Commit 156ce09c by wangzhihui

第四轮bug修复

1 parent 024a9f20
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
:tableData="tableData" :tableData="tableData"
:search-form="searchForm" :search-form="searchForm"
:table-params="tableParams" :table-params="tableParams"
v-if="show"
> >
<div slot="mainBrand" slot-scope="scope"> <div slot="mainBrand" slot-scope="scope">
<template <template
...@@ -70,6 +71,7 @@ export default { ...@@ -70,6 +71,7 @@ export default {
name: "indicatorInfo", name: "indicatorInfo",
data() { data() {
return { return {
show: false,
isFlag:true, isFlag:true,
hasPage:false, hasPage:false,
noDataImg, noDataImg,
...@@ -147,11 +149,18 @@ export default { ...@@ -147,11 +149,18 @@ export default {
} }
}, },
watch: { watch: {
'queryData.isDisabled':{
handler(val){
}
},
queryData: { queryData: {
handler(val) { handler(val) {
if(val.isDisabled){ console.log(val.isDisabled,'isDisabled')
// if(val.isDisabled){
console.log('watch')
this.refreshTable() this.refreshTable()
} // }
// this.findStoreInfoByMerchantNoData() // this.findStoreInfoByMerchantNoData()
}, },
...@@ -165,6 +174,7 @@ export default { ...@@ -165,6 +174,7 @@ export default {
methods: { methods: {
refreshTable() { refreshTable() {
console.log(this.queryData.isDisabled) console.log(this.queryData.isDisabled)
this.show = false
let arr=[ { let arr=[ {
label: "驻店人数", label: "驻店人数",
prop: "staffCount" prop: "staffCount"
...@@ -173,10 +183,62 @@ export default { ...@@ -173,10 +183,62 @@ export default {
label: "已配课程人数", label: "已配课程人数",
prop: "courseConfiguredCount" prop: "courseConfiguredCount"
}] }]
let tableColumns= [
{
label: "门店名称",
prop: "storeName"
},
{
label: "商户号",
prop: "merchantNo"
// minWidth: 144,
},
{
label: "是否直营",
prop: "isDirectOperated",
formatter: (cellValue) => {
return this.baseData.directOperateOpt.find(
(item) => item.confId === cellValue.isDirectOperated
)?.confValue
}
},
{
label: "展业时间",
prop: "businessDevDate",
formatter: (cellValue) => {
return cellValue.businessDevDate
? Util.dateFormate(cellValue.businessDevDate, "YYYY-MM-DD")
: ""
}
},
{
label: "归属业务",
formatter: (cellValue) => {
return this.baseData.businessOpt.find(
(item) => item.confId ==this.queryData.scene
)?.confValue
}
},
{
label: "主营品牌",
prop: "mainBrand",
addHtml: "mainBrand"
},
{
label: "区域运营经理",
prop: "regionalManager"
}
]
if(this.queryData.isDisabled){ if(this.queryData.isDisabled){
this.tableParams.mutiSelectName='indicatorIndex' this.tableParams.mutiSelectName='indicatorIndex'
this.tableParams.tableColumns=[...this.tableParams.tableColumns, ...arr] this.tableParams.tableColumns=[...tableColumns, ...arr]
}else{
this.tableParams.mutiSelectName=''
this.tableParams.tableColumns=[...tableColumns]
} }
this.$nextTick(() => {
this.show = true
})
}, },
findStoreInfoByMerchantNoData() { findStoreInfoByMerchantNoData() {
console.log(this.queryData, "queryData") console.log(this.queryData, "queryData")
......
...@@ -70,6 +70,7 @@ ...@@ -70,6 +70,7 @@
<!-- 查看课程 --> <!-- 查看课程 -->
</d2-table> </d2-table>
<long-detail-dialog <long-detail-dialog
:longForm="longForm"
:longVisible.sync="detailVisible" :longVisible.sync="detailVisible"
v-if="detailVisible" v-if="detailVisible"
:params-obj="recordInfo" :params-obj="recordInfo"
......
...@@ -185,6 +185,24 @@ ...@@ -185,6 +185,24 @@
环 {{ scope.scope.customerUnitPriceRate === 0 ? 0 + "%" : "-" }} 环 {{ scope.scope.customerUnitPriceRate === 0 ? 0 + "%" : "-" }}
</div> </div>
</div> </div>
<div class="text-box" slot="courseName" slot-scope="scope">
<el-tooltip
class="item"
effect="dark"
:content="scope.scope[scope.prop]"
placement="right"
>
<span>
{{
scope.scope[scope.prop]
? scope.scope[scope.prop].length > 23
? scope.scope[scope.prop].slice(0, 23) + "..."
: scope.scope[scope.prop]
: "-"
}}
</span>
</el-tooltip>
</div>
</d2-table> </d2-table>
</div> </div>
</div> </div>
...@@ -240,6 +258,10 @@ export default { ...@@ -240,6 +258,10 @@ export default {
{ {
title: "导师:", title: "导师:",
key: "mentors" key: "mentors"
},
{
title: "最后出单门店:",
key: "latestSuccessMerchant"
} }
], ],
hasNum: false, hasNum: false,
...@@ -274,7 +296,8 @@ export default { ...@@ -274,7 +296,8 @@ export default {
tableColumns: [ tableColumns: [
{ {
label: "课程名称", label: "课程名称",
prop: "courseName" prop: "courseName",
addHtml: "courseName"
}, },
{ {
label: "课程时长", label: "课程时长",
...@@ -330,6 +353,10 @@ export default { ...@@ -330,6 +353,10 @@ export default {
paramsObj: { paramsObj: {
type: Object, type: Object,
default: {} default: {}
},
longForm: {
type: Object,
default: () => ({})
} }
}, },
computed: { computed: {
...@@ -358,7 +385,10 @@ export default { ...@@ -358,7 +385,10 @@ export default {
getStaffInfo() { getStaffInfo() {
var params = { var params = {
staffPhone: this.paramsObj.staffPhone, staffPhone: this.paramsObj.staffPhone,
queryIndicator: true queryIndicator: true,
bizs: this.longForm.scene,
startTime: this.longForm.startTime + " 00:00:00",
endTime: this.longForm.endTime + " 23:59:59"
} }
staffInfo(params).then((res) => { staffInfo(params).then((res) => {
if (res) { if (res) {
...@@ -465,4 +495,8 @@ export default { ...@@ -465,4 +495,8 @@ export default {
.normal { .normal {
font-size: 12px; font-size: 12px;
} }
.text-box {
font-size: 14px;
padding: 0 20px;
}
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!