Karsa 1 year ago
parent
commit
7d6e7a0249

+ 13 - 1
src/views/chartRelevance_manage/components/selectTarget.vue

@@ -161,7 +161,19 @@ export default {
             if(this.filter) {
             if(this.filter) {
                res = this.targetType=='1'?await dataBaseInterface.targetSearchByPage(params):await preDictEdbInterface.edbSearch(params)
                res = this.targetType=='1'?await dataBaseInterface.targetSearchByPage(params):await preDictEdbInterface.edbSearch(params)
             }else {
             }else {
-              res = await sheetInterface.searchTarget(params)
+              const filterMap = {
+                1: 2,
+                8: 3,
+                14: 6
+              }
+
+              let FilterSource = (this.$route.path==='/addMixedSheet' && this.$parent.isCalculateDia)
+                ? filterMap[this.$parent.formData.source]||1 
+                : 1;
+              res = await sheetInterface.searchTarget({
+                ...params,
+                FilterSource,
+              })
             }
             }
             
             
 
 

+ 1 - 1
src/views/datasheet_manage/components/CustomTable.vue

@@ -859,7 +859,7 @@ export default {
       }else {
       }else {
         cell.DataType = 3;
         cell.DataType = 3;
         cell.ShowValue = this.copyCellItem.ShowValue;
         cell.ShowValue = this.copyCellItem.ShowValue;
-        cell.Value = this.copyCellItem.Value;
+        cell.Value = this.copyCellItem.ShowValue;
       }
       }
       
       
       // 阻止默认的粘贴操作
       // 阻止默认的粘贴操作

+ 8 - 1
src/views/datasheet_manage/components/MixedTable.vue

@@ -910,6 +910,11 @@ export default {
         }
         }
       }
       }
       this.isInsertDateDialog = true;
       this.isInsertDateDialog = true;
+
+      this.isSelectTargetValueDialog = false;
+      this.$refs.selectTargetValueRef.initData();
+      this.isInsertCalculate = false;
+      this.$refs.calculateEdbDiaRef.initData();
     },
     },
 
 
     /* 插入系统/指标日期 */
     /* 插入系统/指标日期 */
@@ -1035,7 +1040,9 @@ export default {
       }else {
       }else {
         cell.DataType = 3;
         cell.DataType = 3;
         cell.ShowValue = this.copyCellItem.ShowValue;
         cell.ShowValue = this.copyCellItem.ShowValue;
-        cell.Value = this.copyCellItem.Value;
+        cell.Value = this.copyCellItem.ShowValue;
+        cell.DataTime = '';
+        cell.EdbInfoId = '';
       }
       }
 
 
       // 阻止默认的粘贴操作
       // 阻止默认的粘贴操作

+ 19 - 0
src/views/datasheet_manage/components/calculateEdbDia.vue

@@ -132,6 +132,23 @@
 							</el-select>
 							</el-select>
 						</el-form-item>
 						</el-form-item>
 
 
+            <el-form-item label="频度" prop="frequency" v-if="[9,13].includes(formData.source)">
+							<el-select
+								v-model="formData.frequency"
+								placeholder="请选择频度"
+								style="width: 200px"
+								clearable
+							>
+								<el-option
+									v-for="item in frequencyArr"
+									:key="item"
+									:label="item"
+									:value="item"
+								>
+								</el-option>
+							</el-select>
+						</el-form-item>
+
 						<el-form-item label="数据取值" prop="valueType" v-if="info.fromEdbKey===51">
 						<el-form-item label="数据取值" prop="valueType" v-if="info.fromEdbKey===51">
 							<el-select
 							<el-select
 								v-model="formData.valueType"
 								v-model="formData.valueType"
@@ -250,6 +267,7 @@ export default {
   },
   },
   data() {
   data() {
     return {
     return {
+      isCalculateDia: true,
       formData: {
       formData: {
         source: this.info.fromEdbKey,
         source: this.info.fromEdbKey,
         frequency: '',
         frequency: '',
@@ -262,6 +280,7 @@ export default {
         alphaValue: 0,
         alphaValue: 0,
       },
       },
       formRules,
       formRules,
+      frequencyArr: ['日度', '周度','旬度', '月度', '季度', '年度'],
 
 
       showResult: false,
       showResult: false,
       calculateShowData: [], //计算全部数据
       calculateShowData: [], //计算全部数据