hbchen 11 сар өмнө
parent
commit
b2bd20fe09

+ 4 - 4
src/views/dataEntry_manage/databaseComponents/addTargetDiaBase.vue

@@ -6,8 +6,8 @@
 				<img :src="$icons.add" style="color:#fff;width:16px;height:16px;marginRight:5px;">
 				<span style="fontSize:16px;">添加指标</span>
 			</div>
-			<template v-if="wsdAddStep==1" >
-				<div class="dialog-top" v-loading="isLoadingData">
+			<div v-if="wsdAddStep==1" v-loading="isLoadingData" element-loading-text="加载中······">
+				<div class="dialog-top" >
 					<div>
 						<span>数据来源</span>
 						<el-select v-model="fromType" placeholder="请选择来源" style="width:240px;margin-left:10px" @change="changeTrade"
@@ -101,7 +101,7 @@
 						<el-button type="primary" v-else-if="[1,3].includes(status)" @click="cancelHandle">知道了</el-button>
 					</div>
 				</template>
-			</template>
+			</div>
 			<template v-else>
 				<div class="edb-table-preview">
           <table width="auto" border="0">
@@ -534,7 +534,7 @@ export default {
 					let params={
 						Source:Number(this.fromCode.get(this.fromType)),
 						SubSource:this.fromDatabase,
-						EdbCode:[...this.indexCode,...this.indexCodeSelected].join(','),
+						EdbCode:Array.from(new Set([...this.indexCode,...this.indexCodeSelected])).join(','),
 						// StockCode:this.securityCode.join(',')
 						StockCode:this.securityCodeText
 					}