|
@@ -28,7 +28,7 @@
|
|
|
:disabled="operationForm.view"
|
|
|
>
|
|
|
|
|
|
- <el-form-item label="自变量" prop="self_variate">
|
|
|
+ <el-form-item label="自变量(x)" prop="self_variate">
|
|
|
<el-select
|
|
|
v-model="formData.self_variate"
|
|
|
v-loadMore="searchLoad"
|
|
@@ -72,7 +72,7 @@
|
|
|
</template>
|
|
|
</el-form-item>
|
|
|
|
|
|
- <el-form-item label="因变量" prop="depend_variate">
|
|
|
+ <el-form-item label="因变量(y)" prop="depend_variate">
|
|
|
<el-select
|
|
|
v-model="formData.depend_variate"
|
|
|
v-loadMore="searchLoad"
|
|
@@ -117,7 +117,7 @@
|
|
|
@change="changeDate"
|
|
|
:picker-options="endDateOptions"
|
|
|
/>
|
|
|
- <span v-if="correlationIndex" class="editsty" style="margin-left: 20px">相关系数:{{correlationIndex}}</span>
|
|
|
+ <span v-if="correlationStr" class="editsty" style="margin-left: 20px">{{correlationStr}}</span>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="指标名称" prop="edb_name" class="target-form-cont">
|
|
|
<el-input
|
|
@@ -225,6 +225,8 @@ export default {
|
|
|
StartDate: item.StartDate,
|
|
|
EndDate: item.EndDate,
|
|
|
}))
|
|
|
+
|
|
|
+ this.correlationStr = backData.correlationStr;
|
|
|
|
|
|
}
|
|
|
}
|
|
@@ -298,7 +300,7 @@ export default {
|
|
|
depend_edb_name: '',
|
|
|
self_edb_name: '',
|
|
|
|
|
|
- correlationIndex: '',//相关系数
|
|
|
+ correlationStr: '',//相关系数
|
|
|
|
|
|
};
|
|
|
},
|
|
@@ -397,9 +399,9 @@ export default {
|
|
|
/* 获取相关系数 */
|
|
|
async getCorrelationIndex() {
|
|
|
|
|
|
- if(!this.formData.self_variate || !this.formData.depend_variate || !this.formData.date[0] || !this.formData.date[1]) return this.correlationIndex = '';
|
|
|
+ if(!this.formData.self_variate || !this.formData.depend_variate || !this.formData.date[0] || !this.formData.date[1]) return this.correlationStr = '';
|
|
|
|
|
|
- if(this.formData.self_move_type===1 && !this.formData.self_move_val) return this.correlationIndex = '';
|
|
|
+ if(this.formData.self_move_type===1 && !this.formData.self_move_val) return this.correlationStr = '';
|
|
|
|
|
|
const { date,self_variate,self_move_type,self_move_val,depend_variate } = this.formData;
|
|
|
let params = {
|
|
@@ -423,7 +425,7 @@ export default {
|
|
|
|
|
|
if(res.Ret !==200) return
|
|
|
|
|
|
- this.correlationIndex = res.Data;
|
|
|
+ this.correlationStr = res.Data;
|
|
|
},
|
|
|
|
|
|
/* 选择日期 */
|
|
@@ -445,6 +447,7 @@ export default {
|
|
|
|
|
|
init() {
|
|
|
this.searchOptions = [];
|
|
|
+ this.correlationStr = '';
|
|
|
this.formData = {
|
|
|
self_variate: '',
|
|
|
self_move_type: 0,
|