|
|
@ -2,7 +2,7 @@ |
|
|
|
<template> |
|
|
|
<div class="cr-body-content"> |
|
|
|
<div ref="box"> |
|
|
|
<flexbox class="content-header"> |
|
|
|
<flexbox class="content-header" id="planControl-content-header"> |
|
|
|
<el-form |
|
|
|
:model="listQuery" |
|
|
|
ref="searchForm" |
|
|
@ -176,6 +176,9 @@ |
|
|
|
>导入 |
|
|
|
</el-button> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item> |
|
|
|
<div class="tipper" v-if="tipper != ''" v-html="tipper"></div> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
</flexbox> |
|
|
|
</div> |
|
|
@ -265,6 +268,7 @@ |
|
|
|
mixins: [message_table], |
|
|
|
data() { |
|
|
|
return { |
|
|
|
tipper:"", |
|
|
|
showExcelImport: false, |
|
|
|
form: {}, |
|
|
|
list: null, |
|
|
@ -298,10 +302,15 @@ |
|
|
|
}; |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
let timer = setInterval(() => { |
|
|
|
this.getTipper(); |
|
|
|
}, 60000); |
|
|
|
this.$nextTick(() => { |
|
|
|
var offsetHei = document.documentElement.clientHeight; |
|
|
|
let boxH = this.$refs.box.offsetHeight; |
|
|
|
this.tableHeight = offsetHei - boxH - 57 - 79;//57为footer高度,79为页面上部标签高度 |
|
|
|
this.getTipper(); |
|
|
|
this.changeMainTableHeight() |
|
|
|
// var offsetHei = document.documentElement.clientHeight; |
|
|
|
// let boxH = this.$refs.box.offsetHeight; |
|
|
|
// this.tableHeight = offsetHei - boxH - 57 - 79;//57为footer高度,79为页面上部标签高度 |
|
|
|
}); |
|
|
|
}, |
|
|
|
created() { |
|
|
@ -457,6 +466,36 @@ |
|
|
|
//导入 |
|
|
|
this.showExcelImport = true; |
|
|
|
}, |
|
|
|
// 更改主表格高度 |
|
|
|
changeMainTableHeight(){ |
|
|
|
this.$nextTick(()=>{ |
|
|
|
var offsetHei = document.documentElement.clientHeight; |
|
|
|
// let boxH = this.$refs.box.offsetHeight; |
|
|
|
let headerH = document.getElementById("planControl-content-header").clientHeight |
|
|
|
let footerH = this.totalCount > 0 ? 67 : 0 //footer高度 |
|
|
|
this.tableHeight = offsetHei - headerH - 67 - 79; //79为页面上部标签高度 |
|
|
|
//this.tableHeight = offsetHei -260 |
|
|
|
}) |
|
|
|
}, |
|
|
|
getTipper(){ |
|
|
|
if(this.$route.name != 'pg-planControl'){ |
|
|
|
return |
|
|
|
} |
|
|
|
this.$axios.posts( "/api/newjit/import-record/print-timeout-remind" ).then((res) => { |
|
|
|
this.tipper = "" |
|
|
|
let _item = "" |
|
|
|
let _style = "" |
|
|
|
if (res.timeoutMinutes >= res.configMinutes) { |
|
|
|
//写提示信息 |
|
|
|
_style = "color:red;font-weight:bold" |
|
|
|
} else { |
|
|
|
_style = "color:green" |
|
|
|
} |
|
|
|
_item = `<span style=${_style}>已经${res.timeoutMinutes}分钟没有导入计划\xa0\xa0\xa0\xa0</span>` |
|
|
|
this.tipper += _item |
|
|
|
this.changeMainTableHeight() |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
}; |
|
|
|
</script> |
|
|
@ -464,6 +503,13 @@ |
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
@import "../../../pg-fis/styles/crmtable.scss"; |
|
|
|
.tipper{ |
|
|
|
border: solid 1px #ddd; |
|
|
|
border-radius: 5px; |
|
|
|
display: inline-block; |
|
|
|
padding: 10px; |
|
|
|
line-height: 20px; |
|
|
|
} |
|
|
|
</style> |
|
|
|
|
|
|
|
|