| 
					
				 | 
			
			
				@@ -2,7 +2,11 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <el-button type="primary" icon="plus" @click="addIndex">新增指标</el-button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <el-table :data="listData" border style="width: 100%;margin-top:10px"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <el-table-column prop="objName" label="对象名称" width="180" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <el-table-column prop="metricsName" label="指标名称" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <el-table-column prop="metricsName" label="指标名称"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <template #default="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <el-input v-model="scope.row.metricsName" @keyup.enter="editMName(scope.row)"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <el-table-column label="操作" width="80"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <template #default="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <el-button type="primary" link icon="delete" @click="handleDelete(scope.row)">删除</el-button> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -29,6 +33,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <script setup lang="ts"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import {msConfigList,msConfigDel,msConfigSelect,msConfigAdd} from "@/api/index/hl" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import {updateMsConfig} from "@/api/biz/msConfig" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import {onMounted, reactive} from "vue"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const {proxy} = getCurrentInstance() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const listData=ref([]) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -41,6 +46,10 @@ const query = reactive({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   pageNum:1, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   pageSize:10 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const editMName=async (row)=>{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  await updateMsConfig(row) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const total = ref(0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const emit = defineEmits(["update"]) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 onMounted(()=>{ 
			 |