jwyu hai 1 ano
pai
achega
81dca021c8

+ 1 - 0
src/views/dataEntry_manage/databaseComponents/batchComputedV2.vue

@@ -711,6 +711,7 @@ export default {
             if(this.subComputedType==5){
                 this.filter.frequency=['月度']
             }
+            this.selectList=[]
             this.handleFilter()
         },
 

+ 12 - 1
src/views/dataEntry_manage/databaseComponents/operationDialog.vue

@@ -133,6 +133,7 @@
 								min="0"
 								size="mini"
 								v-model="formData.moveVal"
+								@change="refreshTarget"
 								@keyup.native="filterCode(formData)"
 							></el-input>
 							<el-select
@@ -701,6 +702,15 @@ export default {
 			this.formData.targetName=name_map[this.type] || ''
 		},
 
+		// 时间位移-移动方式修改 修改指标名
+		refreshTarget(){
+			if(this.type==22){
+				if(!this.select_target||this.operationForm.edb_id) return;
+				let obj = this.searchOptions.find(item => item.EdbInfoId === this.select_target);
+				this.formData.targetName=`${obj.EdbName}${this.moveTypeOpions.filter(item=>item.key===this.formData.moveType)[0].label}${this.formData.moveVal}${this.formData.moveUnit}`
+			}
+		},
+
 		/* 单位默认同步基础指标
 		同比 同差 频度同步 单位无 
 		转月 平均值 频度单位同步
@@ -735,7 +745,8 @@ export default {
 				61:  `${obj.EdbName}转季值`,
 				62:  `${obj.EdbName}累计值/${obj.Frequency}`,
 				63:  `${obj.EdbName}累计值/${obj.Frequency}`,
-				75: `${obj.EdbName}日均值`
+				75: `${obj.EdbName}日均值`,
+				22:	`${obj.EdbName}${this.moveTypeOpions.filter(item=>item.key===this.formData.moveType)[0].label}${this.formData.moveVal}${this.formData.moveUnit}`
 			}
 			
 			let frequerncyMap = {