|
|
|
@ -3,23 +3,23 @@
|
|
|
|
|
<div class="b-outter">
|
|
|
|
|
<div class="b-d1">
|
|
|
|
|
<div class="bdl-d1-dd1">
|
|
|
|
|
<brand-data :brand="brand"></brand-data>
|
|
|
|
|
<brand-data :brand="brand" :series="srs"></brand-data>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="bdl-d1-dd2">
|
|
|
|
|
<div class="bdl-d1-dd2-d1">
|
|
|
|
|
<div class="bdl-d1-dd2-d1-s1">{{this.brand}}</div>
|
|
|
|
|
<div class="bdl-d1-dd2-d1-number">{{healthNum}}</div>
|
|
|
|
|
<div class="bdl-d1-dd2-d1-number">{{getHealth?getHealth:0}}</div>
|
|
|
|
|
<div class="bdl-d1-dd2-d1-number" style="font-size: 18px;line-height: 36px">健康指数</div>
|
|
|
|
|
</div>
|
|
|
|
|
<img class="m2" src="../../assets/images/BrandInsight/img_warning.png" @click="openBrand"/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="bdl-d1-dd3">
|
|
|
|
|
<warning-info></warning-info>
|
|
|
|
|
<warning-info :brand="brand" :series="srs"></warning-info>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="bdl-d2">
|
|
|
|
|
<event-list :brand="brand"></event-list>
|
|
|
|
|
<media-list :brand="brand"></media-list>
|
|
|
|
|
<event-list :brand="brand" :series="srs"></event-list>
|
|
|
|
|
<media-list :brand="brand" :series="srs"></media-list>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<a-modal title="推送设置" width="33%" :footer="null" @cancel="visible = false" :visible="visible">
|
|
|
|
@ -65,7 +65,7 @@ import brandData from "./brandData";
|
|
|
|
|
import warningInfo from "./warningInfo";
|
|
|
|
|
import eventList from "./eventList";
|
|
|
|
|
import mediaList from "./mediaList"
|
|
|
|
|
import {getSwsQyUserCarMainBrandList, getHealthIndex, getSwsQyQuartzList, addOrUpdSwsQyQuartzList} from "@/api/MyBrand"
|
|
|
|
|
import {getSwsQyUserCarMainBrandList, getSwsQyQuartzList, addOrUpdSwsQyQuartzList} from "@/api/MyBrand"
|
|
|
|
|
import { getSeriesNameByCategory } from "@/api/comm";
|
|
|
|
|
export default {
|
|
|
|
|
name: "MyBrand",
|
|
|
|
@ -75,7 +75,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
healthNum: undefined,
|
|
|
|
|
healthNum: 0,
|
|
|
|
|
series: [],
|
|
|
|
|
form: {
|
|
|
|
|
token: '',
|
|
|
|
@ -101,16 +101,16 @@ export default {
|
|
|
|
|
models: [],
|
|
|
|
|
list: [],
|
|
|
|
|
brand: '',
|
|
|
|
|
srs: 'default',
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
created() {
|
|
|
|
|
this.setHeaderType(3);
|
|
|
|
|
this.brand = this.getWarningBrand.brandname;
|
|
|
|
|
this.form.token = this.getToken;
|
|
|
|
|
this.form.sBrand = this.getWarningBrand.brandname;
|
|
|
|
|
this.form.sSeriesName = this.getWarningSeries;
|
|
|
|
|
this.getData();
|
|
|
|
|
this.getApi();
|
|
|
|
|
this.getData();
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
getApi() {
|
|
|
|
@ -122,25 +122,31 @@ export default {
|
|
|
|
|
this.dx = data[0].Es.Crisis.split(',');
|
|
|
|
|
this.settingForm.Crisis = data[0].Es.Crisis;
|
|
|
|
|
this.settingForm.SeriesNames = data[0].Es.SeriesNames;
|
|
|
|
|
if(data[0].Es.SeriesNames != '') {
|
|
|
|
|
if(data[0].Es.SeriesNames) {
|
|
|
|
|
this.list = data[0].Es.SeriesNames.split(',');
|
|
|
|
|
this.setWarningSeries(data[0].Es.SeriesNames);
|
|
|
|
|
this.form.sSeriesName = data[0].Es.SeriesNames;
|
|
|
|
|
this.srs = data[0].Es.SeriesNames;
|
|
|
|
|
} else {
|
|
|
|
|
this.setWarningSeries('');
|
|
|
|
|
this.form.sSeriesName = '';
|
|
|
|
|
this.srs = '';
|
|
|
|
|
}
|
|
|
|
|
this.Id = data[0].Id;
|
|
|
|
|
this.Statu = data[0].Statu
|
|
|
|
|
this.Statu = data[0].Statu;
|
|
|
|
|
// let obj = Object.assign({}, this.form, this.getCtime2);
|
|
|
|
|
// getHealthIndex(obj).then(res => {
|
|
|
|
|
// this.healthNum = res.data.healthIndex
|
|
|
|
|
// });
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
getData() {
|
|
|
|
|
let obj = Object.assign({}, this.form, this.getCtime2)
|
|
|
|
|
getSwsQyUserCarMainBrandList({token: this.getToken}).then(res => {
|
|
|
|
|
let brand = res.data[0] || '';
|
|
|
|
|
if(brand) {
|
|
|
|
|
this.brand = brand.brandname
|
|
|
|
|
};
|
|
|
|
|
});
|
|
|
|
|
getHealthIndex(obj).then(res => {
|
|
|
|
|
this.healthNum = res.data.healthIndex
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
openBrand() {
|
|
|
|
|
this.getApi();
|
|
|
|
@ -194,7 +200,7 @@ export default {
|
|
|
|
|
};
|
|
|
|
|
addOrUpdSwsQyQuartzList(form).then(res => {
|
|
|
|
|
if(res.msg == 'Success') {
|
|
|
|
|
this.setWarningSeries(this.settingForm.SeriesNames);
|
|
|
|
|
// this.setWarningSeries(this.settingForm.SeriesNames);
|
|
|
|
|
this.$message.success('修改成功');
|
|
|
|
|
this.visible = false;
|
|
|
|
|
this.reload();
|
|
|
|
|