|
@@ -47,6 +47,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
result: {},
|
|
|
+ edbInfo: null,
|
|
|
chooseItem: {
|
|
|
edbId: 0,
|
|
|
value:''
|
|
@@ -56,12 +57,17 @@ export default {
|
|
|
methods:{
|
|
|
/* 选择指标和日期获取近5期数据 */
|
|
|
async chooseEdb(edb) {
|
|
|
- if(!edb) return
|
|
|
+ if(!edb){
|
|
|
+ this.initData();
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
+ this.edbInfo = edb;
|
|
|
|
|
|
if(this.$parent.selectCell.DataType !== 1){
|
|
|
|
|
|
- this.$message.warning('请先在表格中选择日期')
|
|
|
- this.$refs.selectRef.search_txt='';
|
|
|
+ this.$message.warning('请在表格中选择日期')
|
|
|
+ this.initData();
|
|
|
return
|
|
|
}
|
|
|
|
|
@@ -85,10 +91,15 @@ export default {
|
|
|
this.cancelHandle();
|
|
|
},
|
|
|
|
|
|
- cancelHandle() {
|
|
|
- this.result = {};
|
|
|
- this.chooseItem = {};
|
|
|
+ initData() {
|
|
|
this.$refs.selectRef.search_txt='';
|
|
|
+ this.result = {};
|
|
|
+ this.edbInfo=null;
|
|
|
+ this.chooseItem = { edbId: 0,value: '' }
|
|
|
+ },
|
|
|
+
|
|
|
+ cancelHandle() {
|
|
|
+ this.initData();
|
|
|
this.$emit('update:isShow',false);
|
|
|
resetDialogCellStyle();
|
|
|
}
|