diff --git a/public/index.html b/public/index.html
index 6de0ffff..127b1763 100644
--- a/public/index.html
+++ b/public/index.html
@@ -6,6 +6,8 @@
+
+
diff --git a/src/views/modules/heart/actbanner.vue b/src/views/modules/heart/actbanner.vue
new file mode 100644
index 00000000..b566fdda
--- /dev/null
+++ b/src/views/modules/heart/actbanner.vue
@@ -0,0 +1,131 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('query') }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ changeGroundingText(scope.row.status) }}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/heart/actinfo-add-or-update.vue b/src/views/modules/heart/actinfo-add-or-update.vue
index ab7d4371..13fc76e4 100644
--- a/src/views/modules/heart/actinfo-add-or-update.vue
+++ b/src/views/modules/heart/actinfo-add-or-update.vue
@@ -1,139 +1,299 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ $t('cancel') }}
- {{ $t('confirm') }}
-
-
-
+
+
+
+
+
+
+
+
+ 只能上传jpg/png文件,且不超过500kb
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 固定名额
+ 人
+ 不限名额
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 默认活动开始(不可编辑时间)至活动结束一小时后,可修改时间范围,必须早于开始时间,晚于结束时间
+
+
+
+
+
+
+
+
+ 地图选择
+
+
+
+
+
+
+ 地图选择
+
+ 打卡地点,默认活动地点,可以修改打卡地点(如集合地点,集体出发等)
+
+
+
+
+
+
+
+ 米以内
+
+
+ 默认已打卡地点200米以内,可修改范围,在范围内打卡签到有效
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 积分
+
+
+
+
+
+ 积分
+
+
+
+
+
+
+
+
+
+ {{ $t('upload.button') }}
+
+
+
+
+
+
+
+ 是
+ 否
+
+
+
+
+
+
+
+
+ 只能上传jpg/png文件,且不超过500kb
+
+
+
+
+
+ {{$t("confirm")}}
+ {{ $t('cancel') }}
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/modules/heart/actinfo-cancel.vue b/src/views/modules/heart/actinfo-cancel.vue
new file mode 100644
index 00000000..b543f191
--- /dev/null
+++ b/src/views/modules/heart/actinfo-cancel.vue
@@ -0,0 +1,82 @@
+
+
+
+
+
+
+ 活动取消,并发送通知给已报名的志愿者,是否确定取消?
+
+
+
+
+
+
+
+
+ {{ $t('cancel') }}
+ {{ $t('confirm') }}
+
+
+
+
+
diff --git a/src/views/modules/heart/actinfo-detail-view.vue b/src/views/modules/heart/actinfo-detail-view.vue
new file mode 100644
index 00000000..e7733c58
--- /dev/null
+++ b/src/views/modules/heart/actinfo-detail-view.vue
@@ -0,0 +1,239 @@
+
+
+
+
+
+
+
+
+
+
+
+ {{dataForm.title}}
+
+
+
+
+ {{dataForm.requirement}}
+
+
+
+
+ {{dataForm.signupEndTime}}
+
+
+
+
+
+ {{dataForm.actQuotaCategory != '0' ? dataForm.actQuota+'人':'不限名额'}}
+
+
+
+
+
+
+
+
+
+
+ {{dataForm.actStartTime}}
+
+
+ {{dataForm.actEndTime}}
+
+
+
+
+
+
+ {{dataForm.signinStartTime}}
+
+
+ {{dataForm.signinEndTime}}
+
+
+
+
+
+
+ {{dataForm.actAddress}}
+
+
+
+
+ {{dataForm.signinAddress}}
+
+
+
+
+ {{dataForm.clockRadius}}
+
+
+
+
+ {{dataForm.contacts}}
+
+
+ {{dataForm.tel}}
+
+
+
+
+ {{dataForm.sponsor}}
+
+
+
+
+ {{dataForm.reward}} 积分
+
+
+
+
+ {{dataForm.punishmentPoints}} 积分
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('cancel') }}
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/heart/actinfo-list.vue b/src/views/modules/heart/actinfo-list.vue
new file mode 100644
index 00000000..8b77c242
--- /dev/null
+++ b/src/views/modules/heart/actinfo-list.vue
@@ -0,0 +1,169 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('query') }}
+
+
+ 增加活动
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取消活动
+ 查看详情
+
+
+ 报名管理
+ 打卡积分
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/heart/actinfo.vue b/src/views/modules/heart/actinfo.vue
index 40d6dfa4..6081a4ff 100644
--- a/src/views/modules/heart/actinfo.vue
+++ b/src/views/modules/heart/actinfo.vue
@@ -1,98 +1,33 @@
-
-
-
-
-
-
-
- {{ $t('query') }}
-
-
- {{ $t('add') }}
-
-
- {{ $t('deleteBatch') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ $t('update') }}
- {{ $t('delete') }}
-
-
-
-
-
-
-
-
-
+
+
+
-
+
+
diff --git a/src/views/modules/heart/actuserrelation-add-or-update.vue b/src/views/modules/heart/actuserrelation-add-or-update.vue
index e31af196..5b9f491b 100644
--- a/src/views/modules/heart/actuserrelation-add-or-update.vue
+++ b/src/views/modules/heart/actuserrelation-add-or-update.vue
@@ -1,67 +1,26 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+ 通过
+ 不通过
+
+
+
+
+
+
- {{ $t('cancel') }}
{{ $t('confirm') }}
+ {{ $t('cancel') }}
@@ -74,87 +33,24 @@ export default {
visible: false,
dataForm: {
id: '',
- actId: '',
- userId: '',
- nickname: '',
- faceImg: '',
- partyFlag: '',
- realName: '',
- sex: '',
- age: '',
- mobile: '',
- identityNo: '',
- status: '',
- failureReason: '',
- auditTime: '',
- signupTime: '',
- revision: '',
- createdBy: '',
- createdTime: '',
- updatedBy: '',
- updatedTime: ''
+ status: "1",
+ failureReason: ''
+
}
}
},
+ mounted () {
+ this.dataForm.id = this.$route.query.id
+ this.init()
+ },
computed: {
dataRule () {
return {
- actId: [
- { required: true, message: this.$t('validate.required'), trigger: 'blur' }
- ],
- userId: [
- { required: true, message: this.$t('validate.required'), trigger: 'blur' }
- ],
- nickname: [
- { required: true, message: this.$t('validate.required'), trigger: 'blur' }
- ],
- faceImg: [
- { required: true, message: this.$t('validate.required'), trigger: 'blur' }
- ],
- partyFlag: [
- { required: true, message: this.$t('validate.required'), trigger: 'blur' }
- ],
- realName: [
- { required: true, message: this.$t('validate.required'), trigger: 'blur' }
- ],
- sex: [
- { required: true, message: this.$t('validate.required'), trigger: 'blur' }
- ],
- age: [
- { required: true, message: this.$t('validate.required'), trigger: 'blur' }
- ],
- mobile: [
- { required: true, message: this.$t('validate.required'), trigger: 'blur' }
- ],
- identityNo: [
- { required: true, message: this.$t('validate.required'), trigger: 'blur' }
- ],
- status: [
+ status: [
{ required: true, message: this.$t('validate.required'), trigger: 'blur' }
],
failureReason: [
{ required: true, message: this.$t('validate.required'), trigger: 'blur' }
- ],
- auditTime: [
- { required: true, message: this.$t('validate.required'), trigger: 'blur' }
- ],
- signupTime: [
- { required: true, message: this.$t('validate.required'), trigger: 'blur' }
- ],
- revision: [
- { required: true, message: this.$t('validate.required'), trigger: 'blur' }
- ],
- createdBy: [
- { required: true, message: this.$t('validate.required'), trigger: 'blur' }
- ],
- createdTime: [
- { required: true, message: this.$t('validate.required'), trigger: 'blur' }
- ],
- updatedBy: [
- { required: true, message: this.$t('validate.required'), trigger: 'blur' }
- ],
- updatedTime: [
- { required: true, message: this.$t('validate.required'), trigger: 'blur' }
]
}
}
@@ -164,30 +60,18 @@ export default {
this.visible = true
this.$nextTick(() => {
this.$refs['dataForm'].resetFields()
- if (this.dataForm.id) {
- this.getInfo()
- }
+ // if (this.dataForm.id) {
+ // this.getInfo()
+ // }
})
},
- // 获取信息
- getInfo () {
- this.$http.get(`/heart/actuserrelation/${this.dataForm.id}`).then(({ data: res }) => {
- if (res.code !== 0) {
- return this.$message.error(res.msg)
- }
- this.dataForm = {
- ...this.dataForm,
- ...res.data
- }
- }).catch(() => {})
- },
// 表单提交
dataFormSubmitHandle: debounce(function () {
this.$refs['dataForm'].validate((valid) => {
if (!valid) {
return false
}
- this.$http[!this.dataForm.id ? 'post' : 'put']('/heart/actuserrelation/', this.dataForm).then(({ data: res }) => {
+ this.$http[ 'post']('/heart/actuserrelation/audit', this.dataForm).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
diff --git a/src/views/modules/heart/actuserrelation-detail.vue b/src/views/modules/heart/actuserrelation-detail.vue
new file mode 100644
index 00000000..f799aaa9
--- /dev/null
+++ b/src/views/modules/heart/actuserrelation-detail.vue
@@ -0,0 +1,116 @@
+
+
+
+
+ {{dataForm.nickname}}
+
+
+ {{dataForm.realName}}
+
+
+ {{formatSex(dataForm.sex)}}
+
+
+ {{dataForm.age}}
+
+
+ {{dataForm.mobile}}
+
+
+ {{dataForm.identityNo}}
+
+
+ {{formatState(dataForm.status)}}
+
+
+
+ {{dataForm.failureReason}}
+
+
+ {{dataForm.auditTime}}
+
+
+ {{dataForm.signupTime}}
+
+
+
+ {{ $t('cancel') }}
+
+
+
+
+
diff --git a/src/views/modules/heart/actuserrelation.vue b/src/views/modules/heart/actuserrelation.vue
index c77034d3..64cf1ed8 100644
--- a/src/views/modules/heart/actuserrelation.vue
+++ b/src/views/modules/heart/actuserrelation.vue
@@ -3,33 +3,44 @@
-
-
-
- {{ $t('query') }}
-
-
- {{ $t('add') }}
-
-
- {{ $t('deleteBatch') }}
+ 返回
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 注册时间
+
+
+ {{ $t('query') }}
+
+
-
+
-
+
-
+
- {{ $t('update') }}
- {{ $t('delete') }}
+ 审核
+ 查看
@@ -44,6 +55,7 @@
+
@@ -51,23 +63,77 @@
diff --git a/src/views/modules/heart/address-check.vue b/src/views/modules/heart/address-check.vue
new file mode 100644
index 00000000..15f31d2b
--- /dev/null
+++ b/src/views/modules/heart/address-check.vue
@@ -0,0 +1,52 @@
+
+
+
+
+ {{dataForm.address}}
+
+
+ {{dataForm.longitude}}
+
+
+ {{dataForm.latitude}}
+
+
+
+ {{$t("confirm")}}
+
+
+
+
diff --git a/src/views/modules/heart/map-select.vue b/src/views/modules/heart/map-select.vue
new file mode 100644
index 00000000..3ac226a7
--- /dev/null
+++ b/src/views/modules/heart/map-select.vue
@@ -0,0 +1,236 @@
+
+
+
+
+
+
+
+
+ 搜索
+
+
+
+
+
+
+
+
+
+
+
+
+