|
@ -2,7 +2,7 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div class="cr-body-content"> |
|
|
<div class="cr-body-content"> |
|
|
<div ref="box"> |
|
|
<div ref="box"> |
|
|
<flexbox class="content-header"> |
|
|
<flexbox class="content-header" id="planControl-content-header"> |
|
|
<el-form |
|
|
<el-form |
|
|
:model="listQuery" |
|
|
:model="listQuery" |
|
|
ref="searchForm" |
|
|
ref="searchForm" |
|
@ -176,6 +176,9 @@ |
|
|
>导入 |
|
|
>导入 |
|
|
</el-button> |
|
|
</el-button> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
|
|
|
<el-form-item> |
|
|
|
|
|
<div class="tipper" v-if="tipper != ''" v-html="tipper"></div> |
|
|
|
|
|
</el-form-item> |
|
|
</el-form> |
|
|
</el-form> |
|
|
</flexbox> |
|
|
</flexbox> |
|
|
</div> |
|
|
</div> |
|
@ -265,6 +268,7 @@ |
|
|
mixins: [message_table], |
|
|
mixins: [message_table], |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
|
|
|
tipper:"", |
|
|
showExcelImport: false, |
|
|
showExcelImport: false, |
|
|
form: {}, |
|
|
form: {}, |
|
|
list: null, |
|
|
list: null, |
|
@ -298,10 +302,15 @@ |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
mounted() { |
|
|
|
|
|
let timer = setInterval(() => { |
|
|
|
|
|
this.getTipper(); |
|
|
|
|
|
}, 60000); |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
var offsetHei = document.documentElement.clientHeight; |
|
|
this.getTipper(); |
|
|
let boxH = this.$refs.box.offsetHeight; |
|
|
this.changeMainTableHeight() |
|
|
this.tableHeight = offsetHei - boxH - 57 - 79;//57为footer高度,79为页面上部标签高度 |
|
|
// var offsetHei = document.documentElement.clientHeight; |
|
|
|
|
|
// let boxH = this.$refs.box.offsetHeight; |
|
|
|
|
|
// this.tableHeight = offsetHei - boxH - 57 - 79;//57为footer高度,79为页面上部标签高度 |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
@ -457,6 +466,36 @@ |
|
|
//导入 |
|
|
//导入 |
|
|
this.showExcelImport = true; |
|
|
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> |
|
|
</script> |
|
@ -464,6 +503,13 @@ |
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
<style lang="scss" scoped> |
|
|
@import "../../../pg-fis/styles/crmtable.scss"; |
|
|
@import "../../../pg-fis/styles/crmtable.scss"; |
|
|
|
|
|
.tipper{ |
|
|
|
|
|
border: solid 1px #ddd; |
|
|
|
|
|
border-radius: 5px; |
|
|
|
|
|
display: inline-block; |
|
|
|
|
|
padding: 10px; |
|
|
|
|
|
line-height: 20px; |
|
|
|
|
|
} |
|
|
</style> |
|
|
</style> |
|
|
|
|
|
|
|
|
|
|
|
|