Browse Source

代码格式化

master
yujintao 5 years ago
parent
commit
b3dde863e6
  1. 112
      src/views/modules/heart/actuserrelation.vue

112
src/views/modules/heart/actuserrelation.vue

@ -107,86 +107,86 @@
</template> </template>
<script> <script>
import mixinViewModule from "@/mixins/view-module"; import mixinViewModule from '@/mixins/view-module'
import AddOrUpdate from "./actuserrelation-add-or-update"; import AddOrUpdate from './actuserrelation-add-or-update'
import ActuserrelationDetail from "./actuserrelation-detail"; import ActuserrelationDetail from './actuserrelation-detail'
export default { export default {
mixins: [mixinViewModule], mixins: [mixinViewModule],
name: "ActUserRelation", name: 'ActUserRelation',
data() { data () {
return { return {
mixinViewModuleOptions: { mixinViewModuleOptions: {
activatedIsNeed: true, activatedIsNeed: true,
getDataListURL: "/heart/actuserrelation/page", getDataListURL: '/heart/actuserrelation/page',
getDataListIsPage: true, getDataListIsPage: true,
deleteURL: "/heart/actuserrelation", deleteURL: '/heart/actuserrelation',
deleteIsBatch: true deleteIsBatch: true
}, },
dataForm: { dataForm: {
id: "", id: '',
actId: "", actId: '',
startTime: "", startTime: '',
endTime: "", endTime: '',
realName: "", realName: '',
mobile: "" mobile: ''
}, },
time: "", time: '',
addOrUpdateVisible: false, addOrUpdateVisible: false,
detailVisible: false detailVisible: false
}; }
}, },
mounted() { mounted () {
this.dataForm.actId = this.$route.query.id; this.dataForm.actId = this.$route.query.id
this.getDataList(); this.getDataList()
this.dataListLoading = false; this.dataListLoading = false
}, },
methods: { methods: {
backToActList() { backToActList () {
this.$emit("refreshDataList"); this.$emit('refreshDataList')
this.$parent.selectComponent = "ActInfoList"; this.$parent.selectComponent = 'ActInfoList'
this.$router.push({ path: "/heart-actinfo" }); this.$router.push({ path: '/heart-actinfo' })
}, },
detailHandle(id) { detailHandle (id) {
this.detailVisible = true; this.detailVisible = true
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.actuserrelationDetail.dataForm.id = id; this.$refs.actuserrelationDetail.dataForm.id = id
this.$refs.actuserrelationDetail.init(); this.$refs.actuserrelationDetail.init()
}); })
}, },
setRegistTime() { setRegistTime () {
if (this.time === null) { if (this.time === null) {
this.dataForm.startTime = ""; this.dataForm.startTime = ''
this.dataForm.endTime = ""; this.dataForm.endTime = ''
} }
this.dataForm.startTime = this.time[0]; this.dataForm.startTime = this.time[0]
this.dataForm.endTime = this.time[1]; this.dataForm.endTime = this.time[1]
}, },
formatState: function(row, column) { formatState: function (row, column) {
let state = row.status; let state = row.status
if (state === "0") { if (state === '0') {
return "报名"; return '报名'
} else if (state === "1") { } else if (state === '1') {
return "审核通过"; return '审核通过'
} else if (state === "2") { } else if (state === '2') {
return "打卡"; return '打卡'
} else if (state === "3") { } else if (state === '3') {
return "取消报名"; return '取消报名'
} else if (state === "4") { } else if (state === '4') {
return "审核不通过"; return '审核不通过'
} else if (state === "5") { } else if (state === '5') {
return "确认加积分"; return '确认加积分'
} else if (state === "6") { } else if (state === '6') {
return "拒绝加积分"; return '拒绝加积分'
} }
}, },
formatSex: function(row, column) { formatSex: function (row, column) {
let state = row.sex; let state = row.sex
if (state === "0") { if (state === '0') {
return "女"; return '女'
} else if (state === "1") { } else if (state === '1') {
return "男"; return '男'
} }
} }
}, },
@ -194,5 +194,5 @@ export default {
AddOrUpdate, AddOrUpdate,
ActuserrelationDetail ActuserrelationDetail
} }
}; }
</script> </script>

Loading…
Cancel
Save