Browse Source

Merge branch 'dev-calendar' of http://git.elinkit.com.cn:7070/r/epmet-oper-gov into dev-calendar

test
jiangyy 3 years ago
parent
commit
cb572b9db9
  1. 2
      src/views/modules/communityParty/calendar/index.vue
  2. 21
      src/views/modules/communityParty/orgActivity/activivityList/addActivity.vue
  3. 4
      src/views/modules/communityParty/orgActivity/activivityList/addRule.vue

2
src/views/modules/communityParty/calendar/index.vue

@ -364,11 +364,13 @@ export default {
console.log("orgId", val);
this.getCurrentDateData();
this.getRangeData();
this.getMonthData();
},
"fmData.isSelf": function (val) {
console.log("isSelf", val);
this.getCurrentDateData();
this.getRangeData();
this.getMonthData();
},
currentYear: function (val) {
console.log("watch--currentYear", val);

21
src/views/modules/communityParty/orgActivity/activivityList/addActivity.vue

@ -220,7 +220,7 @@ export default {
actType: '',// value
holdYearId: '',//yyyy
holdMonthId: '',//yyyyMM
holdTime: new Date(),//yyyy-MM-dd HH:mm:ss
holdTime: this.getFormatDate(),//yyyy-MM-dd HH:mm:ss
topic: '',//
address: '',//
latitude: '',//
@ -288,7 +288,20 @@ export default {
},
methods: {
getFormatDate() {
var date = new Date();
var month = date.getMonth() + 1;
var strDate = date.getDate();
if (month >= 1 && month <= 9) {
month = "0" + month;
}
if (strDate >= 0 && strDate <= 9) {
strDate = "0" + strDate;
}
var currentDate = date.getFullYear() + "-" + month + "-" + strDate
+ " " + '09:00:00';
return currentDate;
},
handleChangeScope (value) {
let obj = this.$refs["myCascader"].getCheckedNodes()[0].data
@ -360,7 +373,9 @@ export default {
this.formData.isAutoInform = '0'
}
this.formData.attachmentList = [...this.fileList]
let array = this.formData.holdTime.split('-')
this.formData.holdYearId = array[0]
this.formData.holdMonthId = array[0] + array[1]
if (this.formType === 'add') {
this.formData.icPartyActId = ''

4
src/views/modules/communityParty/orgActivity/activivityList/addRule.vue

@ -60,6 +60,7 @@
format="yyyy-MM-dd hh:mm:ss"
value-format="yyyy-MM-dd hh:mm:ss"
type="datetime"
:default-value="yearId"
default-time="09:00:00"
placeholder="选择日期">
</el-date-picker>
@ -292,7 +293,6 @@ export default {
await this.getCategrayList()
await this.getAutoTimeArray()
await this.getDefaultPublishParty()
},
methods: {
@ -569,7 +569,7 @@ export default {
publishOrgPid: this.defaultPublishParty.defaultPartyOrgPid,// ID
publishOrgType: this.defaultPublishParty.orgType,// 0,1,2,3,4,56
publishOrgPathShow: this.defaultPublishParty.defaultPartyOrgPath,//PUBLISH_PARTY_ORG_ID便
joinUserType: this.joinArray[0].value || '',//01
joinUserType: this.joinArray[1].value || '',//01
isAutoInform: '',// 01
introduce: '',//
attachmentList: [],

Loading…
Cancel
Save