|
|
|
@ -181,7 +181,7 @@
|
|
|
|
|
</vue-seamless-scroll>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="item-table item-table1" style="position: relative">
|
|
|
|
|
<div class="titlebox" style="margin-bottom: 14px; po">
|
|
|
|
|
<div class="titlebox" style="margin-bottom: 14px; ">
|
|
|
|
|
<div class="titlename">不良类型占比</div>
|
|
|
|
|
<el-date-picker
|
|
|
|
|
style="
|
|
|
|
@ -321,16 +321,17 @@ export default {
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
this.getDate();
|
|
|
|
|
// this.getDate();
|
|
|
|
|
},
|
|
|
|
|
destroyed() {
|
|
|
|
|
clearInterval(this.time1);
|
|
|
|
|
this.time1 = null;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
mounted() {
|
|
|
|
|
this.selectFactorylist();
|
|
|
|
|
async mounted() {
|
|
|
|
|
await this.selectFactorylist();
|
|
|
|
|
this.gettime();
|
|
|
|
|
this.getDate();
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
/**获取默认查询时间段**/
|
|
|
|
@ -376,7 +377,6 @@ export default {
|
|
|
|
|
if (response.data) {
|
|
|
|
|
_this.getLineList = response.data;
|
|
|
|
|
_this.selectxt = _this.getLineList[0].parentName;
|
|
|
|
|
|
|
|
|
|
//this.getDictData()
|
|
|
|
|
this.getDeviceRefreshTime();
|
|
|
|
|
}
|
|
|
|
@ -385,7 +385,7 @@ export default {
|
|
|
|
|
getDeviceRefreshTime() {
|
|
|
|
|
const _this = this;
|
|
|
|
|
getDeviceRefreshTime().then((response) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (response.data) {
|
|
|
|
|
// console.log(response.data)
|
|
|
|
|
this.RefreshTime = response.data;
|
|
|
|
@ -397,23 +397,6 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// getDictData() {
|
|
|
|
|
// const _this = this;
|
|
|
|
|
// getDictData(
|
|
|
|
|
// {
|
|
|
|
|
// dictType: 'static_dims',
|
|
|
|
|
// }
|
|
|
|
|
// ).then((response) => {
|
|
|
|
|
// if (response) {
|
|
|
|
|
// // console.log(response)
|
|
|
|
|
// this.dictDatatype = response
|
|
|
|
|
// _this.selectxtclasses = _this.dictDatatype[1].ymdType;
|
|
|
|
|
// this.getDeviceRefreshTime()
|
|
|
|
|
// this.getdatalist()
|
|
|
|
|
// this.initChart1()
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
// },
|
|
|
|
|
noOkTimeChange(){
|
|
|
|
|
this.ymdStart1 = moment(this.ymdArray1[0]).format("YYYY-MM-DD");
|
|
|
|
|
this.ymdEnd1 = moment(this.ymdArray1[1]).format("YYYY-MM-DD");
|
|
|
|
|