From 8cfd8a14778104c274b441c83a62ead84e06c5ea Mon Sep 17 00:00:00 2001 From: zichen1019 <1510748736@qq.com> Date: Mon, 30 Aug 2021 17:40:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/device_management/index.vue | 39 +++++++++------------------ 1 file changed, 13 insertions(+), 26 deletions(-) diff --git a/src/views/device_management/index.vue b/src/views/device_management/index.vue index 81f08a6..b977189 100644 --- a/src/views/device_management/index.vue +++ b/src/views/device_management/index.vue @@ -219,7 +219,7 @@ - + @@ -299,17 +299,6 @@ const defaultForm = form({ checkDate: '' }) -// 自定义模板内容 -const PrefixPlusText = { - props: ['value', 'functions'], - template: ` - - - - - ` -} - export default { name: 'InstrumentList', components: { Pagination, Query, Crud, CustomTable, Edit, TreeSelect, Move }, @@ -400,18 +389,17 @@ export default { instrumentId: 0, moveDialogVisible: false, ifMeasure: false - // pickerOptions1: { - // //disabledDate是日期组件的一个方法 - // disabledDate: (time) => { - // //这里就涉及到日期的指定了 setMonth()函数可以设置月份 - // let currentTime = this.value1; - // let threeMonths = currentTime.setMonth(currentTime.getMonth()+3); - // //一开始我没加下面减三个月的那个语句,他的值会一直累加 - // currentTime.setMonth(currentTime.getMonth()-3) - // return time.getTime() < this.value1 || time.getTime() > threeMonths ; - // } - // } - + /* pickerOptions1: { + //disabledDate是日期组件的一个方法 + disabledDate: (time) => { + //这里就涉及到日期的指定了 setMonth()函数可以设置月份 + let currentTime = this.value1; + let threeMonths = currentTime.setMonth(currentTime.getMonth()+3); + //一开始我没加下面减三个月的那个语句,他的值会一直累加 + currentTime.setMonth(currentTime.getMonth()-3) + return time.getTime() < this.value1 || time.getTime() > threeMonths ; + } + }*/ } }, mounted() { @@ -505,7 +493,6 @@ export default { getDicDataListByTypeName({ typeCode: 'use_purpose' }).then(data => { this.usePurposeList = data }) // 预警周期列表 getDicDataListByTypeName({ typeCode: 'verification_cycle' }).then(data => { this.cycleList = data }) - }, // 部门选择回调事件 getDepartmentValue(value) { @@ -541,7 +528,7 @@ export default { // } // return color // }, - getTableRowClassName({ row, rowIndex }) { + getTableRowClassName({ row, rowIndex }) { // row.index = rowIndex const nextTime = new Date(row.checkDate).getTime() const currentTime = new Date().getTime()