|
@@ -255,7 +255,7 @@ export default {
|
|
if (row.filedKind != -1 && (row.type == 'Array' || row.type == 'tree')) {
|
|
if (row.filedKind != -1 && (row.type == 'Array' || row.type == 'tree')) {
|
|
if (row.filedKind == 0) {
|
|
if (row.filedKind == 0) {
|
|
const [num, option] = await Promise.allSettled([this.esCountAnalysis(row), this.queryCustomOption(row)])
|
|
const [num, option] = await Promise.allSettled([this.esCountAnalysis(row), this.queryCustomOption(row)])
|
|
- var nums = num.status == 'fulfilled' ? num.value : []
|
|
|
|
|
|
+ var nums = num.status == 'fulfilled' ? num.value.detailDTOS : []
|
|
var options = option.status == 'fulfilled' ? option.value : []
|
|
var options = option.status == 'fulfilled' ? option.value : []
|
|
var obj = nums.find(item=>{
|
|
var obj = nums.find(item=>{
|
|
return item.name == '未选择'
|
|
return item.name == '未选择'
|
|
@@ -282,7 +282,7 @@ export default {
|
|
9: '3'
|
|
9: '3'
|
|
}
|
|
}
|
|
const [num,option] = await Promise.allSettled([this.esCountAnalysis(row),this.queryProductCategory(row,type[row.filedKind])])
|
|
const [num,option] = await Promise.allSettled([this.esCountAnalysis(row),this.queryProductCategory(row,type[row.filedKind])])
|
|
- var nums = num.status == 'fulfilled' ? num.value : []
|
|
|
|
|
|
+ var nums = num.status == 'fulfilled' ? num.value.detailDTOS : []
|
|
var options = option.status == 'fulfilled' ? option.value : []
|
|
var options = option.status == 'fulfilled' ? option.value : []
|
|
this.$set(row, 'options', options)
|
|
this.$set(row, 'options', options)
|
|
if (!sign) {
|
|
if (!sign) {
|
|
@@ -292,7 +292,7 @@ export default {
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
const [num] = await Promise.allSettled([this.esCountAnalysis(row)])
|
|
const [num] = await Promise.allSettled([this.esCountAnalysis(row)])
|
|
- var nums = num.status == 'fulfilled' ? num.value : []
|
|
|
|
|
|
+ var nums = num.status == 'fulfilled' ? num.value.detailDTOS : []
|
|
// if(row.groupBy == "company"){
|
|
// if(row.groupBy == "company"){
|
|
for(var i = 0;i<nums.length;i++){
|
|
for(var i = 0;i<nums.length;i++){
|
|
if(nums[i].name == '其他'){
|
|
if(nums[i].name == '其他'){
|
|
@@ -305,13 +305,23 @@ export default {
|
|
if (!sign) {
|
|
if (!sign) {
|
|
this.$set(row, 'check', [])
|
|
this.$set(row, 'check', [])
|
|
}
|
|
}
|
|
- if (row.optionsLength == nums.length || nums.length<10) {
|
|
|
|
|
|
+ if(nums.length>0){
|
|
|
|
+ row.optionsLength = num.value.remainingNum
|
|
|
|
+ }else{
|
|
|
|
+ row.optionsLength = 0
|
|
|
|
+ }
|
|
|
|
+ if(row.optionsLength == 0){
|
|
this.$set(row, 'isShowBtn', false)
|
|
this.$set(row, 'isShowBtn', false)
|
|
- this.$set(row, 'optionsLength', nums.length)
|
|
|
|
- } else {
|
|
|
|
|
|
+ }else{
|
|
this.$set(row, 'isShowBtn', true)
|
|
this.$set(row, 'isShowBtn', true)
|
|
- this.$set(row, 'optionsLength', nums.length)
|
|
|
|
}
|
|
}
|
|
|
|
+ // if (row.optionsLength == nums.length || nums.length<10) {
|
|
|
|
+ // this.$set(row, 'isShowBtn', false)
|
|
|
|
+ // this.$set(row, 'optionsLength', nums.length)
|
|
|
|
+ // } else {
|
|
|
|
+ // this.$set(row, 'isShowBtn', true)
|
|
|
|
+ // this.$set(row, 'optionsLength', nums.length)
|
|
|
|
+ // }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -349,7 +359,7 @@ export default {
|
|
countVOS: countVOS,//栏位的聚合入参
|
|
countVOS: countVOS,//栏位的聚合入参
|
|
customFields: this.customFields,//自定义栏位查询
|
|
customFields: this.customFields,//自定义栏位查询
|
|
}
|
|
}
|
|
- return await this.$api.esCountAnalysis(params).then(res => res.data.detailDTOS)
|
|
|
|
|
|
+ return await this.$api.esCountAnalysis(params).then(res => res.data)
|
|
this.$api.esCountAnalysis(params).then(res => {
|
|
this.$api.esCountAnalysis(params).then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
var data = []
|
|
var data = []
|