|
@@ -78,7 +78,7 @@
|
|
|
<div class="hint-dialog-wrap">
|
|
|
<p style="margin-bottom: 20px;">{{ hintText }}</p>
|
|
|
<ul>
|
|
|
- <li v-for="(item,index) in afterAddList" :key="index" class="hint-item">
|
|
|
+ <li v-for="(item,index) in afterAddList" :key="index" class="hint-item" @click="gotoEdbDetail(item)">
|
|
|
{{ index+1 }}、{{ item.IndexName }}({{ item.IndexCode }})
|
|
|
</li>
|
|
|
</ul>
|
|
@@ -251,6 +251,11 @@ export default {
|
|
|
if(res.Ret!==200) return
|
|
|
this.tableData = res.Data.List||[]
|
|
|
this.total = res.Data.Paging.Totals
|
|
|
+ if(this.tableData.length>0){
|
|
|
+ this.tableDataIds = this.tableData.map(it => it.IndexCode)
|
|
|
+ }else{
|
|
|
+ this.tableDataIds = []
|
|
|
+ }
|
|
|
if(type==='optionChange'){
|
|
|
//如果是表格筛选项改变导致重新请求数据
|
|
|
//数据获取完成后,列表全选,表格全选
|
|
@@ -469,6 +474,19 @@ export default {
|
|
|
this.isAddDialogShow = false
|
|
|
this.handleCurrentChange(1)
|
|
|
})
|
|
|
+ },
|
|
|
+ //跳转至指标详情
|
|
|
+ gotoEdbDetail(data){
|
|
|
+ const {EdbClassifyId,EdbInfoId,EdbUniqueCode} = data||{}
|
|
|
+ const href = this.$router.resolve({
|
|
|
+ path:'/database',
|
|
|
+ query:{
|
|
|
+ code:EdbUniqueCode,
|
|
|
+ id:EdbInfoId,
|
|
|
+ classifyId:EdbClassifyId,
|
|
|
+ }
|
|
|
+ }).href
|
|
|
+ window.open(href,"_blank")
|
|
|
}
|
|
|
},
|
|
|
mounted(){
|