|
@@ -4,6 +4,9 @@ import {
|
|
import {
|
|
import {
|
|
categoryList
|
|
categoryList
|
|
} from "@/api/device/category";
|
|
} from "@/api/device/category";
|
|
|
|
+import {
|
|
|
|
+ functionList
|
|
|
|
+} from "@/api/device/function";
|
|
|
|
|
|
const clientType = {
|
|
const clientType = {
|
|
data() {
|
|
data() {
|
|
@@ -46,7 +49,24 @@ const category = {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+const functions = {
|
|
|
|
+ data() {
|
|
|
|
+ return {
|
|
|
|
+ functionOptions: []
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ created() {
|
|
|
|
+ // 权限列表
|
|
|
|
+ functionList().then((res) => {
|
|
|
|
+ if (res.code === 0) {
|
|
|
|
+ this.functionOptions = res.data;
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
export {
|
|
export {
|
|
clientType,
|
|
clientType,
|
|
- category
|
|
|
|
|
|
+ category,
|
|
|
|
+ functions
|
|
}
|
|
}
|