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) { 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)

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

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

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

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

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

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

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>

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

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

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

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

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

@ -52,15 +52,9 @@ export default {
frontStyle: '', frontStyle: '',
sort: '', sort: '',
extend: '', extend: '',
remark: '', remark: ''
delFlag: '',
revision: '',
createdBy: '',
createdTime: '',
updatedBy: '',
updatedTime: '',
}, },
options:[] options: []
} }
}, },
computed: { computed: {
@ -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