@@ -57,9 +57,10 @@
<script>
import { channelPage, page, create, editPage } from '@/api/channel/custom'
-import { devList } from '@/api/device/list'
+import { devMixin } from '@/mixin/index'
export default {
dicts: ['deployment_form'],
+ mixins: [devMixin],
data() {
return {
// 遮罩层
@@ -76,8 +77,6 @@ export default {
pageNum: 1,
pageSize: 10
},
- // 关联设备列表
- devOptions: [],
index: 0,
dialogForm: {},
ids: []
@@ -89,16 +88,6 @@ export default {
}
mounted() {
- devList().then(res => {
- if (res.code === 0) {
- res.data.map(i => {
- this.devOptions.push({
- value: i.clientTypeId,
- label: i.name
- })
- }
this.getList()
methods: {