| | |
| | | } |
| | | }, |
| | | next() { |
| | | this.model.name = '' |
| | | this.model.submitDate = uni.$u.timeFormat(new Date().getTime(), 'yyyy-mm-dd hh:MM:ss') |
| | | this.model.companyName = '' |
| | | this.model.happenTime = '' |
| | | this.model.localtionId = '' |
| | | this.model.localtionName = '' |
| | | this.model.typeId = '' |
| | | this.model.typeName = '' |
| | | this.model.riskInfo = '' |
| | | this.model.notifier = '' |
| | | this.model.multifileList = [] |
| | | this.model.type = 3 |
| | | this.canScroll() |
| | | this.show4 = false |
| | | }, |
| | |
| | | // 新增图片 |
| | | async afterRead(event) { |
| | | var that = this |
| | | uni.showLoading({ title: '上传中...', mask: true }) |
| | | uni.uploadFile({ |
| | | url: that.$baseUrl + '/web/public/upload', |
| | | filePath: event.file.url, |
| | |
| | | folder: "WORKORDER_FILE_PATH" |
| | | }, |
| | | success: (res) => { |
| | | uni.hideLoading(); |
| | | let obj = JSON.parse(res.data) |
| | | if (obj.code === 200) { |
| | | obj.data.fileurl = obj.data.imgaddr |