diff --git a/config/index.js b/config/index.js index 83527fa..a956f4a 100644 --- a/config/index.js +++ b/config/index.js @@ -23,7 +23,7 @@ module.exports = { }, // Various Dev Server settings - host: 'localhost', // can be overwritten by process.env.HOST + host: '192.168.1.130', // can be overwritten by process.env.HOST port: 8001, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined autoOpenBrowser: true, errorOverlay: true, diff --git a/src/views/modules/board/delNotifyBoard.vue b/src/views/modules/board/delNotifyBoard.vue index 36f435b..9ed97a1 100644 --- a/src/views/modules/board/delNotifyBoard.vue +++ b/src/views/modules/board/delNotifyBoard.vue @@ -120,13 +120,12 @@ // } }, tableRowClassName ({row, rowIndex}) { - // if (row.finishedFlag == '2') { - // return 'success-row' - // } - // if (row.finishedFlag == '3') { - // return 'false-row' - // } - // return '' + let date =new Date(this.dayjs().format('YYYY-MM-DD').replace('-', '/')); + let notifyDate = new Date(row.notifyDate.replace('-', '/')) + if (date>notifyDate) { + return 'yellow-row' + } + }, search () { let inData= {number:this.pageIndex}; @@ -145,35 +144,35 @@ // // 鼠标进入停止滚动和切换的定时任务 // this.autoRoll(true) // }, -// 鼠标离开 -// mouseLeave () { -// // 开启 -// this.autoRoll() -// }, -// 设置自动滚动 -// autoRoll (stop) { -// if (stop) { -// clearInterval(rolltimer) -// return -// } -// -// // 拿到表格挂载后的真实DOM -// const table = this.$refs.wt_table -// // 拿到表格中承载数据的div元素 -// const divData = table.bodyWrapper -// // 拿到元素后,对元素进行定时增加距离顶部距离,实现滚动效果 -// rolltimer = setInterval(() => { -// // 元素自增距离顶部像素 -// divData.scrollTop = this.decimalUtil.add(Number(divData.scrollTop), Number(this.rollPx)) -// // 判断元素是否滚动到底部(可视高度+距离顶部=整个高度) -// if (divData.clientHeight + divData.scrollTop +1>= divData.scrollHeight) { -// // 重置table距离顶部距离 -// -// divData.scrollTop = 0 -// -// } -// }, this.rollTime * 10) -// }, + // 鼠标离开 + // mouseLeave () { + // // 开启 + // this.autoRoll() + // }, + // 设置自动滚动 + // autoRoll (stop) { + // if (stop) { + // clearInterval(rolltimer) + // return + // } + // + // // 拿到表格挂载后的真实DOM + // const table = this.$refs.wt_table + // // 拿到表格中承载数据的div元素 + // const divData = table.bodyWrapper + // // 拿到元素后,对元素进行定时增加距离顶部距离,实现滚动效果 + // rolltimer = setInterval(() => { + // // 元素自增距离顶部像素 + // divData.scrollTop = this.decimalUtil.add(Number(divData.scrollTop), Number(this.rollPx)) + // // 判断元素是否滚动到底部(可视高度+距离顶部=整个高度) + // if (divData.clientHeight + divData.scrollTop +1>= divData.scrollHeight) { + // // 重置table距离顶部距离 + // + // divData.scrollTop = 0 + // + // } + // }, this.rollTime * 10) + // }, refreshTable () { refresher = setInterval(() => { this.search() @@ -196,8 +195,8 @@ } - .tableBoard .el-table .success-row { - background: #1bb61b; + .tableBoard .el-table .yellow-row { + background: #cbc60e; } .tableBoard .el-table .false-row { background: #db1212; diff --git a/src/views/modules/board/newScheduledBoard.vue b/src/views/modules/board/newScheduledBoard.vue index abad480..6848f36 100644 --- a/src/views/modules/board/newScheduledBoard.vue +++ b/src/views/modules/board/newScheduledBoard.vue @@ -1,80 +1,132 @@