|
@@ -148,7 +148,7 @@ import {ref, onMounted, watch} from "vue";
|
|
import {useAppStore} from "~src/store";
|
|
import {useAppStore} from "~src/store";
|
|
import HcDragUpload from "./components/HcDragUpload.vue"
|
|
import HcDragUpload from "./components/HcDragUpload.vue"
|
|
import HcSelectTree from "./components/HcSelectTree.vue"
|
|
import HcSelectTree from "./components/HcSelectTree.vue"
|
|
-import {getClassList, queryDeviceList, querySampleList,getSampleInfo} from "~api/tentative";
|
|
|
|
|
|
+import {getClassList,deviceClassListInit, queryDeviceList, querySampleList,getSampleInfo} from "~api/tentative";
|
|
import {getContractUserList} from "~api/other";
|
|
import {getContractUserList} from "~api/other";
|
|
import {formValidate, getArrValue,getObjValue} from "vue-utils-plus"
|
|
import {formValidate, getArrValue,getObjValue} from "vue-utils-plus"
|
|
import dataApi from "~api/tentative/device/employ";
|
|
import dataApi from "~api/tentative/device/employ";
|
|
@@ -170,6 +170,7 @@ watch(() => [
|
|
|
|
|
|
//渲染完成
|
|
//渲染完成
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
|
|
+ deviceClassListInitdata()
|
|
getClassListData()
|
|
getClassListData()
|
|
getTableData()
|
|
getTableData()
|
|
getUserListData()
|
|
getUserListData()
|
|
@@ -203,7 +204,12 @@ const getClassListData = async () => {
|
|
typeData.value = arr
|
|
typeData.value = arr
|
|
menus.value = [{id: '0', className: '全部', isNoContextMenu: true}, ...arr]
|
|
menus.value = [{id: '0', className: '全部', isNoContextMenu: true}, ...arr]
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+//初始化设备分类
|
|
|
|
+const deviceClassListInitdata= async () => {
|
|
|
|
+ const { data } = await deviceClassListInit({
|
|
|
|
+ contractId: contractId.value
|
|
|
|
+ })
|
|
|
|
+}
|
|
//菜单被点击
|
|
//菜单被点击
|
|
const menuChange = (item) => {
|
|
const menuChange = (item) => {
|
|
menuItem.value = item
|
|
menuItem.value = item
|