Merge branch 'dev'

prod
校文 3 years ago
commit d4af973842

@ -15,7 +15,7 @@
"compression-webpack-plugin": "^9.0.0", "compression-webpack-plugin": "^9.0.0",
"core-js": "^3.6.5", "core-js": "^3.6.5",
"cz-storage": "^1.0.1", "cz-storage": "^1.0.1",
"echarts": "^5.2.2", "echarts": "5.2.2",
"echarts-wordcloud": "^2.0.0", "echarts-wordcloud": "^2.0.0",
"js-cookie": "^3.0.1", "js-cookie": "^3.0.1",
"less": "^4.1.2", "less": "^4.1.2",

@ -91,7 +91,7 @@ export default {
if(ex && ex.componentSubType === 'line') { if(ex && ex.componentSubType === 'line') {
this.$emit("getData", obj); this.$emit("getData", obj);
} }
}; }
}); });
// //
@ -120,6 +120,7 @@ export default {
}, },
// //
roundDefaultSelect(myChart) { roundDefaultSelect(myChart) {
console.log(myChart)
if (!myChart.getOption().series[0] || myChart.getOption().series[0].type != "pie") { if (!myChart.getOption().series[0] || myChart.getOption().series[0].type != "pie") {
return; return;
} }

@ -78,7 +78,7 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
.wct-outter { .wct-outter {
width: 936px; width: 936px;
height: 460px; height: 412px;
border: 2px solid #0f2a4d; border: 2px solid #0f2a4d;
margin-left: 16px; margin-left: 16px;
overflow: hidden; overflow: hidden;

@ -8,7 +8,7 @@
</v-label-div-light> </v-label-div-light>
<div :class="getIsLight?'lightSy':'dark'"> <div :class="getIsLight?'lightSy':'dark'">
<a-menu mode="inline" style="width: 15%" @openChange="handlerMenu" theme="dark"> <a-menu mode="inline" style="width: 15%" @openChange="handlerMenu" theme="dark">
<a-sub-menu title="筛选项" key="sub1"> <a-sub-menu :title="filterActive.length!=0?'隐藏筛选项':'显示筛选项'" key="sub1">
</a-sub-menu> </a-sub-menu>
</a-menu> </a-menu>
</div> </div>
@ -63,7 +63,7 @@
<a-form-model :class="getIsLight?'lightSy':'dark'" layout="inline"> <a-form-model :class="getIsLight?'lightSy':'dark'" layout="inline">
<a-form-model-item label="选择日期"> <a-form-model-item label="选择日期">
<a-month-picker style="width: 146px" :allowClear="false" v-model="selTime[0]" valueFormat="YYYY-MM" placeholder="开始日期"></a-month-picker> <a-month-picker style="width: 146px" :allowClear="false" v-model="selTime[0]" valueFormat="YYYY-MM" placeholder="开始日期"></a-month-picker>
<a-month-picker style="width: 146px" :allowClear="false" v-model="selTime[1]" valueFormat="YYYY-MM" placeholder="结束日期"></a-month-picker> <a-month-picker style="width: 146px;margin-left: 16px;" :allowClear="false" v-model="selTime[1]" valueFormat="YYYY-MM" placeholder="结束日期"></a-month-picker>
<a-button style="margin-left: 16px;" type="primary" icon="plus" @click="hanlderAddSeries"></a-button> <a-button style="margin-left: 16px;" type="primary" icon="plus" @click="hanlderAddSeries"></a-button>
</a-form-model-item> </a-form-model-item>
</a-form-model> </a-form-model>
@ -73,6 +73,7 @@
<span v-for="(item, index) in stableList" :key="index"> <span v-for="(item, index) in stableList" :key="index">
<a-button style="margin-left: 12px;margin-bottom: 12px" @click="onDeleteStable(index)" ghost type="primary">{{item.Name}}<a-icon type="close" /></a-button> <a-button style="margin-left: 12px;margin-bottom: 12px" @click="onDeleteStable(index)" ghost type="primary">{{item.Name}}<a-icon type="close" /></a-button>
</span> </span>
<a-button style="margin-left: 12px;margin-bottom: 12px" ghost type="primary" icon="plus" @click="hanlderAddStable"></a-button>
</div> </div>
</div> </div>
<div class="d2" :class="getIsLight?'lightSy':'dark'" v-if="filterActive.length!=0"> <div class="d2" :class="getIsLight?'lightSy':'dark'" v-if="filterActive.length!=0">
@ -81,6 +82,7 @@
</span> </span>
</div> </div>
<iSaleModelChoose :brand="brand" :model="model" :visible.sync="modelShow" @change="handlerBrand"></iSaleModelChoose> <iSaleModelChoose :brand="brand" :model="model" :visible.sync="modelShow" @change="handlerBrand"></iSaleModelChoose>
<iSaleModelChoose :brand="brand" :model="model" :visible.sync="modelShowStable" @change="handlerBrandStable"></iSaleModelChoose>
<div class="d3" v-if="getIsLight"> <div class="d3" v-if="getIsLight">
<v-echarts :opt="opt2"></v-echarts> <v-echarts :opt="opt2"></v-echarts>
</div> </div>
@ -139,6 +141,7 @@ export default {
extraData: [], extraData: [],
// //
modelShow: false, modelShow: false,
modelShowStable: false,
brand: '奥迪', brand: '奥迪',
model: '', model: '',
// //
@ -210,6 +213,9 @@ export default {
hanlderAddSeries() { hanlderAddSeries() {
this.modelShow = true; this.modelShow = true;
}, },
hanlderAddStable() {
this.modelShowStable = true;
},
handlerBrand(val) { handlerBrand(val) {
if(val) { if(val) {
if(this.seriesList.indexOf(val[1].name) != -1) { if(this.seriesList.indexOf(val[1].name) != -1) {
@ -240,6 +246,33 @@ export default {
}) })
this.modelShow = false; this.modelShow = false;
}, },
handlerBrandStable(val) {
if(val) {
if(this.seriesList.indexOf(val[1].name) != -1) {
this.$message.error('该车型已存在')
return false
}
};
let obj = {
token: this.form.token,
sSeriesName: val[1].name,
sTimeType: 4,
sStartTime: this.selTime[0],
sEndTime: this.selTime[1],
};
getSalesCompetitionAnalysis(obj).then(res => {
let data = res.data;
// [ ['extra'],[] ]
data.forEach(ele => {
let item = [ele.CheChang * 1, ele.MainPrice, ele.Count, ele.Name, 'total'];
this.totalData.push(item);
this.stableList.push(ele);
});
this.opt = createOpt(this.totalData, this.extraData);
this.opt2 = createOptLight(this.totalData, this.extraData)
})
this.modelShow = false;
},
// //
onDelete(index) { onDelete(index) {
this.seriesList.splice(index,1); this.seriesList.splice(index,1);

@ -8,7 +8,7 @@
</v-label-div-light> </v-label-div-light>
<div :class="getIsLight?'lightSy':'dark'"> <div :class="getIsLight?'lightSy':'dark'">
<a-menu mode="inline" style="width: 15%" @openChange="handlerMenu" theme="dark"> <a-menu mode="inline" style="width: 15%" @openChange="handlerMenu" theme="dark">
<a-sub-menu title="筛选项" key="sub1"> <a-sub-menu :title="filterActive.length!=0?'隐藏筛选项':'显示筛选项'" key="sub1">
</a-sub-menu> </a-sub-menu>
</a-menu> </a-menu>
</div> </div>
@ -63,7 +63,7 @@
<a-form-model layout="inline"> <a-form-model layout="inline">
<a-form-model-item label="选择日期" :class="getIsLight?'lightSy':'dark'"> <a-form-model-item label="选择日期" :class="getIsLight?'lightSy':'dark'">
<a-month-picker style="width: 146px" :allowClear="false" v-model="selTime[0]" valueFormat="YYYY-MM" placeholder="开始日期"></a-month-picker> <a-month-picker style="width: 146px" :allowClear="false" v-model="selTime[0]" valueFormat="YYYY-MM" placeholder="开始日期"></a-month-picker>
<a-month-picker style="width: 146px" :allowClear="false" v-model="selTime[1]" valueFormat="YYYY-MM" placeholder="结束日期"></a-month-picker> <a-month-picker style="width: 146px;margin-left: 16px;" :allowClear="false" v-model="selTime[1]" valueFormat="YYYY-MM" placeholder="结束日期"></a-month-picker>
<a-button style="margin-left: 12px" type="primary" icon="plus" @click="hanlderAddSeries"></a-button> <a-button style="margin-left: 12px" type="primary" icon="plus" @click="hanlderAddSeries"></a-button>
</a-form-model-item> </a-form-model-item>
</a-form-model> </a-form-model>

@ -132,7 +132,7 @@ export default {
<style lang="less"> <style lang="less">
.tp20-outter { .tp20-outter {
width: 1552px; width: 1552px;
height: 965px; height: 768px;
border: 2px solid #0f2a4d; border: 2px solid #0f2a4d;
.d2 { .d2 {
display: flex; display: flex;

Loading…
Cancel
Save