Browse Source

【长春派格1.5】计划管理提醒功能+日常打印提醒优化

HQ
安虹睿 10 months ago
parent
commit
af0ebb512d
  1. 3
      vue/src/views/pg-fis/basedate/m100Online/normalPritIndex.vue
  2. 54
      vue/src/views/pg-fis/basedate/planControl/index.vue

3
vue/src/views/pg-fis/basedate/m100Online/normalPritIndex.vue

@ -780,6 +780,9 @@ export default {
this.getList(); this.getList();
}, },
open() { open() {
if(this.$route.name != 'pg-M100Online'){
return
}
// let productLineList = []; // let productLineList = [];
// productLineList.forEach(element => { // productLineList.forEach(element => {
// element=this.listQuery.productLine; // element=this.listQuery.productLine;

54
vue/src/views/pg-fis/basedate/planControl/index.vue

@ -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;//57footer79 // var offsetHei = document.documentElement.clientHeight;
// let boxH = this.$refs.box.offsetHeight;
// this.tableHeight = offsetHei - boxH - 57 - 79;//57footer79
}); });
}, },
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>
Loading…
Cancel
Save