|
@@ -143,8 +143,6 @@ import EditDic from './component/edit.vue';
|
|
import ExcelDic from './component/excel.vue';
|
|
import ExcelDic from './component/excel.vue';
|
|
import api from '/@/api/device';
|
|
import api from '/@/api/device';
|
|
import { ArrowDown } from '@element-plus/icons-vue'
|
|
import { ArrowDown } from '@element-plus/icons-vue'
|
|
-import { useRoute } from 'vue-router'
|
|
|
|
-
|
|
|
|
|
|
|
|
// 定义接口来定义对象的类型
|
|
// 定义接口来定义对象的类型
|
|
interface TableDataRow {
|
|
interface TableDataRow {
|
|
@@ -178,8 +176,6 @@ export default defineComponent({
|
|
name: 'deviceInstance',
|
|
name: 'deviceInstance',
|
|
components: { EditDic, ExcelDic, ArrowDown },
|
|
components: { EditDic, ExcelDic, ArrowDown },
|
|
setup() {
|
|
setup() {
|
|
- const route = useRoute()
|
|
|
|
- const productKey = route.query.productKey
|
|
|
|
const addDicRef = ref();
|
|
const addDicRef = ref();
|
|
const editDicRef = ref();
|
|
const editDicRef = ref();
|
|
const excelDicRef = ref();
|
|
const excelDicRef = ref();
|
|
@@ -218,8 +214,7 @@ export default defineComponent({
|
|
}).finally(() => (state.tableData.loading = false));
|
|
}).finally(() => (state.tableData.loading = false));
|
|
};
|
|
};
|
|
const getProductList = () => {
|
|
const getProductList = () => {
|
|
- const query = { productKey }
|
|
|
|
- api.product.getLists(query).then((res: any) => {
|
|
|
|
|
|
+ api.product.getLists().then((res: any) => {
|
|
state.productData = res.product
|
|
state.productData = res.product
|
|
})
|
|
})
|
|
}
|
|
}
|