diff --git a/src/apps/AppHelpDeclaration/add.vue b/src/apps/AppHelpDeclaration/add.vue index 9408b7fc..25a9a06e 100644 --- a/src/apps/AppHelpDeclaration/add.vue +++ b/src/apps/AppHelpDeclaration/add.vue @@ -33,7 +33,7 @@
*所在地区
- + {{ form.areaName || "请选择" }} diff --git a/src/apps/AppHelpDeclaration/details.vue b/src/apps/AppHelpDeclaration/details.vue index a6eb1013..1f9a42a6 100644 --- a/src/apps/AppHelpDeclaration/details.vue +++ b/src/apps/AppHelpDeclaration/details.vue @@ -91,7 +91,7 @@ -
+
转交事件 diff --git a/src/apps/AppHelpDeclaration/result.vue b/src/apps/AppHelpDeclaration/result.vue index daf22223..d67f92d7 100644 --- a/src/apps/AppHelpDeclaration/result.vue +++ b/src/apps/AppHelpDeclaration/result.vue @@ -9,9 +9,10 @@
- + +
通过审核
diff --git a/src/saas/AppCountryAlbum/AddReport.vue b/src/saas/AppCountryAlbum/AddReport.vue index da8ea457..3a7dfe51 100644 --- a/src/saas/AppCountryAlbum/AddReport.vue +++ b/src/saas/AppCountryAlbum/AddReport.vue @@ -1,6 +1,6 @@ @@ -39,6 +39,14 @@ MeetingMminutes }, + computed: { + currConfig () { + if (this.currIndex < 0 || !this.configList.length) return [] + + return this.configList[this.currIndex].itemList + } + }, + onLoad () { this.getConfig() }, @@ -52,6 +60,37 @@ }) }, + save () { + this.$loading() + this.$refs.reportItem.screenshot().then(canvas => { + let dataURL = canvas.toDataURL('image/png') + const file = this.dataURLtoFile(dataURL, 'photo.png') + let formData = new FormData() + formData.append('file', file) + this.$http.post('/admin/file/add2?type=image', formData).then(res => { + if (res.code === 0) { + console.log(res.data.url) + } + + uni.hideLoading() + }) + }).catch(e => { + console.log(e) + }) + }, + + dataURLtoFile (dataurl, filename) { + let arr = dataurl.split(',') + let mime = arr[0].match(/:(.*?);/)[1] + let bstr = atob(arr[1]) + let n = bstr.length + let u8arr = new Uint8Array(n) + while (n--) { + u8arr[n] = bstr.charCodeAt(n) + } + return new File([u8arr], filename, { type: mime }) + }, + changeComponent (e, index) { this.currIndex = index this.component = this.mapComponent(e.watermarkType) diff --git a/src/saas/AppCountryAlbum/components/report/Daily.vue b/src/saas/AppCountryAlbum/components/report/Daily.vue index da4dd7b4..8f29ef40 100644 --- a/src/saas/AppCountryAlbum/components/report/Daily.vue +++ b/src/saas/AppCountryAlbum/components/report/Daily.vue @@ -1,33 +1,36 @@