|
@@ -203,7 +203,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import deviceApi from '@/api/super/device-manage'
|
|
|
+import api from '@/api/super/config/device'
|
|
|
import { parseTime } from '@/utils'
|
|
|
import Pagination from '@/components/Pagination'
|
|
|
|
|
@@ -260,14 +260,14 @@ export default {
|
|
|
methods: {
|
|
|
handleManagerSearch(value) {
|
|
|
this.manager.loading = true
|
|
|
- deviceApi.queryManager(value).then(res => {
|
|
|
+ api.QueryManager(value).then(res => {
|
|
|
this.manager.groups[1].options = res
|
|
|
this.manager.loading = false
|
|
|
})
|
|
|
},
|
|
|
handleManagerSearch2(value) {
|
|
|
this.manager.loading = true
|
|
|
- deviceApi.queryManager(value).then(res => {
|
|
|
+ api.QueryManager(value).then(res => {
|
|
|
this.manager.list = res
|
|
|
this.manager.loading = false
|
|
|
})
|
|
@@ -286,7 +286,7 @@ export default {
|
|
|
},
|
|
|
getList() {
|
|
|
this.device.loading = true
|
|
|
- deviceApi.queryDevice(this.device.query).then(res => {
|
|
|
+ api.Query(this.device.query).then(res => {
|
|
|
for (let i = 0; i < res.devices.length; ++i) {
|
|
|
res.devices[i].first = new Date(res.devices[i].first)
|
|
|
res.devices[i].last = new Date(res.devices[i].last)
|
|
@@ -320,7 +320,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
handleBatchAssign() {
|
|
|
- deviceApi.batchAssign({
|
|
|
+ api.Assign({
|
|
|
devices: this.batch.ids, manager: this.batch.manager.id
|
|
|
}).then(() => {
|
|
|
this.$notify({
|
|
@@ -341,7 +341,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
handleUpdate() {
|
|
|
- deviceApi.updateDevice({
|
|
|
+ api.Update({
|
|
|
did: this.detail.id,
|
|
|
addr: this.detail.addr,
|
|
|
mid: this.detail.manager.id,
|