Browse Source

格式化代码

feature/yujt_analysis_pc
yujt 6 years ago
parent
commit
45691019cb
  1. 8
      src/views/modules/activity/actinfo-cancel.vue
  2. 2
      src/views/modules/activity/activityinfo.vue
  3. 13
      src/views/modules/activity/activityparticipant.vue
  4. 30
      src/views/modules/section/sectioncategory-add-or-update.vue

8
src/views/modules/activity/actinfo-cancel.vue

@ -52,10 +52,10 @@ export default {
if (!valid) { if (!valid) {
return false return false
} }
let postData = { // let postData = {
id: this.dataForm.id, // id: this.dataForm.id,
cancelReason: this.dataForm.cancelReason // cancelReason: this.dataForm.cancelReason
} // }
this.$http['post']('/property/activityinfo/cancel', this.dataForm).then(({ data: res }) => { this.$http['post']('/property/activityinfo/cancel', this.dataForm).then(({ data: res }) => {
if (res.code !== 0) { if (res.code !== 0) {
return this.$message.error(res.msg) return this.$message.error(res.msg)

2
src/views/modules/activity/activityinfo.vue

@ -149,7 +149,7 @@ export default {
ActinfoCancel ActinfoCancel
}, },
mounted () { mounted () {
this.getDataList(); this.getDataList()
}, },
methods: { methods: {
addAction () { addAction () {

13
src/views/modules/activity/activityparticipant.vue

@ -111,13 +111,12 @@ export default {
}, },
methods: { methods: {
init () { init () {
this.visible = true; this.visible = true
this.dataForm.realName = ''; this.dataForm.realName = ''
this.dataForm.mobile = ''; this.dataForm.mobile = ''
this.dataForm.identityNo = ''; this.dataForm.identityNo = ''
this.getDataList(); this.getDataList()
}, }
} }
} }
</script> </script>

30
src/views/modules/section/sectioncategory-add-or-update.vue

@ -52,13 +52,7 @@ export default {
frontStyle: '', frontStyle: '',
sort: '', sort: '',
extend: '', extend: '',
remark: '', remark: ''
delFlag: '',
revision: '',
createdBy: '',
createdTime: '',
updatedBy: '',
updatedTime: '',
}, },
options: [] options: []
} }
@ -86,32 +80,14 @@ export default {
], ],
remark: [ remark: [
{ required: true, message: this.$t('validate.required'), trigger: 'blur' } { required: true, message: this.$t('validate.required'), trigger: 'blur' }
],
delFlag: [
{ 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' }
] ]
} }
} }
}, },
methods: { methods: {
init () { init () {
this.visible = true; this.visible = true
this.getOptions(); this.getOptions()
this.$nextTick(() => { this.$nextTick(() => {
this.$refs['dataForm'].resetFields() this.$refs['dataForm'].resetFields()
if (this.dataForm.id) { if (this.dataForm.id) {

Loading…
Cancel
Save