提交 c75e1bad 编写于 作者: huangwensu's avatar huangwensu

默认时间修改

上级 8055143c
...@@ -174,11 +174,11 @@ export default { ...@@ -174,11 +174,11 @@ export default {
}, },
// 触发事件选择时重复判断 // 触发事件选择时重复判断
eventChange(item, index) { eventChange(item, index) {
this.$set(this.searchParam.actionModelList[index], 'unchecked', false);
for(let i = 0; i < this.searchParam.actionModelList.length; i++) { for(let i = 0; i < this.searchParam.actionModelList.length; i++) {
this.$set(this.searchParam.actionModelList[i], 'unchecked', false);
if(index != i) { if(index != i) {
if(item.eventId == this.searchParam.actionModelList[i].eventId) { if(item.eventId == this.searchParam.actionModelList[i].eventId) {
this.$set(this.searchParam.actionModelList[index], 'unchecked', true); this.$set(this.searchParam.actionModelList[i], 'unchecked', true);
this.tipText = '名称重复,请重新输入'; this.tipText = '名称重复,请重新输入';
} }
} }
...@@ -255,9 +255,11 @@ export default { ...@@ -255,9 +255,11 @@ export default {
.add-content { .add-content {
background: #F2F2F4; background: #F2F2F4;
padding: 20px 0 20px 20px; padding: 20px 0 20px 20px;
min-height: 83vh;
.con { .con {
padding-bottom: 30px; padding-bottom: 30px;
background: #fff; background: #fff;
min-height: 80vh;
.save { .save {
padding: 20px 20px 0; padding: 20px 20px 0;
margin: 0 !important; margin: 0 !important;
......
...@@ -123,12 +123,16 @@ export default { ...@@ -123,12 +123,16 @@ export default {
this.name = this.$route.query.name; this.name = this.$route.query.name;
}, },
mounted() { mounted() {
this.searchParam.endDate = new Date().format("yyyy-MM-dd"); //this.searchParam.endDate = new Date().format("yyyy-MM-dd");
let date1 = new Date(); let date1 = new Date();
let date2 = new Date(date1); let date2 = new Date(date1);
date2.setDate(date1.getDate() - 6); let date3 = new Date(date1);
let dt = date2.getDate() > 10 ? date2.getDate() : '0'+date2.getDate(); date2.setDate(date1.getDate() - 7);
date3.setDate(date1.getDate() - 1);
let dt = date2.getDate() > 10 ? date2.getDate() : '0' + date2.getDate();
let dt1 = date3.getDate() > 10 ? date3.getDate() : '0' + date3.getDate();
this.searchParam.startDate = date2.getFullYear() + "-" + (date2.getMonth() + 1) + "-" + dt; this.searchParam.startDate = date2.getFullYear() + "-" + (date2.getMonth() + 1) + "-" + dt;
this.searchParam.endDate = date3.getFullYear() + "-" + (date3.getMonth() + 1) + "-" + dt1;
this.getVersionData(); this.getVersionData();
}, },
methods: { methods: {
......
...@@ -166,9 +166,11 @@ export default { ...@@ -166,9 +166,11 @@ export default {
.funnel-content { .funnel-content {
background: #F2F2F4; background: #F2F2F4;
padding: 20px 0 20px 20px; padding: 20px 0 20px 20px;
min-height: 83vh;
.con { .con {
padding-bottom: 30px; padding-bottom: 30px;
background: #fff; background: #fff;
min-height: 80vh;
.search { .search {
padding: 20px 20px 0; padding: 20px 20px 0;
margin: 0 !important; margin: 0 !important;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册