Browse Source

格式化代码

feature/yujt_analysis_pc
yujt 6 years ago
parent
commit
45691019cb
  1. 8
      src/views/modules/activity/actinfo-cancel.vue
  2. 16
      src/views/modules/activity/activityinfo-add-or-update.vue
  3. 16
      src/views/modules/activity/activityinfo-add.vue
  4. 6
      src/views/modules/activity/activityinfo.vue
  5. 13
      src/views/modules/activity/activityparticipant.vue
  6. 4
      src/views/modules/activity/address-check.vue
  7. 4
      src/views/modules/activity/map-select.vue
  8. 32
      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) {
return false
}
let postData = {
id: this.dataForm.id,
cancelReason: this.dataForm.cancelReason
}
// let postData = {
// id: this.dataForm.id,
// cancelReason: this.dataForm.cancelReason
// }
this.$http['post']('/property/activityinfo/cancel', this.dataForm).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)

16
src/views/modules/activity/activityinfo-add-or-update.vue

@ -238,12 +238,12 @@
</el-card>
</template>
<script>
import Cookies from 'js-cookie'
import MapSelect from './map-select'
import debounce from 'lodash/debounce'
import 'quill/dist/quill.snow.css'
import Quill from 'quill'
export default {
import Cookies from 'js-cookie'
import MapSelect from './map-select'
import debounce from 'lodash/debounce'
import 'quill/dist/quill.snow.css'
import Quill from 'quill'
export default {
name: 'ActInfoAdd',
data () {
return {
@ -342,7 +342,7 @@
// end
})
},
mounted() {
mounted () {
this.getOptions()
},
computed: {
@ -614,7 +614,7 @@
components: {
MapSelect
}
}
}
</script>
<style>
.avatar-uploader .el-upload {

16
src/views/modules/activity/activityinfo-add.vue

@ -238,12 +238,12 @@
</el-card>
</template>
<script>
import Cookies from 'js-cookie'
import MapSelect from './map-select'
import debounce from 'lodash/debounce'
import 'quill/dist/quill.snow.css'
import Quill from 'quill'
export default {
import Cookies from 'js-cookie'
import MapSelect from './map-select'
import debounce from 'lodash/debounce'
import 'quill/dist/quill.snow.css'
import Quill from 'quill'
export default {
name: 'ActInfoAdd',
data () {
return {
@ -342,7 +342,7 @@
// end
})
},
mounted() {
mounted () {
this.getOptions()
},
computed: {
@ -614,7 +614,7 @@
components: {
MapSelect
}
}
}
</script>
<style>
.avatar-uploader .el-upload {

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

@ -148,14 +148,14 @@ export default {
AddOrUpdate,
ActinfoCancel
},
mounted() {
this.getDataList();
mounted () {
this.getDataList()
},
methods: {
addAction () {
this.$parent.selectComponent = 'ActInfoAdd'
this.$router.push(
{ path: '/activity-actinfo'}
{ path: '/activity-actinfo' }
)
},
detailAction (id) {

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

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

4
src/views/modules/activity/address-check.vue

@ -30,8 +30,8 @@ export default {
visible: false,
dataForm: {
address: '',
longitude: 0,//
latitude: 0,//
longitude: 0, //
latitude: 0, //
city: ''
}
}

4
src/views/modules/activity/map-select.vue

@ -80,7 +80,7 @@ export default {
this.dataForm.latitude = position.lat
this.dataForm.longitude = position.lng
this.dataForm.city = position.city
this.getAddress(position.lat,position.lng)
this.getAddress(position.lat, position.lng)
this.setMap()
},
showErr () {
@ -123,7 +123,7 @@ export default {
position: myLatlng,
map: map
})
qq.maps.event.addListener(marker,'click',function (event) {
qq.maps.event.addListener(marker, 'click', function (event) {
that.addressCheckHandle()
})
markerList.push(marker)

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

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

Loading…
Cancel
Save