diff --git a/api/system/require.js b/api/system/require.js new file mode 100644 index 0000000..12825a0 --- /dev/null +++ b/api/system/require.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询需求清单列表 +export function listRequire(query) { + return request({ + url: '/system/require/list', + method: 'get', + params: query + }) +} + +// 查询需求清单详细 +export function getRequire(id) { + return request({ + url: '/system/require/' + id, + method: 'get' + }) +} + +// 新增需求清单 +export function addRequire(data) { + return request({ + url: '/system/require', + method: 'post', + data: data + }) +} + +// 修改需求清单 +export function updateRequire(data) { + return request({ + url: '/system/require', + method: 'put', + data: data + }) +} + +// 删除需求清单 +export function delRequire(id) { + return request({ + url: '/system/require/' + id, + method: 'delete' + }) +} diff --git a/pages.json b/pages.json index ebc79c8..f8a3869 100644 --- a/pages.json +++ b/pages.json @@ -25,12 +25,7 @@ "style": { "navigationBarTitleText": "我的" } - }, { - "path": "pages/demo/index", - "style": { - "navigationBarTitleText": "示例" - } - }, { + }, { "path": "pages/control/index", "style": { "navigationBarTitleText": "控制中心" @@ -66,6 +61,16 @@ "navigationBarTitleText": "常见问题" } }, { + "path": "pages/mine/mqtt/index", + "style": { + "navigationBarTitleText": "mqtt工具" + } + }, { + "path": "pages/mine/require/index", + "style": { + "navigationBarTitleText": "需求清单" + } + }, { "path": "pages/mine/about/index", "style": { "navigationBarTitleText": "关于我们" @@ -100,11 +105,6 @@ "text": "工作台" }, { - "pagePath": "pages/demo/index", - "iconPath": "static/images/tabbar/work.png", - "selectedIconPath": "static/images/tabbar/work_.png", - "text": "示例" - },{ "pagePath": "pages/mine/index", "iconPath": "static/images/tabbar/mine.png", "selectedIconPath": "static/images/tabbar/mine_.png", diff --git a/pages/mine/index.vue b/pages/mine/index.vue index 2ead74b..18f5b27 100644 --- a/pages/mine/index.vue +++ b/pages/mine/index.vue @@ -52,6 +52,19 @@ 编辑资料 + + + + mqtt工具 + + + + + + + 需求清单 + + @@ -77,7 +90,10 @@ + + \ No newline at end of file