diff --git a/pages/eight_assignments/hot_work/delay_fire_monitoring/add.vue b/pages/eight_assignments/hot_work/delay_fire_monitoring/add.vue index 7585bb5..552b428 100644 --- a/pages/eight_assignments/hot_work/delay_fire_monitoring/add.vue +++ b/pages/eight_assignments/hot_work/delay_fire_monitoring/add.vue @@ -5,9 +5,9 @@ - - + @@ -28,21 +28,23 @@ \ No newline at end of file diff --git a/pages/eight_assignments/hot_work/delay_fire_monitoring/delay.vue b/pages/eight_assignments/hot_work/delay_fire_monitoring/delay.vue index 1c40571..48970d3 100644 --- a/pages/eight_assignments/hot_work/delay_fire_monitoring/delay.vue +++ b/pages/eight_assignments/hot_work/delay_fire_monitoring/delay.vue @@ -2,11 +2,29 @@ - + - 有数据 + + + + 监火人: + {{ item.userName }} + + + 时间: + {{ item.TIME }} + + + 照片: + + + + + 完成延时监火 + + @@ -16,22 +34,67 @@ export default { data() { return { - list: [] + list: [ + { + ISDELETE: 0, + HOTWORKAPPLICATION_ID: "f71420d5f2d74b60aabebe8429d5bf34", + HOTWORKAPPLICATIONDELAYED_ID: "50d8f530ee544aaa833b48471702ed0e", + CREATOR: "2c797704caaf48efa62ea1c6d2c967e1", + USER_ID: "2c797704caaf48efa62ea1c6d2c967e1", + FILEPATH: "/uploadFiles/yhtp/13cf0f4ec77e4d98ae8cdd9c3386ae0c/20240830/bb9685a4099c46c99c795ea7417f8f71.png", + TIME: "2024-08-30 18:14", + userName: "孙海官", + CREATTIME: "2024-08-30 18:14:13" + }, + { + ISDELETE: 0, + HOTWORKAPPLICATION_ID: "f71420d512d74b60aabebe8429d5bf34", + HOTWORKAPPLICATIONDELAYED_ID: "50d8f530ee544aaa233b48471702ed0e", + CREATOR: "2c797704caaf48efa62ea1c6d2c96751", + USER_ID: "2c797704caaf48efa62ea1c6d2c967e1", + FILEPATH: "/uploadFiles/yhtp/13cf0f4ec77e4d98ae8cdd9c3386ae0c/20240830/bb9685a4099c46c99c795ea7417f8f71.png", + TIME: "2024-09-03 18:11", + userName: "孙去来", + CREATTIME: "2024-08-30 18:14:13" + } + ], + STATE: '', } }, + onLoad(event) { + this.STATE = event.state; + }, methods: { - /** 跳转到延时监火的添加页面 */ + /** + * 跳转到延时监火的添加页面 + */ goToAdd() { uni.$u.route({ url: '/pages/eight_assignments/hot_work/delay_fire_monitoring/add' }); }, - /** 跳转到延时监火的任务转发页面 */ + /** + * 跳转到延时监火的任务转发页面 + */ goToTaskForword() { uni.$u.route({ url: '/pages/eight_assignments/hot_work/delay_fire_monitoring/task_forward' }); - } + }, + /** + * 图片预览 + */ + ViewImage1(urls) { + uni.previewImage({ + urls: [this.$filePath + urls] + }); + }, + /** + * 完成延时监火的确认按钮事件 + */ + goSubmit() { + alert('等待开发接入中...') + }, } } @@ -41,5 +104,38 @@ export default { .padding { padding: 20upx; } + + .wui-form-list { + background-color: #FFFFFF; + border-radius: 10upx; + margin: 20upx; + } + + .wui-form-list .cu-form-group { + color: #808080; + font-size: 28upx; + padding: 30upx; + display: flex; + justify-content: space-between; + } + + .wui-form-list .cu-form-group .title { + min-width: 200upx; + width: max-content; + font-weight: bold; + color: #000000; + font-size: 28upx; + /* white-space: nowrap; */ + } + + .cu-form-group+.cu-form-group { + border-top: 1px solid #eee; + } + + .bg-green { + background-color: #39b54a; + color: #fff; + border-radius: 16upx; + } } \ No newline at end of file diff --git a/pages/eight_assignments/hot_work/delay_fire_monitoring/task_forward.vue b/pages/eight_assignments/hot_work/delay_fire_monitoring/task_forward.vue index f50f11d..d3c59d9 100644 --- a/pages/eight_assignments/hot_work/delay_fire_monitoring/task_forward.vue +++ b/pages/eight_assignments/hot_work/delay_fire_monitoring/task_forward.vue @@ -2,16 +2,12 @@ @@ -19,8 +15,20 @@ \ No newline at end of file diff --git a/utils/tools.js b/utils/tools.js new file mode 100644 index 0000000..9a801e8 --- /dev/null +++ b/utils/tools.js @@ -0,0 +1,27 @@ +export function formatDate(date, fmt) { + if(null != JSON.stringify(date) && 'null' != JSON.stringify(date) && undefined != JSON.stringify(date) && 'undefined' != JSON.stringify(date) && JSON.stringify(date) != '' && JSON.stringify(date).length > 0){ + if (/(y+)/.test(fmt)) { + fmt = fmt.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length)) + } + let o = { + 'M+': date.getMonth() + 1, + 'd+': date.getDate(), + 'h+': date.getHours(), + 'm+': date.getMinutes(), + 's+': date.getSeconds() + } + for (let k in o) { + if (new RegExp(`(${k})`).test(fmt)) { + let str = o[k] + '' + fmt = fmt.replace(RegExp.$1, (RegExp.$1.length === 1) ? str : padLeftZero(str)) + } + } + return fmt + } else { + return '' + } +} + +function padLeftZero(str) { + return ('00' + str).substr(str.length) +}