jiangping
2025-04-18 015b4f31cebbecf6f6da760ed2f8af3da721e802
h5/pages/riskReporting/riskReporting.vue
@@ -206,6 +206,18 @@
            }
         },
         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
         },
@@ -227,6 +239,7 @@
         // 新增图片
         async afterRead(event) {
            var that = this
            uni.showLoading({ title: '上传中...', mask: true })
            uni.uploadFile({
               url: that.$baseUrl + '/web/public/upload',
               filePath: event.file.url,
@@ -235,6 +248,7 @@
                  folder: "WORKORDER_FILE_PATH"
               },   
               success: (res) => {
                  uni.hideLoading();
                  let obj = JSON.parse(res.data)
                  if (obj.code === 200) {
                     obj.data.fileurl = obj.data.imgaddr