|
@@ -1,6 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<el-dialog :modal-append-to-body='false' title="添加链接" :visible.sync="show"
|
|
<el-dialog :modal-append-to-body='false' title="添加链接" :visible.sync="show"
|
|
- :close-on-click-modal="false" width="872px" top="5vh">
|
|
|
|
|
|
+ :close-on-click-modal="false" width="872px" top="5vh" @close="cancelHandle">
|
|
<div class="add-link-box">
|
|
<div class="add-link-box">
|
|
<div class="link-box-option">
|
|
<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">
|
|
@@ -161,7 +161,7 @@ import * as sheetInterface from "@/api/modules/sheetApi.js";
|
|
import mPage from "@/components/mPage.vue";
|
|
import mPage from "@/components/mPage.vue";
|
|
import Chart from '../../../dataEntry_manage/components/chart.vue'
|
|
import Chart from '../../../dataEntry_manage/components/chart.vue'
|
|
import { dataBaseInterface,reportlist} from '@/api/api.js';
|
|
import { dataBaseInterface,reportlist} from '@/api/api.js';
|
|
-
|
|
|
|
|
|
+import * as preDictEdbInterface from '@/api/modules/predictEdbApi.js';
|
|
export default {
|
|
export default {
|
|
components:{
|
|
components:{
|
|
mPage,Chart
|
|
mPage,Chart
|
|
@@ -281,6 +281,7 @@ import { dataBaseInterface,reportlist} from '@/api/api.js';
|
|
reportTotal:0,
|
|
reportTotal:0,
|
|
editingLabel:'',
|
|
editingLabel:'',
|
|
activeItemRId:'',
|
|
activeItemRId:'',
|
|
|
|
+ activeItem:''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -362,10 +363,12 @@ import { dataBaseInterface,reportlist} from '@/api/api.js';
|
|
this.getDatabaseList();
|
|
this.getDatabaseList();
|
|
},
|
|
},
|
|
getDatabaseList(){
|
|
getDatabaseList(){
|
|
- dataBaseInterface.targetList({
|
|
|
|
|
|
+ // 0-普通指标 1-预测指标
|
|
|
|
+ let api = this.activeItem.databaseType==0?(dataBaseInterface.targetList):(preDictEdbInterface.edbDataInfo)
|
|
|
|
+ api({
|
|
PageSize: 20,
|
|
PageSize: 20,
|
|
CurrentIndex: this.databasePageNo,
|
|
CurrentIndex: this.databasePageNo,
|
|
- EdbInfoId: this.search_dataBaseId || (+this.activeItemRId.split('-')[1]),
|
|
|
|
|
|
+ EdbInfoId: this.search_dataBaseId || this.activeItem.Id,
|
|
}).then(res => {
|
|
}).then(res => {
|
|
if(res.Ret === 200) {
|
|
if(res.Ret === 200) {
|
|
if(res.Data) {
|
|
if(res.Data) {
|
|
@@ -417,6 +420,7 @@ import { dataBaseInterface,reportlist} from '@/api/api.js';
|
|
linkClick(item,config={}){
|
|
linkClick(item,config={}){
|
|
if(this.activeItemRId == item.RId) return
|
|
if(this.activeItemRId == item.RId) return
|
|
this.activeItemRId = item.RId
|
|
this.activeItemRId = item.RId
|
|
|
|
+ this.activeItem = item
|
|
this.addLinkSearchParams.linkType=item.Type
|
|
this.addLinkSearchParams.linkType=item.Type
|
|
if(item.Type==3){
|
|
if(item.Type==3){
|
|
if(!config.noInfo){
|
|
if(!config.noInfo){
|