|
@@ -23,7 +23,7 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="公司" v-if="type == 3">
|
|
|
+ <el-form-item label="公司" v-if="type == 1">
|
|
|
<el-select v-model="queryParams.companyName" @change="changeEcharts()" clearable placeholder="请选择公司">
|
|
|
<el-option
|
|
|
v-for="item in companyList"
|
|
@@ -52,7 +52,7 @@
|
|
|
|
|
|
</div>
|
|
|
<div>
|
|
|
- <component v-if="type == 3" :is="component" :ref="components" :domId="components" :NewForm="form" @form="getForm"></component>
|
|
|
+ <component v-if="type == 1" :is="component" :ref="components" :domId="components" :NewForm="form" @form="getForm"></component>
|
|
|
<component :is='component' :ref="component" :NewForm="form" @form="getForm"></component>
|
|
|
</div>
|
|
|
<el-drawer
|
|
@@ -157,8 +157,8 @@ export default {
|
|
|
var relation = this.relationList.find(i=>{
|
|
|
return i.value == this.queryParams.relation
|
|
|
})
|
|
|
- var name = this.name + (this.type==3?'产品类别':'产品') + '趋势图'
|
|
|
- if(this.type==3){
|
|
|
+ var name = this.name + (this.type==1?'产品类别':'产品') + '趋势图'
|
|
|
+ if(this.type==1){
|
|
|
this.$refs[this.components].open(this.chartData.filter(item=>{
|
|
|
return !item.productId
|
|
|
}),'趋势总图',relation.label,this.queryParams.timeUnit)
|
|
@@ -190,7 +190,7 @@ export default {
|
|
|
saleArea:this.queryParams.area,
|
|
|
companyName:this.queryParams.companyName,
|
|
|
}
|
|
|
- if(this.type == 3){
|
|
|
+ if(this.type == 1){
|
|
|
params.categoryId = this.id
|
|
|
}else{
|
|
|
params.productId = this.id
|
|
@@ -214,7 +214,7 @@ export default {
|
|
|
//获取所有公司和地区
|
|
|
getAllCompanyAndArea(){
|
|
|
var params = {}
|
|
|
- if(this.type == 3){
|
|
|
+ if(this.type == 1){
|
|
|
params.categoryId = this.id
|
|
|
}else{
|
|
|
params.productId = this.id
|