提交信息:

**新增功能:**
1. 新增 `AiUploader.vue` 组件中的 `withoutToken` 属性,允许用户选择是否使用 token 进行上传。
2. 新增 `AppPatrolReport.vue` 页面,用于事件上报,包括事件类型、描述、位置、所属网格等信息。
3. 新增 `SelectGird.vue` 页面,用于选择所属网格。
4. 新增 `back-icon.png` 图片资源。

**代码优化:**
1. 对 `AppPatrolReport.vue` 页面的样式进行了优化,提高了用户体验。

**修复问题:**
无

**备注:**
本次提交主要新增了事件上报功能,包括相关页面和组件,以及对代理配置的修改。
This commit is contained in:
liuye
2024-10-31 11:06:38 +08:00
parent 369002d676
commit 6a833be062
16 changed files with 521 additions and 1 deletions

View File

@@ -58,6 +58,10 @@ export default {
size: {default: 10 * 1024 * 1024},
disabled: Boolean,
sourceType: {default: () => ['album', 'camera']},
withoutToken: {
type: Number,
default: 0,
},
},
computed: {
...mapState(['token']),
@@ -139,7 +143,8 @@ export default {
uni.hideLoading()
} else {
this.$http.post(this.api, formData, {
params: {type: this.type}
params: {type: this.type},
withoutToken: this.withoutToken == 1 ? true : false,
}).then((res) => {
if (res?.data) {
this.$emit('data', res.data)