|
@@ -53,7 +53,7 @@
|
|
value-format="Q"
|
|
value-format="Q"
|
|
></el-date-picker> -->
|
|
></el-date-picker> -->
|
|
|
|
|
|
- <Season :defaultHint="true" :isActive="true" class="date-picker-width" @confirm="export_quarter_confirm"></Season>
|
|
|
|
|
|
+ <Season ref="Seasons" :defaultHint="true" :isActive="true" class="date-picker-width" @confirm="export_quarter_confirm"></Season>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
<!-- <el-form-item label="规则分类" label-width="70px" >
|
|
<!-- <el-form-item label="规则分类" label-width="70px" >
|
|
@@ -407,8 +407,6 @@ export default {
|
|
this.open_right(this.clickItem);
|
|
this.open_right(this.clickItem);
|
|
},
|
|
},
|
|
// "time.quarter"(val, old_val) {
|
|
// "time.quarter"(val, old_val) {
|
|
- // console.log(val)
|
|
|
|
- // console.log(old_val)
|
|
|
|
// this.params.quarter = val
|
|
// this.params.quarter = val
|
|
// // this.params.page = 1;
|
|
// // this.params.page = 1;
|
|
// // this.open_right(this.clickItem);
|
|
// // this.open_right(this.clickItem);
|
|
@@ -547,7 +545,6 @@ export default {
|
|
recursion(data, arr) {
|
|
recursion(data, arr) {
|
|
for (let i in data.child) {
|
|
for (let i in data.child) {
|
|
if (data.child.length != 0) {
|
|
if (data.child.length != 0) {
|
|
- console.log(data.id);
|
|
|
|
arr.push(data.id);
|
|
arr.push(data.id);
|
|
} else {
|
|
} else {
|
|
arr.push(data.id);
|
|
arr.push(data.id);
|
|
@@ -608,7 +605,6 @@ export default {
|
|
},
|
|
},
|
|
//默认选中
|
|
//默认选中
|
|
toggleSelection(rows, selected) {
|
|
toggleSelection(rows, selected) {
|
|
- // console.log(rows)
|
|
|
|
if (rows) {
|
|
if (rows) {
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
rows.forEach(row => {
|
|
rows.forEach(row => {
|
|
@@ -669,7 +665,6 @@ export default {
|
|
export_quarter_confirm(val) {
|
|
export_quarter_confirm(val) {
|
|
this.time.quarter = val;
|
|
this.time.quarter = val;
|
|
this.params.page = 1;
|
|
this.params.page = 1;
|
|
- console.log("1")
|
|
|
|
this.open_right(this.clickItem);
|
|
this.open_right(this.clickItem);
|
|
},
|
|
},
|
|
// 树型菜单点击筛选
|
|
// 树型菜单点击筛选
|
|
@@ -746,7 +741,7 @@ export default {
|
|
self.newGroupForm.group_name = res.data.data.name;
|
|
self.newGroupForm.group_name = res.data.data.name;
|
|
this.loading = false;
|
|
this.loading = false;
|
|
if (!ifs) {
|
|
if (!ifs) {
|
|
- this.open_right(item);
|
|
|
|
|
|
+ this.open_right(item,true);
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
self.$message.error(res.data.data.msg);
|
|
self.$message.error(res.data.data.msg);
|
|
@@ -833,6 +828,8 @@ export default {
|
|
if (self.popupType) {
|
|
if (self.popupType) {
|
|
self.popupType = false;
|
|
self.popupType = false;
|
|
this.getGroupsList();
|
|
this.getGroupsList();
|
|
|
|
+ }else{
|
|
|
|
+ self.getGroupsList(self.clickItem.id); //传入当前ID.为了修改后页面不切换
|
|
}
|
|
}
|
|
self.$message.success(res.data.msg);
|
|
self.$message.success(res.data.msg);
|
|
const resData = res.data.data;
|
|
const resData = res.data.data;
|
|
@@ -843,7 +840,6 @@ export default {
|
|
}); //左边分组
|
|
}); //左边分组
|
|
self.groupShow = false;
|
|
self.groupShow = false;
|
|
// if (!self.popupType) {
|
|
// if (!self.popupType) {
|
|
- self.getGroupsList(self.clickItem.id); //传入当前ID.为了修改后页面不切换
|
|
|
|
// self.open_right(self.clickItem)
|
|
// self.open_right(self.clickItem)
|
|
// }
|
|
// }
|
|
this.employees = '';
|
|
this.employees = '';
|
|
@@ -895,7 +891,20 @@ export default {
|
|
this.params.page_size = val;
|
|
this.params.page_size = val;
|
|
this.open_right(this.clickItem);
|
|
this.open_right(this.clickItem);
|
|
},
|
|
},
|
|
- open_right(item) {
|
|
|
|
|
|
+ open_right(item,tim) {
|
|
|
|
+ if(tim){
|
|
|
|
+ // console.log(this.newGroupForm.date_interval)
|
|
|
|
+ this.time = {
|
|
|
|
+ year: moment().format('YYYY'), //年
|
|
|
|
+ quarter: moment().format('YYYYQ'), //季度
|
|
|
|
+ month: moment().format('YYYY-MM') //月
|
|
|
|
+ }
|
|
|
|
+ if(this.$refs.Seasons){
|
|
|
|
+ if(this.newGroupForm.date_interval == 2){
|
|
|
|
+ this.$refs.Seasons.choseQuarter = ''
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
this.valuesOrLength = [];
|
|
this.valuesOrLength = [];
|
|
let self = this;
|
|
let self = this;
|
|
self.table_loading = true;
|
|
self.table_loading = true;
|
|
@@ -955,7 +964,7 @@ export default {
|
|
if (atPresent) {
|
|
if (atPresent) {
|
|
for (let i in self.groups_list) {
|
|
for (let i in self.groups_list) {
|
|
if (atPresent == self.groups_list[i].id) {
|
|
if (atPresent == self.groups_list[i].id) {
|
|
- self.open_right(self.groups_list[i]);
|
|
|
|
|
|
+ // self.open_right(self.groups_list[i]);
|
|
self.getGroupsInfo(self.groups_list[i]);
|
|
self.getGroupsInfo(self.groups_list[i]);
|
|
}
|
|
}
|
|
}
|
|
}
|