diff --git a/pages/messageList/index.vue b/pages/messageList/index.vue index ed10d0d..c1549a6 100644 --- a/pages/messageList/index.vue +++ b/pages/messageList/index.vue @@ -23,6 +23,7 @@ + @@ -46,6 +47,7 @@ + - - + @@ -21,31 +22,34 @@ - - - - - {{item.taskTitle}} - - - - {{item.isHandle==1?'已处理':'待处理'}} + + + + + + {{item.taskTitle}} + + + + {{item.isHandle==1?'已处理':'待处理'}} + + - - - - - 巡检项 - {{item.itemDesc}} - - - 巡查人 - {{item.inspectUserName}} - - - 巡查时间 - {{item.finishTime}} + + + 巡检项 + {{item.itemDesc}} + + + 巡查人 + {{item.inspectUserName}} + + + 巡查时间 + {{item.finishTime}} + @@ -65,33 +69,32 @@ data() { return { show: false, - showTime:false, - showTime1:false, + showTime: false, + showTime1: false, start: '请选择开始时间', end: '请选择结束时间', - stm:'', - etm:'', + stm: '', + etm: '', customStyle: { background: '#000' }, - list: [ - ] + list: [] }; }, onLoad() { this.getList() }, - computed:{ - startTime:function (){ - - return this.stm?moment(this.stm).format('YYYY-MM-DD HH:mm:ss'):this.start + computed: { + startTime: function () { + + return this.stm ? moment(this.stm).format('YYYY-MM-DD HH:mm:ss') : this.start }, - endTime:function (){ - return this.etm?moment(this.etm).format('YYYY-MM-DD HH:mm:ss'):this.end + endTime: function () { + return this.etm ? moment(this.etm).format('YYYY-MM-DD HH:mm:ss') : this.end } }, methods: { - searchTm(){ + searchTm() { this.getList() }, getList() { @@ -102,14 +105,14 @@ "pageNumber": 1 }, "dateTimeRangeSo": { - start:this.stm?moment(this.stm).format('YYYY-MM-DD HH:mm:ss'):'', - end:this.etm?moment(this.etm).format('YYYY-MM-DD HH:mm:ss'):'' + start: this.stm ? moment(this.stm).format('YYYY-MM-DD HH:mm:ss') : '', + end: this.etm ? moment(this.etm).format('YYYY-MM-DD HH:mm:ss') : '' }, "isHandle": 1, "inspectUserId": uni.getStorageSync('value').userId } uni.$http.post('/gunshiApp/xyt/inspect/detail/page', params).then(res => { - this.list=res.data.data.records + this.list = res.data.data.records }) }, confirm(e) { @@ -123,7 +126,7 @@ }, toDetail(item) { uni.navigateTo({ - url: '/pages/mypage/compents/wtcl/detail/index?item='+JSON.stringify(item) + url: '/pages/mypage/compents/wtcl/detail/index?item=' + JSON.stringify(item) }) } } @@ -133,7 +136,7 @@