|
@@ -1,9 +1,10 @@
|
|
|
<template>
|
|
|
- <el-dialog :modal-append-to-body='false' :title="$t('SandboxManage.SandFlow.add_link')" :visible.sync="show"
|
|
|
- :close-on-click-modal="false" width="872px" top="5vh" @close="cancelHandle">
|
|
|
+ <div>
|
|
|
+ <el-dialog v-dialogDrag :modal-append-to-body='false' :title="$t('SandboxManage.SandFlow.add_node_data')" :visible.sync="show"
|
|
|
+ :close-on-click-modal="false" width="1000px" top="5vh" @close="cancelHandle" v-show="!dialogDisplayNone">
|
|
|
<div class="add-link-box">
|
|
|
<div class="link-box-option">
|
|
|
- <el-select v-model="addLinkSearchParams.linkType" placeholder="链接类型" style="width: 240px;" @change="changeLinkType">
|
|
|
+ <el-select v-model="addLinkSearchParams.linkType" placeholder="节点数据类型" style="width: 240px;" @change="changeLinkType">
|
|
|
<el-option :label="item.label" :value="item.value" v-for="item in linkTypeList" :key="item.value"></el-option>
|
|
|
</el-select>
|
|
|
<el-select v-if="addLinkSearchParams.linkType==1"
|
|
@@ -75,6 +76,20 @@
|
|
|
<i slot="prefix" class="el-input__icon el-icon-search"></i>
|
|
|
</el-input>
|
|
|
</div>
|
|
|
+ <div class="link-box-tags">
|
|
|
+ <div class="link-box-tag"
|
|
|
+ v-for="(item,index) in linkListInShow"
|
|
|
+ :key="item.RId"
|
|
|
+ :class="{'unchoose-tag':item.Id != activeItem.Id,'choosed-tag':item.Id == activeItem.Id}">
|
|
|
+ <span @dblclick.stop="editLinkName(item)"
|
|
|
+ v-if="!item.editing"
|
|
|
+ @click="linkClick(item)"
|
|
|
+ :style="{color:item.Id == activeItem.Id?'#0052D9':'#666666'}">{{ item.Name }}</span>
|
|
|
+ <el-input v-else @blur="editLinkNameFinish(item)"
|
|
|
+ v-model.trim="editingLabel" class="label-edit-input" ref="labelEditInput"/>
|
|
|
+ <img src="~@/assets/img/sand_new/delete_outline_1.png" @click="linkDelete(item,index)">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div class="link-box-content">
|
|
|
<!-- 指标 -->
|
|
|
<div class="link-content-dataIndex" v-if="addLinkSearchParams.linkType==1 && databaseTableData && databaseTableData.length>0">
|
|
@@ -89,46 +104,40 @@
|
|
|
<el-table-column :label="$t('Table.frequency')" align="center" width="50">
|
|
|
<template slot-scope="scope">{{ getFrequencyTrans(scope.row.Frequency||'null') }}</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column :label="$t('Table.unit')" align="center">
|
|
|
+ <el-table-column :label="$t('Table.unit')" align="center" width="100">
|
|
|
<template slot-scope="scope">{{ currentLang==='en'?(scope.row.UnitEn||getUnitTrans(scope.row.Unit)):getUnitTrans(scope.row.Unit) }}</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column :label="$t('Table.start_time')" align="center" width="100">
|
|
|
- <template slot-scope="scope">{{ scope.row.StartDate }}</template>
|
|
|
+ <el-table-column :label="$t('Edb.Detail.e_latest_value')" align="center" width="100">
|
|
|
+ <template slot-scope="scope">{{ scope.row.LatestValue }}</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column :label="$t('Table.update_time')" align="center" width="160">
|
|
|
- <template slot-scope="scope">{{ scope.row.ModifyTime }}</template>
|
|
|
+ <el-table-column :label="$t('Edb.Detail.e_latest_date')" align="center" width="130">
|
|
|
+ <template slot-scope="scope">{{ scope.row.LatestDate }}</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column :label="$t('Table.source')" align="center">
|
|
|
<template slot-scope="scope">{{ scope.row.SourceName }}</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column :label="$t('Table.column_operations')" align="center" width="50">
|
|
|
- <template slot-scope="scope">
|
|
|
- <span class="delete-button">{{$t('Table.delete_btn')}}</span>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
</el-table>
|
|
|
- <ul
|
|
|
- class="value-ul"
|
|
|
- ref="valueUl"
|
|
|
- @scroll="databaseScrollHandle"
|
|
|
- v-show="databaseList.length">
|
|
|
- <li
|
|
|
- class="value-item"
|
|
|
- v-for="item in databaseList"
|
|
|
- :key="item.EdbDataId"
|
|
|
- >
|
|
|
- <span class="value-label">
|
|
|
- <span style="position: relative;">
|
|
|
- <i class="new-tag" v-if="databaseTableData[0].LatestDate===item.DataTime"></i>
|
|
|
- {{item.DataTime}}
|
|
|
- </span>
|
|
|
- </span>
|
|
|
- <span :class="['value-label',{'predict-act': databaseTableData[0].DataInsertConfig.Date===item.DataTime}]" style="min-width:200px;text-align:center;">
|
|
|
- <span :class="['value-style',{'predict-act': databaseTableData[0].DataInsertConfig.Date===item.DataTime}]">{{item.Value}}</span>
|
|
|
- </span>
|
|
|
- </li>
|
|
|
- <li class="nodata value-item" v-if="!databaseList.length">{{$t('Table.prompt_slogan')}}</li>
|
|
|
+ <ul class="link-count-wrap">
|
|
|
+ <li v-for="item in calculateOption"
|
|
|
+ :key="item.source"
|
|
|
+ class="link-count-item"
|
|
|
+ :class="{'link-count-item-un':!handleCountChoose(item),'link-count-item-on':handleCountChoose(item)}"
|
|
|
+ @click="clickCountItem(item)">
|
|
|
+ <span>{{ item.label }}</span>
|
|
|
+ <img v-if="handleCountChoose(item) && item.source != 98 && item.source != 99"
|
|
|
+ src="~@/assets/img/sand_new/blue_edit_icon.png"
|
|
|
+ style="width: 13px;height: 13px;margin-left: 8px;"
|
|
|
+ @click.stop="handleEditCal(item)">
|
|
|
+ </li>
|
|
|
</ul>
|
|
|
+ <div v-if="threeCalculation && threeCalculation.length > 0" class="calculate-result-wrap">
|
|
|
+ <div class="calculate-result-title">{{ $t('ETableChildren.calculate_result') }}</div>
|
|
|
+ <div class="calculate-result-table">
|
|
|
+ <div v-for="(item,index) in threeCalculation" :key="index" class="calculate-result-table-tr">
|
|
|
+ <div v-for="(v) in item" :key="v.source" class="calculate-result-table-item">{{ v.label }}:{{ v.value }}</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<noDataAuth v-if="databaseTableData[0].HaveOperaAuth===false" :text="$t('MsgPrompt.no_edb_auth')"/>
|
|
@@ -169,20 +178,25 @@
|
|
|
</div>
|
|
|
<tableNoData :text="$t('Table.prompt_slogan')" v-else/>
|
|
|
</div>
|
|
|
- <div class="link-box-tags">
|
|
|
- <div class="link-box-tag" v-for="(item,index) in checkedLinkList" :key="item.RId">
|
|
|
- <span @dblclick.stop="editLinkName(item)" v-if="!item.editing" @click="linkClick(item)">{{ item.Name }}</span>
|
|
|
- <el-input v-else @blur="editLinkNameFinish(item)"
|
|
|
- v-model.trim="editingLabel" class="label-edit-input" ref="labelEditInput"/>
|
|
|
- <img src="~@/assets/img/sand_new/delete_outline_1.png" @click="linkDelete(item,index)">
|
|
|
- </div>
|
|
|
- </div>
|
|
|
<div class="link-box-buttons">
|
|
|
<el-button type="info" style="width:120px;color:#333333;background-color:#F4F8FE" @click="cancelHandle">{{$t('Dialog.cancel_btn')}}</el-button>
|
|
|
<el-button type="primary" style="width:120px;margin-left: 30px;" @click="saveLink">{{$t('Dialog.confirm_btn')}}</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+ <calculateEdb
|
|
|
+ :isShow.sync="isOpenCalculationDia"
|
|
|
+ :calculationItem="calculationItem"
|
|
|
+ :activeLink="activeItem"
|
|
|
+ :linkList="linkListInShow"
|
|
|
+ @editEdbName="handleEditEdbName"
|
|
|
+ @addEdbItem="handleAddEdbItem"
|
|
|
+ @changeActiveEdb="handleChangeActiveEdb"
|
|
|
+ @edbDelete="handleEdbDelete"
|
|
|
+ @addCalculation="handleAddCalculation"
|
|
|
+ @handleCloseDialog="handleCloseDialog"
|
|
|
+ ></calculateEdb>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
@@ -190,11 +204,13 @@ import { chartSetMixin } from '../../../dataEntry_manage/mixins/chartPublic'
|
|
|
import * as sheetInterface from "@/api/modules/sheetApi.js";
|
|
|
import mPage from "@/components/mPage.vue";
|
|
|
import Chart from '../../../dataEntry_manage/components/chart.vue'
|
|
|
+import calculateEdb from './calculateEdb.vue';
|
|
|
import { dataBaseInterface,reportlist} from '@/api/api.js';
|
|
|
import * as preDictEdbInterface from '@/api/modules/predictEdbApi.js';
|
|
|
+import { calculateOption } from "../../common/options"
|
|
|
export default {
|
|
|
components:{
|
|
|
- mPage,Chart
|
|
|
+ mPage,Chart,calculateEdb
|
|
|
},
|
|
|
props:{
|
|
|
show:{
|
|
@@ -211,6 +227,9 @@ import * as preDictEdbInterface from '@/api/modules/predictEdbApi.js';
|
|
|
/* 选中搜索指标 展开目录 选中指标 展示数据 */
|
|
|
search_dataBaseId(newval) {
|
|
|
if (newval) {
|
|
|
+ if(this.linkListInShow.find(_=>_.Id == newval)){
|
|
|
+ return this.$message.warning(this.$t('SandboxManage.SandFlow.data_already_exists'))
|
|
|
+ }
|
|
|
if(this.addLinkSearchParams.linkType==1){
|
|
|
let search_obj = this.dataBaseOptions.find(
|
|
|
(item) => item.EdbInfoId === newval
|
|
@@ -223,14 +242,16 @@ import * as preDictEdbInterface from '@/api/modules/predictEdbApi.js';
|
|
|
Type:this.addLinkSearchParams.linkType,
|
|
|
editing:false,
|
|
|
databaseType:search_obj.EdbInfoType, //0 普通指标 | 1 预测指标
|
|
|
+ EdbType:search_obj.EdbType || 0,
|
|
|
detailParams:{
|
|
|
code:search_obj.UniqueCode,
|
|
|
id:search_obj.EdbInfoId,
|
|
|
classifyId:search_obj.ClassifyId
|
|
|
- }
|
|
|
+ },
|
|
|
+ calculationMethod:[],
|
|
|
}
|
|
|
this.checkedLinkList.push(this.activeItem)
|
|
|
-
|
|
|
+ this.handleLinkListInShow()
|
|
|
this.activeItemRId=this.addLinkSearchParams.linkType+'-'+search_obj.EdbInfoId
|
|
|
this.initGetData()
|
|
|
}
|
|
@@ -248,9 +269,11 @@ import * as preDictEdbInterface from '@/api/modules/predictEdbApi.js';
|
|
|
detailParams:{
|
|
|
code:search_obj.UniqueCode,
|
|
|
id:search_obj.ChartInfoId
|
|
|
- }
|
|
|
+ },
|
|
|
+ calculationMethod:[],
|
|
|
}
|
|
|
this.checkedLinkList.push(this.activeItem)
|
|
|
+ this.handleLinkListInShow()
|
|
|
this.activeItemRId=this.addLinkSearchParams.linkType+'-'+search_obj.ChartInfoId
|
|
|
this.getChartDetail(search_obj.ChartInfoId)
|
|
|
}
|
|
@@ -265,17 +288,26 @@ import * as preDictEdbInterface from '@/api/modules/predictEdbApi.js';
|
|
|
},
|
|
|
show(value){
|
|
|
if(value){
|
|
|
- this.checkedLinkList = JSON.parse(JSON.stringify(this.linkList))
|
|
|
+ this.isOpenCalculationDia = false;
|
|
|
+ this.checkedLinkList = JSON.parse(JSON.stringify(this.linkList.map(_=>({calculationMethod:[],..._}))))
|
|
|
+ this.handleLinkListInShow()
|
|
|
let firstCheckedLink = this.checkedLinkList[0]
|
|
|
if(firstCheckedLink){
|
|
|
- this.activeItemRId=''
|
|
|
+ this.addLinkSearchParams.linkType = firstCheckedLink.Type;
|
|
|
+ this.activeItemRId='';
|
|
|
this.linkClick(firstCheckedLink)
|
|
|
}else{
|
|
|
this.addLinkSearchParams.linkType=1
|
|
|
}
|
|
|
- this.changeLinkType()
|
|
|
+ this.doDataInit()
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
+ activeItem:{
|
|
|
+ deep:true,
|
|
|
+ handler(){
|
|
|
+ this.handleThreeCalculation()
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
computed:{
|
|
|
linkTypeList(){
|
|
@@ -284,7 +316,10 @@ import * as preDictEdbInterface from '@/api/modules/predictEdbApi.js';
|
|
|
{value:2,label:this.$t('SandboxManage.SandFlow.link_type_opt2')},
|
|
|
{value:3,label:this.$t('SandboxManage.SandFlow.link_type_opt3')}
|
|
|
]
|
|
|
- }
|
|
|
+ },
|
|
|
+ calculateOption(){
|
|
|
+ return calculateOption
|
|
|
+ },
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -315,15 +350,105 @@ import * as preDictEdbInterface from '@/api/modules/predictEdbApi.js';
|
|
|
reportList:[],
|
|
|
selections:[],
|
|
|
checkedLinkList:[],
|
|
|
+ linkListInShow:[],//当前种类下的标签
|
|
|
reportTotal:0,
|
|
|
editingLabel:'',
|
|
|
activeItemRId:'',
|
|
|
- activeItem:''
|
|
|
+ activeItem:'',
|
|
|
+ threeCalculation:[],//三个一组
|
|
|
+ isOpenCalculationDia:false,
|
|
|
+ calculationItem:{},
|
|
|
+ dialogDisplayNone:false,
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- // -------------------------------添加链接
|
|
|
+ handleThreeCalculation(){
|
|
|
+ let i = this.checkedLinkList.findIndex(_=>_.RId == this.activeItem.RId);
|
|
|
+ if(i < 0) return;
|
|
|
+ if(!this.checkedLinkList[i].calculationMethod) this.checkedLinkList[i].calculationMethod = [];
|
|
|
+
|
|
|
+ let data = this.checkedLinkList[i].calculationMethod || [];
|
|
|
+ let arr = [];
|
|
|
+ if(data && data.length > 0) {
|
|
|
+ for(var x=0;x<data.length;x+=3){
|
|
|
+ arr.push(data.slice(x,x+3));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.threeCalculation = arr || [];
|
|
|
+ },
|
|
|
+ handleCountChoose(item){
|
|
|
+ let i = this.checkedLinkList.findIndex(_=>_.RId == this.activeItem.RId);
|
|
|
+ if(i < 0) return false;
|
|
|
+ let arr = this.checkedLinkList[i].calculationMethod || [];
|
|
|
+ return arr.find(_=>_.source == item.source || _.source == item.source2);
|
|
|
+ },
|
|
|
+ handleEditCal(v){ //编辑状态
|
|
|
+ const getManySourseJump = (item) => {
|
|
|
+ let i = this.checkedLinkList.find(_=>_.RId == this.activeItem.RId);
|
|
|
+ if(i && i.calculationMethod && i.calculationMethod.length > 0){
|
|
|
+ let calItem = i.calculationMethod.find(_=>_.source == item.source || _.source == item.source2);
|
|
|
+ let _ = !calItem ? item : {
|
|
|
+ ...item,
|
|
|
+ source:calItem.source
|
|
|
+ }
|
|
|
+ return _;
|
|
|
+ } else {
|
|
|
+ return item;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ let hasManySource = v.source2 ? true : false;
|
|
|
+ this.calculationItem = !hasManySource ? v : getManySourseJump(v);
|
|
|
+ this.isOpenCalculationDia = true;
|
|
|
+ this.dialogDisplayNone = true;
|
|
|
+ },
|
|
|
+ clickCountItem(item){
|
|
|
+ let i = this.checkedLinkList.findIndex(_=>_.RId == this.activeItem.RId);
|
|
|
+ if(i < 0) return;
|
|
|
+ if(!this.checkedLinkList[i].calculationMethod) this.checkedLinkList[i].calculationMethod = [];
|
|
|
+ let isChoosed = this.checkedLinkList[i].calculationMethod.findIndex(_=>_.source == item.source || _.source == item.source2);
|
|
|
+ if(isChoosed >= 0){ //已经选中
|
|
|
+ this.checkedLinkList[i].calculationMethod.splice(isChoosed,1)
|
|
|
+ } else { //未选中
|
|
|
+ if(item.source == 99 || item.source == 98){ //最新值和最新日期
|
|
|
+ this.checkedLinkList[i].calculationMethod.unshift({
|
|
|
+ ...item,
|
|
|
+ value:item.source == 99 ? this.databaseTableData[0].LatestValue : this.databaseTableData[0].LatestDate
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.calculationItem = item;
|
|
|
+ this.isOpenCalculationDia = true;
|
|
|
+ this.dialogDisplayNone = true;
|
|
|
+ }
|
|
|
+ };
|
|
|
+ this.handleThreeCalculation();
|
|
|
+ },
|
|
|
+ handleAddCalculation({item}){
|
|
|
+ let i = this.checkedLinkList.findIndex(_=>_.RId == this.activeItem.RId);
|
|
|
+ if(i < 0) return;
|
|
|
+ if(!this.checkedLinkList[i].calculationMethod) this.checkedLinkList[i].calculationMethod = [];
|
|
|
+ let x = this.calculateOption.find(_=>item.source == _.source || item.source == _.source2);
|
|
|
+ let isChoosed = this.checkedLinkList[i].calculationMethod.findIndex(_=>_.source == x.source || _.source == x.source2);
|
|
|
+ if(isChoosed >= 0) {
|
|
|
+ this.checkedLinkList[i].calculationMethod.splice(isChoosed,1);
|
|
|
+ }
|
|
|
+ this.checkedLinkList[i].calculationMethod.unshift(item);
|
|
|
+ this.handleThreeCalculation();
|
|
|
+ },
|
|
|
changeLinkType(){
|
|
|
+ this.doDataInit();
|
|
|
+ this.handleLinkListInShow();
|
|
|
+ let firstCheckedLink = this.linkListInShow[0];
|
|
|
+ if(firstCheckedLink){
|
|
|
+ this.activeItemRId=''
|
|
|
+ this.linkClick(firstCheckedLink)
|
|
|
+ }
|
|
|
+ this.doDataInit();
|
|
|
+ },
|
|
|
+ handleLinkListInShow(){
|
|
|
+ this.linkListInShow = (this.checkedLinkList || []).filter(_=>_.Type == this.addLinkSearchParams.linkType);
|
|
|
+ },
|
|
|
+ doDataInit(){
|
|
|
this.search_dataBaseId=''
|
|
|
this.dataBaseOptions=[]
|
|
|
this.dataBaseParams={
|
|
@@ -439,7 +564,9 @@ import * as preDictEdbInterface from '@/api/modules/predictEdbApi.js';
|
|
|
const chartTypeMap = {
|
|
|
7: this.initBarData, //柱形图
|
|
|
10: this.initSectionScatterData, //截面散点
|
|
|
- 11: this.initRadarData(res.Data)
|
|
|
+ // (res.Data)
|
|
|
+ 11: this.initRadarData, //雷达图
|
|
|
+ 14:this.initSectionalCombinationChart, //截面组合图
|
|
|
}
|
|
|
chartTypeMap[this.chartInfo.ChartType] && chartTypeMap[this.chartInfo.ChartType](res.Data);
|
|
|
|
|
@@ -460,31 +587,33 @@ import * as preDictEdbInterface from '@/api/modules/predictEdbApi.js';
|
|
|
this.activeItemRId = item.RId
|
|
|
this.activeItem = item
|
|
|
this.addLinkSearchParams.linkType=item.Type
|
|
|
+ this.handleLinkListInShow();
|
|
|
if(item.Type==3){
|
|
|
if(!config.noInfo){
|
|
|
this.$message.info('研报类型的暂无回显')
|
|
|
}
|
|
|
}else if(item.Type==1){
|
|
|
- this.changeLinkType()
|
|
|
+ this.doDataInit()
|
|
|
this.initGetData()
|
|
|
}else if(item.Type==2){
|
|
|
- this.changeLinkType()
|
|
|
+ this.doDataInit()
|
|
|
this.getChartDetail(item.Id)
|
|
|
}
|
|
|
|
|
|
},
|
|
|
linkDelete(item,index){
|
|
|
let rId = item.RId
|
|
|
- this.checkedLinkList.splice(index,1)
|
|
|
+ this.linkListInShow.splice(index,1);
|
|
|
+ this.checkedLinkList.splice(this.checkedLinkList.findIndex(_=>_.RId == rId),1);
|
|
|
if(this.activeItemRId == rId){
|
|
|
- let firstCheckedLink = this.checkedLinkList[0]
|
|
|
+ let firstCheckedLink = this.linkListInShow[0]
|
|
|
if(firstCheckedLink){
|
|
|
this.linkClick(firstCheckedLink,{noInfo:true})
|
|
|
}else{
|
|
|
- this.activeItemRId = ""
|
|
|
- this.addLinkSearchParams.linkType=1
|
|
|
+ this.activeItemRId = "";
|
|
|
+ this.activeItem = {};
|
|
|
}
|
|
|
- this.changeLinkType()
|
|
|
+ this.doDataInit()
|
|
|
}
|
|
|
|
|
|
if(item.Type==3){
|
|
@@ -498,10 +627,36 @@ import * as preDictEdbInterface from '@/api/modules/predictEdbApi.js';
|
|
|
if (this.editingLabel) {
|
|
|
item.editing=false
|
|
|
item.Name = this.editingLabel
|
|
|
+ let i = this.checkedLinkList.findIndex(_=>_.RId == item.RId);
|
|
|
+ if(i >= 0) this.checkedLinkList[i].Name = this.editingLabel;
|
|
|
} else {
|
|
|
this.$message.warning('不能为空');
|
|
|
}
|
|
|
},
|
|
|
+ handleEditEdbName(options){
|
|
|
+ let {item} = options;
|
|
|
+ let i = this.checkedLinkList.findIndex(_=>_.RId == item.RId);
|
|
|
+ if(i >= 0) this.checkedLinkList[i].Name = item.Name;
|
|
|
+ let j = this.linkListInShow.findIndex(_=>_.RId == item.RId);
|
|
|
+ if(j >= 0) this.linkListInShow[j].Name = item.Name;
|
|
|
+ },
|
|
|
+ handleAddEdbItem(options){
|
|
|
+ let {item} = options;
|
|
|
+ this.doDataInit()
|
|
|
+ this.activeItem = item;
|
|
|
+ this.checkedLinkList.push(item)
|
|
|
+ this.handleLinkListInShow()
|
|
|
+ this.activeItemRId=item.RId;
|
|
|
+ this.initGetData()
|
|
|
+ },
|
|
|
+ handleChangeActiveEdb({item}){
|
|
|
+ if(!item) return;
|
|
|
+ this.linkClick(item)
|
|
|
+ },
|
|
|
+ handleEdbDelete({item}){
|
|
|
+ let index = this.linkListInShow.findIndex(_=>_.RId == item.RId)
|
|
|
+ this.linkDelete(item,index)
|
|
|
+ },
|
|
|
searchReport(){
|
|
|
this.reportParams.CurrentIndex=1
|
|
|
if(!this.reportKeyWord){
|
|
@@ -559,8 +714,10 @@ import * as preDictEdbInterface from '@/api/modules/predictEdbApi.js';
|
|
|
Name:item.Name,
|
|
|
Type:this.addLinkSearchParams.linkType,
|
|
|
editing:false,
|
|
|
- detailParams:{id:item.Id,code:item.Code}
|
|
|
+ detailParams:{id:item.Id,code:item.Code},
|
|
|
+ calculationMethod:[]
|
|
|
})
|
|
|
+ this.handleLinkListInShow()
|
|
|
}
|
|
|
})
|
|
|
//有就去掉
|
|
@@ -569,13 +726,18 @@ import * as preDictEdbInterface from '@/api/modules/predictEdbApi.js';
|
|
|
let index = this.checkedLinkList.findIndex(link => rId==link.RId)
|
|
|
if(index!=-1){
|
|
|
this.checkedLinkList.splice(index,1)
|
|
|
+ this.handleLinkListInShow()
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
saveLink(){
|
|
|
this.$emit("saveLink", this.checkedLinkList);
|
|
|
},
|
|
|
+ handleCloseDialog(){
|
|
|
+ this.dialogDisplayNone = false;
|
|
|
+ },
|
|
|
cancelHandle(){
|
|
|
+ this.linkListInShow = [];
|
|
|
this.$emit("update:show", false);
|
|
|
}
|
|
|
},
|
|
@@ -584,78 +746,78 @@ import * as preDictEdbInterface from '@/api/modules/predictEdbApi.js';
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
.add-link-box{
|
|
|
+ max-height: 72vh;
|
|
|
+ overflow: auto;
|
|
|
padding: 15px 40px 35px;
|
|
|
.link-box-option{
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: space-between;
|
|
|
- margin-bottom: 30px;
|
|
|
+ margin-bottom: 20px;
|
|
|
}
|
|
|
.link-box-content{
|
|
|
margin-bottom: 30px;
|
|
|
.link-content-dataIndex{
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
- .value-ul {
|
|
|
- flex-grow: 1;
|
|
|
- overflow-y: auto;
|
|
|
- margin-top: 10px;
|
|
|
- height: 200px;
|
|
|
- border-bottom: 1px solid #EBEFF6;
|
|
|
- .value-item {
|
|
|
- /* width: 100%; */
|
|
|
- padding: 10px 0;
|
|
|
- border: 1px solid #dcdfe6;
|
|
|
- border-bottom: none;
|
|
|
- display: flex;
|
|
|
- justify-content: space-around;
|
|
|
- >span{
|
|
|
- padding:0 16px;
|
|
|
+ .link-count-wrap{
|
|
|
+ margin-top: 13px;
|
|
|
+ display: flex;
|
|
|
+ justify-content: start;
|
|
|
+ align-items: center;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ .link-count-item{
|
|
|
+ cursor: pointer;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ margin-top: 20px;
|
|
|
+ margin-right: 20px;
|
|
|
+ font-size: 14px;
|
|
|
box-sizing: border-box;
|
|
|
- }
|
|
|
- .value-label {
|
|
|
- position: relative;
|
|
|
- color: #666;
|
|
|
- .value-style{
|
|
|
- padding:5px;
|
|
|
- border-radius: 4px;
|
|
|
- &.predict-act {
|
|
|
- color: orange;
|
|
|
- }
|
|
|
+ height: 40px;
|
|
|
+ padding: 4px 8px 4px 8px;
|
|
|
+ border-radius: 4px;
|
|
|
+ }
|
|
|
+ .link-count-item-on{
|
|
|
+ border: 1px solid #0052D9;
|
|
|
+ color: #666666;
|
|
|
+ background: #ECF2FE;
|
|
|
+ }
|
|
|
+ .link-count-item-un{
|
|
|
+ border: 1px solid #C8CDD9;
|
|
|
+ color: #666666;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .calculate-result-wrap{
|
|
|
+ margin-top: 20px;
|
|
|
+ .calculate-result-title{
|
|
|
+ font-size: 14px;
|
|
|
+ color: #333333;
|
|
|
+ margin-bottom: 10px;
|
|
|
+ }
|
|
|
+ .calculate-result-table{
|
|
|
+ border: 1px solid #C8CDD9;
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding: 0 20px;
|
|
|
+ border-radius: 4px;
|
|
|
+ .calculate-result-table-tr:nth-of-type(n+2){
|
|
|
+ border-top: 1px solid #C8CDD9;
|
|
|
}
|
|
|
- &.date{
|
|
|
- &::after{
|
|
|
- content: '';
|
|
|
- position:absolute;
|
|
|
- right:0;
|
|
|
- top:-14px;
|
|
|
- height:calc(100% + 28px);
|
|
|
- width:1px;
|
|
|
- background-color: #dcdfe6;
|
|
|
+ .calculate-result-table-tr{
|
|
|
+ height: 50px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ .calculate-result-table-item{
|
|
|
+ width: 33.3%;
|
|
|
+ color: #333333;
|
|
|
+ font-weight: 400;
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
- .predict-act {
|
|
|
- color: orange;
|
|
|
- }
|
|
|
- .new-tag {
|
|
|
- width: 6px;
|
|
|
- height: 6px;
|
|
|
- display: inline-block;
|
|
|
- position: absolute;
|
|
|
- left: -12px;
|
|
|
- top: 50%;
|
|
|
- transform: translateY(-50%);
|
|
|
- border-radius: 50%;
|
|
|
- background: #f00;
|
|
|
- }
|
|
|
- }
|
|
|
- .nodata {
|
|
|
- text-align: center;
|
|
|
- padding: 40px 0;
|
|
|
- color: #999;
|
|
|
- }
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
.delete-button{
|
|
|
color: #AD352F;
|
|
|
font-size: 14px;
|
|
@@ -674,20 +836,27 @@ import * as preDictEdbInterface from '@/api/modules/predictEdbApi.js';
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
overflow-x: auto;
|
|
|
+ margin-bottom: 20px;
|
|
|
+ .unchoose-tag{
|
|
|
+ border: 1px solid #C8CDD9;
|
|
|
+ }
|
|
|
+ .choosed-tag{
|
|
|
+ border: 1px solid #0052D9;
|
|
|
+ background: rgba(236, 242, 254, 1);
|
|
|
+ }
|
|
|
.link-box-tag{
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
padding: 0 8px;
|
|
|
- height: 30px;
|
|
|
+ height: 40px;
|
|
|
max-width: 250px;
|
|
|
- background-color: #F8F8F8;
|
|
|
margin-right: 30px;
|
|
|
+ border-radius: 4px;
|
|
|
cursor: pointer;
|
|
|
&:last-child{
|
|
|
margin-right: 0;
|
|
|
}
|
|
|
span{
|
|
|
- color: #666666;
|
|
|
white-space: nowrap;
|
|
|
overflow: hidden;
|
|
|
text-overflow: ellipsis;
|