You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
1.8 KiB

<!--
* @Author: your name
* @Date: 2021-11-09 17:35:06
* @LastEditTime: 2021-11-10 16:56:03
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: /data-show/src/views/ModelForumDetails/ThreadIDRegistrationTime/index.vue
-->
<template>
<div class="tdrt-outter" v-loading="load">
<v-label-div title="跟帖ID注册时间"> </v-label-div>
<div class="tdrt-inner">
<v-echarts :opt="opt"></v-echarts>
</div>
</div>
</template>
<script>
import {getUserRegTime} from "@/api/ModelForumDetails"
import {createSingleColumnar} from "@/utils/gol/singleColumnar"
export default {
name: "ThreadIDRegistrationTime",
data() {
return {
load: false,
form: {
sBrand: "",
token: "",
sSeriesName: "",
},
opt: {}
}
},
created() {
this.form.token = this.getToken;
this.form.sBrand = this.getBrand.brandname || "奥迪";
this.form.sSeriesName = this.getModel.name;
this.getData()
},
methods: {
getData() {
let obj = Object.assign({}, this.getCtime2, this.form);
this.load = true;
getUserRegTime(obj).then(res => {
let data = res.data || {};
let dx = [];
let ds = []
for(let key in data) {
dx.push(key);
ds.push(data[key])
}
this.opt = createSingleColumnar(dx, ds);
this.load = false;
})
}
}
};
</script>
<style lang="less" scoped>
.tdrt-outter {
width: 936px;
height: 460px;
border: 2px solid #0f2a4d;
margin-left: 16px;
.tdrt-inner {
width: 100%;
height: calc(100% - 48px);
}
}
</style>