Эх сурвалжийг харах

Merge branch 'demand-068'

cxmo 1 жил өмнө
parent
commit
0368c9edf5

+ 6 - 1
src/views/dataEntry_manage/targetList.vue

@@ -552,8 +552,12 @@ export default {
 			dataInterence.checkTarget({
 				TradeCode:item.TradeCode
 			}).then(res => {
+				if(res.Data.Status===1){
+					this.$message.error("该指标已加入ETA指标库,不可删除")
+					return
+				}else{
 					this.$confirm(
-						res.Data.Status===0 ? '是否确认删除该指标?' : '若删除此指标,该指标下关联的数据也将全部删除,是否确认删除?',
+						'是否确认删除该指标?',
 						'提示',{
 						type:'warning'
 					}).then(() => {
@@ -565,6 +569,7 @@ export default {
 								this.getTableData();
 							});
 					}).catch(() => {});
+				}
 			})
 		}
 	},