|
@@ -109,13 +109,15 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import { categoryList } from "@/api/device/category";
|
|
|
+import { functionList } from "@/api/device/function";
|
|
|
import { Add, Detail, Edit } from "@/api/device/list";
|
|
|
-import { category, functions, devType } from "../mixin/index";
|
|
|
+import { devTypeMixin } from "@/mixin/index";
|
|
|
import Upload from "@/components/Upload/index";
|
|
|
import Editor from "@/components/Editor/index";
|
|
|
|
|
|
export default {
|
|
|
- mixins: [category, functions, devType],
|
|
|
+ mixins: [devTypeMixin],
|
|
|
components: {
|
|
|
Upload,
|
|
|
Editor
|
|
@@ -181,12 +183,30 @@ export default {
|
|
|
}, {
|
|
|
value: 'QiXinWei',
|
|
|
label: 'QiXinWei'
|
|
|
- }]
|
|
|
+ }],
|
|
|
+ functionOptions: [],
|
|
|
+ categoryOptions: []
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
|
- this.disabled = this.$route.query.key === "查看" ? true : false;
|
|
|
- this.getList();
|
|
|
+ this.disabled = this.$route.query.key === "查看" ? true : false
|
|
|
+ this.getList()
|
|
|
+ // 权限列表
|
|
|
+ functionList({
|
|
|
+ isDelete: 0
|
|
|
+ }).then((res) => {
|
|
|
+ if (res.code === 0) {
|
|
|
+ this.functionOptions = res.data;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ // 设备类型
|
|
|
+ categoryList({
|
|
|
+ status: 1,
|
|
|
+ }).then((res) => {
|
|
|
+ if (res.code === 0) {
|
|
|
+ this.categoryOptions = res.data;
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
methods: {
|
|
|
// 详情
|