This commit is contained in:
刘召雪
2020-11-10 17:18:28 +08:00
parent 0ce7120d13
commit b1e5bf802f
3 changed files with 13 additions and 9 deletions

10
src/api/hardware/node.js Normal file
View File

@ -0,0 +1,10 @@
import request from '@/utils/request'
// 新增节点
export function addNode(data) {
return request({
url: '/system/node/saveNode',
method: 'post',
data
})
}

View File

@ -42,11 +42,4 @@ export function del(ids) {
method: 'delete' method: 'delete'
}) })
} }
// 新增节点
export function addNode(data) {
return request({
url: '/system/product/saveNode',
method: 'post',
data
})
}

View File

@ -186,7 +186,8 @@
</template> </template>
<script> <script>
import { list, get, add, update, del, addNode } from "@/api/hardware/product"; import { list, get, add, update, del } from "@/api/hardware/product";
import { addNode } from "@/api/hardware/node";
export default { export default {
name: "ProductList", name: "ProductList",
data() { data() {