فهرست منبع

更改获取产品的所有接口

yukai 2 سال پیش
والد
کامیت
4d442f5050
2فایلهای تغییر یافته به همراه2 افزوده شده و 4 حذف شده
  1. 1 3
      src/views/iot/scene/manage/detail.vue
  2. 1 1
      src/views/iot/scene/manage/index.vue

+ 1 - 3
src/views/iot/scene/manage/detail.vue

@@ -1,5 +1,4 @@
 <template>
-	<div>
 	<el-card class="system-dic-container" style="position: relative;">
 		<div class="content">
 			<div class="flex cont_box">
@@ -38,7 +37,6 @@
 	</el-card>
 
 	<EditForm ref="editFormRef" @getList="getDetail()"></EditForm>
-</div>
 </template>
 <script lang="ts">
 import { toRefs, reactive, ref, defineComponent,onMounted } from 'vue';
@@ -138,7 +136,7 @@ export default defineComponent({
 			})
 		};
 		const getProductList = () => {
-			product.product.getSubList().then((res: any) => {
+			product.product.getLists().then((res: any) => {
 				state.sourceData = res.product;
 			});
 		};

+ 1 - 1
src/views/iot/scene/manage/index.vue

@@ -99,7 +99,7 @@ const editFormRef = ref();
 const { params, tableData, getList, loading } = useSearch<any[]>(api.manage.getList, 'Data', { keyWord: '' });
 getList();
 const toDetail = (id: number) => {
-	router.push(`/iotmanager/scene/manage/detail/${id}`)
+	router.push(`/iotmanager/scene/manage/${id}`)
 };
 
 const addOrEdit = async (row?: any) => {