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

Loading…
Cancel
Save