|
@@ -1,6 +1,10 @@
|
|
<template>
|
|
<template>
|
|
<div class="right-section-wrapper">
|
|
<div class="right-section-wrapper">
|
|
<div class="create-cont">
|
|
<div class="create-cont">
|
|
|
|
+ <div class="search-box">
|
|
|
|
+ <el-input placeholder="请输入指标ID/指标名称" prefix-icon="el-icon-search" clearable
|
|
|
|
+ v-model="keyWord" @input="getTargetList"/>
|
|
|
|
+ </div>
|
|
<ul class="edb-list" v-if="edbList.length">
|
|
<ul class="edb-list" v-if="edbList.length">
|
|
<li :class="['edb-item',{'selected':selectEdb.EdbInfoId===item.EdbInfoId}]" v-for="(item,index) in edbList" :key="index" @click="chooseEdb(item)">
|
|
<li :class="['edb-item',{'selected':selectEdb.EdbInfoId===item.EdbInfoId}]" v-for="(item,index) in edbList" :key="index" @click="chooseEdb(item)">
|
|
<span>{{item.EdbName}}</span>
|
|
<span>{{item.EdbName}}</span>
|
|
@@ -17,21 +21,30 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
|
|
+import * as sheetInterface from '@/api/modules/sheetApi.js';
|
|
export default {
|
|
export default {
|
|
props: {
|
|
props: {
|
|
list: {
|
|
list: {
|
|
type: Array
|
|
type: Array
|
|
|
|
+ },
|
|
|
|
+ sheetDetailInfo:{
|
|
|
|
+ type:Object
|
|
}
|
|
}
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
- list(nval) {
|
|
|
|
|
|
+ /* list(nval) {
|
|
this.edbList = nval;
|
|
this.edbList = nval;
|
|
|
|
+ }, */
|
|
|
|
+ sheetDetailInfo(newVal){
|
|
|
|
+ if(newVal&&newVal.ExcelInfoId)
|
|
|
|
+ this.getTargetList('init')
|
|
}
|
|
}
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
edbList:[],
|
|
edbList:[],
|
|
selectEdb: {},
|
|
selectEdb: {},
|
|
|
|
+ keyWord:''
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted(){
|
|
mounted(){
|
|
@@ -57,7 +70,21 @@ export default {
|
|
classifyId:ClassifyId
|
|
classifyId:ClassifyId
|
|
}});
|
|
}});
|
|
window.open(href,'_blank');
|
|
window.open(href,'_blank');
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ async getTargetList(type) {
|
|
|
|
+ this.selectEdb={}
|
|
|
|
+ const res = await sheetInterface.sheetAnalysisInterface.edbListBySheet({
|
|
|
|
+ ExcelInfoId: this.sheetDetailInfo.ExcelInfoId,
|
|
|
|
+ Keyword:this.keyWord
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ if(res.Ret !== 200) return
|
|
|
|
+
|
|
|
|
+ this.edbList = res.Data || [];
|
|
|
|
+ if(type!=='init'&&this.edbList.length){
|
|
|
|
+ this.chooseEdb(this.edbList[0])
|
|
|
|
+ }
|
|
|
|
+ },
|
|
},
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
@@ -73,7 +100,7 @@ export default {
|
|
.create-cont {
|
|
.create-cont {
|
|
.edb-list {
|
|
.edb-list {
|
|
padding: 30px;
|
|
padding: 30px;
|
|
- max-height: 640px;
|
|
|
|
|
|
+ max-height: 520px;
|
|
overflow-y: auto;
|
|
overflow-y: auto;
|
|
.edb-item {
|
|
.edb-item {
|
|
display: flex;
|
|
display: flex;
|
|
@@ -106,6 +133,10 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ .search-box{
|
|
|
|
+ padding:30px;
|
|
|
|
+ padding-bottom: 0;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|